Why was UDP chosen over TCP?

We have seen that SNMP uses UDP as its transport protocol.  Why was UDP chosen over TCP?
Li SonapsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ITSysTechSenior Systems AdministratorCommented:
This should answer your question. I also found it very interesting.

"UDP is actually expected to work better than TCP in lossy networks (or congested networks). TCP is far better at transferring large quantities of data, but when the network fails it's more likely that UDP will get through. (in fact, I recently did a study testing this and it found that SNMP over UDP succeeded far better than SNMP over TCP in lossy networks when the UDP timeout was set properly). Generally, TCP starts behaving poorly at about 5% packet loss and becomes completely useless at 33% (ish) and UDP will still succeed (eventually)."

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
That is  not the (main) reason for choosing UDP here. TCP requires a confirmation, while UDP can work without. Most SNMP messages don't require a 100% reliable transmission.
Also, the overhead for small packets is much less with UDP than with TCP.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dr. KlahnPrincipal Software EngineerCommented:
I second Qlemo on this issue.  SNMP is not mandatory for network functioning.

Additionally, SNMP rarely goes outside of a LAN.  LAN stability can be expected (at some level) for any type of packets and UDP is then to be preferred over TCP due to the lower overhead.
nader alkahtaniInformation security consultantCommented:
UDP is not HEAVY on CPU, but  TCP is
Dr. KlahnPrincipal Software EngineerCommented:
No further response from questioner.  Points assigned to responders by perceived relative magnitude of contribution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking Protocols

From novice to tech pro — start learning today.