Hi Marco,
Marco Fiore wrote: > my guess is that those infos can be useful for > statistics > collection. Is the RTP header considered > in the UDP header size? If > not, it is an "invisible" > header, put there just for informational > purposes > and not affecting the simulation outcome. You seem to be right, at least that's what I can say from taking a closer look at UdpAgent::sendmsg(int, AppData*, const char*). The size is noted down in the common header (hdr_cmn) as given to sendmsg() in the first paremter (nbytes), the RTP header's size is not being put into consideration. Thanks for the explanation, --Timo > Messaggio originale---- >>Da: [EMAIL PROTECTED] >>Data: 4-apr- > 2007 4.37 PM >>A: <ns-users@ISI.EDU> >>Ogg: [ns] why RTP header in > UDP's sendmsg() ? >> >> >>Hiya, >> >>I'm not sure if this issue rather > belongs to the dev-mailinglist instead >>of the users' one but since > it's just a question and not some sort of >>contribution I'll try here > first: >> >>I've looked at the UDP code (in apps/udp.cc) and came to > realize that >>everytime the sendmsg() function is called a RTP header > is put on top of >>the packet, including (talk burst) flags, sequence > number, and a time >>stamp. >> >>Just wondering: What's the rationale > behind this? >> >> >>Cheers, >> >>--Timo >> >> > > >