How to test DSR routing protocol via IPv6

71 views
Skip to first unread message

Aleksandr Okhrimenko

unread,
Nov 23, 2017, 2:22:02 PM11/23/17
to ns-3-users
Hi all!

I want to test DSR routing protocol via IPv6.
My script simulates network with nodesNumber=5 nodes, lr-wpan net devices, 6LoWpan layers and IPv6:
...
  NodeContainer nodes;
  nodes.Create(nodesNumber);

  LrWpanHelper lrWpanHelper;
  NetDeviceContainer lrwpanDevices = lrWpanHelper.Install(nodes);
  lrWpanHelper.AssociateToPan(lrwpanDevices, 0);

  InternetStackHelper internetStack;
  internetStack.Install(nodes);

  SixLowPanHelper sixlowpan;
  NetDeviceContainer devices = sixlowpan.Install(lrwpanDevices);

  Ipv6AddressHelper ipv6;
  ipv6.SetBase(Ipv6Address("2001:2::"), Ipv6Prefix(64));
  Ipv6InterfaceContainer deviceInterfaces;
  deviceInterfaces = ipv6.Assign(devices);

  DsrHelper dsr;
  DsrMainHelper dsrMain;
  dsrMain.Install(dsr, nodes); <-- This line causes an error
...

When I tried to add DSR routing protocol, I got an error during runtime:

assert failed. cond="m_mainAddress != Ipv4Address () && m_broadcast != Ipv4Address ()", file=../src/dsr/model/dsr-routing.cc, line=517

terminate called without an active exception


Source of message:

file: dsr-routing.cc

method:

void DsrRouting::Start ()
{
NS_LOG_FUNCTION (this << "Start DSR Routing protocol");

...

NS_ASSERT (m_mainAddress != Ipv4Address () && m_broadcast != Ipv4Address ()); <-- This line causes an error

}
}


Requires IPv4 protocol.

Someone has experience using DSR routing protocol via IPv6?

Thanks

Tommaso Pecorella

unread,
Nov 23, 2017, 4:40:29 PM11/23/17
to ns-3-users
As the assets says... DSR only supports IPv4.
Modifications to support IPv6 are welcome.

T.

Aleksandr Okhrimenko

unread,
Nov 23, 2017, 5:16:38 PM11/23/17
to ns-3-users
Thanks
A similar situation with the AODV routing protocol.



четверг, 23 ноября 2017 г., 23:40:29 UTC+2 пользователь Tommaso Pecorella написал:
Reply all
Reply to author
Forward
0 new messages