Bug 1790

Summary: Error when the OnOffAplication datarate is increased [WiMAX]
Product: ns-3 Reporter: Esteban <muni_es>
Component: networkAssignee: ns-bugs <ns-bugs>
Status: NEW ---    
Severity: major CC: muni_es, ns-bugs, pdbarnes
Priority: P5    
Version: ns-3.18   
Hardware: PC   
OS: Linux   
Attachments: Simulation script of wimax network
WiMAX Fragmentation avoidance and small errors

Description Esteban 2013-11-07 06:59:37 EST
Created attachment 1699 [details]
Simulation script of wimax network

Simulating a WiMAX network with several SS, results seem be ok if you choose a low datarate in the OnOffAplication (such as 128kbps). However, if you choose a higher value, (ej: 1280kbps) the simulator crashes like:

assert failed. cond="m_buffer.GetSize () >= start + length", file=../src/network/model/packet.cc, line=232
terminate called without an active exception

The attached script works fine with the 128kbps value, but crashes with the value 1280kbps, without change anything more.

Seems like a bug. Any idea?
Comment 1 Peter Barnes 2013-11-07 15:39:01 EST
This is in Packet::CreateFragment
Comment 2 Esteban 2015-04-20 11:12:38 EDT
Due to the impossibility to work with the WiMAX module I have applied a patch which allows increase the throughput without this error. The problem was in the fragmentation procedure, so I have disabled it. For this reason is not really a "patch", since do not fix anything but avoid it. 

Aditionally corrects mistakes in time units in wimax/model/simple-ofdm-wimax-phy.cc

I upload it in case anyone is interested.
Comment 3 Esteban 2015-04-20 11:14:47 EDT
Created attachment 2022 [details]
WiMAX Fragmentation avoidance and small errors

It can be applied with: patch -p3 wimax-fragmentation-avoidance.patch from the ns-3.22 main directory