離弦之Ray

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            55 Posts :: 0 Stories :: 33 Comments :: 0 Trackbacks
          首先要對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ù)的速度不超過接收端接收數(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ù)天空 閱讀(197) 評論(0)  編輯  收藏

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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 紫阳县| 柘城县| 蚌埠市| 阿拉尔市| 九江县| 福建省| 洱源县| 韩城市| 威宁| 常州市| 许昌市| 务川| 涡阳县| 若尔盖县| 大理市| 郸城县| 自治县| 灵宝市| 即墨市| 肇源县| 中阳县| 乃东县| 华亭县| 文昌市| 铁岭市| 隆化县| 阆中市| 苏尼特左旗| 界首市| 宾川县| 山西省| 衡东县| 易门县| 武安市| 沈丘县| 大埔县| 桑日县| 洛扎县| 府谷县| 城口县| 徐闻县|