Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

MINISTRY OF HTGHER EDUCATTON & SCTENTTFTC RESEARpH

I , AL IRAQIA UNIVERSITY
COLLEGE OF ENGINEERING
Network ENGINEERING DEPARTMENT
FINAL EXAM 2OL7-2OL8
SECOND ATTEMPT- SEMESTER I

STAGE: Level four


SUBJECT: Networks Protocols
EXAMI NER: Dr.satea hikmat
(Ni-,t tr)
NOTE: ANSWER FOUR QUESTION l2l Time:3 hours

-7'.-
15 Degrees
Q1:- Define only five terms:

HTTP, Content-Length, Stateless protocol, Symmetric key crypto, ARP and Application-Layer
Protocols.

Q2:- Answer the following:


1.5 Degrees
a) Web servers use cookies for many different purposes, briefly clarified?
b) What is queuing delay and when its value equals zerc?

Answer only two: 15 Degrees


Q3:-
a) [hatthe different LastByteRcvd?' ' :
betrveen LastByteRead and ", i
b) Suppose that host A is sending a large file to host B over a TCP connection, how does the
connection use the variable RcvWindow to friovide the flow control service?
c) Compare between GET and POST? (five point only)

Q4:- An error deteition technique based on cyclic redundancy check (CRC) codes, the received message
information string M(x) ='1011000, and the Generator code C(x) = 1011. Check received
message error or not.

15 Degrees

Q5:- Suppose some user enters this URL: www. . School.edu/Department/home.index (contains text,
refgrencds to 5 jpeg images). Use the non-persistent HTTP method to explain the process.-

(t S ,n-k r)

\ !
I /
I \-- l
-.
,L->.
t
rl
!
I
ivunrsr,{v oF HTGHER EDUcATtoN & sctENTIFtc REsEARcH
AL TRAQIA UNIVERSITY
COLLEGE OF ENGINEERING

Network ENGINEERING DEPARTMENT


FINAI EXAM 20L7-2018
SECOND ATTEMPT- SEMESTER I

STAGE: Level four


SUBJECT: Networks Protocols
EXAMINER: Dr.satea hikmat

NOTE: ANSWER FOUR QUESTION Answer (2)

Ql- Define only five terms:


Define the following terms: HTTP, Processing delay, Stateless protocol, Symmetric key crypto and
Application layer.

I - HTTP defines the structure of these messages and how the client and server exchange the
messages.

2-TheContent-Length: header line indicates the number of bytes in the object being

3- Stateless Protocol: HTTP server maintains no information about the clients, HTTP is said to be
a stateless Protocol.

4- Symmetric key crypto: sender, receiver keys identical public-key crypto: encryption key public,
decryption key secret (Private).

5- ARP: The Address Resolution Protocol (ARP) is a communications protocol used for
discovering the link layer address associated with a given IPv4 address.

6 Application layer: The application layer is responsible for supporting network applications. The
appliiation layer includes many protocols, including HTTP to support the Web, SMTP to support
electronic mail, and FTP to support file transfer.

e2- a) Web servers use cookies for many different purposes, briefly clarified?
,l

1 If a server requires authentication biit doeSh't want to hassle (Disturbance) a user with a
usemame and password prompt every time the user visits the site, it can set a cookie.
2 lf a server wants to remember a usefs preferences so that it can provide targeted
advertisement during subsequent visits, it can set a cookie.
3 If a user is shopping at a site (e.g., buying several CDs), the server can use cookies to keep
track of the items that the user is purchasing, i.e., to create a virtual shopping cart'
g

b) What is queuing delay and when its value equals zero?


' At the queue, the packet experiences a queuing delay as it waits to be transmitted onto the link.
The queuing delay of a dpecific packet. will depend on the number of other, earlier-arriving
packets that are queued and waiting for transmission across the link; ttie delay of a given packet
can vary significantly from packet to packet. If the querie is ernpty and no other packet is
currently being transmitted, then our packet's queuing delay is zero.

Q3-

a) What the different between LastByteRead and LastByteRcvd?

LastByteRead: thre number of the last byte in the data stream read from the bufferby the application
process in B. '
LastByteRcvd - the number of the last byte in the data stream that has arrived from the network and
has been placed in the receive buffer at B. ,, ;

b) Compare between GET and POST? (five point only)

Cannct bebookrnarked

whenserdlrgdata,theGETmerhodadds No re*rktions
datatotheURL; andthe length of a UFI-G
U RL lergth G 2048 cltaraaers!

15a

passrdqrdsor other

3
I
,
t

c) Compare between Non-persistent and persistent connections.


Non-perqistent and persistent connections
Non.perslstent Pe?ststert
. HITP/I.,O . defaulttor lryTPll-l
. server parses request, . on same TCP connection:
responds, and closes TCP server, parses request,
responds, parses new
connection
request,..
. 2 RTTs to fetch each Client sends requests for
object all referenced objects as
. Each objecttransfer soon as it receives base
suffers from slow start HTM L.
Fewer RTTs and less slow
start.

Q4:-

An error on cyclic redundancy check (CRC) codes, the received


message string 1O11OOO, and the Generator code C(x) = 1011. Check
received r error or not.

Data unit 1011000 is divided bY


1010
Di{sor: 100 zerc6:3
{ His

usodlvlsorO0o0 91
ffi'fiu''*ihbo*
-

usa dvisor OO00


ffi;[ffi;msoileoo

lhe remainder obtained is 000; il means there is no effor.


1010
1T1'.t-/ 1 001 'l

Lettmostb'rt:O 0101
Olviso,:0000 -.+0000
r011
t 0l l
0000
no 6flOr

4
a

I
Q5:- Suppose some user enters this URL:. www. School.edu/Department/home.index (contains
text,
references to 5 jpeg images). Use the non-persistent HTTP
-.ihod to explain the process.

5u p pose use r e nters U R L vtnrw. Scfr ool.ed u/Depa rtmenftggg.lpglga


(corrtains text,
references to 5
jpeg images)
1a. hnp client initiates TCp
connection to http sen€r 1b. htb seruer at host www.
(process) at www. \_
School.edu. port 80 is
\- School_edu waiting forTCp

default for http sen€r. 4r",, connection, at port 80- "aocepts"


connection
J{ notifying ctient

ht$ cHent sends hfrp regnest

time
I

4. hEp seryer ctoses


TCP connection.

time
6, Steps {-5 repeatedfor
each of 5 jpeg objects

END...

r: oulluo dl ::
SLOZ$te

You might also like