Skip to main content

Posts

Showing posts from April, 2013

Installing ns-3.37 and ns-3.35 in Ubuntu | Ubuntu 22.04 | NS3

Multiple Versions of ns3 in Ubuntu 22.04 In this post, we are going to install two versions of ns3 namely ns-3.35 and ns-3.37  My OS is : Ubuntu 22.04 LTS (Long Term Support) ns-3.35 uses waf and (./waf --run scratch/first)  ns-3.37 uses cmake  (./ns3 run scratch/first.cc) So we will install both the packages  Go through the video for complete instructions To start with  $ sudo apt update  $ sudo apt install build-essential autoconf automake libxmu-dev g++ python3 python3-dev pkg-config sqlite3 cmake python3-setuptools git qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr unrar gsl-bin libgsl-dev libgslcblas0 wireshark tcpdump sqlite sqlite3 libsqlite3-dev  libxml2 libxml2-dev libc6-dev libc6-dev-i386 libclang-dev llvm-dev automake python3-pip libxml2 libxml2-dev libboost-all-dev  I have downloaded both the versions of ns3 fr

Print the Congestion Window Graph in NS2

Congestion window size is a major factor in predicting the performance of a TCP Network. NS2 handles the Congestion window like a variable cwnd_ and it can be printed to a graph and as well printed as values at various intervals of time. The following tcl script will let you understand the working of the network (TCP Reno Protocol) and also helps you in plotting the characteristics of Congestion window value. Xgraph is used to plot the congestion window. To install xgraph, one can use the ns-allinone-2.3x package or directly install using yum install xgraph (fedora) and sudo apt-get install xgraph (Ubuntu, Linux Mint and Debian families) Each and every line of the code is explained with comments. Still any doubts, please post your queries in the comment section. When you copy and paste the following lines in your editor, see whether the characters are ASCII or else download here . #create simulator set ns [new Simulator]         #to create nodes set n0 [$ns node] set n1 [$

NS2 Scenario Generator - Lecture 7

If you are tired of writing code using .tcl files, here is a solution for that. This software is a little bit old, as it released sometime during 2007, still some of the students/Researchers are not aware of this software. So, you need not waste your time in editing the tcl files. And since this software is written in java, it works well with almost any Operating System (With JRE installed on the System). Refer this video for more information You can download the software from this link  https://sites.google.com/site/pengjungwu/nsg Some features of this software wired and wireless nodes will be created establish connection between the nodes Creating links (Duplex-Link and Simplex-Link) TCP and UDP agents are supported Creating applications (CBR and FTP) Node movement And still there are lot more as the developer of this software is actively maintaining the software and you can expect lot more in the future also. You can download the software from this link di

Top 10 Networking Commands in Linux

There are many network commands linux supports but there are only a few commands that explore the major things in a network. There are 10 such networking commands in Linux to explore the routing, packets, etc. if you want to know about the commands use " man commandname " (without Quotes) Command 1: # ifconfig you may use the options to configure ifconfig -v (for showing the verbose mode) command to configure the given network interface (wlan0, eth0, etc) Command 2 : # ping 172.16.1.10 To send ICMP, Echo request to hosts Here is the output PING 172.16.1.10 (172.16.1.10) 56(84) bytes of data. 64 bytes from 172.16.1.10: icmp_req=1 ttl=128 time=0.735 ms 64 bytes from 172.16.1.10: icmp_req=2 ttl=128 time=0.871 ms --- 172.16.1.10 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.735/0.803/0.871/0.068 ms Command 3:  traceroute domainname or IP Address print the route packets trace to network host

How to Access Wordpress from two URLs (IP)

If you have developed a wordpress Site to be configured for internet and Intranet. The following script will let you access the wordpress site from two different IP address or URLs. The home folder of wordpress contains a wp-config.php file. Include the following lines into the wp-config.php file $LAN_PREFIX = '172.16.'; if(substr($_SERVER['REMOTE_ADDR'], 0, strlen($LAN_PREFIX)) == $LAN_PREFIX) {     define('WP_HOME',' http://172.16.1.10/glug');     define('WP_SITEURL',' http://172.16.1.10/glug');      // The local IP } else {     define('WP_HOME',' http://10.21.15.2/glug');     define('WP_SITEURL',' http://10.21.15.2/glug');      // The public IP } this will be suitable for those who needs to conserve the bandwidth inside your campus (Use Intranet) and can access outside the campus (Use Internet). NB: Once this setting is enabled and restart the server, inside the wordpress dashboard-> settings –>