In: Computer Science
1. Consider running real-time traffic, like VoIP, over a TCP or UDP socket. Why might you prefer to run such an application using a UDP transport layer?
2. Consider running real-time traffic, like VoIP, over a TCP or UDP socket. Suppose you chose to use TCP for your application; what would you need to do to ensure that the robust transport algorithm does not harm real-time performance?
VoIP is a technology that allows us to make voice calls using internet in place of regular analog telephone lines. It converts the sender's voice into a digital signal that travels over the internet. Before reaching the receiver's phone which acts as the destination, the digital signal gets converted to a telephone signal.
1 )TCP is a reliable connection set up which sends each packet of data or voice from source and waits for its acknowledgement from the destination point. If no acknowledgement is received, or any error suspected, it resends the packet again. This process causes delay t transmission process. Whereas UDP is a process where packets are send without waiting for acknowledgements and cannot detect error hence no delays in retransmission of packets occurs. UDP is faster and is concerned in keeping the flow of data packets.
2) If TCP is used for the application, a LAN environment can be used to overcome the problem of delay, which will not harm the real- time performance. TCP does a registration o connect with the receiver before sending the packets and keeps the connection until all the packets are send. Eg. Junction network is used to build a connection between the two parties.