49
Rrjetet Kompjuterike Modelet referuese OSI dhe TCP/IP Ligjerues: Selman Haxhijaha

Rrjetet Kompjuterike - Selman Haxhijaha · Aplikacioni Prezantimit Sesionit Transporti Rrjet it Data -Linkut Fizik e Të mundësoj qasje në resurse të rrjetit pn, n, e s, t hëm

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Rrjetet Kompjuterike

Modelet referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Objektivat

bull Historiku i zhvillimit teuml modelit referues OSIbull Shtateuml Shtresa teuml modelit OSIbull Enkapsulimi i teuml dheumlnavebull Historiku i zhvillimit teuml modelit referues TCPIPbull Krahasimi neuml mest teuml modeleve referuese OSI dhe

TCPIPbull Protokollet e kateumlr shtresave teuml modelit TCPIPbull Veccedilorit e protokollit TCP dhe UDPbull Roli dhe funksioni i protokollit IPbull Funksioni i protokollit ARP

Ligjerues Selman Haxhijaha

Historiku i modelit referues OSI

bull Zhvillimet e para neuml fusheumln e rrjetave kompjuterike janeumlpeumlrcjellur me njeuml konfuzion dhe pa organizim

bull Peumlr ta adresuar problemin e rrjetave jokompatibileorganizata ISO ka paraqitur modelin referues OSI (Open Systems Interconnection)

bull Modeli i referimit OSI eumlshteuml njeuml kornizeuml abstrakte qeumlpeumlrdoret peumlr teuml shpjeguar se si informata udheumlton neumlpeumlrrrjeta kompjuterike

bull Modeli OSI peumlrdoret peumlr teuml vizualizuar se si teuml dheumlnat apo paketat e teuml dheumlnave transmetohen nga programet aplikative teuml deumlrguesit (si psh deumlrgimi i posteumls elektronike neumlpeumlrmjet Outlook) kalimi neumlpeumlrmjet mediumeve teuml ndrysheumlm teuml rrjetit (psh kabllos) te aplikacioni qeuml ndodhet neuml ndonjeuml kompjuter tjeteumlr pranues

Selman Haxhijaha

Historiku i modelit referues OSI

bull Funksionimin e rrjetit modeli OSI e ndaneuml neuml shtateuml shtresa

bull Ndarja e funksioneve teuml rrjetit neuml shtresa na ofronkeumlto avantazhendash Komunikimet neuml rrjet i ndan neuml pjeseuml teuml vogla dhe meuml teuml

thjeshtuara duke mundeumlsuar zhvillim meuml teuml lehteuml teumlteknologjive teuml reja

ndash Na lejon qeuml softueri dhe hardueri nga prodhuesit e ndrysheumlm teuml mund teuml komunikojeuml mes vete

ndash Mundeumlson standardizimin e komponenteumlve teuml rrjeteumls neumlmeumlnyreuml qeuml ato teuml zhvillohen dhe peumlrkrahen ngaprodhuesit e ndrysheumlm

Selman Haxhijaha

Shtresat e modelit OSI

bull Shtateuml shtresa teuml modelit referues OSI janeuml

Selman Haxhijaha

Aplikacioni

Prezantimit

Sesionit

Transporti

Rrjetit

Data-Linkut

Fizike

Teuml mundeumlsoj qasje neuml resurse teuml rrjetit

Beumlneuml peumlrkthimin ekriptimin dhe komprimimin e teuml dheumlnave

Vendos mireumlmban dhe terminon sesionet

Transmetim i besuesheuml ose jo i besuesheumlm Kontrolli i

gabimeve para ritransmetimit

Zhvendos paketat e teuml dheumlnave nga burimi deri tek destinacioni

Organizon paketat neuml korniza duke i transmetuar hap pas hapi

Transmeton bit-eumlt neumlpeumlr medium siguron specifikacione

mekanike dhe elektrike

Funksionet e tre shtresave meuml teuml larta teuml modelit OSI

Ligjerues Selman Haxhijaha

Funksionet e kateumlr shtresave teuml uleumlta teuml modelit OSI

Enkapsulimi teuml dheumlnave

bull Neuml meumlnyreuml qeuml teuml kemi komunikim teuml besuesheumlm neumlrrjeteuml informatat teuml cilat deumlrgohen duhet teuml vendosenneuml pako teuml menaxhueshme

bull Enkapsulimi eumlshteuml proces i mbeumlshtjelljes seuml teumldheumlnave me informatat shteseuml teuml protokolleve teumlndryshme para se ato teuml dheumlna teuml transmetohen neumlrrjet

bull Gjateuml enlapsulimit secila shtreseuml e modelit OSI vendosinformata shteseuml qeuml janeuml karakteristikeuml e protokolleveqeuml veprojneuml neuml ateuml shtreseuml

Ligjerues Selman Haxhijaha

Procesi i Enkapsulimit

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Objektivat

bull Historiku i zhvillimit teuml modelit referues OSIbull Shtateuml Shtresa teuml modelit OSIbull Enkapsulimi i teuml dheumlnavebull Historiku i zhvillimit teuml modelit referues TCPIPbull Krahasimi neuml mest teuml modeleve referuese OSI dhe

TCPIPbull Protokollet e kateumlr shtresave teuml modelit TCPIPbull Veccedilorit e protokollit TCP dhe UDPbull Roli dhe funksioni i protokollit IPbull Funksioni i protokollit ARP

Ligjerues Selman Haxhijaha

Historiku i modelit referues OSI

bull Zhvillimet e para neuml fusheumln e rrjetave kompjuterike janeumlpeumlrcjellur me njeuml konfuzion dhe pa organizim

bull Peumlr ta adresuar problemin e rrjetave jokompatibileorganizata ISO ka paraqitur modelin referues OSI (Open Systems Interconnection)

bull Modeli i referimit OSI eumlshteuml njeuml kornizeuml abstrakte qeumlpeumlrdoret peumlr teuml shpjeguar se si informata udheumlton neumlpeumlrrrjeta kompjuterike

bull Modeli OSI peumlrdoret peumlr teuml vizualizuar se si teuml dheumlnat apo paketat e teuml dheumlnave transmetohen nga programet aplikative teuml deumlrguesit (si psh deumlrgimi i posteumls elektronike neumlpeumlrmjet Outlook) kalimi neumlpeumlrmjet mediumeve teuml ndrysheumlm teuml rrjetit (psh kabllos) te aplikacioni qeuml ndodhet neuml ndonjeuml kompjuter tjeteumlr pranues

Selman Haxhijaha

Historiku i modelit referues OSI

bull Funksionimin e rrjetit modeli OSI e ndaneuml neuml shtateuml shtresa

bull Ndarja e funksioneve teuml rrjetit neuml shtresa na ofronkeumlto avantazhendash Komunikimet neuml rrjet i ndan neuml pjeseuml teuml vogla dhe meuml teuml

thjeshtuara duke mundeumlsuar zhvillim meuml teuml lehteuml teumlteknologjive teuml reja

ndash Na lejon qeuml softueri dhe hardueri nga prodhuesit e ndrysheumlm teuml mund teuml komunikojeuml mes vete

ndash Mundeumlson standardizimin e komponenteumlve teuml rrjeteumls neumlmeumlnyreuml qeuml ato teuml zhvillohen dhe peumlrkrahen ngaprodhuesit e ndrysheumlm

Selman Haxhijaha

Shtresat e modelit OSI

bull Shtateuml shtresa teuml modelit referues OSI janeuml

Selman Haxhijaha

Aplikacioni

Prezantimit

Sesionit

Transporti

Rrjetit

Data-Linkut

Fizike

Teuml mundeumlsoj qasje neuml resurse teuml rrjetit

Beumlneuml peumlrkthimin ekriptimin dhe komprimimin e teuml dheumlnave

Vendos mireumlmban dhe terminon sesionet

Transmetim i besuesheuml ose jo i besuesheumlm Kontrolli i

gabimeve para ritransmetimit

Zhvendos paketat e teuml dheumlnave nga burimi deri tek destinacioni

Organizon paketat neuml korniza duke i transmetuar hap pas hapi

Transmeton bit-eumlt neumlpeumlr medium siguron specifikacione

mekanike dhe elektrike

Funksionet e tre shtresave meuml teuml larta teuml modelit OSI

Ligjerues Selman Haxhijaha

Funksionet e kateumlr shtresave teuml uleumlta teuml modelit OSI

Enkapsulimi teuml dheumlnave

bull Neuml meumlnyreuml qeuml teuml kemi komunikim teuml besuesheumlm neumlrrjeteuml informatat teuml cilat deumlrgohen duhet teuml vendosenneuml pako teuml menaxhueshme

bull Enkapsulimi eumlshteuml proces i mbeumlshtjelljes seuml teumldheumlnave me informatat shteseuml teuml protokolleve teumlndryshme para se ato teuml dheumlna teuml transmetohen neumlrrjet

bull Gjateuml enlapsulimit secila shtreseuml e modelit OSI vendosinformata shteseuml qeuml janeuml karakteristikeuml e protokolleveqeuml veprojneuml neuml ateuml shtreseuml

Ligjerues Selman Haxhijaha

Procesi i Enkapsulimit

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Historiku i modelit referues OSI

bull Zhvillimet e para neuml fusheumln e rrjetave kompjuterike janeumlpeumlrcjellur me njeuml konfuzion dhe pa organizim

bull Peumlr ta adresuar problemin e rrjetave jokompatibileorganizata ISO ka paraqitur modelin referues OSI (Open Systems Interconnection)

bull Modeli i referimit OSI eumlshteuml njeuml kornizeuml abstrakte qeumlpeumlrdoret peumlr teuml shpjeguar se si informata udheumlton neumlpeumlrrrjeta kompjuterike

bull Modeli OSI peumlrdoret peumlr teuml vizualizuar se si teuml dheumlnat apo paketat e teuml dheumlnave transmetohen nga programet aplikative teuml deumlrguesit (si psh deumlrgimi i posteumls elektronike neumlpeumlrmjet Outlook) kalimi neumlpeumlrmjet mediumeve teuml ndrysheumlm teuml rrjetit (psh kabllos) te aplikacioni qeuml ndodhet neuml ndonjeuml kompjuter tjeteumlr pranues

Selman Haxhijaha

Historiku i modelit referues OSI

bull Funksionimin e rrjetit modeli OSI e ndaneuml neuml shtateuml shtresa

bull Ndarja e funksioneve teuml rrjetit neuml shtresa na ofronkeumlto avantazhendash Komunikimet neuml rrjet i ndan neuml pjeseuml teuml vogla dhe meuml teuml

thjeshtuara duke mundeumlsuar zhvillim meuml teuml lehteuml teumlteknologjive teuml reja

ndash Na lejon qeuml softueri dhe hardueri nga prodhuesit e ndrysheumlm teuml mund teuml komunikojeuml mes vete

ndash Mundeumlson standardizimin e komponenteumlve teuml rrjeteumls neumlmeumlnyreuml qeuml ato teuml zhvillohen dhe peumlrkrahen ngaprodhuesit e ndrysheumlm

Selman Haxhijaha

Shtresat e modelit OSI

bull Shtateuml shtresa teuml modelit referues OSI janeuml

Selman Haxhijaha

Aplikacioni

Prezantimit

Sesionit

Transporti

Rrjetit

Data-Linkut

Fizike

Teuml mundeumlsoj qasje neuml resurse teuml rrjetit

Beumlneuml peumlrkthimin ekriptimin dhe komprimimin e teuml dheumlnave

Vendos mireumlmban dhe terminon sesionet

Transmetim i besuesheuml ose jo i besuesheumlm Kontrolli i

gabimeve para ritransmetimit

Zhvendos paketat e teuml dheumlnave nga burimi deri tek destinacioni

Organizon paketat neuml korniza duke i transmetuar hap pas hapi

Transmeton bit-eumlt neumlpeumlr medium siguron specifikacione

mekanike dhe elektrike

Funksionet e tre shtresave meuml teuml larta teuml modelit OSI

Ligjerues Selman Haxhijaha

Funksionet e kateumlr shtresave teuml uleumlta teuml modelit OSI

Enkapsulimi teuml dheumlnave

bull Neuml meumlnyreuml qeuml teuml kemi komunikim teuml besuesheumlm neumlrrjeteuml informatat teuml cilat deumlrgohen duhet teuml vendosenneuml pako teuml menaxhueshme

bull Enkapsulimi eumlshteuml proces i mbeumlshtjelljes seuml teumldheumlnave me informatat shteseuml teuml protokolleve teumlndryshme para se ato teuml dheumlna teuml transmetohen neumlrrjet

bull Gjateuml enlapsulimit secila shtreseuml e modelit OSI vendosinformata shteseuml qeuml janeuml karakteristikeuml e protokolleveqeuml veprojneuml neuml ateuml shtreseuml

Ligjerues Selman Haxhijaha

Procesi i Enkapsulimit

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Historiku i modelit referues OSI

bull Funksionimin e rrjetit modeli OSI e ndaneuml neuml shtateuml shtresa

bull Ndarja e funksioneve teuml rrjetit neuml shtresa na ofronkeumlto avantazhendash Komunikimet neuml rrjet i ndan neuml pjeseuml teuml vogla dhe meuml teuml

thjeshtuara duke mundeumlsuar zhvillim meuml teuml lehteuml teumlteknologjive teuml reja

ndash Na lejon qeuml softueri dhe hardueri nga prodhuesit e ndrysheumlm teuml mund teuml komunikojeuml mes vete

ndash Mundeumlson standardizimin e komponenteumlve teuml rrjeteumls neumlmeumlnyreuml qeuml ato teuml zhvillohen dhe peumlrkrahen ngaprodhuesit e ndrysheumlm

Selman Haxhijaha

Shtresat e modelit OSI

bull Shtateuml shtresa teuml modelit referues OSI janeuml

Selman Haxhijaha

Aplikacioni

Prezantimit

Sesionit

Transporti

Rrjetit

Data-Linkut

Fizike

Teuml mundeumlsoj qasje neuml resurse teuml rrjetit

Beumlneuml peumlrkthimin ekriptimin dhe komprimimin e teuml dheumlnave

Vendos mireumlmban dhe terminon sesionet

Transmetim i besuesheuml ose jo i besuesheumlm Kontrolli i

gabimeve para ritransmetimit

Zhvendos paketat e teuml dheumlnave nga burimi deri tek destinacioni

Organizon paketat neuml korniza duke i transmetuar hap pas hapi

Transmeton bit-eumlt neumlpeumlr medium siguron specifikacione

mekanike dhe elektrike

Funksionet e tre shtresave meuml teuml larta teuml modelit OSI

Ligjerues Selman Haxhijaha

Funksionet e kateumlr shtresave teuml uleumlta teuml modelit OSI

Enkapsulimi teuml dheumlnave

bull Neuml meumlnyreuml qeuml teuml kemi komunikim teuml besuesheumlm neumlrrjeteuml informatat teuml cilat deumlrgohen duhet teuml vendosenneuml pako teuml menaxhueshme

bull Enkapsulimi eumlshteuml proces i mbeumlshtjelljes seuml teumldheumlnave me informatat shteseuml teuml protokolleve teumlndryshme para se ato teuml dheumlna teuml transmetohen neumlrrjet

bull Gjateuml enlapsulimit secila shtreseuml e modelit OSI vendosinformata shteseuml qeuml janeuml karakteristikeuml e protokolleveqeuml veprojneuml neuml ateuml shtreseuml

Ligjerues Selman Haxhijaha

Procesi i Enkapsulimit

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresat e modelit OSI

bull Shtateuml shtresa teuml modelit referues OSI janeuml

Selman Haxhijaha

Aplikacioni

Prezantimit

Sesionit

Transporti

Rrjetit

Data-Linkut

Fizike

Teuml mundeumlsoj qasje neuml resurse teuml rrjetit

Beumlneuml peumlrkthimin ekriptimin dhe komprimimin e teuml dheumlnave

Vendos mireumlmban dhe terminon sesionet

Transmetim i besuesheuml ose jo i besuesheumlm Kontrolli i

gabimeve para ritransmetimit

Zhvendos paketat e teuml dheumlnave nga burimi deri tek destinacioni

Organizon paketat neuml korniza duke i transmetuar hap pas hapi

Transmeton bit-eumlt neumlpeumlr medium siguron specifikacione

mekanike dhe elektrike

Funksionet e tre shtresave meuml teuml larta teuml modelit OSI

Ligjerues Selman Haxhijaha

Funksionet e kateumlr shtresave teuml uleumlta teuml modelit OSI

Enkapsulimi teuml dheumlnave

bull Neuml meumlnyreuml qeuml teuml kemi komunikim teuml besuesheumlm neumlrrjeteuml informatat teuml cilat deumlrgohen duhet teuml vendosenneuml pako teuml menaxhueshme

bull Enkapsulimi eumlshteuml proces i mbeumlshtjelljes seuml teumldheumlnave me informatat shteseuml teuml protokolleve teumlndryshme para se ato teuml dheumlna teuml transmetohen neumlrrjet

bull Gjateuml enlapsulimit secila shtreseuml e modelit OSI vendosinformata shteseuml qeuml janeuml karakteristikeuml e protokolleveqeuml veprojneuml neuml ateuml shtreseuml

Ligjerues Selman Haxhijaha

Procesi i Enkapsulimit

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Funksionet e tre shtresave meuml teuml larta teuml modelit OSI

Ligjerues Selman Haxhijaha

Funksionet e kateumlr shtresave teuml uleumlta teuml modelit OSI

Enkapsulimi teuml dheumlnave

bull Neuml meumlnyreuml qeuml teuml kemi komunikim teuml besuesheumlm neumlrrjeteuml informatat teuml cilat deumlrgohen duhet teuml vendosenneuml pako teuml menaxhueshme

bull Enkapsulimi eumlshteuml proces i mbeumlshtjelljes seuml teumldheumlnave me informatat shteseuml teuml protokolleve teumlndryshme para se ato teuml dheumlna teuml transmetohen neumlrrjet

bull Gjateuml enlapsulimit secila shtreseuml e modelit OSI vendosinformata shteseuml qeuml janeuml karakteristikeuml e protokolleveqeuml veprojneuml neuml ateuml shtreseuml

Ligjerues Selman Haxhijaha

Procesi i Enkapsulimit

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Funksionet e kateumlr shtresave teuml uleumlta teuml modelit OSI

Enkapsulimi teuml dheumlnave

bull Neuml meumlnyreuml qeuml teuml kemi komunikim teuml besuesheumlm neumlrrjeteuml informatat teuml cilat deumlrgohen duhet teuml vendosenneuml pako teuml menaxhueshme

bull Enkapsulimi eumlshteuml proces i mbeumlshtjelljes seuml teumldheumlnave me informatat shteseuml teuml protokolleve teumlndryshme para se ato teuml dheumlna teuml transmetohen neumlrrjet

bull Gjateuml enlapsulimit secila shtreseuml e modelit OSI vendosinformata shteseuml qeuml janeuml karakteristikeuml e protokolleveqeuml veprojneuml neuml ateuml shtreseuml

Ligjerues Selman Haxhijaha

Procesi i Enkapsulimit

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Enkapsulimi teuml dheumlnave

bull Neuml meumlnyreuml qeuml teuml kemi komunikim teuml besuesheumlm neumlrrjeteuml informatat teuml cilat deumlrgohen duhet teuml vendosenneuml pako teuml menaxhueshme

bull Enkapsulimi eumlshteuml proces i mbeumlshtjelljes seuml teumldheumlnave me informatat shteseuml teuml protokolleve teumlndryshme para se ato teuml dheumlna teuml transmetohen neumlrrjet

bull Gjateuml enlapsulimit secila shtreseuml e modelit OSI vendosinformata shteseuml qeuml janeuml karakteristikeuml e protokolleveqeuml veprojneuml neuml ateuml shtreseuml

Ligjerues Selman Haxhijaha

Procesi i Enkapsulimit

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Procesi i Enkapsulimit

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Modeli referues TCPIP

bull E ka marreuml emrin nga dy protokolle peumlrbeumlreumlse

ndash TCP ndash Transmission Control Protocol

ndash IP ndash Internet Protocol

bull Eumlshteuml krijuar si rezultat i keumlrkeseumls seumlDepartamentit teuml mbrojtjes seuml ShBA-ve

bull Versioni prezent i modelit referues TCPIPeumlshteuml standardizuar peumlr hereuml teuml fundit neuml vitin1980

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresat e modelit TCPIP

Ligjerues Selman Haxhijaha

bull Modeli referues TCPIP peumlrbeumlhet nga kateumlr shtresa

Aplikacioni

Transporti

Interneti

Qasje neuml Rrjeteuml

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Ngjashmeumlriteuml e keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Teuml dy modele peumlrdorin shtresa peumlr teuml peumlrshkruar

funksionimin e rrjetavendash Teuml dy modele kaneuml shtreseumln e aplikacionit edhe pse

kjo shtreseuml ka funksione teuml ndryshmendash Teuml dy modele kaneuml ngjashmeumlri neuml shtresat e

transportit dhe teuml rrjetavendash Teuml dy modele presupozojneuml se paketat komutohen

Kjo neumlnkupton se paketat individuale mund teumludheumltojneuml neumlpeumlr rrugeuml teuml ndryshme peumlr teuml arritur deritek destinacioni i njeumljteuml

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Krahasimi neuml mest teuml modeleve referuese OSI dhe TCPIP

bull Dallimet neuml mes teuml keumltyre dy modeleve peumlrfshijneumlkeumlto elementendash Modeli TCPIP grupon funksionet e OSI shtreseumls seuml

prezantimit dhe sesionit neuml shtreseumln e aplikacionit

ndash Modeli TCPIP grupon funksionet e OSI shtreseumls seumlData-Linkut dhe shtreseumls Fizike neuml shtreseumln e Qasjesneuml Rrjeteuml

ndash Neuml shikim teuml pareuml modeli TCPIP duket meuml i thjeshteumlpasi ka meuml pak shtresa

ndash Protokollet e modelit TCPIP janeuml standarde rreth teumlcileumlve eumlshteuml zhvilluar i gjitheuml Interneti i soteumlm

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Lidhja neuml mes teuml shtresave teuml TCPIP modelit dhe protokolleve

Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Aplikacionit

bull Shtresa e Aplikacionit eumlshteuml peumlrgjegjeumlse peumlr proceset eprezantimit enkodimit dhe kontrollit teuml dialogut dhesesioneve neuml mes teuml hosteve komunikuese

bull Protokollet qeuml veprojneuml neuml shtreseumln e Aplikacionit teumlmodelit TCPIP janeumlndash Protokolli DNS (ang Domain Name Service)

ndash Protokolli HTTP (ang Hypertext Transfer Protocol)

ndash Protokolli SMTP (ang Simple Mail Transfer Protocol)

ndash Protokolli FTP (ang File Transfer Protocol)

ndash Protokolli Telnet

bull Keumlto protokolle definohen nga RFC teuml organizateumls IETF

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli DNS

bull DNS eumlshteuml njeuml sistem i cili peumlrdoret neuml Internet peumlr teuml peumlrkthyer emrate domeneve neuml IP adresat e tyre peumlrkateumlse

bull Sot neuml Internet ekzistojneuml mbi 200 sajte teuml domeneve teumlnivelit teuml larteuml (ang Top-Level-Domains)

bull Disa prej keumltyre domeneve teuml nivelit teuml larteuml janeumlndash al ndash Shqipeumlria

ndash us ndash Shtetet e Bashkuara teuml Amerikeumls

ndash edu ndash sajtet akademike neuml ShBA

ndash ac ndash sajtet akademike neuml Mbreteumlrineuml e Bashkuar

ndash com ndash sajtet komerciale

ndash gov ndash sajtet qeveritareuml

ndash net ndash sheumlrbimet e rrjetave

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Funksionon ngushteuml me ueb-in apo www dhe peumlrdor gjuheumln formatuese HTML

bull HTML specifikon lokacionet peumlr vendosjen e tekstit fajllave dhe objekteve qeuml duhet teuml transferohen nga uebserveri tek shfletuesi

bull Hyperlinku eumlshteuml njeuml objekt fjaleuml fotografi apo frazeuml neumlnjeuml Ueb faqe qeuml e drejton shfletuesin neuml njeuml ueb faqe teumlre

bull Zakonisht ueb faqja neuml vete peumlrmban lokacionin e adreseumls teuml quajtur URL (ang Uniform Resource Locator)

Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli HTTP

bull Pjeseumlt e njeuml URL-je janeuml

bull Shembull httpwwwubt-uninetfakulteti ku pjeseumlt

ndash ldquo http rdquo - i tregon shfletuesit se cilin protokoll duhet ta peumlrdor

ndash ldquowwwrdquo - paraqet sistemin ndeumlrlidheumls peumlr dokumentethipertekst

ndash ldquoubt-uninetrdquo - paraqet domenin e ueb faqes

ndash ldquofakultetirdquo - identifikon lokacionin e follderit neuml server neuml teumlcileumln ndodhet ueb faqja

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Peumlrdoret nga email serveri peumlr teuml deumlrguar apo pranuarmesazhet elektronike

bull Transporton mesazhet elektronike neuml formatin ASCII duke peumlrdorur protokollin TCP teuml shtreseumls seumlTransportit

bull Peumlrdoruesi peumlrdor aplikacione peumlr marrjen e emaileumlve nga server

bull Dy protokolle

ndash POP3 (Post Office Protocol 3)

ndash IMAP (Internet Message Access Protocol 4)

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli SMTP

bull Portet standarde me aneuml teuml cileumlve funksionojneumlkeumlto protokole janeuml

ndash SMTP funksionon neuml portin 25

ndash POP3 funksionon neuml portin 110

ndash IMAP4 funksionon neuml portin standard SSL 993

bull Neuml aspektin e siguriseuml protokolli SMTP nuk naofron shumeuml mbrojtje madje nuk e ka teumlimplementuar as elementin e autentifikimit

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli FTP

bull Ky protokoll eumlshteuml peumlrgjegjeumls peumlr transferimin e fajllavenga serveri tek klienti dhe anasjelltas

bull Protokolli FTP shfryteumlzon sheumlrbimet e protokollit TCP eumlshteuml protokoll i besuesheumlm i orientuar neuml ndeumlrlidhje

bull Qeumlllimet bazeuml teuml FTP protokollit janeumlndash Teuml mundeumlsojeuml shkeumlmbimin e fajllave neuml mes teuml hosteve teuml largeumlt

ndash Teuml mundeumlsojeuml pavareumlsineuml e formateve teuml fajllave neuml mes teuml hostit teumlklientit dhe serverit

ndash Teuml mundeumlsojeuml transferimin efikas teuml fajllave neumlpeumlr rrjetat TCPIP

bull FTP transferimin e teuml dheumlnave e beumln neuml modin ASCII apo modin binar

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Aplikacionit Protokolli Telnet

bull Eumlshteuml protokoll i cili mundeumlson qasje nga distanca neumlkompjuter neumlpeumlrmjet Internetit apo rrjetave lokale

bull Telneti i mundeumlson peumlrdoruesve teuml qasen neuml hostin e caktuar dhe pastaj teuml ekzekutojneuml komandat e ndryshme

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli TCP

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Shtresa e Transportit neuml modelin TCPIP eumlshteumlidentike peumlr nga peumlrgjegjeumlsit dhe funksioni me shtreseumln e Transportit teuml modelit OSI

bull Detyra kryesore e shtreseumls seuml transportit eumlshteuml rregullimi iqarkullimit teuml informatave nga burimi e deri tek destinacionineuml meumlnyreuml teuml besueshme dhe teuml sakteuml duke peumlrdorur mekanizmat ndash dritaret rreumlshqiteumlse (ang sliding windows)

ndash numrat sekuencialeuml

ndash Konfirmimet

bull Shtresa e Transportit vendos lidhje logjike neuml mes teuml hosteveneuml dy pika teuml ndryshme komunikuese neuml rrjeteuml

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Modeli TCPIP Shtresa e Transportit

bull Protokollet qeuml janeuml pjeseuml e shtreseumls seuml Transportit informatat e marra nga shtresa e Aplikacionit i segmentojneuml dhe i bashkojneumlneuml njeuml varg teuml dheumlnash (ang data stream) teuml gatshme peumlrtransmetim

bull Neuml shtreseumln e Transportit veprojneuml dy protokolle

ndash Transmission Control Protocol ndash TCP ndash protokoll i besuesheumlm dhe i sifurt gjateuml transmetimit

ndash User Datagram Protocol ndash UDP ndash protokoll i thjesht i shpejt dhe jo i besuesheumlm gjateuml transmetimit

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

bull TCP eumlshteuml peumlrgjegjeumls peumlrndash Segmentimin e teuml dheumlnavendash I orientuar neuml ndeumlrlidhje (vendos qarqet virtuale lidhje tre

kaheumlshe)ndash Besueshmeumlrineuml (numrat sekuencial dhe konfirmime)ndash Kontrollimin e rrjedheumls seuml trafikut (dritare rreumlshqiteumlse)

Shtresa e Transportit

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Formati i Segmentit teuml TCP-seuml

Ligjerues Selman Haxhijaha

bull TCP Segmenti peumlrbeumlhet nga TCP Headeri i peumlrcjellur nga teuml dheumlnatbull Segmentet peumlrdoren peumlr teuml vendosur lidhjen teuml bartin teuml dheumlnat dhe

konfirmimet

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Vendosja e qarkut virtual

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

bull Peumlr teuml vendosur lidhjen dy hosteumlt komunikues duhet teuml sinkronizojneuml TCP numrat sekuencial fillestar teuml tyre

bull Numrat sekuencial peumlrdoren peumlr teuml ndjekur rradhitjen e paketave dhe peumlr trsquou siguruar se asnjeuml paket nuk eumlshteuml humbur gjateuml transmetimit

TCP virtual circuit ndash Three way handshake0 15 16 31

16-bit Source Port Number

16-bit Destination Port Number

32-bit Sequence Number

32 bit Acknowledgement Number

4-bit Header

Length

6-bit

(Reserved)

U

R

G

A

C

K

P

S

H

R

S

T

S

Y

N

F

I

N

16-bit Window Size

16-bit TCP Checksum

16-bit Urgent Pointer

Options (if any)

Data (if any)

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

VazhdonhellipPacket 1 source 192168110 dest19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Initial sequence number = 12952

TCP Next expected Seq number= 12953

TCP 1 = SYN

TCP Window = 8192

TCP Checksum = 1303 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 2 source 19216811 dest 192168110

TCP ----- TCP header -----

TCP Source port = 524

TCP Destination port = 1026

TCP Initial sequence number = 2744080

TCP Next expected Seq number= 2744081

TCP Acknowledgment number = 12953

TCP 1 = SYN

TCP Window = 32768

TCP Checksum = D3B7 (correct)

TCP Maximum segment size = 1460 (TCP Option)

Packet 3 source 192168110 dest 19216811

TCP ----- TCP header -----

TCP Source port = 1026

TCP Destination port = 524

TCP Sequence number = 12953

TCP Next expected Seq number= 12953

TCP Acknowledgment number = 2744081

TCP 1 = Acknowledgment

TCP Window = 8760

TCP Checksum = 493D (correct)

TCP No TCP options

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

bull Me madheumlsineuml e dritareve (Window size) i referoheminumrit teuml bajteumlve teuml transmetuar para se teuml pranojmeumlmesazhin e pranimit

bull Qeumlllimi i mekanizmit teuml dritareve (windowing) eumlshteuml qeumlteuml peumlrmireumlsoj kontrollin e rrjedheumls dhe besueshmeumlriseuml

bull Kontrollimi i rrjedheumls seuml trafikut peumlrdor mekanizmin e dritareve reumlshqiteumlse (sliding windows)

bull Mekanizmi ldquosliding windowrdquo mundeumlson qeuml pajisjet teumlnegociojneuml madheumlsin e dritares peumlr teuml deumlrguar meumlshumeuml se 1 bajt gjateuml njeuml transmetimi

Kontrolli i rrjedheumls seuml trafikut neuml TCP

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Dritaret rreshqiteumlse TCP (Sliding Window)

Burimi duhet teuml pranojkonfirmimin ACK 51 para se teuml deumlrgoj meuml shumeuml teuml dheumlna

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Dritaret rreshqiteumlse TCP (Sliding Window)

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Dritaret rreumlshqiteumlse TCP

Nuk mund teuml pranoj dritaren me keumlteuml madheumlsi

Porti i burimit = 3551 Hosti im

Porti i Destinacionit = 80Server

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

bull Numrate e porteve peumlrdoren peumlr teuml peumlrcjellur sesionet e shumeumlta qeuml ndodhin neuml mes teuml dy hosteve

bull Identifikohen nga numrat me vlereuml 16-biteumlshe (rangu 0 -65535)ndash Portet e definuara dhe standardizuara (0 ndash 1023)ndash Portet e regjistruara (1024 ndash 49151)ndash Portet dinamike dhe private (49152 ndash 65535)

Numrat e porteve neuml shtreseumln e Transportit

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Transportit ndash Protokolli UDP

bull Disa veccedilori teuml protokollit UDP

ndash eumlshteuml protokoll i thjeshteuml

ndash paraprakisht nuk vendos lidhje me destinacionin

ndash beumln shkeumlmbimin e teuml dheumlnave pa garantuar se ato do teuml arrijneumlneuml destinacion

bull Disa nga protokolle teuml shtreseumls seuml Aplikacionit qeumlpeumlrdorin sheumlrbimet e protokollit UDP janeuml TFTP SNMP DHCP DNS

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Formati i segmentit UDP

Ligjerues Selman Haxhijaha

Porti i burimit (16) Porti i destinacionit (16)

32 bit

Gjateumlsia (16) Checksum (16)

Teuml dheumlnat

8 Bajt

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Internetit

bull Disa nga funksionet themelor janeuml

ndash deumlrgimi i paketave nga hosti neuml host

ndash rrugeumltimi i paketave nga burimit deri tek destinacionit

ndash menaxhimi i gabimeve teuml paketave gjateuml transmetimit

bull Protokollet qeuml veprojneuml neuml shtreseumln e Internetit teumlmodelit TCPIP janeuml

ndash Protokolli i Internetit ndash IP (ang Internet Protocol)

ndash Protokolli i kontrollit teuml mesazheve neuml Internet ndash ICMP (ang Internet Control Message Protocol)

ndash Protokolli i zbeumlrthimit teuml adreseumls ndash ARP (ang Address Resolution Protocol)

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli IP

bull Eumlshteuml mekanizeumlm transmetues jo i besuesheumlm me karakteristikat e laquopeumlrpjekje meuml teuml mireuml teuml deumlrgimit(ang best-effort delivery)raquo

bull Njeumlsia transmetuese e teuml dheumlnave neuml shtreseumln e Internetit quhet paketeuml

Ligjerues Selman Haxhijaha

Ver (4) Gjateumlsi e peumlrgjithshme (16)

Identifikimi (16)

TTL (8)

32 bit

Adresa e burimit (32)

Adresa e destinacionit (32)

HELEN(4) Tipi i Sheumlrbimit (8)

Zhvendosje e Fragmentimit (13)Flag (3)

Protokol (8) Vlereuml Kontrolli e Hederit (16)

Opsionale (40 bajt)

Teuml dheumlnat

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ICMP

bull ICMP (Internet Control Message Protocol) eumlshteuml protokollmenaxhimi dhe i ofron sheumlrbimet lajmeumlruese IP-seuml

bull Roli i protokollit ICMP eumlshteuml qeuml ti ofroj hostit informata rrethproblemeve teuml mundshme neuml rrjeteuml

bull Peumlrdoret nga Ping tracert etj

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Shtresa e Internetit ndash Protokolli ARP

bull Protokolli ARP e beumlneuml zbeumlrthimin e adreseumlsharduerike teuml hostit nga IP adresa e njohur e tij

Ligjerues Selman Haxhijaha

Rrjeta LAN

192168121192168120

IP adresa 192168121 Harduer Adresa

IP adresa 192168121 Harduer Adresa aacc1122bb22

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Shtresa e Qasjes neuml Rrjet definon meumlnyreumln e transmetimit teumlkornizave neumlpeumlr mediume teuml rrjeteumls siccedil janeuml kabllot koaksiale fibrat optike ccediliftoret e peumlrdredhura prej bakri transmetim pa tela etj

bull Protokollet qeuml peumlrfshihen neuml shtreseumln e qasjes neuml rrjeteuml janeumlEthernet FDDI ATM

bull Madheumlsia e peumlrgjithshme e njeuml kornize teuml Ethernet-it duhet teumljeteuml nga 64 bajt e deri neuml 1518 bajt

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Modeli TCPIP - Shtresa e Qasjes neuml Rrjet

bull Preambula ndash peumlrdoret peumlr sinkronizim

bull Peumlrkufizuesi i fillimit teuml kornizeumls ndash SFD - sekuenceuml 8 biteumlsheme konfigurim 10101011 qeuml tregon fillimin e kornizeumls

bull MAC adresa ndash adresa fizike unike e hostit

bull TipiGjateumlsia ndash vlera e keumlsaj fushe eumlshteuml 1500 batj

bull Teuml dheumlnat ndash qeuml transmetohen neuml rrjeteuml

bull Sekuenca e kontrollit teuml kornizeumls - FCS - peumlrmban vlereumln 32 biteumlshe teuml CRC-seuml peumlr kalkulim teuml gabimeve neuml kornizeuml gjateumltransmetimit

Ligjerues Selman Haxhijaha

Preambula (7 bajt)

SFD(1 bajt)

Destinacioni (6 bajt)

Burimi(6 bajt)

TipiGjateumlsia(2 bajt)

Teuml dheumlnat(40 ndash 1500 bajt)

FCS(4 bajt)

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues OSI eumlshteuml njeuml arkitektureuml peumlrshkruese peumlrrrjetat kompjuterike standardet e teuml cilit ndihmojneuml neumlarritjen e kompatibilitetit dhe ndeumlrveprim meuml teuml madhndeumlrmjet teknologjive teuml prodhueseve teuml ndrysheumlm

bull Gjithashtu modeli referues OSI peumlrdor shtateuml shtresa peumlr teumlshpjeguar komunikimin neuml rrjeteuml

bull Enkapsulimi eumlshteuml njeuml proces gjateuml seuml cilit teuml dheumlnatmbeumlshtillen me headerin e njeuml protokolli teuml caktuar para se paketa teuml transmetohet neumlpeumlr rrjeteuml

bull Modeli referues TCPIP emrin e ka marreuml nga shkurtesa e dyprotokolleve Transmission Control Protocol Internet Protocol

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Peumlrmbledhje

bull Modeli referues TCPIP eumlshteuml zhvilluar ngaDepartamenti Amerikan i Mbrojtjes ndash DOD

bull Modeli referues TCPIP ka kateumlr shtresa

bull Modeli referues TCPIP kombinon 3 shtresa teuml larta teuml modelit OSI neuml shtreseumln e veteuml teuml Aplikacionit

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Referenceuml

bull Selman Haxhijaha ndash Rrjetat Kompjuterike

UBT 2012

bull httpselmanhaxhijahawordpresscomcategoryrrjetat-kompjuterike

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha

Pyetje

Ligjerues Selman Haxhijaha