Вы находитесь на странице: 1из 3

ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD

(Department of Computer Science)

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”.

Course: Network Programming (3487) Semester: Spring, 2010


Level: Graduate Total Marks: 100
Pass Marks: 40
ASSIGNMENT No. 1
(Units: 1–3)

Note: All questions carry equal marks.

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.2 (a) Differentiate between connectionless and connection oriented communication.


(b) What is communication protocol? Describe the characteristics of TCP, UDP,
IPX, and SPX protocols. (20)

Q.3 Write a program/function in your favorite programming language that performs


following operations:
(a) Display IP address of your machine
(b) Check if it is broadcast address or not
(c) Display your PC name (20)

Q.4 (a) Differentiate between IPv4 and IPv6.


(b) Discuss the advantages and disadvantages of these IP versions. What
happened to version 5? (20)

Q.5 Write short notes on the following:


i) Ports and their types
ii) Different server strategies
iii) Clint-server model (20)
ASSIGNMENT No. 2
(Units: 4–8)

Note: All questions carry equal marks.

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.3 (a) Describe programming techniques of QOS-enabled network.


(b) What happens with our ping program if we ping the all-hosts multicast
group, 224.0.0.1 on a multihomed host? (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)

3487 Network Programming Credit Hours: 3 (2+1)


Recommended Book:
Network Programming for Microsoft Windows: Second Edition by Anthony Jones

Course Outlines:
Unit No. 1 Winsock & its Design
♦ Initializing and Creating Winsock
♦ Connectionless, Connection Oriented Winsock and APIs

2
♦ Protocol Characteristics, WinSock Catalog

Unit No. 2 Internet Protocol


♦ IPv4 & IPv6
♦ Addressing and Name Resolution
♦ Writing IP Version _ Independent Programs

Unit No. 3 WinSock I/O Methods


♦ Socket Modes, Socket I/O Models
♦ I/O Model Consideration

Unit No. 4 Scalable WinSock Applications


♦ APIs and Scalabilities
♦ Scalable Server Architecture
♦ Server Strategies

Unit No. 5 Socket Options and Ioctls


♦ Socket Options
♦ Ioctlesocket, WSAIostl and WSANSPIostl

Unit No. 6 Registration and Name Resolution


♦ Name Space Model
♦ Registering a Service
♦ Querying a Service

Unit No.7 Winsock Programming


♦ TCP and UDP Client Server
♦ TCP and UDP Day Time Servicing
♦ TCP and UDP echo

Unit No. 8 Generic Quality of Service


♦ QOS and WinSock
♦ Terminating QOS
♦ Programming QOS

Unit No. 9 RAW Sockets


♦ RAW Sockets Creation
♦ ICMP
♦ Using IP Header Include Option

Вам также может понравиться