[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] send (pkt, 0) ?
It's pretty frustrated not even being able to unicast
and multicast packets from an agent. What should I do
to get this done ? I guess it will be important to
write in NS Doc a paragraph regarding the usage of
"send(pkt,0)".
Should it be ?
1) set dst_ to be your destination address
a) If unicast, dst_ = agent's address (in ns_addr_t
type, not nsaddr_t)
b) If multicast, dst_.addr_ = group address (in
nsaddr_t) plus dst_.port_ = 0
2) Connector::send (pkt,0)
But it didn't work. Anything I missed above ?
The error was included in my previous email, based on
a simple topo (n0 is the sender, n1 and n2 joined the
group address). Basically the problems are:
1) Through the trace in my previous email, we can see:
multicast packets went through both links, but n2
didn't "r" (i.e. receive) the packets. However, n1
and n2 are 100% identical. Instead, a strange Tcp
packet appeared.
2) unicast packets (from n1, n2 to n0 as feedback)
went through links but didn't get into n0's agent's
recv().
BTW, I also tried putting source and destination
addresses into packet headers too, but it didn't work
either.
What are the standard ways to unicast and multicast
packets from an agent ? Maybe we should make this
more explicite and put it into NS Doc. Thanks!
Frank
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/