1
0
mirror of https://github.com/Enidsky/qsccp.git synced 2026-06-18 03:00:30 +08:00
2023-09-18 22:01:35 +08:00
2023-04-30 09:51:07 +08:00
2023-04-30 09:51:07 +08:00
2023-04-30 09:51:07 +08:00
2023-04-30 09:51:07 +08:00
2023-04-30 09:51:07 +08:00
2023-09-18 22:01:35 +08:00

QoS-aware Congestion Control Protocol (QSCCP) for ICN

Compile and Run

  1. Prerequisites

    • Ubuntu 20.04:

      sudo apt install gir1.2-goocanvas-2.0 gir1.2-gtk-3.0 libgirepository1.0-dev python3-dev python3-gi python3-gi-cairo python3-pip python3-pygraphviz python3-pygccxml libsqlite3-dev libssl-dev libboost-all-dev
      sudo pip3 install kiwi
      
  2. Pull Code

    git clone https://github.com/Enidsky/qsccp.git
    cd qsccp
    git submodule update --init --recursive
    
  3. Compile and install

    • debug mode (slow but have log)

      cd ns-3
      
      # arm64 Linux => ./waf configure -d debug --boost-libs=/usr/lib/aarch64-linux-gnu
      ./waf configure -d debug
      
      # The first compilation must use ./waf to compile, otherwise there will be permission problems
      ./waf
      sudo ./waf install  
      
    • optimized mode (fast but have no log)

      cd ns-3
      
      # arm64 Linux => ./waf configure -d optimized --boost-libs=/usr/lib/aarch64-linux-gnu
      ./waf configure -d optimized
      
      # The first compilation must use ./waf to compile, otherwise there will be permission problems
      ./waf
      sudo ./waf install
      
  4. Config Path

    • Open ~/.bashrc by vim

      vim ~/.bashrc
      
    • Jump to last line of ~/.bashrc use shift + G

    • Add the following two lines at the end of the file

      export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
      export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
      
    • Save and quit vim.

    • Execute the following command to make the configuration effective:

      source ~/.bashrc
      
  5. Run scenario code

    • debug mode (slow but have log)

      cd ../scenario
      ./waf configure --debug
      ./waf --run=test
      
      # ./waf --run=test --vis
      
    • optimized mode (fast but does not contain logs)

      cd ../scenario
      ./waf configure
      ./waf --run=test
      
      # ./waf --run=test --vis
      

Benchmarks

S
Description
No description provided
Readme 28 MiB
Languages
C++ 92%
Python 3.8%
C 1.2%
Perl 0.8%
CMake 0.8%
Other 1.2%