473,396 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What TCP-algorithm does dotnet use ?

Our company is in the startup phase of a large project involving lots
of network traffic. At this point, I'm trying to find out whether TCP
will be fast enough for the task. I've read a few articles that promote
UDP, claiming that TCP is slow, mainly written by gamers. But I've also
read some articles by more scientific sources, which made it clear that
a lot of progress has been made during the last 15 years or so. I
actually find it quite hard to believe that TCP should be slow, unless
an algorithm from the early 90's is used.
My question is: can anyone tell me what TCP-algorithm is used by dotnet
(For example TCP-Reno, TCP-Vegas, or maybe an even more recently
developed algorithm ?)

Mar 13 '06 #1
4 2232

"zing" <zi**********@hotmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Our company is in the startup phase of a large project involving lots
of network traffic. At this point, I'm trying to find out whether TCP
will be fast enough for the task. I've read a few articles that promote
UDP, claiming that TCP is slow, mainly written by gamers. But I've also
read some articles by more scientific sources, which made it clear that
a lot of progress has been made during the last 15 years or so. I
actually find it quite hard to believe that TCP should be slow, unless
an algorithm from the early 90's is used.
My question is: can anyone tell me what TCP-algorithm is used by dotnet
(For example TCP-Reno, TCP-Vegas, or maybe an even more recently
developed algorithm ?)


This does not depend on .NET framework, but rather on operating system. TCP
is not slow by definition, however if you need fine controll over timeouts
or improvements based on you specific netwerk requirements (TCP is general
purpose protocol) UDP offers much finer control. You have to implement flow
control, congestion control and error correction/retransmission yourself if
you use UDP (all come free with TCP). There are some parameters of TCP which
are configurable through socket interface, some through registry. TCP
registry parameters should not be changed by user application, which may
represent a problem.

There was a document on Microsoft site describing TCP/IP implementation in
w2k. As far as I rememeber, it was newer version of protocol with SACK
(selective acknowledgements).

Regards,
Goran
Mar 13 '06 #2
Thanks Goran,
The knowledge that the algorithm is part of the OS was of great help. I
found several interesting articles, I think one of them may be the one
you mentioned: http://rdweb.cns.vt.edu/public/notes/tcpip2000.pdf
http://technet2.microsoft.com/Window...f1b411033.mspx

The first link I got from this page:
http://rdweb.cns.vt.edu/public/notes/win2k-tcpip.htm
In this article, Carl Harris describes a shortcoming of the Win2k
implementation of tcp (which has been repaired in the 2003
implementation), which I believe may well be responsible for the
aforementioned claims that tcp is slow.

By now I'm quite convinced that the people at Microsoft have thought
things through pretty well and that it won't make much sense to write
any UDP stuff myself. Btw, Windows Vista will have a whole new
tcp-layer:
http://www.microsoft.com/technet/com...uy/cg0905.mspx

Regards,
Zing

Mar 14 '06 #3
zing wrote:

By now I'm quite convinced that the people at Microsoft have thought
things through pretty well and that it won't make much sense to write
any UDP stuff myself. Btw, Windows Vista will have a whole new
tcp-layer:
http://www.microsoft.com/technet/com...uy/cg0905.mspx


That may be the case. What would concern me more is their implementation
of sockets in .NET That's where you'd find your bottleneck.
Mar 14 '06 #4

"zing" <zi**********@hotmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
Thanks Goran,
The knowledge that the algorithm is part of the OS was of great help. I
found several interesting articles, I think one of them may be the one
you mentioned: http://rdweb.cns.vt.edu/public/notes/tcpip2000.pdf
http://technet2.microsoft.com/Window...f1b411033.mspx
The first link I got from this page:
http://rdweb.cns.vt.edu/public/notes/win2k-tcpip.htm
This is the one.
....
By now I'm quite convinced that the people at Microsoft have thought
things through pretty well and that it won't make much sense to write
any UDP stuff myself. Btw, Windows Vista will have a whole new
tcp-layer:
http://www.microsoft.com/technet/com...uy/cg0905.mspx

.....

Be carefull when choosing. Do tests in early phase and verify against
requirements early. You may find your self in troubles later in the project
if you fail to. Also, consider separating low level transport from rest of
your code (abstractions), so you can change without lot of problems.
Networking is extremly complex subject.

Beware that TCP timeouts are long (in range of minutes). There is a
difference if you connect to unreachable host and host that is connected to
network but has no service started. Also, retransmission can take lot of
time. In some situations, you can allow some packet loss (e.g. video
streaming). What you will actually choose is dependant on the problem you
are solving and your requierements.

Regards,
Goran

Mar 14 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matt W | last post by:
Hi all, I just noticed this in the manual yesterday: http://www.mysql.com/doc/en/Windows_running.html "MySQL supports TCP/IP on all Windows platforms. The mysqld-nt and mysql-max-nt servers...
12
by: David Sworder | last post by:
Hi, I'm writing an application in which a client (C#/WinForms) and server (C#/service) interact with one another. The client establishes a "session" with the server but for scalability reasons...
1
by: Sam | last post by:
I unsure where is Internet Information Service (IIS) newgroup but I have the following inquiry: I require 5 TCP for my web application as follows: a. TCP 100 - Finance b. TCP 101 - Sales c....
2
by: Navin Mishra | last post by:
Hi, Can ASP.NET web service account be modified to use TCP transport ? Or is there any example of a .NET web service offering TCP transport ? Thanks in advance and regards Navin
0
by: Nick | last post by:
Is there a way to avoid using a specific TCP port number, on the client side, when using HttpWebRequest? I've written an HTTP server and client that can't communicate with each other when the...
5
by: Tiger | last post by:
Hi, I try to send a packet with raw socket but I have an error with ethereal sniffer on windows xp. I can't find any solution on the net. :( Could anybody help with that problem? my code :...
13
by: smerf | last post by:
I have a constant UDP connection from one office to another office. I use it for an in-house application and it works just fine. But, I want to add file transfer to my little app without...
1
by: yukijocelyn | last post by:
Hi I am currently programming a TCP socket to transfer large files. My client is running on .NET application and my server is running on Java. I am using TCP socket to transfer file over the...
11
by: test | last post by:
Hi, I'm very new to Javascript so maybe my question could be stupid. I'm playing with microcontrollers and a TCP/IP component. This means that I can control electronics via TCP/IP, UDP and so on....
0
by: okonita | last post by:
Hi all, I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things. What am I doing wrong here? Any help that I can get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.