UDP
. A Explain the overview of UDP messaging.
The correct answer is IP. IP is responsible for breaking data into packets and passing them from TCP or UDP to the hardware.
Most of the application layer protocols are layered on top of either TCP or UDP. Therefore, TCP and UDP have to concurrently handle the many disparate data streams sent to them from the application layer. The demultiplexing process would be hopelessly complicated and impossible to handle without some means of identifying which data stream a particular segment of data belongs to. Both TCP and UDP provide a port identifier to uniquely identify each data stream. A set of standard port numbers are assigned by the IANA to the major aplication layer protocols. These 'well known' ports make it easier to find the corresponding server for a particular protocol on a host. e.g. SMTP servers can usually be found on port 25 and HTTP servers are usually on port 80. The combination of a TCP/UDP port and an IP address uniquely identifies a particular service on a particular host. The term 'socket' is usually used to refer to the combination of the TCP/UDP port and IP address.
DNS uses both TCP and UDP, also a lot of online chats use UDP. I think even when you want videos on YouTube UDP is used to deliver video and audio.
UDP is a connectionless protocol, so there is no session to close. UDP is not expecting any particular packet, so opening and closing via UDP is not necessary.
Routers Drop a lot of UDP packets
UDP is a layer 4 (transport) protocol.
In total there is 65535 UDP/TCP ports allocated . However, the first 1024 port numbers are reserved for common applications such as ftp (20,21), ssh (22), http (80) etc. This means that for other common applications there is "only" 64511 available port numbers.
1. IP works at network layer, UDP works at transport layer. 2. UDP carries application data, IP carries TCP segments or UDP datagrams.
the main difference between UDP and TCP is that UDP is not a reliable protocol.
UDP is alot faster than TCP. So if its realtime obviously it has to be fast, thus UDP. The only problem is UDP isn't as reliable or as secure as TCP. But it does have the speed advantage.