離弦之Ray

            BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
            55 Posts :: 0 Stories :: 33 Comments :: 0 Trackbacks
          首先要對(duì)OSI七層結(jié)構(gòu)和TCP/IP四層結(jié)構(gòu)要清楚。
          OSI七層結(jié)構(gòu)從上到下為
          Application
          Presentation
          Session
          Transport
          Network
          Data Link

          Physical

          TCP/IP四層結(jié)構(gòu)為
          把上面三層合為process層,把下面兩層合為Hardware層得到
          Process
          Transport
          Network
          Hardware


          協(xié)議所提供的各種服務(wù):

          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,需要在聯(lián)系前首先要建立一條連接。
          connectionless的典型代表是UDP,不需要事先建立連接。


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

          保證所有封包以正確的順序分發(fā)

          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.

          保證發(fā)送端發(fā)送數(shù)據(jù)的速度不超過(guò)接收端接收數(shù)據(jù)的速度。
          ?

          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的技術(shù)天空 閱讀(194) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 厦门市| 通城县| 固阳县| 大石桥市| 定襄县| 临江市| 胶南市| 黄龙县| 海晏县| 日照市| 邳州市| 东海县| 大安市| 虎林市| 吉林市| 昆明市| 邵武市| 襄汾县| 北流市| 双江| 慈利县| 且末县| 桃源县| 陇西县| 汕尾市| 西丰县| 香格里拉县| 黄平县| 浪卡子县| 方山县| 永城市| 宜黄县| 永福县| 克拉玛依市| 莒南县| 青州市| 齐河县| 博野县| 侯马市| 万州区| 上栗县|