Lab 1
Lab 1
AIM: Implement Three nodes point – to – point network with duplex links between them for
different topologies. Set the queue size, vary the bandwidth, and find the number of packets
dropped for various iterations.
Program Objective:
Understand the Implementation of the Duplex link between the networks.
Theory:
1. Create a simulator object.
2. We open a file for writing that is going to be used for the trace data.
3. We now attach the agent to the nodes.
4. Now we attach the application to run on top of these nodes.
5. We now connect the agent and the application for its working.
6. Set the simulation time.
7. The next step is to add a 'finish' procedure that closes the trace file and starts nam.
AWK file:
(Open a new editor using “vi command” and write awk file and save with “.awk” extension)
BEGIN{ c=0;}
{
if($1= ="d")
{ c++;
printf("%s\t%s\n",$5,$11);
}
}
END{ printf("The number of packets dropped is %d\n",c); }
Figure 2:Topology
Figure 3:Output
Program Outcome:
Implement the Duplex link between the networks.