

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lab assignment was submitted to Sir Nauman Shamim at Pakistan Institute of Engineering and Applied Sciences, Islamabad (PIEAS) for Computer Networks course. It includes: Messages, Client, Protocols, Semantics, Dialogue, Server, Email, Code, Application, Layer
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Date: 3/16/ About this lab In this lab you are provided with code which works in layers, the code can be used as client or as server as it has functions for sending and receiving data, however simultaneous sending receiving feature is not present. The lab is about working of protocols independently and working in layers with other protocol (that you will learn a little in this lab and more in next labs). Taks‐ 1 Separate the messages sent by client from message sent by server and form two sets of messages, after this try to find out the rules used for exchanging these messages, also define the meaning of messages sent by client for server and meanings/semantics of messages sent by server for client. Now answer the question How many protocols are there working? Discuss your answer as soon as you find it out. Taks‐ 2 Following is a dialogue (actual) between an email client and an email server, Your task is to understand the protocol and try to implement this situation in code by using the provided code. S: 220 hamburger.edu C: HELO crepes.fr S: 250 Hello crepes.fr, pleased to meet you C: MAIL FROM: S: 250 [email protected]... Sender ok C: RCPT TO: S: 250 [email protected] ... Recipient ok C: DATA S: 354 Enter mail, end with "." on a line by itself C: Do you like ketchup? C: How about pickles? C:. S: 250 Message accepted for delivery C: QUIT S: 221 hamburger.edu closing connection
Task‐ 03 Either recall your previous lab and use the system you divided into layer or consider a new one, your task is to develop a set of messages for application layer, define rule to exchange these messages, and define the semantics of these messages for sender and receiver, implement the protocol using the code provided and submit along with the answers of following questions. Submission A report consisting of A ‐Solution of the lab tasks either completed in lab or completed after lab B‐ Answers of the following question