Recent questions tagged udp

1 vote
1
Correct expression tor UDP user datagram length is length of UDP = length of IP- length of IP header's length of UDP= length of UDP-length of UDP header's length of UDP = length of IP+length of IP header's length of UDP = length of UDP+length of UDP header's
2
In our rdt protocols, why did we need to introduce timers?
3
Suppose a process in Host C has a UDP socket with port number 6789. Suppose both Host A and Host B each send a UDP segment to Host C with destination port number 6789. Will both of these segments be directed to the same socket at Host C? If so, how will the process at Host C know that these two segments originated from two different hosts?
4
Is it possible for an application to enjoy reliable data transfer even when the application runs over UDP? If so, how?
1 vote
5
Describe why an application developer might choose to run an application over UDP rather than TCP.
6
List the four broad classes of services that a transport protocol can provide. For each of the service classes, indicate if either UDP or TCP (or both) provides such a service.
7
Both UDP and TCP use port numbers to identify the destination entity when delivering a message. Give two reasons why these protocols invented a new abstract ID (port numbers), instead of using process IDs, which already existed when these protocols were designed.
8
Consider a simple application-level protocol built on top of UDP that allows a client to retrieve a file from a remote server residing at a well-known address. The client first sends a request with a file name, and the server responds with a sequence ... . Ignoring the obvious performance issue, do you see a problem with this protocol? Think carefully about the possibility of processes crashing.
1 vote
9
Why does UDP exist? Would it not have been enough to just let user processes send raw IP packets
10
what is the difference between tcp socket and udp socket ?
11
UDP does not insert sequence numbers. The packets are expected to arrive as a continuous stream or they are dropped. What is the meaning of this line?(does it mean UDP discard out of order packets?)
12
What is Port number for TCP,UDP,IGMP,ICMP ? this might be silly question but still wants some little discussion.
1 vote
13
Which of the following transport layer protocols used to support email? a:) SMTP b:) TCP c::)UDP d) both b and c
1 vote
14
In TCP checksum is mandatory but in UDP checksum is optional. Why ?
15
does packets in TCP follow the same route from the source to destination or different? And what is really a connection oriented and connectionless service?
16
Consider socket API on a Linux machine that supports connected UDP sockets. A connected UDP socket is a UDP socket on which $connect$ function has already been called. Which of the following statements is/are CORRECT? A connected UDP socket can be used to communicate ... successfully call $connect$ function again for an already connected UDP socket. I only II only Both I and II Neither I nor II
1 vote
17
18
In Transport layer either in TCP header or UDP header in checksum field we calculate checksum for Pseudo header of IP + header of TCP/UDP + data of TCP/UDP. Transport layer should fill checksum field in header before the Segment pass to Network layer. Here my doubt is how TL knows the IP header which is going to create in next step NL ?
A program on machine $X$ attempts to open a $UDP$ connection to port $5376$ on a machine $Y$, and a $TCP$ connection to port $8632$ on machine $Z$. However, there are no applications listening at the corresponding ports on $Y$ and $Z$. An $ICMP$ Port Unreachable error will be generated by $Y$ but not $Z$ $Z$ but not $Y$ Neither $Y$ nor $Z$ Both $Y$ and $Z$