NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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 
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
96 
100  static void
101  CalculateRoutes();
102 
111  static void
113 
114 private:
115  void
116  Install(Ptr<Channel> channel);
117 };
118 
119 } // namespace ndn
120 } // namespace ns3
121 
122 #endif // NDN_GLOBAL_ROUTING_HELPER_H
Copyright (c) 2011-2015 Regents of the University of California.
void AddOriginsForAll()
Add origin to each node based on the node&#39;s name (using Names class)
void AddOrigins(const std::string &prefix, const NodeContainer &nodes)
Add `prefix&#39; as origin on all `nodes&#39;.
Helper for GlobalRouter interface.
void InstallAll()
Install GlobalRouter interface on all nodes.
static void CalculateAllPossibleRoutes()
Calculate all possible next-hop independent alternative routes.
static void CalculateRoutes()
Calculate for every node shortest path trees and install routes to all prefix origins.
Copyright (c) 2011-2015 Regents of the University of California.
void AddOrigin(const std::string &prefix, Ptr< Node > node)
Add `prefix&#39; as origin on `node&#39;.
void Install(Ptr< Node > node)
Install GlobalRouter interface on a node.