What are you going to do with your Zodiac FX?

  • 5 Replies
  • 3561 Views
*

Dankleton

  • Newbie
  • *
  • 2
    • View Profile
What are you going to do with your Zodiac FX?
« on: December 03, 2015, 10:55:27 PM »
When I placed my Kickstarter order for the Zodiac FX I didn't have a concrete plan of what I was going to use it for beyond "playing with SDN."

Now it's starting to get close to ship date and I still don't!

Those who already have projects planned with these boxes - what are you going to be doing with them?

*

Lexo

  • Newbie
  • *
  • 9
    • View Profile
Re: What are you going to do with your Zodiac FX?
« Reply #1 on: December 03, 2015, 11:43:25 PM »
Looking for a purpose for the little board now. I heard someone describe the network TAP as the Hello world of SDN so may try and consider setting it up to relay traffic between two ports with a copy to the 3rd.

I am sure it's easier said than done but have to start somewhere.

*

cousintroy

  • Newbie
  • *
  • 3
    • View Profile
Re: What are you going to do with your Zodiac FX?
« Reply #2 on: December 04, 2015, 04:39:18 AM »
My entire network at home is one large network for studying so my plan is to create a new segment with the FX's with access to a controller (say Open Daylight).  From there, run through various use cases by sending flows to the switches and see if I can mess with traffic to/from systems in the greenfield segment and out.  Other than that, just learning more hands on with SDN.

*

Adam

  • Beta Testers
  • Newbie
  • *
  • 11
    • View Profile
Re: What are you going to do with your Zodiac FX?
« Reply #3 on: December 04, 2015, 11:56:31 PM »
Looking for a purpose for the little board now. I heard someone describe the network TAP as the Hello world of SDN so may try and consider setting it up to relay traffic between two ports with a copy to the 3rd.

I am sure it's easier said than done but have to start somewhere.

Cowie, one of the forum members has a pretty simple SDN switch app that pretty much sets up a nailed path between Port 1 and Port 2 - https://github.com/wandsdn/simplestswitch

It requires Ryu (http://osrg.github.io/ryu/) which is python based to run the app, which is something I've been playing around a bit myself.

The relevant bits of code for the switching is this


        # IN PORT 1, OUTPUT PORT 2
        match = parser.OFPMatch(in_port=1)
        actions = [parser.OFPActionOutput(2)]
        self.add_flow(datapath, 1000, match, actions)

        # IN PORT 2, OUTPUT PORT 1
        match = parser.OFPMatch(in_port=2)
        actions = [parser.OFPActionOutput(1)]
        self.add_flow(datapath, 1000, match, actions)


The Openflow Controller is connected to Port 4, so Port 3 is available...  So I've made a very simple change to the above code

        # IN PORT 1, OUTPUT PORT 2 and PORT 3
        match = parser.OFPMatch(in_port=1)
        actions = [parser.OFPActionOutput(2), parser.OFPActionOutput(3)]
        self.add_flow(datapath, 1000, match, actions)

        # IN PORT 2, OUTPUT PORT 1 and PORT 3
        match = parser.OFPMatch(in_port=2)
        actions = [parser.OFPActionOutput(1), parser.OFPActionOutput(3)]
        self.add_flow(datapath, 1000, match, actions)


And a PC with wireshark attached to port 3, I can monitor the traffic flow between Ports 1 and 2

If you don't have hardware to play with yet - you can muck about using a vm using mininet http://mininet.org/ and then hit the road running so to speak when your boards show up.

*

Lexo

  • Newbie
  • *
  • 9
    • View Profile
Re: What are you going to do with your Zodiac FX?
« Reply #4 on: December 16, 2015, 10:09:20 AM »
Wow Thanks Adam

With luck that will get me up and running pretty quickly.

*

Lexo

  • Newbie
  • *
  • 9
    • View Profile
Re: What are you going to do with your Zodiac FX?
« Reply #5 on: January 15, 2016, 09:14:49 AM »
Thanks for the pointers Adam i dont have the hardware yes to like you suggested turned to mininet. It's taken a while and I am now up and running and understand the code above a bit better. I have implemented a few basic commands through POX so may plough ahead with that or maybe switch to Ryu.