加载中...

Framework For Misbehavior Detection (F2MD)

ABOUT

This project aims to recreate within a simulation all the elements that form the chain of misbehavior detection.

< SUMO1.5.0 and OMNeT++5.6.1 > install

SUMO1.5.0 install

https://zhuanlan.zhihu.com/p/138830000教程

  1. 安装相关的依赖库
    sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev libgdal-dev libproj-dev libgl2ps-dev swig
  2. 下载安装包
    https://sumo.dlr.de/releases/1.5.0/
    sumo-src-1.5.0.tar.gz
  3. 在哪下载的在哪解压,但是我建议下载到home下
    tar xzf sumo-src-1.5.0.tar.gz
    cd sumo-1.5.0
    pwd
  4. 修改SUMO_HOME路径
    export SUMO_HOME="/home/<user_name>/sumo-1.5.0"
    echo $SUMO_HOME
    echo会输出/home/<用户名>/sumo-1.5.0
    gedit ~/.bashrc
    在最后面一行添加export SUMO_HOME="/home/luo/sumo-1.5.0/bin"
  5. 用到cmake开始build
    mkdir build/cmake-build
    cd build/cmake-build
    cmake ../..
  6. make命令
    make -j $(nproc)
    或者
    make -j $(grep -c ^processor /proc/cpuinfo)
  7. test
    进入sumo文件下的docs/tutorial/traci_tls
    cd docs/tutorial/traci_tls
    python runner.py

OMNeT++5.6.1 install

https://blog.csdn.net/qq_42824983/article/details/110470544教程

  1. 先更新
    sudo apt-get install update
  2. 安装依赖包
    sudo apt-get install build-essential gcc g++ bison flex perl python python3 qt5-default libqt5opengl5-dev tcl-dev tk-dev libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-3.0-0
  3. 安装支持3D可视化的Qtenv,添加ubuntugis/ppa库
    sudo add-apt-repository ppa:ubuntugis/ppa
    sudo apt-get install update
    sudo apt-get install openscenegraph-plugin-osgearth libosgearth-dev
  4. 安装PCAP库,允许仿真模型绕过操作系统的协议栈捕获和传输网络数据包
    sudo apt-get install libpcap-dev
  5. 安装OMNet++
    下载包链接:https://omnetpp.org/download/old

    tar xzvf omnetpp-5.6.1-src-linux.tgz
  6. 更改路径
    gedit ~/.bashrc
    最后一行加上export PATH=$PATH:/home/luo/omnetpp-5.6.1/bin
    NOTES:这里luo是我的用户名,要看自己的用户名是啥
  7. make
    cd omnetpp-5.6.1/
    ./configure
    make
  8. omnetpp启动
    omnetpp

F2MD install

  1. 先克隆git clone --recurse-submodules https://github.com/josephkamel/F2MD.git
  2. 再进去文件夹编译./buildF2MD
  3. 运行
posted @ 2023-09-28 18:40  一名博客  阅读(82)  评论(0编辑  收藏  举报