TCP traffic as such does not get any priority over UDP traffic, but the way
in which the TCP messages are sent (Data Streaming) is different from the
way UDP messages are sent (Datagram).

In essense, UDP messages wait till there's enough space for the entire
message before the message is added to the output queue. Whereas, if there
isn't enough space for the entire message, a part of the message is sent and
the rest buffered. So, it might appear to be getting higher priority for
some applications.


Pavan Balaji,
Intel Corporation

    "Only the Paranoid Survive"  --  Andy Grove


> -----Original Message-----
> From: Benjamin Franks [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 19, 2002 12:13 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: giving priority to udp over tcp?
> 
> 
> 
> I'm using FreeBSD 4.5 and have custom applications that send receive
> network packets over both tcp and udp sockets.  For the sake of an
> example, assume that the udp traffic is always constant, but the tcp
> traffic density changes.  During times of heavy tcp traffic 
> density, will
> udp messages which have been sent to the out queue typically 
> wait in the
> queue longer before being sent out?  Does tcp traffic get some sort of
> priority?  If so, is there a way I can de-prioritize tcp 
> traffic and up
> the priority of the udp traffic to make certain all the queued udp
> messages get out as soon as possible...?  sysctl variables?  does it
> depend on the network card driver, or perhaps i'm imagining 
> something that
> isn't there and the two traffic types are totally isolated! ;)
> 
> Thanks!
> --Ben
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to