高級計算機(jī)網(wǎng)絡(luò) 傳輸層.ppt_第1頁
高級計算機(jī)網(wǎng)絡(luò) 傳輸層.ppt_第2頁
高級計算機(jī)網(wǎng)絡(luò) 傳輸層.ppt_第3頁
高級計算機(jī)網(wǎng)絡(luò) 傳輸層.ppt_第4頁
高級計算機(jī)網(wǎng)絡(luò) 傳輸層.ppt_第5頁
已閱讀5頁,還剩25頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、Lecture 5: The Transport Layer (Basic Principles),Advanced Computer Network,Yang Qin Department of Computer Science Shenzhen Graduate School Harbin Institute of Technology,The Transport Service,Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of Socket P

2、rogramming: An Internet File Server,Services Provided to the Upper Layers,The network, transport, and application layers.,Transport Service Primitives,The primitives for a simple transport service.,Transport Service Primitives (2),The nesting of TPDUs, packets, and frames.,Transport Service Primitiv

3、es (3),A state diagram for a simple connection management scheme. Transitions labeled in italics are caused by packet arrivals. The solid lines show the clients state sequence. The dashed lines show the servers state sequence.,Berkeley Sockets,The socket primitives for TCP.,Socket Programming Exampl

4、e:Internet File Server,Client code using sockets.,6-6-1,Socket Programming Example:Internet File Server (2),Server code using sockets.,Elements of Transport Protocols,Addressing Connection Establishment Connection Release Flow Control and Buffering Multiplexing Crash Recovery,Transport Protocol,(a)

5、Environment of the data link layer. (b) Environment of the transport layer.,Addressing,TSAPs, NSAPs and transport connections.,Connection Establishment,How a user process in host 1 establishes a connection with a time-of-day server in host 2.,Connection Establishment (cont.),Three protocol scenarios

6、 for establishing a connection using a three-way handshake. CR denotes CONNECTION REQUEST. (a) Normal operation, (b) Old CONNECTION REQUEST appearing out of nowhere. (c) Duplicate CONNECTION REQUEST and duplicate ACK.,Connection Release,Abrupt disconnection with loss of data.,Connection Release (2),

7、The two-army problem.,Connection Release (3),Four protocol scenarios for releasing a connection. (a) Normal case of a three-way handshake. (b) final ACK lost.,6-14, a, b,Connection Release (4),(c) Response lost. (d) Response lost and subsequent DRs lost.,6-14, c,d,Flow Control and Buffering,(a) Chai

8、ned fixed-size buffers. (b) Chained variable-sized buffers. (c) One large circular buffer per connection.,Multiplexing,(a) Upward multiplexing. (b) Downward multiplexing.,Crash Recovery,Different combinations of client and server strategy.,A Simple Transport Protocol,The Example Service Primitives T

9、he Example Transport Entity The Example as a Finite State Machine,The Example Transport Entity,The network layer packets used in our example.,The Example Transport Entity (2),Each connection is in one of seven states: Idle Connection not established yet. Waiting CONNECT has been executed, CALL REQUE

10、ST sent. Queued A CALL REQUEST has arrived; no LISTEN yet. Established The connection has been established. Sending The user is waiting for permission to send a packet. Receiving A RECEIVE has been done. DISCONNECTING a DISCONNECT has been done locally.,The Example as a Finite State Machine (2),The

11、example protocol in graphical form. Transitions that leave the connection state unchanged have been omitted for simplicity.,The Real-Time Transport Protocol (2),The RTP header.,Performance Issues,Performance Problems in Computer Networks Network Performance Measurement System Design for Better Perfo

12、rmance Fast TPDU Processing Protocols for Gigabit Networks,Performance Problems in Computer Networks,The state of transmitting one megabit from San Diego to Boston (a) At t = 0, (b) After 500 sec, (c) After 20 msec, (d) after 40 msec.,Network Performance Measurement,The basic loop for improving network performance. Measure relevant network parameters, performance. Try to understand what is going on. Change one parameter.,System Design for Better Performance,Rules: CPU speed is more important than network speed. Reduce packe

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論