A Quick Look at Cloonix, the Net­work Sim­u­la­tor

Cloonix is a Linux router and host sim­u­la­tion platform. It fully en­cap­su­lates ap­pli­ca­tions, hosts and the net­work. Sim­u­la­tors like Cloonix of­fer stu­dents and re­searchers scope for re­search into var­i­ous In­ter­net tech­nolo­gies like the Do­main Name Sys­tem (DN

OpenSource For You - - Contents - [1] https://github.com/clownix/cloonix [2] http://cloonix.fr/ By: Kousik Maiti The au­thor is a se­nior tech­ni­cal of­fi­cer at ICT & Ser­vices, CDAC, Kolkata. He has over ten years of in­dus­try ex­pe­ri­ence, and his ar­eas of in­ter­est in­clude Linux sys­tem ad­min­ist

Cloonix is a net­work sim­u­la­tor based on KVM or UML. It is ba­si­cally a Linux router and host sim­u­la­tion platform. You can sim­u­late a net­work with mul­ti­ple re­con­fig­urable VMs in a sin­gle PC. The VMs may be dif­fer­ent Linux dis­tri­bu­tions. You can also mon­i­tor the net­work’s ac­tiv­i­ties through Wire­shark. Cloonix can be in­stalled on Arch, Cen­tOS, De­bian, Fe­dora, OpenSUSE and their de­riv­a­tive dis­tros.

The main fea­tures of Cloonix are:

GUI based NS tool

KVM based VM

VMs and clients are Linux based

Spice server is front-end for VMs

Net­work ac­tiv­ity mon­i­tor­ing by Wire­shark

The sys­tem re­quire­ments are:

32/64-bit Linux OS (tested on Ubuntu 16.04 64-bit) Wire­shark

Cloonix pack­age: http://cloonix.fr/source_­s­tored/ cloonix-37-01.tar.gz

VM im­ages: http://cloonix.fr/bulk_­s­tored/

To set it up, down­load the Cloonix pack­age and ex­tract it. I am as­sum­ing that Cloonix is ex­tracted in the $HOME di­rec­tory.

The di­rec­tory struc­ture of Cloonix is as fol­lows: cloonix

├── all­clean

├── build

├── cloonix

│ ├── client

│ ├── cloonix_­cli │ ├── cloonix_­con­fig │ ├── cloonix_gui │ ├── cloonix_net │ ├── cloonix_ocp │ ├── cloonix_osh │ ├── cloonix_scp │ ├── cloonix_ssh │ ├── cloonix_­zor │ ├── common

│ ├── id_rsa

│ ├── id_rsa.pub │ ├── LI­CENCE

│ └── server

├── doitall

├── in­stal­l_­cloonix ├── in­stal­l_de­pends ├── pack

└── README

5 di­rec­to­ries, 19 files

To in­stall Cloonix, run the fol­low­ing com­mands, which will in­stall all the pack­ages re­quired, ex­cept Wire­shark.

$cd $HOME/cloonix

$sudo ./in­stal­l_de­pends build

The fol­low­ing com­mand will in­stall and con­fig­ure Cloonix in your sys­tem:

$sudo ./doin­stall The com­mand given be­low will in­stall Wire­shark: $sudo apt-get in­stall wire­shark

You have to down­load VMs in $HOME/cloonix_­data/ bulk, as shown be­low:

bulk

│ ├── bat­man.qcow2 │ ├── bind9.qcow2 │ ├── cen­tos-7.qcow2 │ ├── coreos.qcow2 │ ├── ethereum.qcow2 │ ├── jessie.qcow2 │ ├── mpls.qcow2 │ ├── stretch.qcow2 │ └── zesty.qcow2 Shown be­low are the demo scripts avail­able:

├── bat­man

├── cisco

├── dns

├── dyn_dns

├── eap_802_1x ├── ethereum ├── fw­mark2m­pls ├── mpls

├── mpls­flow

├── netem

├── ntp

├── olsr

├── open­vswitch ├── ospf

├── ping

├── strongswan └── unix2inet

To run any demo for ping, for in­stance, just go to the ping di­rec­tory and run the fol­low­ing code:

$./ping.sh

This will create all the re­quired VM(s) and net­work com­po­nents. You can also mon­i­tor traf­fic by us­ing Wire­shark.

Cloonix is a good tool to run net­work sim­u­la­tion. All the VMs are ba­si­cally Linux VMs, which you can eas­ily re­con­fig­ure.

Ref­er­ences

Fig­ure 1: Ping sim­u­la­tion demo

Fig­ure 2: Dy­namic DNS demo

Newspapers in English

Newspapers from India

© PressReader. All rights reserved.