Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when integrating ofsoftswitch13 with NS3.31 #309

Open
shizhenzhao opened this issue Aug 26, 2020 · 1 comment
Open

Error when integrating ofsoftswitch13 with NS3.31 #309

shizhenzhao opened this issue Aug 26, 2020 · 1 comment

Comments

@shizhenzhao
Copy link

I want an NS3 that supports both ofsoftswitch13 and DCTCP. However, DCTCP is only supported in NS3.31, while ofsoftswitch13 is only supported in NS3.28 and NS3.29.

I tried modifying the NS3 ofsoftswitch13 (NS3.29 version) module as follows:
1 In ofswitch13-queue.cc
Change "Head()" to "begin()", and change "Tail()" to "end()"
2 In ofswitch13-port.cc:
Change "SetOpenFlowReceiveCallback" to "SetReceiveCallback"
Change
"bool
OFSwitch13Port::Receive (Ptr device, Ptr packet,uint16_t protocol, const Address &from,
const Address &to, NetDevice::PacketType packetType)"
to
"bool
OFSwitch13Port::Receive (Ptr device, Ptr packet,uint16_t protocol, const Address &from)"
3 In ofswitch13-priority-queue.cc:
Add a MaxSize attribute to the ofswitch13 priority queue:
.AddAttribute ("MaxSize",
"The max queue size",
QueueSizeValue (QueueSize ("100p")),
MakeQueueSizeAccessor (&QueueBase::SetMaxSize,
&QueueBase::GetMaxSize),
MakeQueueSizeChecker ())

With these modifications, NS3.31 compiles successfully. However, when I run a test, NS3.31 crashes and the following assertion error prompts:
"m_current + delta <= m_dataEnd"

Any clue?

@ederlf
Copy link
Collaborator

ederlf commented Aug 27, 2020

You might get a better chance of having an answer if you post the issue in the specific repository of the NS3 module that uses the switch for simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants