A Study on UDP / TCP / PGM
1st Feb 2000
Contact: sales@atlasindia.com
Questions to answer here:
To answer the first question let us look at the general properties of UDP and TCP.
|
UDP |
TCP |
||
|
Connection Oriented ? |
No |
Yes |
|
|
Message Boundaries ? |
Yes |
No |
|
|
Data Checksum ? |
Opt. |
Yes |
|
|
Positive Ack. ? |
No |
Yes |
|
|
Timeout and Rexmit ? |
No |
Yes |
|
|
Duplicate Detection ? |
No |
Yes |
|
|
Sequencing ? |
No |
Yes |
|
|
Flow Control ? |
No |
Yes |
|
It seems fairly obvious that UDP is a fairly "lenient" protocol as compared to TCP. So looking at the general properties of UDP, a hypothetical situation where the protocol would be preferred over TCP would be where the following characteristics hold true:
In real terms this would be something like an online video broadcast where frame losses are pretty much tolerable. In other words this is pretty much what Multicast needs. A Multicast server would not have to be concerned about re-transmitting packets once they are sent out using UDP.
Other advantages of UDP are:
It provides Port Numbers to distinguish between different user requests and OPTIONALLY a capability to verify that the data ARRIVED intact.
Consequences of using UDP over TCP:
The increase in transmission speed to the lower amount amount of processing at the source network leads to lower reliability.
In answer to the second question:
PGM satisfies most of the Multicast requirements. The keyword here is MOST.
Characteristics of PGM are:All of the above features enhance the reliability of receiving all the data sent out. In commercial terms this translates to easy adaptibility to PUSH applications say for example a live 24 hour stock prices broadcast. Now instead of sending a retransmit signal to the original broadcast source a closer recipient can be requested the same information.
Also it is important to note the CISCO has brought out PGM (TIBCO invented it). So it is ideal that the weight of CISCO (a router specialist) be behind a promising Protocol. PGM relies intensively on routers. Also there is a great demand for applications which require features supported by PGM.
How does PGM compare to other schemes for Reliable Multicast ?
There are over 30 different multicast schemes that have been proposed by various quarters. RMP (Reliable Multicast Protocol), RMTP ( Reliable Multicast Transport Protocol) and MFTP (Multicast File Transfer Protocol) are some of the more commonly accepted methods for implenting multicast.
As discussed earlier the MAIN difference is DLR (Designated Local Retransmitters).
Important Notes:
Sources Used for this Report: