Hi Ty,
Great thanks for your reply.
Sure. I can attach my program here. The followings are how I create
the dumbbell topology.
PointToPointHelper bottleNeckLink;
bottleNeckLink.SetDeviceAttribute("DataRate", StringValue ("10Mbps"));
bottleNeckLink.SetDeviceAttribute("Mtu", StringValue ("1500"));
bottleNeckLink.SetChannelAttribute("Delay", StringValue ("1ms"));
//leaf helper:
PointToPointHelper pointToPointLeaf;
pointToPointLeaf.SetDeviceAttribute("DataRate", StringValue ("100000Mbps"));
pointToPointLeaf.SetChannelAttribute("Delay", StringValue ("1ms"));
// Dumbbell constructor: nLeaf normal flows and nAttacker attack flows
PointToPointDumbbellHelper d (2000, pointToPointLeaf,
2000, pointToPointLeaf,
bottleNeckLink);
// Install Stack to the whole nodes
InternetStackHelper stack;
d.InstallStack (stack);
// Assign IP Addresses
// Three sets of address: the left, the right and the router
d.AssignIpv4Addresses (Ipv4AddressHelper ("10.1.0.0", "255.255.0.0"),
Ipv4AddressHelper ("11.1.0.0", "255.255.0.0"),
Ipv4AddressHelper ("12.1.0.0", "255.255.0.0"));
The error happens when I try to assign the IP addresses.
Thanks,
Zhuotao
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ns-3-users" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/ns-3-users/Fdi2HBQY_0c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
ns-3-users+...@googlegroups.com.
> To post to this group, send email to
ns-3-...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/ns-3-users.
> For more options, visit
https://groups.google.com/d/optout.