equal
deleted
inserted
replaced
40 |
40 |
41 using namespace ns3; |
41 using namespace ns3; |
42 |
42 |
43 NS_LOG_COMPONENT_DEFINE ("NixSimpleExample"); |
43 NS_LOG_COMPONENT_DEFINE ("NixSimpleExample"); |
44 |
44 |
45 int |
45 int |
46 main (int argc, char *argv[]) |
46 main (int argc, char *argv[]) |
47 { |
47 { |
48 LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO); |
48 LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO); |
49 LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO); |
49 LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO); |
50 |
50 |
62 PointToPointHelper pointToPoint; |
62 PointToPointHelper pointToPoint; |
63 pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); |
63 pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); |
64 pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); |
64 pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms")); |
65 |
65 |
66 NodeContainer allNodes = NodeContainer (nodes12, nodes23.Get (1), nodes34.Get (1)); |
66 NodeContainer allNodes = NodeContainer (nodes12, nodes23.Get (1), nodes34.Get (1)); |
67 |
67 |
68 // NixHelper to install nix-vector routing |
68 // NixHelper to install nix-vector routing |
69 // on all nodes |
69 // on all nodes |
70 Ipv4NixVectorHelper nixRouting; |
70 Ipv4NixVectorHelper nixRouting; |
71 Ipv4StaticRoutingHelper staticRouting; |
71 Ipv4StaticRoutingHelper staticRouting; |
72 |
72 |