Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Click Modular Router : Introduction

Click Modular Router : Introduction

Click Modular Router merupakan suatu router berbasis PC. Karena sifatnya yang flexible dan configurable, router ini biasanya digunakan untuk riset mengenai jaringan komputer ataupun riset mengenai fungsionalitas router sendiri. Tech talk kali ini membahas tentang bagaimana mengkonfigurasi dan menambah fitur pada Click Modular Router.

KMKLabs

March 15, 2017
Tweet

More Decks by KMKLabs

Other Decks in Programming

Transcript

  1. Click Modular Router PC based Router in C++ by Eddie

    Kohler Flexible and configurable Assembled by packet processing modules called elements Run the router using configuration file
  2. Elements Process incoming packet through the router Can change and

    route the packet Written in a C++ class (with cc and hh format file)
  3. How to Write Your Element const char *class_name() const; //

    return your element's name void push(int i, Packet *); // process push request on input i Packet *pull(int i); // process pull request on output i Packet *simple_action(Packet *); // for agnostic elements const char *port_count() const; // return port count code const char *processing() const; // return processing code int configure(Vector<String> &, ErrorHandler *); // process configuration string void add_handlers(); // set up element handlers int initialize(ErrorHandler *); // initialize element void cleanup(CleanupStage); // clean up element state
  4. How to add new feature in Click Modular Router Add

    the element by hh, cc file in CLICKDIR/elements/ ./configure make elemlist Compile it (gmake or make install)