219324 -- Data Communications and Computer Networks -- 1st Semester 2009 Quiz 6 Name:_________________________ ID: ____________ Grade:______________Answer the following questions:1. How does the peer2peer model in Kazaa differ from that of Napster?2. How does the peer2peer model in Kazaa differ from that of Gnutella?3. How are the sendto() and recvfrom() functions used with UDP connections different from the send() and recv() functions used with TCPconnections?4. Fill in the bits for a UDP packet sent from port 4 to port 5 that contains only 4 bytes of data: 1, 2, 3, 4. 1. Start by translating the source port to a 16-bit binary value:2. Translate the destination port to a 16-bit binary value:3. Compute the length of the packet and convert to a 16-bit binary value:4. Now fill in the fields of the packet. (The first 2 rows of this tableare just a guide for counting the bits.) Leave the checksum field blank for now. Fill it after step 5.1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 31 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 25. Compute the 1's complement checksum of the header and data fields as a 16-bit binary value. (UDP does the computation over the entire packet.) Perform this calculation over 16-bit words:Problem 2:Draw the state diagram for the receiver that implements reliable data transfer version
View Full Document