[tg] UDP issue

Barbara Denny b_a_denny at yahoo.com
Fri Oct 29 13:22:26 PDT 2004


Thanks Mike for elaborating on the kernel limitation.
The constant, MAX_PKT_SIZE, is a misleading name.  It
is only the buffer size for the reads and writes
to the kernel. 

barbara  

.--Mike Brescia <m.brescia at comcast.net> wrote:

> At 9:29 AM -0700 10/28/04, Barbara Denny wrote:
> >For users who would like to send very large user
> >datagrams, try modifying MAX_PKT_SIZE in config.h.
> >The current maximum size is set to 8192.
> 
> That sets the size for receiving and buffering.  In
> my (FreeBSD) 
> unix, there's a kernel limit on sending datagram
> size (perhaps also 
> receive re-assembly?) set in parameter
> "net.inet.udp.maxdgram" (9216 
> in mine).  Examine and set this with sysctl(8).
> 
> 
> >When
> >you add the unsigned long, which tg uses to
> >record a sequence number for udp, you get the
> >results of the second run. All the bytes should
> >be received by the end of the run.
> 
> Also, thanks to Barbara for explaining the off-by-4
> discrepancy.
> 
> >--- Hugues Van Peteghem <hvp at info.fundp.ac.be>
> wrote:
> >  > I got a light problem with the 'tg' generator.
> As I
> >  > want to generate large UDP
> >>  packets, the maximum a receiver can get is 8188
> >  > bytes packets :
> 
> Good hunting,
>   -- Mike
> _______________________________________________
> tg mailing list
> tg at postel.org
> http://www.postel.org/mailman/listinfo/tg
> 


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 


More information about the tg mailing list