Data communication Part 2-Computer Networks-Lab Assignment, Exercises of Computer Networks

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

2011/2012

Uploaded on 07/08/2012

nademm
nademm 🇵🇰

5

(2)

4 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
DataCommunicationLab02

Date:3/16/2010
Aboutthislab
Inthislabyouareprovidedwithcodewhichworksinlayers,thecodecanbeusedasclientorasserver
asithasfunctionsforsendingandreceivingdata,howeversimultaneoussendingreceivingfeatureisnot
present.Thelabisaboutworkingofprotocolsindependentlyandworkinginlayerswithotherprotocol
(thatyouwilllearnalittleinthislabandmoreinnextlabs).
Taks1
Separatethemessagessentbyclientfrommessagesentbyserverandformtwosetsofmessages,after
thistrytofindouttherulesusedforexchangingthesemessages,alsodefinethemeaningofmessages
sentbyclientforserverandmeanings/semanticsofmessagessentbyserverforclient.Nowanswerthe
question
Howmanyprotocolsarethereworking?
Discussyouranswerassoonasyoufinditout.
Taks2
Followingisadialogue(actual)betweenanemailclientandanemailserver,Yourtaskistounderstand
theprotocolandtrytoimplementthissituationincodebyusingtheprovidedcode.
S:220hamburger.edu
C:HELOcrepes.fr
S:250Hellocrepes.fr,pleasedtomeetyou
C:MAILFROM:<[email protected]>
S:250[email protected]...Senderok
C:RCPTTO:<[email protected]>
S:250[email protected]...Recipientok
C:DATA
S:354Entermail,endwith"."onalinebyitself
C:Doyoulikeketchup?
C:Howaboutpickles?
C:.
S:250Messageacceptedfordelivery
C:QUIT
S:221hamburger.educlosingconnection
docsity.com
pf2

Partial preview of the text

Download Data communication Part 2-Computer Networks-Lab Assignment and more Exercises Computer Networks in PDF only on Docsity!

Data Communication Lab‐ 02

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

docsity.com

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

  1. Is it necessary that sender and receiver follow the same set of messages?, if your answer is no you don’t need to answer the next question.
  2. Why sender and receiver should have same set of messages?
  3. Can your protocol work independently, i.e. without help of any other protocol?,
  4. Are there more than one protocols being used by the protocol you developed in lab? name them or identify what they could be
  5. Your comments and suggestion about lab

docsity.com