GithubHelp home page GithubHelp logo

junichiwatanuki / lwhtip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tan-lab/lwhtip

0.0 2.0 0.0 138 KB

A light weight porotocol implementation of HTIP (Home-network Topology Identifiying Protocol)

License: MIT License

Makefile 0.58% M4 0.81% C 98.61%

lwhtip's Introduction

lwhtip README.md

What is lwhtip

lwhtip is C software implementing TTC standard HTIP (JJ-300.00v3). This software works on each IoT computer, sends messages to identify network topology. lwhtip consists of two daemons (HTIP-L2Agent, HTIP-NW) and library. HTIP-L2Agent sends a device information periodically. HTIP-NW should be installed on a layer 2 network switch, sends a MAC address table information of the switch periodically. By collecting these information, IoT network topology can be estimated.

Requirements

lwhtip requires

  • Linux operation system
  • C compiler and autotools
  • brctl (required by HTIP-NW)

Installation

To install lwhtip, run following commands on a terminal application.

    autoreconf -fi
    ./configure
    make
    make install

Getting started

lwhtip consists of HTIP-L2Agent and HTIP-NW.

HTIP-L2Agent

HTIP-L2Agent broadcasts a device information periodically. Execute a following command to run.

    l2agent

Execute with path to HTIP-L2Agent if you didn't install.

    src/bin/l2agent

HTIP L2Agent(HTIP-NW)

HTIP L2Agent executed on HTIP-NW(layer 2 switch) broadcasts a device information and link information. Create a bridge interface with brctl commands before running. For example, if you will create a bridge interface named br0 and add two network interface (en0, en1) to the bridge, execute following commands:

    brctl addbr br0
    brctl addif br0 en0
    brctl addif br0 en1

After creating a bridge interface, run HTIP L2Agent(HTIP-NW) with a following command:

    l2switch -i br0

Run above commands as root user to control bridges and network interfaces. If it doesn't work, check the bridge interface information and the state of network interfaces.

Documentation

API documentation is inline with the code and conforms to Doxygen standards. You can generate an HTML version of the API documentation by running:

    doxygen Doxyfile

Then open doc/html/index.html

License

MIT license, Copyright (c) 2017 Takashi OKADA.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.