Custom Congestion Control Algorithm

29 views
Skip to first unread message

Mohammed Afifi

unread,
Apr 17, 2023, 8:10:15 AM4/17/23
to ns-3-users
Hi All,

I'm trying to implement a new congestion control algorithm, which use methods provided in TcpSocketBase such as:


ByBBy just implementing TcpCongestionOps, I can't have access to these methods. One solution is to extend TcpSocketBase and then select the new implementation. But I tried to select it using config::set and the following:
  • "/NodeList/[i]/$ns3::TcpL4Protocol/SocketList/[i]"
// Create a new instance of MyTcpSocketBase MyTcpSocketBase mySocket; // Set the MyTcpSocketBase factory for TcpSocketBase using Config::Set std::string path = "/NodeList/[i]/$ns3::TcpL4Protocol/SocketList/[i]/$ns3::TcpSocketBase"; ObjectVectorValue tcpSocketBaseValue; tcpSocketBaseValue.Set(InternalSocketFactory<MyTcpSocketBase>::GetTypeId()); Config::Set(path, tcpSocketBaseValue);
And it seems to be not working, can someone please help me?
Reply all
Reply to author
Forward
0 new messages