Enter your keyword

UDP

Definition


UDP (User Datagram Protocol) is an alternative communications protocol to Transmission Control Protocol (TCP) used primarily for establishing low-latency and loss tolerating connections between applications on the Internet. Both UDP and TCP run on top of the Internet Protocol (IP) and are sometimes referred to as UDP/IP or TCP/IP. Both protocols send short packets of data, called datagrams.

Example

Commonly asked interview questions on Constructors

1.What is What is the major difference between UDP and TCP/IP Protocol?

Answer :The first thing is UDP is connection less where as TCP is
connection oriented.The broadcasting and multicasting
software is available in the UDP only.Why because it is
connection less hence we can broadcast the packets very
easily,no need to wait for connection like in tcp,which
takes more delay.

2.Write UDP/SOCK_DGRAM applications?

Answer :to implement the udp service we must creat socket by socket
system call which takes argument as SOCK_DGRAM which is
used for to pass the data in the form of datagrams.

3.How to get IP header of a UDP message??

Answer :Actually ip header is not in a udp message.. it a comes at
network link layer while udp messege generate at transport
layer so that it’s a tricky question and meaningless…..i
think so… may be not sure

4.How to be sure that a UDP message is received?

Answer :In IP Header Protocol field is available,it tells which
protocol it is using as a transportlayer,if this field is
having 6(in decimal)it indicates TCP,17(in decimal)it
indicates UDP.

5.What is throjan?

Answer :Named after the Trojan Horse of ancient Greek history, a
trojan is a network software application designed to remain
hidden on an installed computer. Trojans generally serve
maliciious purposes and are therefore a form of malware,
like viruses.

Take Sample Test

Reference Books


1. Head First Java

No Comments

Add your review

Your email address will not be published.