GithubHelp home page GithubHelp logo

mrmrmrmay / plc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ns3-plc-module/plc

0.0 1.0 0.0 1.98 MB

An ns-3 module for simulations of power line communication networks

Home Page: www.ece.ubc.ca/~lampe/PLC/

License: GNU General Public License v3.0

Python 52.05% C++ 47.95%

plc's Introduction

plc

An ns-3 module for simulations of power line communication networks

This software is freely usable provided that publications resulting from the use of this software cite the publications listed here.

Cite:

F. Aalamifar, A. Schloegl, D. Harris, L. Lampe,“Modelling Power Line Communication Using Network Simulator-3”, 
IEEE Global Communications Conference (GLOBECOM), Atlanta, GA, USA, December 2013. 
[Online] Available: “http://www.ece.ubc.ca/~faribaa/ns3_plc_software.htm”.

##Overview

The provided module enables simulations of power line communication networks with the network simulation environment ns-3. It is intended for protocol development and application testing under realistic link performance emulation between plc devices of a deterministic grid topology. The latter has to be specified by the user in terms of its geometrical layout, the used cable types, the positions and values of network impedances and the location of plc devices within the network. The module also supports the definition of two-port network elements to reflect transfer characteristics of special components, e.g. transformer units. Transfer functions of the channel realizations are computed efficiently according to the "bottom-up" approach by use of two-conductor transmission line theory. The simulation module especially takes into account time-dependent channel conditions that change due to mains-synchronous or sporadic impedance variations. Communication as well as interfering signals are represented by approximated power spectral densities (PSD). At the receivers the signal to interference and noise ratio (SINR) is obtained, which allows statements to be made on the expectable link performance for an applied OFDM modulation and coding scheme. Hence, the module is suitable for plc network simulations involving different types of noise sources and temporal channel variations close to reality. The simulation module is also aimed on evaluating protocol functioning for novel communication strategies, such as Hybrid ARQ and Cooperative Relaying schemes, that will play an important role in future plc systems.

Further information can be found in the user guide and the API documentation.

##Prerequisites

A stable ns-3 release is needed to use the plc module. It is available on www.nsnam.org. Besides the plc module uses the template-based boost graph library, which has to be accessible via the system's include path, or included manually in wscript configuration:

def configure(conf):
    conf.env.append_value('INCLUDES', ['/usr/local/boost_1_61_0'])

For installation see www.boost.org.

On an UNIX-like operating system the simulation environment can be set up as follows:

  1. Create target directory

    mkdir ns-3 && cd ns-3

  2. Download a stable ns-3 release, e.g.

    NS3_VER=3.25

    wget https://www.nsnam.org/release/ns-allinone-${NS3_VER}.tar.bz2

  3. Extract ns-3 sources

    tar xvjf ns-allinone-${NS3_VER}.tar.bz2

  4. Change to ns-3 modules' source directory

    cd ns-allinone-${NS3_VER}/ns-${NS3_VER}/src

  5. Clone or copy the plc module into the source directory, e.g.

    git clone https://github.com/ns3-plc-module/plc.git

##Build

NS-3 makes use of the waf build automation tool. NS-3 and the plc module can be built as follows:

  1. Change to the ns-3 root directory

    cd ns-allinone-${NS3_VER}/ns-${NS3_VER}

  2. Run build configuration with enabled examples and tests

    ./waf --enable-examples --enable-tests configure

  3. Build ns-3 modules

    ./waf

##Running

The current release of the plc module provides a few simple examples for its usage. The sources are located in the directory src/plc/examples. To run e.g. the plc net device example (plc-netdevice.cc) go to the ns-3 root directory and type

./waf --run src/plc/examples/plc-netdevice-example

plc's People

Contributors

ns3-plc-module avatar jvaubourg avatar sabafar avatar h57624paen avatar ike-kunze avatar

Watchers

James Cloos avatar

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.