離弦之Ray

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            55 Posts :: 0 Stories :: 33 Comments :: 0 Trackbacks
          首先要對OSI七層結構和TCP/IP四層結構要清楚。
          OSI七層結構從上到下為
          Application
          Presentation
          Session
          Transport
          Network
          Data Link

          Physical

          TCP/IP四層結構為
          把上面三層合為process層,把下面兩層合為Hardware層得到
          Process
          Transport
          Network
          Hardware


          協議所提供的各種服務:

          Connection-oriented (virtual circuit) or connectionless– Connection-oriented requires the protocol to establish a logical connection before communicating. Data can then be transferred until the connection is terminated. With the TCP/IP protocol suite, TCP is connection-oriented and UDP is connectionless.


          Connection-oriented的典型代表是TCP,需要在聯系前首先要建立一條連接。
          connectionless的典型代表是UDP,不需要事先建立連接。


          Sequencing – makes sure that packets are delivered in the same order they were sent.

          保證所有封包以正確的順序分發

          Error control –handles data corruption and packet loss. Requires the receiver to acknowledge the sender and to discard duplicate the packet if an ACK is lost and the packet is then resent.

          ?

          Flow control – makes sure the sender does not transmit data at a rate higher than the receiver can process the data.

          保證發送端發送數據的速度不超過接收端接收數據的速度。
          ?

          Byte steam or messages – a byte stream is a series of bytes rather than a series of messages. The higher layer protocols must then organize the bytes according to the application requirements.

          ?

          Full-duplex or half-duplex – Full-duplex is bi-directional simultaneously. Half-duplex is uni-directional at a time. The direction varies with time.



          ?
          posted on 2006-06-20 23:57 離弦之ray的技術天空 閱讀(197) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 博乐市| 新营市| 招远市| 永宁县| 南投市| 安塞县| 高淳县| 马关县| 泊头市| 蒙阴县| 绥阳县| 珠海市| 岑巩县| 扶绥县| 博湖县| 宁陕县| 杂多县| 阿勒泰市| 大新县| 濉溪县| 绥芬河市| 江西省| 上栗县| 林西县| 萨迦县| 浏阳市| 勃利县| 黎城县| 百色市| 南平市| 长治县| 玉溪市| 宁安市| 济南市| 白玉县| 合作市| 永泰县| 蒙山县| 循化| 贵南县| 东乌珠穆沁旗|