Академический Документы
Профессиональный Документы
Культура Документы
WARNING
1. PLAGIARISM OR HIRING OF GHOST WRITER(S) FOR SOLVING
THE ASSIGNMENT(S) WILL DEBAR THE STUDENT FROM AWARD
OF DEGREE/CERTIFICATE, IF FOUND AT ANY STAGE.
2. SUBMITTING ASSIGNMENTS BORROWED OR STOLEN FROM
OTHER(S) AS ONE’S OWN WILL BE PENALIZED AS DEFINED IN
“AIOU PLAGIARISM POLICY”.
Q.1 (a) What is Winsock? Describe the basic techniques for writing Winsock
applications.
(b) How two or more applications communicate on the same machine or across a
network? (20)
Q.1 (a) Describe the socket options and write a program to sending and receiving
data packet on network using the ioctl function?
(b) Describe the functionalities of the Ioctlsocket, WSAIoctl and WSANSPIoctl
functions. (20)
Q.2 (a) How your service is registered with the name space provider?
(b) How a client can query the name space for a given service so that the client
can obtain information about the service for communication purposes?
(c) Write a program of simple daytime server and client which initialize socket,
send & receive data packets and terminate the socket. (20)
Q.4 If we specify the subnet-directed broadcast address to ping program, it works. That
is, a broadcast ICMP echo request is sent as a link-layer broadcast even though we
do not set the SO_BROADCAST socket option. Why? Explain. (20)
Q.5 (a) Explain with example the uses and working of ICMP protocol.
(b) What is the use of header include options and how these options are used to
build own protocol header. (20)
Course Outlines:
Unit No. 1 Winsock & its Design
♦ Initializing and Creating Winsock
♦ Connectionless, Connection Oriented Winsock and APIs
2
♦ Protocol Characteristics, WinSock Catalog