mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Prepare ND cache for ground space networks
This commit is contained in:
parent
ed80214449
commit
227ae70a1d
5 changed files with 110 additions and 56 deletions
|
@ -1,4 +1,5 @@
|
|||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/network-module.h"
|
||||
#include "ns3/internet-module.h"
|
||||
|
@ -6,7 +7,7 @@
|
|||
#include "ns3/node-container.h"
|
||||
#include "ns3/core-module.h"
|
||||
|
||||
#include "../helper/leo-helper.h"
|
||||
#include "ns3/leo-module.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
@ -40,17 +41,7 @@ main (int argc, char *argv[])
|
|||
leo.SetChannelAttribute ("PropagationLoss", StringValue ("ns3::IslPropagationLossModel"));
|
||||
leo.SetDeviceAttribute ("MobilityModel", StringValue ("ns3::LeoMobilityModel"));
|
||||
|
||||
NetDeviceContainer devices;
|
||||
devices = leo.Install (satellites, gateways, terminals);
|
||||
|
||||
InternetStackHelper stack;
|
||||
stack.Install (satellites);
|
||||
stack.Install (gateways);
|
||||
stack.Install (terminals);
|
||||
|
||||
// make all devices addressable
|
||||
Ipv6AddressHelper address;
|
||||
Ipv6InterfaceContainer interfaces = address.Assign (devices);
|
||||
leo.Install (satellites, gateways, terminals);
|
||||
|
||||
// we want to ping terminals
|
||||
UdpEchoServerHelper echoServer (9);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue