1 / 25

OSI Transport Layer

OSI Transport Layer. Network Fundamentals – Chapter 4. Objectives. Transport Layer protocols and services TCP supports reliability TCP supports reassembly and manages data loss Communication between two processes using UDP. Transport Layer Role and Services.

Download Presentation

OSI Transport Layer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OSI Transport Layer Network Fundamentals – Chapter 4

  2. Objectives • Transport Layer protocols and services • TCP supports reliability • TCP supports reassembly and manages data loss • Communication between two processes using UDP

  3. Transport Layer Role and Services • Purpose of the Transport layer ... a zpracovává přijatá data pro využití v aplikacích. Připravuje data aplikací pro přenos přes síť ...

  4. Transport Layer Role and Services • Major functions of the transport layer Stará se o přenos dat mezi aplikacemi na zařízeních

  5. Transport Layer Role and Services Dva hlavní způsoby komunikace • Transport Layer Protocols UDP TCP Hlavně spolehlivě, ať na příjmu poskládáme přesně to, co bylo vysláno Hlavně rychle, občasná ztráta nevadí

  6. Transport Layer Role and Services Header (hlavička) je začátek bloku dat, nesoucí informace o tom bloku. • Characteristics of the UDP and TCP protocols • TCP trvá na • správném pořadí • doručení všeho • UDP nedbá na • správné pořadí • doručení všeho Proto je hlavička UDP mnohem kratší: potřebuje sdělit méně informací

  7. Transport Layer Role and Services • Port numbers in the TCP and UDP protocols • Čísla portů doplňují adresu. Určují • aplikaci, ke které data patří (např. 80 = HTTP, 110 = POP3) • počítač, ke kterému data patří

  8. Transport Layer Role and Services Socket = unique combination of IP address and port number identifies a particular process running on a specific host device Socket pair = source and destination IP addresses + port numbers identifies the conversation between two hosts • Port numbers in the TCP and UDP protocols

  9. Transport Layer Role and Services • Port numbers in the TCP and UDP protocols netstat – aplikace spouštěná z příkazového řádku. Ukáže běžící síťová spojení.

  10. Transport Layer Role and Services • TCP si segmenty očísluje, aby • mohly být poskládány ve stejném pořadí • se mohlo zkontrolovat, že se žádný neztratil • TCP se stará o řízení toku tak, aby se kvůli zácpám nic neztrácelo. • Segments in the transport layer • UDP nedbá na • správné pořadí • doručení všeho • zácpy po cestě

  11. Application and Operation of TCP Mechanisms • TCP header

  12. Application and Operation of TCP Mechanisms Klienti uvedou jako zdrojový port náhodné číslo (49152 - 65535), jako cílový port uvedou číslo služby, na kterou se obracejí. • Port numbers between clients and servers Server odpovídá na ty porty, které klienti uvedli jako zdrojové.

  13. Application and Operation of TCP Mechanisms Jsem tady. Dostal jsem tvůj segment č.100, pošli č.101. Číslo tohoto mého segmentu je 300. Chci s tebou mluvit. Pořadové číslo tohoto segmentu je 100. • Handshake in the establishment of TCP sessions Posílám segment č.101, pošli číslo 301. Takto si oba ve třech krocích ověří, že ten druhý tam je, může mluvit, a může poskytnout žádanou službu.

  14. Application and Operation of TCP Mechanisms FIN = Finish • Handshake in the terminationof TCP sessions Podobně se ve 2 x 2 krocích dohodnou na ukončení spojení.

  15. Managing TCP Sessions • TCP sequence numbers are used to reconstruct the data stream in the correct order Segmenty mohou jít různými cestami a dorazit v nesprávném pořadí. Podle pořadových čísel (sequence numbers) se znovu poskládají do správného pořadí.

  16. Managing TCP Sessions • Sequence numbers and acknowledgement numbers

  17. Managing TCP Sessions • Retransmission remedy for lost data

  18. Managing TCP Sessions Window size = rozměr okna = po kolika bajtech se očekává ACK = potvrzení • Window size, data loss and congestion • Tady poznal, že se cestou něco (1501-3000) ztratilo. Proto • si to vyžádá znovu • navrhne menší okno

  19. UDP Protocol Nenavazuje se spojení, nežádá se potvrzení

  20. UDP Protocol • Protokoly aplikační vrstvy, které používají UDP: • DNS = Domain Name System • SNMP = Simple Network Management Protocol • DHCP = Dynamic Host Configuration Protocol • RIP = Routing Information Protocol • TFTP = Trivial File Transfer Protocol • Online games • Když vyžádaná informace nedojde • vyžádá se znovu (DNS, DHCP) • nebo záleží spíš na rychlosti než úplnosti (hry, video)

  21. UDP Protocol • No reassembling PDUs at the destination 3 vypadla, 4-6 jsou ve špatném pořadí, ale jedeme dál. Kdybychom se pokoušeli o potvrzování a opravy, přišli bychom o víc.

  22. UDP Protocol • Port numbers identify a process, service, or application Chceš službu DNS? Dej číslo cílového portu 53. Chceš službu RADIUS? Dej číslo cílového portu 1812.

  23. UDP Protocol • Port numbers identify a process, service, or application Server odpovídá na ty porty, které klienti uvedli jako zdrojové.

  24. Summary

More Related