Thank you Jay and Tom for your reply,
Actually what I want to do is to introduce a loss to a specific link. For example if I want to send data from node 1 to node 4 and I have two paths to reach node 4. I want to introduce losses on one path while keep the other path with no losses to see which path the routing protocol will choose. I need something to specify the error rate similar to the rate error model that Tom suggested. However, the rate error model that Tom suggested does not work in wireless. I found something called DSSSErrorRateModel which should work in wireless, but I do not know how to use it and also it is applied to the physical layer not to a specific node. Any suggestion ?
The rate error model does work on wireless; it is called the PostReceptionErrorModel in WifiPhy:
.AddAttribute ("PostReceptionErrorModel",
"An optional packet error model can be added to
the receive "
"packet process after any propagation-based
(SNR-based) error "
"models have been applied. Typically this is
used to force "
"specific packet drops, for testing purposes.",
PointerValue (),
MakePointerAccessor
(&WifiPhy::m_postReceptionErrorModel),
MakePointerChecker<ErrorModel> ())
However, in general, it does not discriminate based on sender. I suppose you could modify the code in WifiPhy where this model is applied and filter based on sender at that point.
- Tom
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/36c3e44a-db48-4ed2-9963-95bdcb4d9376n%40googlegroups.com.