Address overflow!!
hello
i am simulating mesh networks 802.11s in ns-3 .i wanted to run simulation using over 1000 nodes but this is not possible since it shows me address overflow.this is a part of my code
Ipv4AddressHelper address;
address.SetBase ("10.1.1.0", "255.255.255.0");
and i get the error
assert failed. cond="m_address <= m_max", msg="Ipv4AddressHelper::NewAddress(): Address overflow", file=../src/
internet/helper/ipv4-address-helper.cc, line=108
i then made the following change
address.SetBase ("10.1.1.0", "255.255.255.0");
into this
address.SetBase ("10.1.1.0", "255.255.252.0");
thinking this would give enable me to use more nodes but again i am shown an error
"assert failed. cond="(m_network & ~m_mask) == 0",
msg="Ipv4AddressHelper::SetBase(): Inconsistent network and mask",
file=../src/internet/helper/ipv4-address-helper.cc, line=75 "
please help me out.i do not have much knowledge of ip networking and subnet masking.would be of great help if you can guide me.
thanks a lot!!
|