Git Product home page Git Product logo

klb2 / mmf-physec Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 6.27 MB

This repository is accompanying the paper "Securing Data in Multimode Fibers by Exploiting Mode-Dependent Light Propagation Effects" (S. Rothe, K.-L. Besser, D. Krause, R. Kuschmierz, N. Koukourakis, E. Jorswieck, J. Czarske. Research, vol. 6: 0065, Jan. 2023. DOI:10.34133/research.0065).

Home Page: https://doi.org/10.34133/research.0065

License: GNU General Public License v3.0

Jupyter Notebook 9.46% Python 85.58% Shell 4.96%
physical-layer-security multi-mode-fiber academic-publication optical-communications research research-paper secure-data-transmission

mmf-physec's Introduction

Physical Layer Security on Multi-Mode Fibers

Binder GitHub DOI

This repository is accompanying the paper "Securing Data in Multimode Fibers by Exploiting Mode-Dependent Light Propagation Effects" (S. Rothe, K.-L. Besser, D. Krause, R. Kuschmierz, N. Koukourakis, E. Jorswieck, J. Czarske. Research, vol. 6: 0065, Jan. 2023. DOI:10.34133/research.0065, arXiv:2203.02064).

The idea is to make all calculations, simulations, and presented results publicly available to the reader and, therefore, reproducible.

File List

The following files are provided in this repository:

  • BPSK Secrecy Rate.ipynb: Jupyter notebook that contains an interactive version of the simulations.
  • run.sh: Bash script that reproduces the figures presented in the paper.
  • statistic.sh: Bash script that reproduces the results which are averaged over multiple measurements.
  • svd_precoding.py: Python module that calculates the secrecy rate with SVD precoding.
  • no_precoding.py: Python module that calculates the secrecy rate when no precoding at the transmitter is performed.
  • data_transmission.py: Python module that shows the measured data transmission of the TU Dresden logo and performs the MC simulation with an additional polar wiretap code.
  • waterfilling.py: Python module that solves the optimization problem of optimal power allocation for parallel BSCs.
  • show_capacity_statistics.py: Python module that averages the results of multiple MMF measurements and plots them. (Automatically called at the end of statistic.sh.)
  • read_matrices.py: Python module that contains functions for reading the channel matrices from the measurement files.
  • util.py: Some utility functions like setting up the logging etc.

Measurements

In the measurements/ directory, one can find the measured MMF channel matrices that where used to obtain the results. All measurements were performed on a 55-mode MMF of 10m length, where an eavesdropper is physically coupled (50:50 coupling). A detailed description can be found in the paper.

  • mmf-measurement.mat: Channel matrix measurements of Alice to Bob and Alice to Eve, both with and without precoding at the transmitter
  • data-measurement.mat: Measurements of the transmission of the TU Dresden logo

Usage

Running it online

The easiest way is to use services like Binder to run the notebook online. Simply navigate to https://mybinder.org/v2/gh/klb2/mmf-physec/HEAD to run the notebooks in your browser without setting everything up locally.

Local Installation

If you want to run it locally on your machine, Python3 and Jupyter are needed. The present code was developed and tested with the following versions:

  • Python 3.10
  • Jupyter 1.0
  • notebook 6.4
  • numpy 1.22
  • scipy 1.8
  • Pandas 1.4.1
  • h5py 3.6
  • digcommpy 0.9

Make sure you have Python3 installed on your computer. You can then install the required packages (including Jupyter) by running

pip3 install -r requirements.txt

This will install all the needed packages which are listed in the requirements file.

Finally, you can run the Jupyter notebook with

jupyter notebook 'BPSK Secrecy Rate.ipynb'

You can also recreate the figures from the paper by running

bash run.sh

Acknowledgements

This research was supported in part by the Deutsche Forschungsgemeinschaft (DFG) under grants JO 801/25-1 and CZ 55/42-1.

License and Referencing

This program is licensed under the GPLv3 license. If you in any way use this code for research that results in publications, please cite our original article listed above.

You can use the following BibTeX entry

@article{Rothe2023mmfphysec,
	author = {Rothe, Stefan and Besser, Karl-Ludwig and Krause, David and Kuschmierz, Robert and Koukourakis, Nektarios and Jorswieck, Eduard A. and Czarske, Jürgen W.},
	title = {Securing Data in Multimode Fibres by Exploiting Mode-Dependent Light Propagation Effects},
	journal = {Research},
	year = {2023},
	month = {1},
	volume = {6},
	eid = {0065},
	publisher = {American Association for the Advancement of Science (AAAS)},
	archiveprefix = {arXiv},
	eprint = {2203.02064},
	primaryclass = {physics.app-ph},
	doi = {10.34133/research.0065},
}

mmf-physec's People

Contributors

klb2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

jayliu00418

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.