Giter VIP home page Giter VIP logo

rmcat-ns3's Introduction

rmcat-ns3

A comparison of rmcat protocol, namely NADA, GCC and SCReAM on ns3 platform. The version of ns is 3.26.
The paper link https://arxiv.org/pdf/1809.00304.pdf
The simulation code of NADA can get from https://github.com/cisco/ns3-rmcat
In consideration that the author of NADA made an update to their code, I upload the code I used during writting of this paper. And I did test the performance of the newer code inplementation, but it seems the new version had introduce some bugs that the sender can get quite low throughput compared to the link capacity.
For, I just release the SCReAM code modified from https://github.com/EricssonResearch/scream

the code in screamex.cc sendApp->SetTraceFilePath("/you_path/trace_key.txt"),is no use in experiment, but it should be configured in right path. trace_key.txt is from https://github.com/EricssonResearch/scream/tree/master/traces

the mytrace module is used for data collecion. And a file named "trace" should be created first under the path of ns-allinone-3.26/ns-3.26/

the razor project is a c version of GCC release at https://github.com/yuanrongxi/razor. And I make some minor modification to get it running on ns3. Thanks to the author's contributions.

Must running tips

Or else the compiler will runnng into errer like: cannot find -lrtc_base...

To run GCC congestion control algorithm, it depends on external library from webrtc and these files(webrtc-lib/webrtc) should be built first (The folder webrtc-lib can be put anywhere, for example /home/xxx/webrtc-lib).

cd /home/xxx/webrtc-lib/webrtc/  
cmake .  
make  

Then configure the environemnt variables:

sudo su  
gedit /etc/profile  

add the following to /etc/profile:

export WEBRTC_LIB=/home/xxx/webrtc-lib  
export LD_LIBRARY_PATH=$WEBRTC_LIB/webrtc/system_wrappers:$WEBRTC_LIB/webrtc/rtc_base:$WEBRTC_LIB/webrtc/api:$WEBRTC_LIB/webrtc/logging:$WEBRTC_LIB/webrtc/modules/utility:$WEBRTC_LIB/webrtc/modules/pacing:$WEBRTC_LIB/webrtc/modules/congestion_controller:$WEBRTC_LIB/webrtc/modules/bitrate_controller:$WEBRTC_LIB/webrtc/modules/remote_bitrate_estimator:$WEBRTC_LIB/webrtc/modules/rtp_rtcp:$LD_LIBRARY_PATH  
export CPLUS_INCLUDE_PATH=CPLUS_INCLUDE_PATH:$WEBRTC_LIB/webrtc/:$WEBRTC_LIB/webrtc/system_wrappers:$WEBRTC_LIB/webrtc/rtc_base:$WEBRTC_LIB/webrtc/api:$WEBRTC_LIB/webrtc/logging:$WEBRTC_LIB/webrtc/modules/utility:$WEBRTC_LIB/webrtc/modules/pacing:$WEBRTC_LIB/webrtc/modules/congestion_controller:$WEBRTC_LIB/webrtc/modules/bitrate_controller:$WEBRTC_LIB/webrtc/modules/remote_bitrate_estimator:$WEBRTC_LIB/webrtc/modules/rtp_rtcp  

The path about the headers and so libs in wscript(under webrtc-ns3) should also be changed accordingly:

  conf.env.append_value('INCLUDES', ['/home/xxx/webrtc-lib/webrtc/'])
  conf.env.append_value("LINKFLAGS", ['-L/home/xxx/webrtc-ns3/webrtc/system_wrappers','-L/home/xxx/webrtc-ns3/webrtc/rtc_base','-L/home/xxx/webrtc-ns3/webrtc/api','-L/home/xxx/webrtc-ns3/webrtc/logging','-L/home/xxx/webrtc-ns3/webrtc/modules/utility','-L/home/xxx/webrtc-ns3/webrtc/modules/pacing','-L/home/xxx/webrtc-ns3/webrtc/modules/congestion_controller','-L/home/xxx/webrtc-ns3/webrtc/modules/bitrate_controller','-L/home/xxx/webrtc-ns3/webrtc/modules/remote_bitrate_estimator','-L/home/xxx/webrtc-ns3/webrtc/modules/rtp_rtcp'])

And the webrtc-ns3 module depends on multipathvideo, and multipathvideo should be put under src in ns3.
Location:
image

In simulation(razor-example/gcc_tcp.cc), a point to point channel was created. From the time of 20s to 100s, A reno TCP connection flows into the network. The first picture shows the kalman-gcc cannot complete fair bandiwdth share with tcp flow.

image
image
If you quite interesting in this simualation, and think the above instrcution is quite complex, you could email me for the VM during the experiment.
some simualtion example of GCC algorithms:
bandwidth fainress property:
image
owe way transmission delay:
image
In some test case, gcc flows may not converge to the fairness line, case 1.
bandwidth fainress property:
image
owe way transmission delay:
image

The command to get webrtc-tcp running:

sudo su  
source /etc/profile  
./waf --run "scratch/webrtc-tcp --it=1"  

rmcat-ns3's People

Contributors

soonyangzhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rmcat-ns3's Issues

Configuration Error

Dear authors,

Thanks for the code and great work.

Currently, I want to redo your work. However, when I trying to configure the Webrtc.

I got an error.

I think the error is due to the missing files, such as lrtc_base. However, I cannot find these files.
Can you help me to fix this error?

Many thanks,

Here is the error code

Checking for library rtc_base
==>

int main(int argc, char **argv) {
(void)argc; (void)argv;
return 0;
}

<==
[1/2] Compiling �[32mbuild/.conf_check_59a2f4a903af5b095e194cddeff79283/test.cpp�[0m

['/usr/bin/g++', '-std=c++11', '-Wall', '-Wno-unused-local-typedefs', '-Wno-deprecated-declarations', '-std=c++11', '-ggdb', '-g3', '-O0', '-D__STDC_CONSTANT_MACROS -DWEBRTC_POSIX -DWEBRTC_LINUX', '-I/home/silver/zsy/webrtc-ns3/webrtc', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '../test.cpp', '-c', '-o', '/home/silver/ns3/ns-3-allinone/ns-3.26/build/.conf_check_59a2f4a903af5b095e194cddeff79283/testbuild/test.cpp.1.o']
[2/2] Linking �[33mbuild/.conf_check_59a2f4a903af5b095e194cddeff79283/testbuild/testprog�[0m

['/usr/bin/g++', '-lsystem_wrappers', '-lrtc_base', '-lapi', '-llogging', '-lutility', '-lpacing', '-lrtp_rtcp_format', '-L/home/silver/zsy/webrtc-ns3/webrtc/system_wrappers', '-L/home/silver/zsy/webrtc-ns3/webrtc/rtc_base', '-L/home/silver/zsy/webrtc-ns3/webrtc/api', '-L/home/silver/zsy/webrtc-ns3/webrtc/logging', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/utility', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/pacing', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/congestion_controller', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/bitrate_controller', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/remote_bitrate_estimator', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/rtp_rtcp', 'test.cpp.1.o', '-o', '/home/silver/ns3/ns-3-allinone/ns-3.26/build/.conf_check_59a2f4a903af5b095e194cddeff79283/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-lrtc_base']
err: /usr/bin/x86_64-linux-gnu-ld: cannot find -lsystem_wrappers
/usr/bin/x86_64-linux-gnu-ld: cannot find -lrtc_base
/usr/bin/x86_64-linux-gnu-ld: cannot find -lapi
/usr/bin/x86_64-linux-gnu-ld: cannot find -llogging
/usr/bin/x86_64-linux-gnu-ld: cannot find -lutility
/usr/bin/x86_64-linux-gnu-ld: cannot find -lpacing
/usr/bin/x86_64-linux-gnu-ld: cannot find -lrtp_rtcp_format
/usr/bin/x86_64-linux-gnu-ld: cannot find -lrtc_base
collect2: error: ld returned 1 exit status

from /home/silver/ns3/ns-3-allinone/ns-3.26/src/webrtc-ns3: Test does not build: Traceback (most recent call last):
File "/home/silver/ns3/ns-3-allinone/ns-3.26/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Configure.py", line 335, in run_build
bld.compile()
File "/home/silver/ns3/ns-3-allinone/ns-3.26/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Build.py", line 185, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
{task 140119594306128: cxxprogram test.cpp.1.o -> testprog}
['/usr/bin/g++', '-lsystem_wrappers', '-lrtc_base', '-lapi', '-llogging', '-lutility', '-lpacing', '-lrtp_rtcp_format', '-L/home/silver/zsy/webrtc-ns3/webrtc/system_wrappers', '-L/home/silver/zsy/webrtc-ns3/webrtc/rtc_base', '-L/home/silver/zsy/webrtc-ns3/webrtc/api', '-L/home/silver/zsy/webrtc-ns3/webrtc/logging', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/utility', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/pacing', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/congestion_controller', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/bitrate_controller', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/remote_bitrate_estimator', '-L/home/silver/zsy/webrtc-ns3/webrtc/modules/rtp_rtcp', 'test.cpp.1.o', '-o', '/home/silver/ns3/ns-3-allinone/ns-3.26/build/.conf_check_59a2f4a903af5b095e194cddeff79283/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-lrtc_base']

not found
from /home/silver/ns3/ns-3-allinone/ns-3.26/src/webrtc-ns3: The configuration failed

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.