Q1
Q1
Point protocol. Apply NetAnim so ware to demonstrate the scenario graphically. Analyze
packet parameters by crea ng trace file using Ascii trace metrics.
CODE:
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applica ons-module.h"
NS_LOG_COMPONENT_DEFINE ("FirstScriptExample");
int
main (int argc, char *argv[])
{
CommandLine cmd (__FILE__);
cmd.Parse (argc, argv);
Time::SetResolu on (Time::NS);
LogComponentEnable ("UdpEchoClientApplica on", LOG_LEVEL_INFO);
LogComponentEnable ("UdpEchoServerApplica on", LOG_LEVEL_INFO);
OUTPUT: