When a client wishes to send a UDP datagram there is nothing that they are required to except to send it. The datagram will use a checksum to verify the integrity of the datagram and deliver it where it needs to go.
Since, there is no error checking in UDP. Datagrams will be passed to the next OSI layer without rearranging or in the order by the same which was received and it will not be dropped.
UDP
1. IP works at network layer, UDP works at transport layer. 2. UDP carries application data, IP carries TCP segments or UDP datagrams.
Datagrams TCP/IP layer 4 PDU's are called segments...
In connectionless server there is no need of establishment of connection with other party. Iterative server means server is handling the requests from different clients but one at a time. Server does not pay any attention to other clients while it is processing one client. Other requests are kept in queue waiting for their turn.Connectionless Iterative ServerThe servers that use UDP are normally iterative, which means that the server processes one request at a time. A server gets the request received in a datagram from UDP, processes the request, and gives the response to UDP to send to the client. The server pays no attention to the other datagrams. These datagrams are stored in a queue, waiting for service. They could all be from one client or from many clients. In either case they are processed one by one in order of arrival.The server uses one single port for this purpose, the well-known port. All the datagrams arriving at this port wait in line to be served.Generally the services provided by these iterative servers are one which takes very short time execute. Example service is the Internet Daytime service, which returns the time and the date.
Write and run a client and a server program in C-language using UDP
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.
DNS primarily uses the User Datagram Protocol (UDP) on port number 53 to serve requests. DNS queries consist of a single UDP request from the client followed by a single UDP reply from the server. When the length of the answer exceeds 512 bytes and both client and server support EDNS, larger UDP packets are used.
5million / (1500-20) = 3,378 datagrams
What a client application usually selects for a TCP or UDP source port number is a random value. The value selected is generally in the range of the registered ports.
PDU Information that is delivered as a unit among peer entities of a network and that may contain control information, address information, or data. UPD The User Datagram Protocol (UDP) is one of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer applications can send messages, in this case referred to as datagrams, to other hosts on an Internet Protocol (IP) network without requiring prior communications to set up special transmission channels or data paths
DHCP is a layer-4 protocol, most commonly transported over UDP. UDP port number 67 is the destination port of a server, and UDP port number 68 is used by the client