Git Product home page Git Product logo

dems's Introduction

DEMS

Build Status

setup

$ git clone https://github.com/DokuEnterprise/mixnet
$ cd mixnet
$ sudo -s
root$ make build
root$ ./mixnet setup <NAME>

Replace name with a username.

usage

start

root$ ./mixnet start [-m] -MIXER_PORT [-p] PEELER_PORT [-q]

the mixer server will be running on port 5000 or MIXER_PORT, treat this port as a proxy

the peeler server will be running on port 5001 or PEELER_OUT

-q (quiet) redirects the mixer and peeler processes' stdout and stderr to files in /usr/etc/mixnet

stop

root$ ./mixnet stop

demo

tracker

The tracker (akin to a bittorrent tracker) tracks which peers in the mixnet are currently available. The tracker would presumably run on a reliable public server in a WAN implementation of mixnet.

the tracker is started by

root$ ./tracker start

run test

The test uses the local area network to simulate the operation of a mixnet on a wide area network.

First, the tracker server is started. Then several mixnet peers are started on distinct ports. The test program tester opens a socket on port 8009 and sends a message "Hello, world!" with destination 127.0.0.1:8009 (i.e. itself) through the mixer running on port 5000. The message is routed through the peers (peeler servers) on the mixnet, achieving anonymity from the message’s recipient.

To run the test

root$ make run_test

where

run_test: build tester
	./tracker start -q
	./mixnet start -m 5004 -p 5005 -q
	./mixnet start -m 5006 -p 5007 -q
	./mixnet start -m 5008 -p 5009 -q
	./mixnet start -m 5010 -p 5011 -q
	./mixnet start -m 5000 -p 5001 -q
	./tester

You can inspect the output from each mixer and peeler in the process id labeled files in /usr/etc/mixnet.

Between tests be sure to run

root$ make clean

dems's People

Contributors

friedy10 avatar

Watchers

 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.