02 February 2015 ~ 0 Comments

My SDN Lab-1

SDN

Here is the my first SDN lab test with Cisco XNC (Extended Network Controller). You can use this topology with Floodlight or OpenDaylight controller if possible for you. The pre-requesities are; once before you had XNC controller installation with specific controller modules like ‘Troubleshoot’, ‘TIF Manager’ and ‘Network Properties’.

This is my screenshot with this pre-requsities.

cisco_xnc

And the other pre-requisite is you must have a network running with SDN like www.mininet.org.

Now we can start to our SDN simulation lab with this command on the remote controller side.

 

Last login: Mon Feb  2 12:45:55 2015
[root@CISCO_XNC ~]# 
[root@CISCO_XNC ~]# 
[root@CISCO_XNC ~]# 
[root@CISCO_XNC ~]# 
[root@CISCO_XNC ~]# iptables -L INPUT -n --line-numbers
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22 
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:80 
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpts:2001:3024 
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpts:32768:61000 
8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW multiport dports 6633,8022,8080,8443 
9    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
[root@CISCO_XNC ~]# export JAVA_HOME=/usr/java/latest/
[root@CISCO_XNC ~]# cd /opt/xnc/
[root@CISCO_XNC xnc]# /opt/xnc/runxnc.sh -start 8022
Another instance of controller running, check with /opt/xnc/runxnc.sh -status
[root@CISCO_XNC xnc]# /opt/xnc/runxnc.sh -status
Controller with PID: 1364 -- Doesn't seem to exist
[root@CISCO_XNC xnc]# /opt/xnc/runxnc.sh -status
Doesn't seem any Controller daemon is currently running, at least no PID file has been found
[root@CISCO_XNC xnc]# fuser -n tcp 8022
[root@CISCO_XNC xnc]# fuser -n tcp 8022
[root@CISCO_XNC xnc]# /opt/xnc/runxnc.sh -stop
Doesn't seem any Controller daemon is currently running
[root@CISCO_XNC xnc]# /opt/xnc/runxnc.sh -start 8022
Running controller in background with PID: 1411, to connect to it please SSH to this host on port 8022

Let us attention to firstly we have to stop current runxnc.sh script and then run again this runxnc.sh script. !!!

Also we can reach Cisco’s XNC web interface. Type your web-browser http://[your-controller’s-ip-address:8080] In my lab topology my controller’s IP address is http://10.206.24.24:8080

Here is my screenshot.

username: admin

password: admin

xnc_login

Controller is OK. Then we can start mininet topology and let us see hosts and router’s (h1,h2,h3) IP, default gateway assignments and we can not ping from h1 to h2 with below commands.

 

mininet@mininet-vm:~$ sudo mn --controller=remote,ip=10.206.24.24 --topo=single,3 --mac -x

mininet> h1 ifconfig h1-eth0 192.168.1.1 netmask 255.255.255.0
mininet> h1 route add default gw 192.168.1.254
mininet> h2 ifconfig h2-eth0 192.168.2.2 netmask 255.255.255.0
mininet> h2 route add default gw 192.168.2.254
mininet> h3 ifconfig h3-eth0:1 192.168.1.254
mininet> h3 ifconfig h3-eth0:2 192.168.2.254

mininet> h1 ping -c1 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Host Unreachable

--- 192.168.2.2 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

 This is my SDN Lab topology.

my_sdn_lab_topology

We can not ping. Why? Because h1 and h2 are in different network subnets. We must configure these following flows to our Cisco XNC controller. Via these flows in this topology our fake router h3 will route the ICMP packet as in source IP address 192.168.1.1 and destination IP address 192.168.2.2.

 

mininet> dpctl add-flow arp,actions=flood
*** s1 ------------------------------------------------------------------------
mininet> dpctl add-flow ip,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03,nw_dst=192.168.2.2,actions=mod_dl_dst:00:00:00:00:00:02,output:2
*** s1 ------------------------------------------------------------------------
mininet> dpctl add-flow ip,dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:03,nw_dst=192.168.1.1,actions=mod_dl_dst:00:00:00:00:00:01,output:1
*** s1 ------------------------------------------------------------------------
mininet> dpctl add-flow dl_dst=00:00:00:00:00:03,actions=drop
*** s1 ------------------------------------------------------------------------

Then dump these flows with following command.

 

mininet> dpctl dump-flows
*** s1 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=10.946s, table=0, n_packets=0, n_bytes=0, idle_age=10, dl_dst=00:00:00:00:00:03 actions=drop
 cookie=0x0, duration=52.094s, table=0, n_packets=0, n_bytes=0, idle_age=52, ip,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:03,nw_dst=192.168.2.2 actions=mod_dl_dst:00:00:00:00:00:02,output:2
 cookie=0x0, duration=25.993s, table=0, n_packets=0, n_bytes=0, idle_age=25, ip,dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:03,nw_dst=192.168.1.1 actions=mod_dl_dst:00:00:00:00:00:01,output:1
 cookie=0x0, duration=82.373s, table=0, n_packets=0, n_bytes=0, idle_age=82, arp actions=FLOOD

OK. We saw 4 switch flows on our controller. Now let us ping again from h1 to h2.

 

mininet> h1 ping -c5 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_seq=1 ttl=64 time=0.675 ms
64 bytes from 192.168.2.2: icmp_seq=2 ttl=64 time=0.089 ms
64 bytes from 192.168.2.2: icmp_seq=3 ttl=64 time=0.142 ms
64 bytes from 192.168.2.2: icmp_seq=4 ttl=64 time=0.096 ms
64 bytes from 192.168.2.2: icmp_seq=5 ttl=64 time=0.094 ms

--- 192.168.2.2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.089/0.219/0.675/0.228 ms

Success!!! Everything looks fine. We have a look from the controller’s web-interface side. First as in flows;

flows

after as in ports GUI.

ports

All counters on ports GUI Rx and Tx bytes, packets are increasing. Flows are populated on xnc controller.

Yes this is SDN revolution. I want make my own router running openflow. And also one day, I want that every protocol will be open.

Special thanks to my wife Aysegul Kiraba Gol for her valuable efforts on me.

Written by: Kursat Gol

No Responses to “My SDN Lab-1”

  1. StevenMit 7 May 2019 at 20:04 Permalink

    Manage MongoDB databases with the help of this user-friendly and efficient application that offers a comprehensive set of advanced tools for the job

    Press the “Download Now” button to download Studio 3T for MongoDB Cracked.
    The whole process will just take a few moments.

    Mirror Link —> Studio 3T for MongoDB keygen serial

    – Version: 2019.2.0
    – Company: 3T Software Labs GmbH
    – Downloads: 505
    – Download type: safety (no torrent/no viruses)
    – Status file: clean (as of last analysis)
    – File size: na
    – Price: 0
    – Special requirements: no
    – Home page: studio3t.com
    – Rating:

    Tags:
    Studio 3T for MongoDB Full Crack
    Studio 3T for MongoDB patch
    Studio 3T for MongoDB key crack
    Studio 3T for MongoDB crack hack
    Studio 3T for MongoDB crack latest

    More software:
    Renee Video Editor Keygen Crack
    Melodics crack serial number
    StarUML + Full Crack
    PrimoCache crack install
    Security Eye activator
    Антиплагиат повышение оригинальности онлайн
    Skeptitsism ja selle vajalikkus – Teadliktreening
    download google books
    Entrevista en Diario de Cadiz – Bienmesabe

    Your comment is awaiting moderation.

  2. StevenMit 8 May 2019 at 16:26 Permalink

    Create virtual serial ports and test applications that use null modem cable with the help of this effective and practical utility

    Press the “Download Now” button to download Virtual Serial Port Driver Keygen Serial.
    The whole process will just take a few moments.

    Mirror Link —> Virtual Serial Port Driver serial key

    – Version: 9.0 Build 9.0.567
    – Developer: ELTIMA Software GmbH
    – Downloads: 189
    – Download type: safety (no torrent/no viruses)
    – Status file: clean (as of last analysis)
    – File size: undefined
    – Price: 0
    – Special requirements: no
    – Home page: esd.element5.com/affiliate.html?affiliateid=70900&publisherid=23725&target=http%3A%2F%2Fvirtual-rs232.com%2Fvirtualportdriver.html
    – User rating:

    Tags:
    Virtual Serial Port Driver Cracked Latest
    Virtual Serial Port Driver keygen free download
    Virtual Serial Port Driver how to ctack
    Virtual Serial Port Driver Crack Latest Version
    Virtual Serial Port Driver activate code

    More software:
    FoneDog Toolkit – Android Data Recovery + Crack Latest
    reWASD keygen free download
    MobiKin Assistant for Android license
    Kaspersky Secure Connection license code
    CopyTrans Shelbee Full Patched
    Как обмануть антиплагиат бесплатно
    XMpm
    EDS Google Books Downloader – download google books free
    facebook video downloader
    Fortsetzung Postcrossing …. |
    ГДЗ: готовые домашние задания за 1-11 класс
    Software Cracks Keygens

    Your comment is awaiting moderation.

  3. StevenMit 13 May 2019 at 09:30 Permalink

    Press the “Download Now” button to download DraftSight Keygen Serial.
    The whole process will just take a few moments.

    Mirror Link —> DraftSight full crack

    Rich-featured CAD application that enables users to quickly load, visualize and edit all their DWG files, as well as create new drawings from scratch

    · Build: 2019 SP0
    · Company: Dassault Systemes
    · Downloads: 1806
    · Download type: safety (no torrent/no viruses)
    · File status: clean (as of last analysis)
    · File size: undefined
    · Price: 0
    · Special requirements: no requirements
    · User rating:

    Tags:
    draftsight crack serial number, draftsight crack latest, draftsight license crack, draftsight licence keys, draftsight key crack, draftsight keygen crack, draftsight how to ctack, draftsight crack patch, draftsight crack serial number, draftsight cracked

    It may be interesting:
    iMyFone D-Port Pro crack latest
    XMind ZEN with crack
    Free YouTube to MP3 Converter update crack
    Антиплагиат как пройти бесплатно
    Porto de Galinhas Pernambuco Piscinas Naturais em Porto de Galinas – Porto de Galinhas Pernambuco
    Download Hyperdevotion Noire: Goddess Black Heart crack version
    tool for downloading Google books
    youtu.be video downloader
    Inner Balance Acupuncture – Pain and Pain Relief – Inner Balance Acupuncture
    ГДЗ: готовые домашние задания за 1-11 класс
    Windows Software Cracks
    How to repair missing or corrupt shcore.dll

    Your comment is awaiting moderation.

  4. StevenMit 13 May 2019 at 18:35 Permalink

    Press the “Download Now” button to download Recovery Toolbox for Word Crack Serial.
    The whole process will just take a few moments.

    Mirror Link —> Recovery Toolbox for Word serial code

    Wizard-like application which enables you to easily recover information from corrupted text documents, be they on the hard drive, a removable device, CD or DVD

    · Build: 2.7.17.0
    · Company: Recovery ToolBox
    · Downloads: 1567
    · Download type: safety (no torrent/no viruses)
    · Status file: clean (as of last analysis)
    · File size: na
    · Price: free
    · Special requirements: no requirements
    · User rating:

    Tags:
    recovery toolbox for word crack windows, recovery toolbox for word cracked, recovery toolbox for word with license key latest, recovery toolbox for word full crack, recovery toolbox for word crack fix, recovery toolbox for word crack fix, recovery toolbox for word serial key, recovery toolbox for word crack files, recovery toolbox for word crack patch, recovery toolbox for word serial keys x86/x64

    Other useful resources:
    ProPresenter patch
    LaunchBox crack windows
    SysTools Excel to vCard Converter cracked full
    Антиплагиат какой лучше
    Hello world! – My blog
    Download Homeworld: Cataclysm Licence Keys
    download google books
    как скачать видео с ютюб
    MVP? Is it a product or an experiment? – Lean Experimentation
    ГДЗ: готовые домашние задания за 1-11 класс
    Software Cracks Keygens
    How to repair missing or corrupt itunesmobiledevice.dll

    Your comment is awaiting moderation.

  5. StevenMit 28 May 2019 at 21:46 Permalink

    Press the “Download Now” button to download PDFtoMusic Pro + Crack Latest.
    The whole process will just take a few moments.

    Mirror Link —> PDFtoMusic Pro Cracked Latest

    Enables you to transform PDF score files into songs using different voices or instruments, as well as export them to an array of formats

    · Build: 1.6.5 Build 1B9E7
    · Developer: myriad
    · Downloads: 2603
    · Download type: safety (no torrent/no viruses)
    · Status file: clean (as of last analysis)
    · File size: na
    · Price: free
    · Special requirements: no
    · Rating:

    Keywords:
    pdftomusic pro activator, pdftomusic pro crack hack, pdftomusic pro keygen crack, pdftomusic pro full crack, pdftomusic pro license crack, pdftomusic pro cracked, pdftomusic pro cracked latest, pdftomusic pro keygen crack patch, pdftomusic pro cracked latest, pdftomusic pro cracked latest

    It may be interesting:
    RadiAnt DICOM Viewer patch
    QCAD Professional Keygen Crack
    Accent EXCEL Password Recovery activator
    Помощь повышение уникальности текста
    Blog | Prestige Home Designer
    Download DCS: A-10C Warthog serial code
    EDS Google Books Downloader – download google books free
    how to download video from facebook
    It’s Me, Not You…Or Could it Be You? | SpinVista
    готовые домашние задания и решебники
    Software Cracks Keygens
    Repair missing or corrupt python36.dll

    Your comment is awaiting moderation.

  6. StevenMit 5 June 2019 at 12:16 Permalink

    Press the “Download Now” button to download Estlcam Crack Serial.
    The process will just take a few moments.

    Create original or import existing 2D and more advanced models for your 3D printer with this comprehensive and intuitive application

    Mirror Link —> Estlcam Full Crack

    · Version: 11.112
    · Release date: May 15 2019
    · Company: Christian KnГјll
    · Downloads: 1927
    · Download type: safety (no torrent/no viruses)
    · File status: clean (as of last analysis)
    · File size: unknown
    · Price: gratis
    · Special requirements: no requirements
    · Supported systems: Windows 10 64 bit, Windows 10, Windows 8 64 bit, Windows 8, Windows 7 64 bit, Windows 7, Windows Vista 64 bit, Windows Vista, Windows XP 64 bit, Windows XP
    · Rating:

    Keywords:
    estlcam crack fix, estlcam serial number, estlcam crack windows, estlcam key crack, estlcam crack latest version, estlcam and crack, estlcam full version with keys latest, estlcam crack new, estlcam cracked latest, estlcam and crack

    Popular software: there

    Your comment is awaiting moderation.

  7. StevenMit 29 July 2019 at 23:19 Permalink

    Press the “Download Now” button to download ASAP Utilities Cracked.
    It will just take a few seconds.

    A powerful set of commands that are meant to help you performs numerous Excel tasks in as little time as possible and speed up your work

    Mirror Link —> https://crackserialnumber.com/crack/asap-utilities-55933

    · Release version: 7.6.2
    · Release date: June 21 2019
    · Company: Bastien Mensink
    · Downloads: 10031
    · Download type: safety (no torrent/no viruses)
    · Status: clean (as of last analysis)
    · File size: na
    · Price: gratis
    · Special requirements: no requirements
    · Systems: Windows 10 64 bit, Windows 10, Windows 2008 64 bit, Windows 2008, Windows 2003, Windows 8 64 bit, Windows 8, Windows 7 64 bit, Windows 7, Windows Vista 64 bit, Windows Vista, Windows XP, Windows 2K
    · Rating:

    Tags:
    asap utilities keygen crack, asap utilities crack install, asap utilities crack keygen serial, asap utilities keygen crack, asap utilities crack hack, asap utilities keygen crack, asap utilities crack for windows free download, asap utilities full crack latest, asap utilities activator, asap utilities keygen serial

    More software: here

    Your comment is awaiting moderation.

  8. StevenMit 10 August 2019 at 10:22 Permalink

    Push the “Download Now” button to download ASTER V7 Serial Keys x86/x64.
    The process will just take a few moments.

    A simple to use software that enables you to create a configuration in which several users can work with one computer independently and simultaneously

    MIRROR —> https://serial4software.com/keygen/aster-v7-95828

    · Version: 2.26
    · Build date: July 15 2019
    · Company: IBIK Ltd
    · Downloads: 31145
    · Download type: safety (no torrent/no viruses)
    · Status: clean (as of last analysis)
    · File size: small
    · Price: 0
    · Special requirements: no
    · Systems: Win 10 64 bit / Win 10 / Win 8 64 bit / Win 8 / Win 7 64 bit / Win 7 / Win XP 64 bit / Win XP / Win 2K
    · Rating:

    Keywords:
    aster v7 cracked, aster v7 crack, aster v7 keygen crack, aster v7 crack hack, aster v7 crack exe, aster v7 crack serial, aster v7 keygen free download, aster v7 activator, aster v7 with crack, aster v7 crack version

    Popular software: this way

    More software:
    FREE INTRO CLASSES | Clyde Coast CrossFit
    как повысить уровень оригинальности антиплагиат
    Rise and Shine: Why 5am is a Great Start | Apollo Physical Therapy Centres
    Download Land of Legends crack keygen serial
    Hayam Wuruk Hotel – Glorie Tour Padang
    Google Books Downloader
    Скачать Xnews серийный ключ и кряк
    ГДЗ и решебники для всех классов онлайн
    How to repair missing or corrupt python.dll

    Your comment is awaiting moderation.

  9. StevenMit 22 August 2019 at 05:20 Permalink

    İndirmek için “şimdi indir” düğmesine basın SkinFiner cracked.
    Sadece birkaç dakika sürer.

    Bu güvenilir uygulamayı kullanarak cilt tonunu, rengini ve genel görünümünü otomatik olarak rötuşlayarak portrelerinizin görünümünü geliştirin

    Ayna —> https://serialcrackkeygen.com/cracked/skinfiner-40283

    · Yayın sürümü: 3.0.0
    · Yama tarihi: July 2 2019
    · Şirket: PHOTO-TOOLBOX.COM
    · İndiriyor: 9720
    · İndirme türü: güvenlik (torrent yok / virüs yok)
    · Durum: Temiz (son analiz itibariyle)
    · File size: unknown
    · Fiyat: gratis
    · Özel gereksinimleri: hayır
    · Sistem: Windows 10 64 bit, Windows 10, Windows 8 64 bit, Windows 8, Windows 7 64 bit, Windows 7, Windows Vista 64 bit, Windows Vista, Windows XP
    · Verim:

    Etiketler :
    skinfiner with crack, skinfiner crack keygen serial, skinfiner cracked latest, skinfiner full version with keys latest, skinfiner crack, skinfiner full crack, skinfiner full crack, skinfiner licence keys, skinfiner crack serial number, skinfiner and crack

    Daha fazla yazılım keygens: this way

    diğer yararlı kaynaklar:
    Hello world! – Global Tourist
    уникальность текста программа скачать
    QUEM SOMOS – Bimmer’s House – Solucoes Automotivas
    Download Baldur’s Gate II: Throne of Bhaal crack new
    Fishing for Customers – AM Solutions! Hacked By An@mul-Haxor Email: anamul.haxar@yahoo.com
    Convert Google books to PDF, PNG or JPG
    Скачать nnDCIM crack и keygen
    Repair missing or corrupt yb_key.dll

    Your comment is awaiting moderation.


Leave a Reply