NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn-global-routing-helper.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_GLOBAL_ROUTING_HELPER_H
21
#define NDN_GLOBAL_ROUTING_HELPER_H
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
25
#include "ns3/ptr.h"
26
27
namespace
ns3
{
28
29
class
Node;
30
class
NodeContainer;
31
class
Channel;
32
33
namespace
ndn
{
34
39
class
GlobalRoutingHelper
{
40
public
:
48
void
49
Install
(Ptr<Node> node);
50
58
void
59
Install
(
const
NodeContainer& nodes);
60
64
void
65
InstallAll
();
66
72
void
73
AddOrigin
(
const
std::string& prefix, Ptr<Node> node);
74
80
void
81
AddOrigins
(
const
std::string& prefix,
const
NodeContainer& nodes);
82
88
void
89
AddOrigin
(
const
std::string& prefix,
const
std::string& nodeName);
90
94
void
95
AddOriginsForAll
();
96
100
static
void
101
CalculateRoutes
();
102
113
static
void
114
CalculateLfidRoutes
();
115
124
static
void
125
CalculateAllPossibleRoutes
();
126
127
private
:
128
void
129
Install
(Ptr<Channel> channel);
130
};
131
132
}
// namespace ndn
133
}
// namespace ns3
134
135
#endif // NDN_GLOBAL_ROUTING_HELPER_H
ns3::ndn::GlobalRoutingHelper::InstallAll
void InstallAll()
Install GlobalRouter interface on all nodes.
Definition:
ndn-global-routing-helper.cpp:172
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-app-link-service.cpp:32
ns3::ndn::GlobalRoutingHelper
Helper for GlobalRouter interface.
Definition:
ndn-global-routing-helper.hpp:39
ns3::ndn::GlobalRoutingHelper::AddOrigins
void AddOrigins(const std::string &prefix, const NodeContainer &nodes)
Add ‘prefix’ as origin on all ‘nodes’.
Definition:
ndn-global-routing-helper.cpp:188
ns3::ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes
static void CalculateAllPossibleRoutes()
Calculate all possible next-hop independent alternative routes.
Definition:
ndn-global-routing-helper.cpp:283
ns3::ndn::GlobalRoutingHelper::CalculateLfidRoutes
static void CalculateLfidRoutes()
Calculates a set of loop-free multipath routes.
Definition:
ndn-global-routing-helper-lfid.cpp:41
ns3::ndn::GlobalRoutingHelper::CalculateRoutes
static void CalculateRoutes()
Calculate for every node shortest path trees and install routes to all prefix origins.
Definition:
ndn-global-routing-helper.cpp:218
ns3::ndn::GlobalRoutingHelper::AddOrigin
void AddOrigin(const std::string &prefix, Ptr< Node > node)
Add ‘prefix’ as origin on ‘node’.
Definition:
ndn-global-routing-helper.cpp:178
ns3::ndn::GlobalRoutingHelper::AddOriginsForAll
void AddOriginsForAll()
Add origin to each node based on the node's name (using Names class)
Definition:
ndn-global-routing-helper.cpp:205
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::GlobalRoutingHelper::Install
void Install(Ptr< Node > node)
Install GlobalRouter interface on a node.
Definition:
ndn-global-routing-helper.cpp:67
ndnSIM
helper
ndn-global-routing-helper.hpp
Generated on Mon Jun 1 2020 22:32:14 for ndnSIM by
1.8.18