mptcp

198 views
Skip to first unread message

Daniel Ntugwa

unread,
Apr 30, 2017, 11:53:11 AM4/30/17
to mptcp
Hallo  i was able to install mptcp and successiful run the mptcp.cc example by morteza however  i cannot create subflows, i can only see one path, help please!

Bao Trinh

unread,
Sep 19, 2017, 11:08:28 AM9/19/17
to mptcp
Hi Daniel.
Could you please let me know steps that you used to install the mptcp ?
Do you create a new module in NS-3 or just copy the downloaded files to /src/ folder in ns-3 ?

Thank you very much.

Daniel Ntugwa

unread,
Sep 19, 2017, 2:02:15 PM9/19/17
to mp...@googlegroups.com
First you will have to download mptcp at this link https://github.com/mkheirkhah/mptcp
it is implemented in ns3 version 19, so uzip and install the same way as you are installing other ns3 versions,
it works well on ubuntu 12.04 64bit, it may not work on 32 bit machine

configure by using waf 
During configuration it will give few warnings, you will have to attend then for instance a variable declared but not used, comment it

To see subflows uncomment the last two lines
Config::SetDefault("ns3::Ipv4GlobalRouting::FlowEcmpRouting", BooleanValue(true));
  Config::SetDefault("ns3::TcpSocket::SegmentSize", UintegerValue(1400));
  Config::SetDefault("ns3::TcpSocket::DelAckCount", UintegerValue(0));
  Config::SetDefault("ns3::DropTailQueue::Mode", StringValue("QUEUE_MODE_PACKETS"));
  Config::SetDefault("ns3::DropTailQueue::MaxPackets", UintegerValue(100));
  Config::SetDefault("ns3::TcpL4Protocol::SocketType", TypeIdValue(MpTcpSocketBase::GetTypeId()));
  Config::SetDefault("ns3::MpTcpSocketBase::MaxSubflows", UintegerValue(2)); // Sink

 // Config::SetDefault("ns3::MpTcpSocketBase::CongestionControl", StringValue("RTT_Compensator"));
  //Config::SetDefault("ns3::MpTcpSocketBase::PathManagement", StringValue("NdiffPorts"));

Then run the usual way
Have a good day
 


--
Vous recevez ce message, car vous êtes abonné à un sujet dans le groupe Google Groupes "mptcp".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/mptcp/4OiBcWqkvC4/unsubscribe.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse mptcp+unsubscribe@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

Bao Trinh

unread,
Sep 20, 2017, 12:28:17 PM9/20/17
to mptcp
I setup successfully (It is still working on 32bit OS)

However, when I runt the example file (in /scratch/ folder). The result seems to be weird as I cannot see the operation of many flows of MPTCP (I attached wireshark file).
Do you experience the same problem and how you fix that ?

Thank you very much.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse mptcp+un...@googlegroups.com.
MPTCP_NS3_Demo.png

Daniel Ntugwa

unread,
Sep 20, 2017, 12:53:24 PM9/20/17
to mp...@googlegroups.com
attach the pcap files so that i can see how many src port you have got, i can see only one src 49153 from the wireshark you have attached. Remeber the total number of subflows is equal to the number of src ports
best regard

Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse mptcp+unsubscribe@googlegroups.com.

Bao Trinh

unread,
Sep 20, 2017, 1:04:13 PM9/20/17
to mptcp

Here are two capture .pcap files (I did not change anything in the example mptcp.cc file)
myfirstMPTCP-0-0.pcap
myfirstMPTCP-1-0.pcap

Daniel Ntugwa

unread,
Sep 20, 2017, 1:16:16 PM9/20/17
to mp...@googlegroups.com
ok let me check it,

Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse mptcp+unsubscribe@googlegroups.com.

Daniel Ntugwa

unread,
Sep 20, 2017, 1:53:07 PM9/20/17
to mp...@googlegroups.com
Hello you have only src port which 49153, therefore you don't have multipath tcp yet,
i have attached a pcap file and the screen shoot  for you to see how the results look like.
Note in 32 bit OS, this mptcp it don't complain but it MAY not give expected results
please send to me the codes so that i can confirm ​
Screenshot from 2017-09-20 20:05:29.png

Bao Trinh

unread,
Sep 20, 2017, 3:52:10 PM9/20/17
to mptcp
Hi Daniel.
This is the script file (I only increase the simulation time to 100 seconds, otherwise the same).
mptcp.cc

Bao Trinh

unread,
Sep 22, 2017, 7:13:20 AM9/22/17
to mptcp
Hi Daniel.
Could you please send me a smaller version of your .pcap file (the previous is a bit big so I got trouble to download).
Thanks.

Bao Trinh

unread,
Sep 22, 2017, 12:03:46 PM9/22/17
to mptcp
It works now as I re-installed and run on 64bit OS.

Daniel Ntugwa

unread,
Sep 22, 2017, 12:57:03 PM9/22/17
to mp...@googlegroups.com
Congratulations!!

Can you create two subflows one for lte and the other for Wi-Fi?  OR any idea on how to do it.
if you can please help me,
with best regards

Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse mptcp+unsubscribe@googlegroups.com.

Bao Trinh

unread,
Oct 2, 2017, 2:42:26 PM10/2/17
to mptcp
I am trying to modify the code as well (It is still not working for wireless connection)

I send the code in attached file. It runs only for short time and terminates suddenly then.

Do you have any idea ?
mptcp_wireless.cc

Bao Trinh

unread,
Oct 2, 2017, 3:20:34 PM10/2/17
to mptcp
Oh, it works for wifi now but I still don't know how to add LTE
Reply all
Reply to author
Forward
0 new messages