Hi,I have the simulation attached in the file. A client 10.1.1.1 in LAN1 sending udpechoPackets to a server 10.1.10.1 in LAN10.I added the trace source PhyRxDrop to visualize the packets dropped by the server. However I can't see any dropped packets as numdrop in my simulation is always 0 (even If I increase the number of packets sent). Can you please tell me how I can force the server to drop some packets?Thank you.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
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/54f7dcb4-8b4a-4e4f-9551-0414cb6cb23bn%40googlegroups.com.
When I add this code for DroptailQueue in test2 File you attached. It generates some errors../scratch/test2.cc: In function ‘int main(int, char**)’:
../scratch/test2.cc:145:18: error: type/value mismatch at argument 1 in template parameter list for ‘template<class T> class ns3::Ptr’
145 | Ptr<DropTailQueue> dtq = CreateObject<DropTailQueue> () ;
| ^
../scratch/test2.cc:145:18: note: expected a type, got ‘DropTailQueue’
../scratch/test2.cc:145:55: error: no matching function for call to ‘CreateObject<template<class Item> class ns3::DropTailQueue>()’
145 | Ptr<DropTailQueue> dtq = CreateObject<DropTailQueue> () ;
| ^
In file included from ./ns3/scheduler.h:25,
from ./ns3/calendar-scheduler.h:25,
from ./ns3/core-module.h:23,
from ../scratch/test2.cc:1:
./ns3/object.h:576:8: note: candidate: ‘template<class T, class ... Args> ns3::Ptr<T> ns3::CreateObject(Args&& ...)’
576 | Ptr<T> CreateObject (Args&&... args)
| ^~~~~~~~~~~~
./ns3/object.h:576:8: note: template argument deduction/substitution failed:
../scratch/test2.cc:146:23: error: ‘class ns3::Ptr<ns3::CsmaNetDevice>’ has no member named ‘SetQueue’
146 | client_csma_interface.SetQueue(dtq)
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/155ffaee-60f8-42b4-b5ee-91f76b68e870n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/6fc49717-1090-4cb1-918e-c5eecde49a4an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/465dca57-0e83-40d2-b1c8-e6cc6a9618c2n%40googlegroups.com.