codeblock

2016年4月19日 星期二

Ryu controller - deal with openflow packets notes

- Controller receives a  packet from a switch if the switch failed to look up it's flow table
- Get incoming packet message, src mac/ip, dst mac/ip, ofproto, ... whatever you want
- Learn a switch-port-mac_address entry

Packets received in Ryu controller

- Use ryu as remote controller to listen packet_in event which is usually triggered when a open virtual switch failed to look up an legal entry in the flow table.
- Here are some packet examples sending from ovs:

Disable ipv6

- When starting mininet with arbitrary topology by using ryu as a remote controller, there are plenty of packets sends from each hosts to a set of strange mac addresses start with 33:33:XX:XX...
- I didn't send these pkts (they started sending immediately after mininet network was set up), and I didn't want they show up. These irritating messages kept refreshing the controller console and led to debug trouble.

2016年4月14日 星期四

Ryu -- Mininet Sample: k=4 Fat Tree

- Start Ryu manager (optional:with GUI needed files)
ryu-manager --verbose --observe-links ryu.app.simple_switch ryu.app.rest_topology  ryu.app.ofctl_rest ryu.topology.switches

2016年4月13日 星期三

2016年4月11日 星期一

Mininet OpenFlow Tutorial - Learn Development Tools

https://github.com/mininet/openflow-tutorial/wiki

- Start with a topology with 3 hosts and 1 switch (and 1 controller)
  • "sudo mn --topo single,3 --mac --switch ovsk --controller remote"
  • --switch ovsk: Open vSwitch 
  • --mac: set the MAC address to hosts' IP address