examples/mixed-global-routing.cc
changeset 3181 26e7f865c548
parent 3137 fbd18f80a77a
child 3257 ba198dad54a2
equal deleted inserted replaced
3180:b69d00a3d410 3181:26e7f865c548
    69   internet.Install (c);
    69   internet.Install (c);
    70 
    70 
    71   // We create the channels first without any IP addressing information
    71   // We create the channels first without any IP addressing information
    72   NS_LOG_INFO ("Create channels.");
    72   NS_LOG_INFO ("Create channels.");
    73   PointToPointHelper p2p;
    73   PointToPointHelper p2p;
    74   p2p.SetChannelParameter ("BitRate", StringValue ("5Mbps"));
    74   p2p.SetDeviceParameter ("DataRate", StringValue ("5Mbps"));
    75   p2p.SetChannelParameter ("Delay", StringValue ("2ms"));
    75   p2p.SetChannelParameter ("Delay", StringValue ("2ms"));
    76   NetDeviceContainer d0d2 = p2p.Install (n0n2);
    76   NetDeviceContainer d0d2 = p2p.Install (n0n2);
    77 
    77 
    78   NetDeviceContainer d1d2 = p2p.Install (n1n2);
    78   NetDeviceContainer d1d2 = p2p.Install (n1n2);
    79 
    79 
    80   p2p.SetChannelParameter ("BitRate", StringValue ("1500kbps"));
    80   p2p.SetDeviceParameter ("DataRate", StringValue ("1500kbps"));
    81   p2p.SetChannelParameter ("Delay", StringValue ("10ms"));
    81   p2p.SetChannelParameter ("Delay", StringValue ("10ms"));
    82   NetDeviceContainer d5d6 = p2p.Install (n5n6);
    82   NetDeviceContainer d5d6 = p2p.Install (n5n6);
    83 
    83 
    84   // We create the channels first without any IP addressing information
    84   // We create the channels first without any IP addressing information
    85   CsmaHelper csma;
    85   CsmaHelper csma;