Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 2002 22:20:55 -0700
From:      "Balaji, Pavan" <pavan.balaji@intel.com>
To:        "'Benjamin Franks'" <benjamin@dzhan.com>, freebsd-questions@FreeBSD.ORG
Cc:        freebsd-net@FreeBSD.ORG
Subject:   RE: giving priority to udp over tcp?
Message-ID:  <3D386AED1B47D411A94300508B11F18703BC5BD4@fmsmsx116.fm.intel.com>

next in thread | raw e-mail | index | archive | help

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:benjamin@dzhan.com]
> Sent: Friday, July 19, 2002 12:13 AM
> To: freebsd-questions@FreeBSD.ORG
> Cc: freebsd-net@FreeBSD.ORG
> 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 majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D386AED1B47D411A94300508B11F18703BC5BD4>