【正文】
col Hierarchies (3) Example information flow supporting virtual munication in layer 5. Design Issues for the Layers ? Addressing ? Error Control ? Flow Control ? Multiplexing ? Routing ConnectionOriented and Connectionless Services ?Connectionoriented service The telephone system Message sequences Byte streams ? Connectionless service The post system Datagram service ? Quality of Service (QoS) negotiation ConnectionOriented and Connectionless Services Six different types of service. Service Primitives Five service primitives for implementing a simple connectionoriented service. Service Primitives (2) Packets sent in a simple clientserver interaction on a connectionoriented work. The Relationship of Services to Protocols A service is a set of primitives(operations) that a layer provides to the layer above it. A protocol is a set of rules governing the format and meaning of the packets,or messages that are exchanged by the peer entities within a layer. The Relationship of Services to Protocols The relationship between a service and a protocol. Reference Models ? The OSI Reference Model ? The TCP/IP Reference Model ? A Comparison of OSI and TCP/IP ? A Critique of the OSI Model and Protocols ? A Critique of the TCP/IP Reference Model The OSI Reference Model ? ISO(International Standards Organization) ? OSI(Open Systems Interconnection) ? ISO OSI Reference Model: Seven layers: the physical layer, the data link layer, the work layer, the transport layer, the session layer, the presentation layer and application layer The OSI Reference Model ? 分層的原則: 1。根據(jù)不同層次的抽象分層 2。每層應(yīng)當(dāng)實現(xiàn)定義明確定義的功能 3。每層功能的選擇應(yīng)該有助于制定網(wǎng)絡(luò)協(xié)議的國際標(biāo)準(zhǔn) 4。各層邊界的選擇應(yīng)盡量減少通過接口的通信量 5。層數(shù)應(yīng)足夠多,以避免不同的功能混雜在同一層中,但也不能太多,否則體系結(jié)構(gòu)會過于龐大 物理層: 比特 (bit)是傳輸信息的基本單位 ● “ 1/0” 邏輯電平的確定及每位 ( 比特 ) 的寬度( ms) ● 通信方式的選擇:單工 半雙工 全雙工 ( 一般不選單工 ) ● 物理連接的建立和釋放 確定物理接口的標(biāo)準(zhǔn)(機械的 、 電氣的 、功能的、規(guī)程的) 數(shù)據(jù)鏈路層: ● 確定幀 ( frame) 結(jié)構(gòu) ● 解決收發(fā)設(shè)備間的速度匹配問題 ( 流量控制 ) ● 幀傳送中的差錯控制 網(wǎng)絡(luò)層 控制通信子網(wǎng)的操作 ● 路由選擇 ● 擁塞控制 ● 網(wǎng)絡(luò)互連 ● 用戶記費 ● 向傳輸層報告未恢復(fù)的差錯 傳輸層 ● 對來自會話層的數(shù)據(jù)進行必要的處理 ( 分解 ) ● 提供端到端 ( 主機到主機 ) 的差錯控制和流量控制 通常由主機操作系統(tǒng)來實現(xiàn) 會話層 ● 允許在不同機器上的用戶間建立會話 ● 管理對話控制 ● 令牌 ( token) 管理 ● 同步管理:在兩臺機器間傳一個文件要二小時 ,若一小時系統(tǒng)要崩潰一次 , 則每次都要從頭開始 。 會話層提供插入校驗點到數(shù)據(jù)流中 。 表示層 ● 確定數(shù)據(jù)的表示形式 ( 統(tǒng)一編碼 ) ● 各種數(shù)據(jù)變換:加密 , 字符之間 , 不同終端的不同變換 ● 文本壓縮: ASCII碼可以壓縮 應(yīng)用層 為應(yīng)用進程提供訪問 OSI的手段 含有大量的應(yīng)用協(xié)議 ● 全屏幕編輯:各種實終端直接轉(zhuǎn)換 , 通過虛擬終端 → 實終端 ● 文件的傳送和管理 ● OSI的管理: 1) 應(yīng)用管理 ( 應(yīng)用進程管理 ) :參數(shù)初始化 , 啟動 , 維護和終止 2) 系統(tǒng)管理:激活管理 , 監(jiān)視 , 差錯控制 Reference Models The OSI reference model. The TCP/IP Reference Model ARPANET(Advanced Research Projects Agency Network) The TCP/IP reference model: TCP/IP的應(yīng)用層包括