To Learn the Basics of Socket Programming Using TCP Sockets s1

DOC/LP/01/28.02.02

/ LESSON PLAN / LP- IT2351
LP Rev. No: 03
Date: 31.12.14
Page 01 of 06
SubCode& Name : IT2351 NETWORK PROGRAMMING AND MANAGEMENT Unit: I Branch: IT Semester: VI

Unit syllabus:

ELEMENTARY TCP SOCKETS

Introduction to Socket Programming – Overview of TCP/IP Protocols –Introduction to Sockets – Socket address Structures – Byte ordering functions – address conversion functions – Elementary TCP Sockets – socket, connect, bind, listen, accept, read, write, close functions – Iterative Server – Concurrent Server.

Objective:

To learn the basics of socket programming using TCP sockets.

Session
No / Topics to be covered / Time / Ref / Teaching Aids
1 / Overview of TCP/IP Protocols-UDP and TCP -TCP Connection Establishment and Termination., / 50 m / 1(29-37) / LCD
2,3 / TCP state transition diagram-TIME_WAIT State. / 100m / 1(37-41) / LCD
4 / Introduction to Sockets - Socket Address Structures - IPv4, IPv6 and Generic socket address structure. / 50 m / 1(57-62) / LCD
5 / Comparison of IPv4, IPv6 socket address structure,Value-Result arguments. / 50 m / 1(62-66) / LCD
6 / Byte Ordering Functions,Network Byte0 m Ordered,Host Byte ordered
Byte Manipulation Functions,little Endian,Big Endian / 50 m / 1(66-70) / LCD
LCD
7 / Address conversion functions - inet_aton, inet_addr and inet_ntoa functions; inet_pton, and inet_ntop functions; sock_ntop and related functions; readn, writen and readline functions / 50 m / 1(70-82) / LCD
8 / Elementary TCP Sockets – Socket function, connect function,Bind function and listen function.accept, read, write, close, fork and exec functions. / 50 m / 1(85-107) / LCD
9 / Iterative Server, Concurrent Server. / 50 m / 1(101)
1(104-106) / LCD

Unit syllabus:

APPLICATION DEVELOPMENT

TCP Echo Server – TCP Echo Client – Posix Signal handling – Server with multiple clients – boundary conditions: Server process Crashes, Server host Crashes, Server Crashes and reboots, Server Shutdown – I/O multiplexing – I/O Models – select function – shutdown function – TCP echo Server (with multiplexing) – poll function – TCP echo Client (with Multiplexing).

Objective:

To learn about echo server and client and handling of Posix signal.

/ LESSON PLAN / LP- IT2351
LP Rev. No: 03
Date: 31.12.14
Page 03 of 06
SubCode& Name : IT2351 NETWORK PROGRAMMING AND MANAGEMENT Unit: III Branch: IT Semester: VI

Unit syllabus:

SOCKET OPTIONS, ELEMENTARY UDP SOCKETS

Socket options – getsocket and setsocket functions – generic socket options – IP socket options – ICMP socket options – TCP socket options – Elementary UDP sockets – UDP echo Server – UDP echo Client – Multiplexing TCP and UDP sockets – Domain name system – gethostbyname function – Ipv6 support in DNS – gethostbyaddr function – getservbyname and getservbyport functions.

Objective:

To learn the various ways to get and set the options for a socket and to learn the basics of UDP sockets.

/ LESSON PLAN / LP- IT2351
LP Rev. No: 03
Date: 31.12.14
Page 04 of 06
SubCode& Name : IT2351 NETWORK PROGRAMMING AND MANAGEMENT Unit: IV Branch: IT Semester: VI

Unit syllabus:

ADVANCED SOCKETS

Ipv4 and Ipv6 interoperability – threaded servers – thread creation and termination – TCP echo server using threads – Mutexes – condition variables – raw sockets – raw socket creation – raw socket output – raw socket input – ping program – trace route program.

Objective:

To enhance the knowledge of threads for developing high performance scalable applications.

Session
No / Topics to be covered / Time / Ref / Teaching Aids
28 / IPv4 and IPv6 Interoperability - IPv4 client and IPv4 Server. / 50 m / 1(261-270) / LCD
29 / IPV6 client and IPv6 server, Address – Testing Macros / 50 m / 1(261-270) / LCD
30 / Threaded servers – thread creation and termination. str_cli function using threads. / 50 m / 1(601-607) / LCD
31 / TCP echo server using threads.Thread Specific data / 50 m / 1(607-611) / LCD
32 / Mutexes, condition Variables. / 50 m / 1(622-631) / LCD
33 / Raw sockets, raw socket creation, raw Socket output, raw socket input,ICMPv6 Type Filtering / 50 m / 1(655-661) / LCD
34 / Ping program. / 50 m / 1(661-672) / LCD
35 / Trace route program. / 50 m / 1(672-701) / LCD
36 / Study of TCP and UDP performance in NS2 / 50 m / Web / LCD
/ LESSON PLAN / LP- IT2351
LP Rev. No: 03
Date: 31.12.14
Page 05 of 06
SubCode& Name : IT2351 NETWORK PROGRAMMING AND MANAGEMENT Unit: V Branch: IT Semester: VI

Unit syllabus:

SIMPLE NETWORK MANAGEMENT

SNMP network management concepts – SNMP management information – standard MIB’s – SNMPv1 protocol and Practical issues – introduction to RMON, SNMPv2 and SNMPv3.

Objective:

To understand simple network management protocols and practical issues.

Session
No / Topics to be covered / Time / Ref / Teaching Aids
37 / SNMP network management concepts Network management Architecture-Proxies -SNMP related standards. / 50 m / 4(103-137),
4(71-83) / LCD
38 / Structure of management information - MIB structure, object syntax. / 50 m / 4(85-102) / LCD
39 / Object syntax, limitation of MIB objects. / 50 m / 4(102-114) / LCD
40 / Standard MIB’s - MIB-II – system, interfaces, at, ip, icmp, tcp, udp, egp, dot3. / 50 m / 4(121-156) / LCD
41 / Simple network management protocol V1 – Basic concepts. / 50 m / 4(143-198),
4(163-173) / LCD
42 / Protocol specification of SNMP. / 50 m / 4(208-211),
4(173-190) / LCD
43 / Practical issues of SNMP. / 50 m / 4(192-202) / LCD
44 / Introduction to Remote Network Monitoring (RMON)- control of remote monitors. / 50 m / 4(321-342),
4(209-248) / LCD
45 / Introduction to SNMP v2 and SNMP v3. / 50 m / 4(229-317),
4(331-356)
4(447-482) / LCD
/ LESSON PLAN / LP- IT2351
LP Rev. No: 03
Date: 31.12.14
Page 06 of 06
SubCode& Name : IT2351 NETWORK PROGRAMMING AND MANAGEMENT Unit: I,II,III,IV,V Branch: IT Semester: VI

Course Delivery Plan:

Week / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15
I II / I II / I II / I II / I II / I II / I II / I II / I II / I II / I II / I II / I II / I II / I II
Units / 1 / 2 / 3 / 4 / 5

TEXT BOOKS:

1.  W. Richard Stevens, “Unix Network Programming Vol-I”, Second Edition, Pearson Education, 1998.

2.  Mani Subramaniam, “Network Management: Principles and Practice“, Addison Wesley”, First Edition, 2001.

REFERENCES:

3. D.E. Comer, “Internetworking with TCP/IP Vol- III”, (BSD Sockets Version), Second Edition, Pearson Education, 2003.

4.William Stallings, “SNMP, SNMPv2, SNMPv3 and RMON 1 and 2”,Third Edition, Addison Wesley, 1999.

Prepared by / Approved by
Signature
Name / Ms. B.Lalithambigai
Ms. C.Silambarasi / Dr.D.Balasubramanian
Designation / AP/IT / HOD/ IT
Date / 31.12.14 / 31.12.14