Computer Science 881 Quiz 2 Name _________________ 1. Identify the socket calls for which UDP provides its own handler (as opposed to relying upon the AF_INET handler to do all the work) ___ a. socket() ___ b. connect() ___ c. bind() ___ d. sendto() 2. Which of the following structures are embedded within an inode structure? a. struct socket b. struct sock c. neither one d. both 3. The struct sock is created as a result of a call to a. socket() b. bind() c. connect() d. sendto() 4. The sk->num field is overloaded. Describe what it may represent and under what conditions it does so. 5. During the socket creation operation what value(s) is/are used as the lookup key(s) for finding the proper transport level protocol (struct inet_protosw) descriptor. 6. The UDP port allocation algorithm guarantees that the port that is allocated will be a. The hash queue that has the b. The shortest existing hash least amount of active traffic queue. c. The hash queue from which a port has been least recently allocated. 7. The value of "udp_port_rover" must take on values in EXACTLY which of the following ranges. a. The range of legitimate b. The port numbers [0 - 1023] hash queue indices [0-128] c. The port numbers [0-65535] d. none of the above 8. During a UDP bind operation a. If the socket is not already b. Any existing connection is connected inet_autoconn() is reset to null. called to connect it. c. The connection status is not altered. 9. During a UDP connect operation a. If the socket is not already b. Any existing bind status is bound inet_autobind() is reset to null called to bind it. c. The bind status is not altered. 10. During a UDP sendto operation a. If the socket is not already b. Any existing bind status is bound inet_autobind() is reset to null called to bind it. c. The bind status is not altered. 11. During a UDP sendto operation, the data to be transmitted is copied from user space to kernel space a. Before the call to b. During the call to ip_build_xmit() ip_build_xmit() c. After return from ip_build_xmit() 12. During a UDP sendto operation for an unconnected socket, routing of the packet takes place a. Before the call to b. During the call to ip_build_xmit() ip_build_xmit() c. After return from ip_build_xmit() 13. Under precisely what conditions must ip_build_xmit_slow() be used? 14. Is it possible for a process to be forced to sleep() during a UDP send? If so describe the precise conditions under which this might happen.