2013年5月27日 星期一

[tool][mininet][floodlight] Installing mininet and floodlight testing environment

[tool][mininet][floodlight] Installing mininet and floodlight testing environment

01. Update ubuntu 12.04 source.list
  • File Location - /etc/apt/source.list
  • vim replace url string - :%s/tw.archive.ubuntu.com/free.nchc.org.tw/g (please don't copy and paste)
  • apt-get update

02. installing mininet
  • sudo apt-get install mininet/precise-backports
  • sudo service openvswitch-controller stop
  • sudo update-rc.d openvswitch-controller disable

03. INSTALLING Floodlight
  • Prerequisites : sudo apt-get install build-essential default-jdk ant python-dev eclipse git
  • Download And Build :

  1. git clone git://github.com/floodlight/floodlight.git
  2. cd floodlight
  3. git checkout fl-last-passed-build
  4. ant
  5. chmod -R 755 floodlight/

  • Setting Up Eclipse :
  1. ant eclipse
  2. Open eclipse and create a new workspace 
  3. File -> Import -> General -> Existing Projects into Workspace. Then click “Next”.
  4. From “Select root directory” click “Browse”. Select the parent directory where you placed floodlight earlier.
  5. Check the box for “Floodlight”. No other Projects should be present and none should be selected.
  6. Click Finish.
  1. Click Window->Open Perspective->Java
  2. Click Window->Show View->Navigator
  3. Click Run->Run Configurations
  4. Right Click Java Application->New
  5. For Name use FloodlightLaunch
  6. For Project use Floodlight
  7. For Main use net.floodlightcontroller.core.Main
  8. Click Apply 


Ref :
http://vim.wikia.com/wiki/Search_and_replace
http://mininet.org/download/
http://docs.projectfloodlight.org/display/floodlightcontroller/Installation+Guide





2013年5月15日 星期三

[tool][wireshark][openflow] Installing wireshark on linux for openflow packet captures

[tool][wireshark][openflow] Installing wireshark on linux for openflow packet captures

01. INSTALLING WIRESHARK FROM REPOSITORIES
  • apt-get update && apt-get install wireshark-dev wireshark mercurial git

02. DOWNLOAD AND INSTALLING THE OPENFLOW WIRESHARK DISSECTOR OPTION #2
  • git clone git://openflow.org/openflow.git
  • cd openflow/
  • ./boot.sh
  • ./configure
  • make
  • sudo make install
  • cd utilities/wireshark_dissectors/openflow/

03. EDIT PACket-openflow.c File
  • vim openflow/utilities/wireshark_dissectors/openflow/utilities/wireshark_dissectors/openflow/packet-openflow.c
  • void proto_reg_handoff_openflow(){
    openflow_handle = create_dissector_handle(dissect_openflow, proto_openflow);
    //dissector_add(TCP_PORT_FILTER, global_openflow_proto, openflow_handle);
    dissector_add_unit(TCP_PORT_FILTER, global_openflow_proto, openflow_handle);
    }

04. make PACKET-OPENFLOW.o and install into wireshark plugin
  • directory : openflow/utilities/wireshark_dissectors/openflow/utilities/wireshark_dissectors/openflow/
  • make
  • sudo make install
  • cp /var/packet-openflow.so /usr/lib/wireshark/libwireshark1/plugins/


Ref :
http://networkstatic.net/installing-wireshark-on-linux-for-openflow-packet-captures/