Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CSci 553 Lab 5 Exercise Solutions - Prof. Derek Harter, Lab Reports of Computer Systems Networking and Telecommunications

Solutions to exercise 5 of lab 5 in csci 553, fall 2007. Answers to questions about the history of ip versions, identifying rfcs for ip, udp, and tcp protocols, and information about the python socketserver's asynchronous serving methods. Students are expected to create a lab05.txt file with their answers and submit it.

Typology: Lab Reports

Pre 2010

Uploaded on 08/19/2009

koofers-user-vd5
koofers-user-vd5 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Fall 2007 CSci 553 Lab 5
Exercise 5
create a directory labs/lab05 and add it to your repository.
You will use this to create a file called lab05.txt with your answers to the
following questions.
Make sure you add and check in your lab05.txt answers when you are
complete with the assignment.
Exercise 5.1
We have mentioned IP versions 4 and 6. What happened to version 5 and
what were versions 0, 1, 2 and 3? (Hint: Find the IANA's “Internet Protocol”
registery at http://www.iana.org and find the Internet Protocol version number
document which describes what the version numbers mean in the IP header)
Exercise 5.2
You can find and read the RFC's for all of the various Internet Protocols at
this site http://www.rfc-editor.org/rfc.html. What is the RFC that describes
the IP protocol? Which RFC lays out the basic UDP and TCP protocols? It
might be useful to read a bit of these RFC's, especially about the TCP
protocol.
Exercise 5.3
There is a python standard library framework for creating server applications
called SocketServer. The python SocketServer supports asynchronous
behavior using separate forked processes as we discussed in class. It can also
use another method for serving multiple asynchronous sockets. What is this
other method?
Exercise 5.4
The unpv13e code for the UNP book contains a directory of simple echo
client/servers called tcpcliserv. The server is actually a asynchronous server
that uses unix fork to create new child processes to handle new incoming
connections asynchronously. Modify the tcpserv01.c to turn it back into a
synchronous server (call your modifications tcpservsynch.c). Also modify the
Makefile to build your synchronous server. Place your c source and Makefile
in the repository and submit it for this assignment.

Partial preview of the text

Download CSci 553 Lab 5 Exercise Solutions - Prof. Derek Harter and more Lab Reports Computer Systems Networking and Telecommunications in PDF only on Docsity!

Fall 2007 CSci 553 Lab 5 Exercise 5  create a directory labs/lab05 and add it to your repository.  You will use this to create a file called lab05.txt with your answers to the following questions.  Make sure you add and check in your lab05.txt answers when you are complete with the assignment. Exercise 5.  We have mentioned IP versions 4 and 6. What happened to version 5 and what were versions 0, 1, 2 and 3? (Hint: Find the IANA's “Internet Protocol” registery at http://www.iana.org and find the Internet Protocol version number document which describes what the version numbers mean in the IP header) Exercise 5.  You can find and read the RFC's for all of the various Internet Protocols at this site http://www.rfc-editor.org/rfc.html. What is the RFC that describes the IP protocol? Which RFC lays out the basic UDP and TCP protocols? It might be useful to read a bit of these RFC's, especially about the TCP protocol. Exercise 5.  There is a python standard library framework for creating server applications called SocketServer. The python SocketServer supports asynchronous behavior using separate forked processes as we discussed in class. It can also use another method for serving multiple asynchronous sockets. What is this other method? Exercise 5.  The unpv13e code for the UNP book contains a directory of simple echo client/servers called tcpcliserv. The server is actually a asynchronous server that uses unix fork to create new child processes to handle new incoming connections asynchronously. Modify the tcpserv01.c to turn it back into a synchronous server (call your modifications tcpservsynch.c). Also modify the Makefile to build your synchronous server. Place your c source and Makefile in the repository and submit it for this assignment.