examples/mixed-global-routing.cc
author Florian Westphal <fw@strlen.de>
Wed, 03 Sep 2008 23:24:59 +0200
changeset 3595 693faf7f4e9b
parent 3381 3cdd9d60f7c7
child 4264 9d2e96c4e6e4
permissions -rw-r--r--
nsc: Fix build problem if gtk config store is disabled gtk config store pulled in libdl.so for us, so things fail to link of the config store isn't enabled. This makes nsc pull in libdl itself when its enabled.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     2
/*
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     3
 * This program is free software; you can redistribute it and/or modify
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     4
 * it under the terms of the GNU General Public License version 2 as
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     5
 * published by the Free Software Foundation;
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     6
 *
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     7
 * This program is distributed in the hope that it will be useful,
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    10
 * GNU General Public License for more details.
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    11
 *
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    12
 * You should have received a copy of the GNU General Public License
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    13
 * along with this program; if not, write to the Free Software
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    14
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    15
 *
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    16
 */
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    17
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    18
// This script exercises global routing code in a mixed point-to-point
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    19
// and csma/cd environment
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    20
//
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    21
// Network topology
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    22
//
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    23
//  n0
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    24
//     \ p-p
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    25
//      \          (shared csma/cd)
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    26
//       n2 -------------------------n3
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    27
//      /            |        | 
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    28
//     / p-p        n4        n5 ---------- n6
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    29
//   n1                             p-p
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    30
//
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    31
// - CBR/UDP flows from n0 to n6
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    32
// - Tracing of queues and packet receptions to file "mixed-global-routing.tr"
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    33
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    34
#include <iostream>
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    35
#include <fstream>
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    36
#include <string>
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    37
#include <cassert>
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    38
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    39
#include "ns3/core-module.h"
2890
172baa5960ff rework app constructors
Craig Dowell <craigdo@ee.washington.edu>
parents: 2888
diff changeset
    40
#include "ns3/simulator-module.h"
172baa5960ff rework app constructors
Craig Dowell <craigdo@ee.washington.edu>
parents: 2888
diff changeset
    41
#include "ns3/node-module.h"
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    42
#include "ns3/helper-module.h"
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    43
#include "ns3/global-route-manager.h"
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    44
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    45
using namespace ns3;
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    46
1504
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
    47
NS_LOG_COMPONENT_DEFINE ("MixedGlobalRoutingExample");
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
    48
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
    49
int 
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
    50
main (int argc, char *argv[])
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    51
{
2965
4b28e9740e3b get rid of Attribute class. Use AttributeValue subclasses directly.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2890
diff changeset
    52
  Config::SetDefault ("ns3::OnOffApplication::PacketSize", UintegerValue (210));
4b28e9740e3b get rid of Attribute class. Use AttributeValue subclasses directly.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2890
diff changeset
    53
  Config::SetDefault ("ns3::OnOffApplication::DataRate", StringValue ("448kb/s"));
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    54
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    55
  // Allow the user to override any of the defaults and the above
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    56
  // Bind ()s at run-time, via command-line arguments
2575
1aae382e65e2 rewrite CommandLine to not handle DefaultValues anymore.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2533
diff changeset
    57
  CommandLine cmd;
1aae382e65e2 rewrite CommandLine to not handle DefaultValues anymore.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2533
diff changeset
    58
  cmd.Parse (argc, argv);
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    59
1504
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
    60
  NS_LOG_INFO ("Create nodes.");
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    61
  NodeContainer c;
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    62
  c.Create (7);
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    63
  NodeContainer n0n2 = NodeContainer (c.Get (0), c.Get (2));
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    64
  NodeContainer n1n2 = NodeContainer (c.Get (1), c.Get (2));
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    65
  NodeContainer n5n6 = NodeContainer (c.Get (5), c.Get (6));
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    66
  NodeContainer n2345 = NodeContainer (c.Get (2), c.Get (3), c.Get (4), c.Get (5));
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    67
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    68
  InternetStackHelper internet;
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2838
diff changeset
    69
  internet.Install (c);
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    70
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    71
  // We create the channels first without any IP addressing information
1504
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
    72
  NS_LOG_INFO ("Create channels.");
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    73
  PointToPointHelper p2p;
3381
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 3257
diff changeset
    74
  p2p.SetDeviceAttribute ("DataRate", StringValue ("5Mbps"));
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 3257
diff changeset
    75
  p2p.SetChannelAttribute ("Delay", StringValue ("2ms"));
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2838
diff changeset
    76
  NetDeviceContainer d0d2 = p2p.Install (n0n2);
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    77
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2838
diff changeset
    78
  NetDeviceContainer d1d2 = p2p.Install (n1n2);
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    79
3381
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 3257
diff changeset
    80
  p2p.SetDeviceAttribute ("DataRate", StringValue ("1500kbps"));
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 3257
diff changeset
    81
  p2p.SetChannelAttribute ("Delay", StringValue ("10ms"));
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2838
diff changeset
    82
  NetDeviceContainer d5d6 = p2p.Install (n5n6);
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    83
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    84
  // We create the channels first without any IP addressing information
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    85
  CsmaHelper csma;
3381
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 3257
diff changeset
    86
  csma.SetChannelAttribute ("DataRate", StringValue ("5Mbps"));
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 3257
diff changeset
    87
  csma.SetChannelAttribute ("Delay", StringValue ("2ms"));
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2838
diff changeset
    88
  NetDeviceContainer d2345 = csma.Install (n2345);
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    89
  
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    90
  // Later, we add IP addresses.  
1504
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
    91
  NS_LOG_INFO ("Assign IP Addresses.");
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    92
  Ipv4AddressHelper ipv4;
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    93
  ipv4.SetBase ("10.1.1.0", "255.255.255.0");
2888
872dc8466352 Ipv4AddressHelper::Allocate -> Ipv4AddressHelper::Assign
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2887
diff changeset
    94
  ipv4.Assign (d0d2);
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    95
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    96
  ipv4.SetBase ("10.1.2.0", "255.255.255.0");
2888
872dc8466352 Ipv4AddressHelper::Allocate -> Ipv4AddressHelper::Assign
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2887
diff changeset
    97
  ipv4.Assign (d1d2);
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    98
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
    99
  ipv4.SetBase ("10.1.3.0", "255.255.255.0");
2888
872dc8466352 Ipv4AddressHelper::Allocate -> Ipv4AddressHelper::Assign
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2887
diff changeset
   100
  Ipv4InterfaceContainer i5i6 = ipv4.Assign (d5d6);
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
   101
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
   102
  ipv4.SetBase ("10.250.1.0", "255.255.255.0");
2888
872dc8466352 Ipv4AddressHelper::Allocate -> Ipv4AddressHelper::Assign
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2887
diff changeset
   103
  ipv4.Assign (d2345);
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   104
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   105
  // Create router nodes, initialize routing database and set up the routing
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   106
  // tables in the nodes.
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   107
  GlobalRouteManager::PopulateRoutingTables ();
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   108
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   109
  // Create the OnOff application to send UDP datagrams of size
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   110
  // 210 bytes at a rate of 448 Kb/s
1504
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
   111
  NS_LOG_INFO ("Create Applications.");
1514
addb79f47ba5 change port number used by example scripts to 'discard' or 'echo' instead of '80'
Tom Henderson <tomh@tomh.org>
parents: 1504
diff changeset
   112
  uint16_t port = 9;   // Discard port (RFC 863)
3125
d2d8a36cfd23 s/ns3::Udp/ns3::UdpSocketFactory
Tom Henderson <tomh@tomh.org>
parents: 2997
diff changeset
   113
  OnOffHelper onoff ("ns3::UdpSocketFactory",
2965
4b28e9740e3b get rid of Attribute class. Use AttributeValue subclasses directly.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2890
diff changeset
   114
                     InetSocketAddress (i5i6.GetAddress (1), port));
4b28e9740e3b get rid of Attribute class. Use AttributeValue subclasses directly.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2890
diff changeset
   115
  onoff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1)));
4b28e9740e3b get rid of Attribute class. Use AttributeValue subclasses directly.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2890
diff changeset
   116
  onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
4b28e9740e3b get rid of Attribute class. Use AttributeValue subclasses directly.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2890
diff changeset
   117
  onoff.SetAttribute ("DataRate", StringValue ("300bps"));
4b28e9740e3b get rid of Attribute class. Use AttributeValue subclasses directly.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2890
diff changeset
   118
  onoff.SetAttribute ("PacketSize", UintegerValue (50));
2890
172baa5960ff rework app constructors
Craig Dowell <craigdo@ee.washington.edu>
parents: 2888
diff changeset
   119
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2838
diff changeset
   120
  ApplicationContainer apps = onoff.Install (c.Get (0));
2757
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
   121
  apps.Start (Seconds (1.0));
651ceaf0df8f convert to helper API
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2613
diff changeset
   122
  apps.Stop (Seconds (10.0));
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   123
2789
47e92324cf4b configure tracing post-topology construction, not before.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2787
diff changeset
   124
  std::ofstream ascii;
47e92324cf4b configure tracing post-topology construction, not before.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2787
diff changeset
   125
  ascii.open ("mixed-global-routing.tr");
2996
a83b94e277d4 EnablePcap()->EnablePcapAll(); EnableAscii()->EnableAsciiAll()
Tom Henderson <tomh@tomh.org>
parents: 2890
diff changeset
   126
  PointToPointHelper::EnablePcapAll ("mixed-global-routing");
a83b94e277d4 EnablePcap()->EnablePcapAll(); EnableAscii()->EnableAsciiAll()
Tom Henderson <tomh@tomh.org>
parents: 2890
diff changeset
   127
  PointToPointHelper::EnableAsciiAll (ascii);
a83b94e277d4 EnablePcap()->EnablePcapAll(); EnableAscii()->EnableAsciiAll()
Tom Henderson <tomh@tomh.org>
parents: 2890
diff changeset
   128
  CsmaHelper::EnablePcapAll ("mixed-global-routing");
a83b94e277d4 EnablePcap()->EnablePcapAll(); EnableAscii()->EnableAsciiAll()
Tom Henderson <tomh@tomh.org>
parents: 2890
diff changeset
   129
  CsmaHelper::EnableAsciiAll (ascii);
2789
47e92324cf4b configure tracing post-topology construction, not before.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2787
diff changeset
   130
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   131
1504
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
   132
  NS_LOG_INFO ("Run Simulation.");
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   133
  Simulator::Run ();
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   134
  Simulator::Destroy ();
1504
36ecc970ba96 checkpoint debug to log
Craig Dowell <craigdo@ee.washington.edu>
parents: 1494
diff changeset
   135
  NS_LOG_INFO ("Done.");
1278
41bf67d701a5 global routing csma patch
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
   136
}