0% found this document useful (0 votes)
33 views

CN Assignment 5

1) UDP is a connectionless protocol that does not require establishing a connection. It simply sends packets to destination addresses without acknowledgment. 2) The TCP header contains fields for source/destination ports, sequence numbers, acknowledgment numbers, data size, and control flags to establish and manage connections. 3) Connection-oriented protocols like TCP establish and maintain connections, ensuring reliable delivery, while connectionless protocols like UDP simply send packets without acknowledgment.

Uploaded by

wishfor178
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

CN Assignment 5

1) UDP is a connectionless protocol that does not require establishing a connection. It simply sends packets to destination addresses without acknowledgment. 2) The TCP header contains fields for source/destination ports, sequence numbers, acknowledgment numbers, data size, and control flags to establish and manage connections. 3) Connection-oriented protocols like TCP establish and maintain connections, ensuring reliable delivery, while connectionless protocols like UDP simply send packets without acknowledgment.

Uploaded by

wishfor178
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

UDP Aevices alang

ysplain
oith he nat
headen B Uthe checkaum.
pstudo
e

des puotoal in te tanspa.d


connectienles
(alled ou UDPt does amost nothig
onding packeta blw applitations, letirg
bayoud,
arpiations build tui'y top as,
o!
braded
dos a nooy 18 appl^ to Seud
Qatigonam' nithod boving to
uletea
estaltish a Connecti on,

henley
sesve fo
Tu hoo,panta
’vohinthe usce aival destinatonsnackes
soúce
a'UPacket ainves,ita payload
when att oceo to thy doitiraio
handed toliteuotes
port Loler the:8INDinitive

Over just. ing a:


uDP Sousce aund
Thé naain, Valiu' 9.
P is t addi Hon
>itaout, porteldiu, eachinoing.
hatito do oih
Woudd bot tnoi
packet

cati on'
-31bib
L

Destination out
ouce Taut UD Pcheckum

nedod oas
theSous
a tepy ust be ont 'bock tß
the
B
CoPding tu sounte pset teld bom
aegmant Sendiv
te sepy tau'speeity
bau
Aerathld ineudes the &-byte ky
SJh uDP
Cove hoden.
65, 515,,uch .
>Jhe may uath no. that oiu ft n't6 bi
Man the Laia it
becoue ,
alsopaovidedl fo
* Anoptional Cluckaun
ntra aeuability, and a
e heacder Hie doda
loncephal IP pseudokatd e . feld et o
on the closum edt oim
ths compudati tdd sfadded'
zero and tha data
ih its uigthis anoly
additBonal eexo byte
a, algauithm'isirdimply to add-up
he chckium
the te sum
to fake eiene's Complarert
duksun
sincey a hop PA coinciksne ) óne'4
ConipEentnt aithmeie a true computed ,
al s

Ba bitc

Souxce adtres
natinah
Detinak bn oddaea
0o0600o Pootocsl-17UDPJwgtt

) taplat
the TcP kugmant faumat githdiagn
Sousice PatiiDesti natisu Foyt
(iSeqjuan,nymbo
AcknoSledqmet wune

Uogent poiNn
Opians 9, a mee 32bitinoslg
Data. lop hona),
>Ju founte pat avo Desthati on paut jelda ide
. he local end pol nti Q the onneeti bn
lu it hont'P oddacn
6
SATCA Sast
.46-bit niqe evd point
toge thes
Jhe Sou ce aud destichon eud pomta
ldextg te connection:
ideuti tien ia colled a
o 5 tuple beo
SIhis conneetion iamation : te
pieces
it Cowi t Q fiveUCe TP aud so Ce pat,
uotocd CTe ,sD
pat
destinaton TP and des tinatin
bit):- he þaut umben ty
oce Post (t6

bita):-The paut ho the


b) Destivation Port (l6

Seauonce Num bo{36bita) -this tiold outa


9 byte in His Soga
Ye sequene n9 § tu tirst dta
Acknowledqemunt Numben l32 biti- tu ACRJ
d) Covttaiy the vale the
À set, this tiold
humber tat the sender
t the
Nenk deguence to seceive

Speciies tu si|e te
)Dota set(4bia):- word Thiu indicate
TP he adey n 3-bit
Khone Hhe data begins Conttol the
stote

connehouThis aq inade
TCP
and beloiYuw7 § the data in pres
)UR4LUanert):- Tnducates itqet
LAcknouoledqment)- Dt iudicat es that Hho
nmben i
lnesledgment
psH (POSHD:Requast
rpUst)::Requestate steaivi gTCP to
dgta to the eceivivg applcaton ~teli
po RST(Res
iv) Res the Conn Bch¡n hw

to initiate áconneckon:
t eud Acta tinn
risndcot

tl6bit):- Specites tho siae


indoo Sie
fu eceive wbtncos,
doto the
Serder Can
acknow ledonent
headey Cnd dota.4
chdg
pointenél6bita);-TT thei wRG.kog
angent point to tio
pointa
sety this, jeld seqnenilsloh.
bute i he
Thiese aso optioral elda,
) Opti ons }
ay Sie (M SS),Tmestamps,

Poddivg' a9-bit. tounday


g0-bit tourdaviUdee
hendex erd om
load
trasmitted a' saliaki,
TÇP topoy ide,
gautnat
Dha, eul e aloa chueckeol Aeli veysunhirq
n. ) D). butea b| appi ati oy
at's eonntel bu an DPn
Don
the Connechon len aud CownechionOrient e
3) &plain
Paotocolain Travsport layen
Povided to tao tppon layen by
data trans ni sion senuiCo to
aud Cort -elecivé aoeves in te ogpi(odon ll,a
Ues noxmal
pooui ded by
hauduoao oithin t
Solhoase aud hoyk
das thi i Cled as the trantD
ay en that

anihTOF aoeituoo types 6


oeituoo wtevica , olnAi
Oriented' ad eon nehiontens 3viCes vi,'hae

$Connecti on tew Bootocol i


less praoto Ce Jsuch as 0DPho.
SIna onnecti on det up i estoGcished belana
oodicated ath a
data trarismisi n and mat
treat eat indepindenty
faeh pucketu suoah tta destivafio
tate a dilleont ou to eatjot kom the
SThoner 2 no acknouwledq emort
Stecieve
-Dt typcally wed móre outical thah
tronm sjon u
ie dataU streang Modia,
suliallity) such y

onnechion - Driented PaotocólL coontti


*
as TCP,a toqical
thi paotocoli duch datat
n
bo th pase agrer on posoaes
poamat e sud as
Sequence numb
Data us then ttonsmitt ed over thi etalfit hs
lonneution ,and medhanis mu an ena- etectiot
cutvansmisi on aud o control
Tuvt is ackno led qhrent saip t trom tg
suceiv er aud dat i quauteld to bldei
in nd er aud withou e9u0rs
’t'
t ed ta appliahou haa
yolialility NPatear ty ase cucial
Such
Host 1 Hostd
ppicati on
Appicahion Appuatibn
(ayerGenpt (or Se ion)
adios tan port Cayen

Tranport Tsahsport
eity fron entitt
Pectocol

Tranotl.
Netook Layer ntaxjace'Netoork tayen
neoork

on' Etatishment TCP uaing


9) Erplatn Connechi
tanshate
0.::
Aa- Thoee-Qay sequance number,x, aud'senNd
SHastlrchoose a nt
t29a coutaiuinà
CoNINECT lbN RGOUES.T
to hastd.
X
odaoledgvg, nena en
het cheice
data Seqwmant that. it senda'*a
in he tirst Aato
HostlW39 hot:2 Host oldypliat Most 2
CRSn )

Host , 40 est
obdolupicad,

Old duplioteAtk'2j"
REJET (ACA -4)

’Jhe frst seqment iwdelayed


an old
dupliate
connecton:
CoJNELTIOn REQUEStjom oithothatl's}
a eád avocive ct host a -Lodee
derdivg hatl
’ Host o 1eact toteia scament by
an AcK sq mavt in eect &sting
Connechion : ottemo tt to estakl
host &
sohen host l xejt sleaiye that it oas
a Conneion host
Cud abardons
taicked a delayed dupu o
He onneeisu:
dela,4o aypicate does o
u tiiy oay,a
amag
REQUESt and an, HÇK au(Bing
CoNNECT oN
asound invtau abnet Nirblad

and seplios to itir


AtAF His poivt, it s Cusia to ooa2e that host o
paopesec ing y as th intial, seqyuen ce
host Q to
ast tragc
well,tuatuo segment Coyndaini ng seqjeence n
ockno teoq mentsto q aotiU ineistent
> When tha, Second delaned dearnento cooives
at host
than y tells hostt 2 that tu,to is
an

The impasdart tlig the


Combh old'" seomends, that can causesetup by
DRotocol tto aandBnghave a onnecron
wo oati it
ohioarti
accidant ohich
oay ar hoka tbestalkish Cohneti
-TCP wes this 3 timestamp o ued, to adond
y10ithin 4 connect, on, & it wil not
no so hata
Yho 32- bËt seausnca mun packet ilimo iejea
wap within the sSemaniCond Conneeios
ton aigobit, pon tin.to TCp thate oas
mechaism 'a
This
Conhection.xalease.

OteP Connetn
steasmay to eyiis
invves dyeral' pasties a inoama
comuniatig
thate both
conniétiön
quirel'ebtasushand alea
The sthps: 4
Connectis Can be upes
Staus
closeo No tomecion, iachue ov peuding
SYNReDAohnetion auguet has qyived; Loait
ACk

sENT|Thu apucactont ;has ave jo open a


SYn,dewT|
SyN,
co nnocton
tSTABL 1S HED the
he naual data tans enol
AT) Tu apptition hai sait it, kuslud
FINJAT)
FIN wAIT 2)te,oe "sde iesogd to uluae

sidos have tried to' dise(simty


Both sdos
CLosi N4 Both
TThe othen, side has intatd a nilaag:
CLose LofT
LAST: AAk yoait'ton. ay, pokeb to die
Connection stanta in he dose tote:1
’ tach it does aithea' pauive
leaves hot stat, ohen .4?
actve,open CloNnNECi
cpenlL1sTE N) "an an opposite ee, aohnactiy
da does te tat beomes'sTABL GH6)
Ho othey sid t
i estaiswd andCan be intiatio by
Connecon gulease tHh Stat uhsns to
CLosED.

thetcp conneckiei
The geranal outine
poies toN
TC conteioh his'coulo,
be triggead by au appicaton enplaciy Cles ing 9
cuntli
b)TCP Connectien Tewnt nation - Tu tcp lay
Ahe intiati na aide Serda a fIN (FiNsh) aeq wun
closeho connecion. t searmont ontai n tee
tha senoler hay no
moee data to tYanmit

Seqon,ta otecelvi Mg TC p Laye serds an


acbaole damord CACK) back to ehe lerdon ycon
the secept he FIN
Ayten serding tu Ack the
9uck§vi ng TCP Caun alo intite ita osn FN
the the 8endor s4d
segmert"tm
ah ACK back to he necivor, Conkr mirog the
tecupt Receiver i- Simài
e).Acknowledq rnontQ FIN fiom
ivg the flN segment
upon e Colv
to step3 upon the y beude Sonda an HCk Ack
te
fom the eceivey,
axk to the eceivor, eoutming Both sioles
ejod -
+) Connetim haitivg dutn o h thoy
tate actbuoledq med
Timo a t
eytey a hat the the o thda side
ennre
Loart to egmat sent by
FiN & ating ponid halge
fhe ste ceived Thi
mento
mente tomCauing
hay been
as
auy
dlel seq
seq
Peaevet slbsecuaAt ionnechiou.
any
Congusien in Closwa' Afrn the TiME- WAIt
OnNatisn osesi to 7CP
Fral
9) enpires, e qch siole ully
Poio lonnetm saloasing ay 1t:

You might also like