Hi everyone,
I am simulating one LTE cell with EPC and IPv4 networking and two remote servers. I am particularly interested in the radio interface delay.
I would like to see the impact using real rrc signaling with the following attribute:
lteHelper->SetAttribute("UseIdealRrc", BooleanValue(false));
Adding this line code make the simulation fail with the following error:
msg="Removing unexpected header ", file=../../src/network/model/packet-metadata.cc, line=703
terminate called without an active exception
Command ['/home/pefiole/repos/ns-3-allinone/ns-3-dev/build/debug/scratch/NANSim/NANSim', '--nRtus=3
'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program>
--command-template="gdb --args %s <args>").
I looked into the packet metedata class and it seems the problem happens in this function:
void PacketMetadata::RemoveHeader (const Header &header, uint32_t size)
{
uint32_t uid = header.GetInstanceTypeId ().GetUid () << 1;
NS_LOG_FUNCTION (this << &header << size);
NS_ASSERT (IsStateOk ());
if (!m_enable)
{
m_metadataSkipped = true;
return;
}
struct PacketMetadata::SmallItem item;
struct PacketMetadata::ExtraItem extraItem;
uint32_t read = ReadItems (m_head, &item, &extraItem);
if ((item.typeUid & 0xfffffffe) != uid ||
item.size != size)
{
if (m_enableChecking)
{
NS_FATAL_ERROR ("Removing unexpected header ");
}
return;
}
The TypeId of the concerned header is ns3::RrcAsn1Header.
And the error is triggered because the size of the "item"(value: 28) after using the "ReadItems" function is not the same as the parameter "size"(value: 29) give to the function "RemoveHeader"
I have no idea why I get this problem, could someone advise me where to look to solve this ?
My thanks in advance,
PE