how to dynamically change the SegmentSize in ns3

23 views
Skip to first unread message

李婷

unread,
Apr 26, 2020, 10:33:32 AM4/26/20
to ns-3-users
Hi, EveryOne!I am trying to dynamically modify the size of SegmentSize in ns3.
I recreated a subclass of TcpOptionOps and  in the PktsAcked function, used tcb-> m_segmentSize = segSize;

in main function,I set
Config::SetDefault("ns3::TcpSocketBase::Sack",BooleanValue(false));
Config::SetDefault("ns3::TcpSocketBase::LimitedTransmit",BooleanValue(false));

but I got some errors as follows:
assert failed. cond="!head->m_lost", file=../src/internet/model/tcp-tx-buffer.cc, line=792
terminate called without an active exception

I have been troubled by this problem for many days, hope someone can help me, thank you very much
Reply all
Reply to author
Forward
Message has been deleted
0 new messages