Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 2 | /* |
Davide Pesavento | 284bd62 | 2019-03-31 02:10:02 -0400 | [diff] [blame] | 3 | * Copyright (c) 2014-2019, Regents of the University of California, |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 4 | * Arizona Board of Regents, |
| 5 | * Colorado State University, |
| 6 | * University Pierre & Marie Curie, Sorbonne University, |
| 7 | * Washington University in St. Louis, |
| 8 | * Beijing Institute of Technology, |
| 9 | * The University of Memphis. |
| 10 | * |
| 11 | * This file is part of NFD (Named Data Networking Forwarding Daemon). |
| 12 | * See AUTHORS.md for complete list of NFD authors and contributors. |
| 13 | * |
| 14 | * NFD is free software: you can redistribute it and/or modify it under the terms |
| 15 | * of the GNU General Public License as published by the Free Software Foundation, |
| 16 | * either version 3 of the License, or (at your option) any later version. |
| 17 | * |
| 18 | * NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 19 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 20 | * PURPOSE. See the GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License along with |
| 23 | * NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 24 | */ |
| 25 | |
| 26 | /** \file |
| 27 | * \brief allows testing forwarding in a network topology |
| 28 | */ |
| 29 | |
Davide Pesavento | 97210d5 | 2016-10-14 15:45:48 +0200 | [diff] [blame] | 30 | #ifndef NFD_TESTS_DAEMON_FW_TOPOLOGY_TESTER_HPP |
| 31 | #define NFD_TESTS_DAEMON_FW_TOPOLOGY_TESTER_HPP |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 32 | |
Junxiao Shi | 6535f1e | 2015-10-08 13:02:18 -0700 | [diff] [blame] | 33 | #include "face/internal-transport.hpp" |
Junxiao Shi | cde37ad | 2015-12-24 01:02:05 -0700 | [diff] [blame] | 34 | #include "face/face.hpp" |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 35 | #include "fw/strategy.hpp" |
Junxiao Shi | 0e4a1f1 | 2016-12-24 02:39:01 +0000 | [diff] [blame] | 36 | #include "choose-strategy.hpp" |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 37 | #include "tests/test-common.hpp" |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 38 | |
Davide Pesavento | 97210d5 | 2016-10-14 15:45:48 +0200 | [diff] [blame] | 39 | #include <ndn-cxx/face.hpp> |
| 40 | |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 41 | namespace nfd { |
Spyridon Mastorakis | d0381c0 | 2015-02-19 10:29:41 -0800 | [diff] [blame] | 42 | namespace fw { |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 43 | namespace tests { |
| 44 | |
Spyridon Mastorakis | d0381c0 | 2015-02-19 10:29:41 -0800 | [diff] [blame] | 45 | using namespace nfd::tests; |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 46 | |
| 47 | /** \brief identifies a node (forwarder) in the topology |
| 48 | */ |
| 49 | typedef size_t TopologyNode; |
| 50 | |
Junxiao Shi | 6535f1e | 2015-10-08 13:02:18 -0700 | [diff] [blame] | 51 | /** \brief represents a network link in the topology which connects two or more nodes |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 52 | */ |
Junxiao Shi | 6535f1e | 2015-10-08 13:02:18 -0700 | [diff] [blame] | 53 | class TopologyLink : noncopyable |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 54 | { |
| 55 | public: |
Junxiao Shi | 6535f1e | 2015-10-08 13:02:18 -0700 | [diff] [blame] | 56 | explicit |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 57 | TopologyLink(time::nanoseconds delay); |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 58 | |
| 59 | /** \brief fail the link, cause packets to be dropped silently |
| 60 | */ |
| 61 | void |
| 62 | fail() |
| 63 | { |
| 64 | m_isUp = false; |
| 65 | } |
| 66 | |
| 67 | /** \brief recover the link from a failure |
| 68 | */ |
| 69 | void |
| 70 | recover() |
| 71 | { |
| 72 | m_isUp = true; |
| 73 | } |
| 74 | |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 75 | /** \brief block transmission from i to j |
| 76 | * |
| 77 | * Packets transmitted by i would not be delivered to j. Packets from j to i are unaffected. |
| 78 | * This can be used to simulate a wireless channel. |
| 79 | */ |
| 80 | void |
| 81 | block(TopologyNode i, TopologyNode j); |
| 82 | |
| 83 | /** \brief unblock transmission from i to j |
| 84 | */ |
| 85 | void |
| 86 | unblock(TopologyNode i, TopologyNode j); |
| 87 | |
Hila Ben Abraham | 39a79be | 2016-03-30 22:00:55 -0700 | [diff] [blame] | 88 | /** \brief change the link delay |
| 89 | * \param delay link delay, must be positive |
| 90 | */ |
| 91 | void |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 92 | setDelay(time::nanoseconds delay); |
Hila Ben Abraham | 39a79be | 2016-03-30 22:00:55 -0700 | [diff] [blame] | 93 | |
Junxiao Shi | cde37ad | 2015-12-24 01:02:05 -0700 | [diff] [blame] | 94 | /** \brief attach a face to the link |
| 95 | * \param i forwarder index |
| 96 | * \param face a Face with InternalForwarderTransport |
| 97 | */ |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 98 | void |
Junxiao Shi | cde37ad | 2015-12-24 01:02:05 -0700 | [diff] [blame] | 99 | addFace(TopologyNode i, shared_ptr<Face> face); |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 100 | |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 101 | /** \return a face of forwarder \p i which is attached to this link |
| 102 | */ |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 103 | Face& |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 104 | getFace(TopologyNode i) |
| 105 | { |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 106 | return *m_transports.at(i).face; |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 107 | } |
| 108 | |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 109 | private: |
Junxiao Shi | 6535f1e | 2015-10-08 13:02:18 -0700 | [diff] [blame] | 110 | void |
Davide Pesavento | b3a23ca | 2019-05-04 20:40:21 -0400 | [diff] [blame^] | 111 | transmit(TopologyNode i, const Block& packet); |
Junxiao Shi | 6535f1e | 2015-10-08 13:02:18 -0700 | [diff] [blame] | 112 | |
| 113 | private: |
Davide Pesavento | 284bd62 | 2019-03-31 02:10:02 -0400 | [diff] [blame] | 114 | bool m_isUp = true; |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 115 | time::nanoseconds m_delay; |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 116 | |
Davide Pesavento | 284bd62 | 2019-03-31 02:10:02 -0400 | [diff] [blame] | 117 | class ReceiveProxy : public face::InternalTransportBase |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 118 | { |
Davide Pesavento | 284bd62 | 2019-03-31 02:10:02 -0400 | [diff] [blame] | 119 | public: |
Davide Pesavento | b3a23ca | 2019-05-04 20:40:21 -0400 | [diff] [blame^] | 120 | using Callback = std::function<void(const Block&)>; |
Davide Pesavento | 284bd62 | 2019-03-31 02:10:02 -0400 | [diff] [blame] | 121 | |
| 122 | explicit |
| 123 | ReceiveProxy(Callback cb) |
| 124 | : m_cb(std::move(cb)) |
| 125 | { |
| 126 | } |
| 127 | |
| 128 | void |
Davide Pesavento | b3a23ca | 2019-05-04 20:40:21 -0400 | [diff] [blame^] | 129 | receivePacket(const Block& packet) final |
Davide Pesavento | 284bd62 | 2019-03-31 02:10:02 -0400 | [diff] [blame] | 130 | { |
Davide Pesavento | b3a23ca | 2019-05-04 20:40:21 -0400 | [diff] [blame^] | 131 | m_cb(packet); |
Davide Pesavento | 284bd62 | 2019-03-31 02:10:02 -0400 | [diff] [blame] | 132 | } |
| 133 | |
| 134 | private: |
| 135 | Callback m_cb; |
| 136 | }; |
| 137 | |
| 138 | class NodeTransport |
| 139 | { |
| 140 | public: |
| 141 | NodeTransport(shared_ptr<Face> face, ReceiveProxy::Callback receiveCallback); |
| 142 | |
| 143 | public: |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 144 | shared_ptr<Face> face; |
Davide Pesavento | 284bd62 | 2019-03-31 02:10:02 -0400 | [diff] [blame] | 145 | face::InternalForwarderTransport* transport; |
| 146 | ReceiveProxy proxy; |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 147 | std::set<TopologyNode> blockedDestinations; |
| 148 | }; |
Davide Pesavento | 284bd62 | 2019-03-31 02:10:02 -0400 | [diff] [blame] | 149 | |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 150 | std::unordered_map<TopologyNode, NodeTransport> m_transports; |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 151 | }; |
| 152 | |
| 153 | /** \brief represents a link to a local application |
| 154 | */ |
Junxiao Shi | 6535f1e | 2015-10-08 13:02:18 -0700 | [diff] [blame] | 155 | class TopologyAppLink : noncopyable |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 156 | { |
| 157 | public: |
Junxiao Shi | cde37ad | 2015-12-24 01:02:05 -0700 | [diff] [blame] | 158 | /** \brief constructor |
| 159 | * \param forwarderFace a Face with InternalForwarderTransport |
| 160 | */ |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 161 | explicit |
Junxiao Shi | cde37ad | 2015-12-24 01:02:05 -0700 | [diff] [blame] | 162 | TopologyAppLink(shared_ptr<Face> forwarderFace); |
Junxiao Shi | 6535f1e | 2015-10-08 13:02:18 -0700 | [diff] [blame] | 163 | |
| 164 | /** \brief fail the link, cause packets to be dropped silently |
| 165 | */ |
| 166 | void |
| 167 | fail(); |
| 168 | |
| 169 | /** \brief recover the link from a failure |
| 170 | */ |
| 171 | void |
| 172 | recover(); |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 173 | |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 174 | /** \return face on forwarder side |
| 175 | */ |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 176 | Face& |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 177 | getForwarderFace() |
| 178 | { |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 179 | return *m_face; |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 180 | } |
| 181 | |
| 182 | /** \return face on application side |
| 183 | */ |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 184 | ndn::Face& |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 185 | getClientFace() |
| 186 | { |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 187 | return *m_client; |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | private: |
Junxiao Shi | 6535f1e | 2015-10-08 13:02:18 -0700 | [diff] [blame] | 191 | shared_ptr<Face> m_face; |
| 192 | face::InternalForwarderTransport* m_forwarderTransport; |
| 193 | shared_ptr<face::InternalClientTransport> m_clientTransport; |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 194 | shared_ptr<ndn::Face> m_client; |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 195 | }; |
| 196 | |
Junxiao Shi | fab9e0d | 2017-02-02 06:04:59 +0000 | [diff] [blame] | 197 | /** \brief captured packets on a face |
| 198 | */ |
| 199 | class TopologyPcap : noncopyable |
| 200 | { |
| 201 | public: |
| 202 | std::vector<Interest> sentInterests; |
| 203 | std::vector<Data> sentData; |
| 204 | std::vector<lp::Nack> sentNacks; |
| 205 | }; |
| 206 | |
| 207 | /** \brief captured packet timestamp tag |
| 208 | */ |
| 209 | using TopologyPcapTimestamp = ndn::SimpleTag<time::steady_clock::TimePoint, 0>; |
| 210 | |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 211 | /** \brief builds a topology for forwarding tests |
| 212 | */ |
| 213 | class TopologyTester : noncopyable |
| 214 | { |
| 215 | public: |
| 216 | /** \brief creates a forwarder |
| 217 | * \return index of new forwarder |
| 218 | */ |
| 219 | TopologyNode |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 220 | addForwarder(const std::string& label); |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 221 | |
| 222 | /** \return forwarder instance \p i |
| 223 | */ |
| 224 | Forwarder& |
| 225 | getForwarder(TopologyNode i) |
| 226 | { |
| 227 | return *m_forwarders.at(i); |
| 228 | } |
| 229 | |
| 230 | /** \brief sets strategy on forwarder \p i |
Junxiao Shi | a49a1ab | 2016-07-15 18:24:36 +0000 | [diff] [blame] | 231 | * \tparam S the strategy type |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 232 | * \note Test scenario can also access StrategyChoice table directly. |
| 233 | */ |
| 234 | template<typename S> |
| 235 | void |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 236 | setStrategy(TopologyNode i, Name prefix = Name("ndn:/"), |
| 237 | Name instanceName = S::getStrategyName()) |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 238 | { |
| 239 | Forwarder& forwarder = this->getForwarder(i); |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 240 | choose<S>(forwarder, prefix, instanceName); |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 241 | } |
| 242 | |
| 243 | /** \brief makes a link that interconnects two or more forwarders |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 244 | * \brief linkType desired link type; LINK_TYPE_NONE to use point-to-point for two forwarders |
| 245 | * and multi-access for more than two forwarders; it's an error to specify |
| 246 | * point-to-point when there are more than two forwarders |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 247 | * |
| 248 | * A face is created on each of \p forwarders . |
| 249 | * When a packet is sent onto one of the faces on this link, |
| 250 | * this packet will be received by all other faces on this link after \p delay . |
| 251 | */ |
| 252 | shared_ptr<TopologyLink> |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 253 | addLink(const std::string& label, time::nanoseconds delay, |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 254 | std::initializer_list<TopologyNode> forwarders, |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 255 | ndn::nfd::LinkType linkType = ndn::nfd::LINK_TYPE_NONE); |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 256 | |
| 257 | /** \brief makes a link to local application |
| 258 | */ |
| 259 | shared_ptr<TopologyAppLink> |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 260 | addAppFace(const std::string& label, TopologyNode i); |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 261 | |
| 262 | /** \brief makes a link to local application, and register a prefix |
| 263 | */ |
| 264 | shared_ptr<TopologyAppLink> |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 265 | addAppFace(const std::string& label, TopologyNode i, const Name& prefix, uint64_t cost = 0); |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 266 | |
Junxiao Shi | fab9e0d | 2017-02-02 06:04:59 +0000 | [diff] [blame] | 267 | /** \brief enables packet capture on every forwarder face |
| 268 | */ |
| 269 | void |
| 270 | enablePcap(bool isEnabled = true); |
| 271 | |
| 272 | /** \return captured packets on a forwarder face |
| 273 | * \pre enablePcap(true) is in effect when the face was created |
| 274 | */ |
| 275 | TopologyPcap& |
| 276 | getPcap(const Face& face); |
| 277 | |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 278 | /** \brief registers a prefix on a forwarder face |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 279 | */ |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 280 | void |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 281 | registerPrefix(TopologyNode i, const Face& face, const Name& prefix, uint64_t cost = 0); |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 282 | |
| 283 | /** \brief creates a producer application that answers every Interest with Data of same Name |
| 284 | */ |
| 285 | void |
Saurab Dulal | a6dec22 | 2019-04-01 00:15:10 -0500 | [diff] [blame] | 286 | addEchoProducer(ndn::Face& face, const Name& prefix = "/", time::nanoseconds replyDelay = 0_ns); |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 287 | |
| 288 | /** \brief creates a consumer application that sends \p n Interests under \p prefix |
| 289 | * at \p interval fixed rate. |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 290 | * \param seq if non-negative, append sequence number instead of timestamp |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 291 | */ |
| 292 | void |
Teng Liang | f995f38 | 2017-04-04 22:09:39 +0000 | [diff] [blame] | 293 | addIntervalConsumer(ndn::Face& face, const Name& prefix, time::nanoseconds interval, |
| 294 | size_t n, int seq = -1); |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 295 | |
| 296 | private: |
Junxiao Shi | fab9e0d | 2017-02-02 06:04:59 +0000 | [diff] [blame] | 297 | bool m_wantPcap = false; |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 298 | std::vector<unique_ptr<Forwarder>> m_forwarders; |
Junxiao Shi | 5e5e445 | 2015-09-24 16:56:52 -0700 | [diff] [blame] | 299 | std::vector<std::string> m_forwarderLabels; |
| 300 | std::vector<shared_ptr<TopologyLink>> m_links; |
| 301 | std::vector<shared_ptr<TopologyAppLink>> m_appLinks; |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 302 | }; |
| 303 | |
| 304 | } // namespace tests |
Spyridon Mastorakis | d0381c0 | 2015-02-19 10:29:41 -0800 | [diff] [blame] | 305 | } // namespace fw |
Junxiao Shi | 80ee7cb | 2014-12-14 10:53:05 -0700 | [diff] [blame] | 306 | } // namespace nfd |
| 307 | |
Davide Pesavento | 97210d5 | 2016-10-14 15:45:48 +0200 | [diff] [blame] | 308 | #endif // NFD_TESTS_DAEMON_FW_TOPOLOGY_TESTER_HPP |