NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Enumerations
a
b
c
d
f
i
k
l
n
p
q
r
s
t
u
v
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Enumerations
_
a
c
e
r
s
t
v
+
Enumerator
a
c
d
e
f
h
i
l
m
n
p
r
s
u
v
w
+
Related Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
+
Functions
b
c
d
e
f
g
h
m
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
i
k
l
m
n
p
r
s
t
+
Typedefs
b
c
d
e
i
m
p
s
u
w
Enumerations
Enumerator
+
Macros
_
a
b
d
e
i
l
m
n
o
p
r
s
t
u
v
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
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
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::CalculateLfidRoutes
static void CalculateLfidRoutes()
Calculates a set of loop-free multipath routes.
Definition:
ndn-global-routing-helper-lfid.cpp:41
ns3::ndn::GlobalRoutingHelper
Helper for GlobalRouter interface.
Definition:
ndn-global-routing-helper.hpp:39
ns3::ndn::GlobalRoutingHelper::InstallAll
void InstallAll()
Install GlobalRouter interface on all nodes.
Definition:
ndn-global-routing-helper.cpp:172
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::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
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-app-link-service.cpp:32
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::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 Fri May 6 2022 12:34:10 for ndnSIM by
1.8.13