The ns-2 LEDBAT code leverages the TCP Linux [1] extensions,
facilitating the port of Linux TCP code to ns-2.
That is, it is not structured as either the native ns-2 or ns-3 TCP
code. Although ns-3's TCP structure should support a native LEDBAT
implementation, it would be a non-trivial port of the ns-2 code.
For ns-3, there are two other possibilities that I suggest to investigate:
1) others [2] have combined Network Simulation Cradle with LEDBAT, and
ns-3 supports NSC. I would suggest to contact the authors to see if
that code can be shared.
2) Direct Code Execution [3] allows the Linux network stack to be
compiled in a special way and included in ns-3 simulations. Getting
this to run probably involves making sure that the LEDBAT kernel module
implementation is included in the build.
Hope this helps,
Tom
[1]
http://netlab.caltech.edu/projects/ns2tcplinux/
[2]
http://www.ikr.uni-stuttgart.de/Content/Publications/Archive/Kue_EUNICE2011_40119.pdf
[3]
http://www.nsnam.org/docs/dce/release/1.4/manual/html/index.html