




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、internet protocol(ip)lrfc 791iplansmanswansicmpigmparprarpnetworknetworklayerlayernetworknetworkaccessaccesslayerlayerthe features of ip communicationlfeatureschapter 7 internet protocolldatagramlfragmentationloptionslchecksumlip packagedatagram(數(shù)據(jù)報)(數(shù)據(jù)報)ip headerversion fieldlver(version): 4 bitshe
2、ader length fieldlhlen(header length): 4 bitsdifferentiated services (type of service field)ltos(服務(wù)類型):(服務(wù)類型):8 bits早期早期differentiated services differentiated services code pointcode point,區(qū)分服務(wù)編碼點,區(qū)分服務(wù)編碼點type of service field(tos)ltostotal length fieldltotal length(總長度字段):(總長度字段):16 bitslincludes th
3、e headerl以字節(jié)單位以字節(jié)單位l總長度首部長度(即總長度首部長度(即4hlen)+ 數(shù)據(jù)長度數(shù)據(jù)長度fragmentation fieldslidentification(標識字段):(標識字段):16 bitsl源站每發(fā)送一個分組,標識值源站每發(fā)送一個分組,標識值1l(源(源ip地址,標識)地址,標識) 全網(wǎng)唯一全網(wǎng)唯一分組標識分組標識time to live fieldlttl(生存時間):(生存時間):8 bits,指明數(shù)據(jù)報生存時間,指明數(shù)據(jù)報生存時間protocol fieldl協(xié)議:協(xié)議:8 bitschecksum fieldl校驗和:校驗和:16 bitsl差錯檢測差錯
4、檢測option fieldl選項:選項:0 40 bytescopycopy 0 copy only in first fragment0 copy only in first fragment1 copy into all fragments1 copy into all fragmentsclassclass00 datagram control00 datagram control01 reserved01 reserved1010 debugging and management debugging and management1111 reserved reservednumber
5、number00000 end of option00000 end of option00001 no option00001 no option00011 loose source route00011 loose source route00111 record route00111 record route01001 strict source route01001 strict source routechapter 7 internet protocolldatagramlfragmentationloptionslchecksumlip package數(shù)據(jù)報的封裝(數(shù)據(jù)報的封裝(
6、encapsulation )ethernet frame headerethernet frame headerip dataip dataip datagram example數(shù)據(jù)報大小與網(wǎng)絡(luò)數(shù)據(jù)報大小與網(wǎng)絡(luò)mtulmtu: maximum length of data that can be encapsulated in a frame mtu is dependent mtu is dependent on the on the physical physical networknetworkphysical networkmtuhyperchannel65535token ring
7、 (16 mbps)17914token ring (4 mbps)4464fddi4352ethernet1500數(shù)據(jù)報大小與網(wǎng)絡(luò)數(shù)據(jù)報大小與網(wǎng)絡(luò)mtul每個每個ip分組分組都封裝在都封裝在幀幀中傳輸中傳輸fragmentation (分片分片)lfragmentation: 在在mtu較小較小的網(wǎng)絡(luò)上,的網(wǎng)絡(luò)上,ip將較長的數(shù)據(jù)報將較長的數(shù)據(jù)報劃分成更小的部分(劃分成更小的部分(fragment)hdata 1600 bytesdata 2600 bytesdata 3200 bytes0 060060012001200offsetoffset = 0 = 0offset offset =
8、 600/8 = 75= 600/8 = 75offsetoffset = 1200/8 =150 = 1200/8 =150fragmentation operationlto be fragmented by and a la datagram can be fragmented more than oncelan ip header must be included in each fragmentfragmentation examplereassembly(重組操作(重組操作 )lonly by lconnectionless 各分片的傳輸路徑可不同各分片的傳輸路徑可不同l有重組時限
9、有重組時限 reassembly timerl若丟失分片,則無法重組若丟失分片,則無法重組ip分組分組a ab b如何重組如何重組重組表重組表l重組表的功能:重組表的功能:分片長度分片長度=400offset=0m=1分片長度分片長度=400offset=50m=1分片長度分片長度=100offset=100m=0to process an ip packetl合法性檢查合法性檢查l分片與重組分片與重組l選項處理(自學(xué))選項處理(自學(xué))chapter 7 internet protocolldatagramlfragmentationloptionslchecksumlip packageop
10、tions(自學(xué))(自學(xué))ltypesstrict source route (嚴格源路由嚴格源路由)lformat 作用作用l嚴格按給定的嚴格按給定的ip地址逐跳轉(zhuǎn)發(fā),中間不允地址逐跳轉(zhuǎn)發(fā),中間不允許經(jīng)過其它許經(jīng)過其它ip地址地址fragmentation with optionsl哪些選項會復(fù)制到所有分片中?哪些只在第一哪些選項會復(fù)制到所有分片中?哪些只在第一個分片中出現(xiàn)?為什么?個分片中出現(xiàn)?為什么?l哪些選項用于數(shù)據(jù)報控制?哪些選項用于調(diào)試哪些選項用于數(shù)據(jù)報控制?哪些選項用于調(diào)試管理?管理?chapter 7 internet protocolldatagramlfragmentati
11、onloptionslchecksumlip packagechecksumlrfc 1071(rfc 1141,1624,1936),附錄),附錄clip分組的校驗和只包括分組的校驗和只包括分組首部分組首部,而不包括數(shù)據(jù)而不包括數(shù)據(jù)examplec code algorithm(frc1071)unsigned short cksum (char *addr, unsigned short count) register long sum = 0;while (count1) sum + = *(unsigned short *) addr+;count - = 2;if (count0)sum + = *(unsigned char *) addr;while (sum 16)sum = (su
溫馨提示
- 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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 小鹿斑比成長之旅解讀
- 家庭農(nóng)場養(yǎng)殖技術(shù)推廣協(xié)議
- 時尚潮玩商品網(wǎng)絡(luò)銷售合作權(quán)責(zé)共擔(dān)協(xié)議
- 昆蟲記選讀教學(xué)教案:初中生物與自然知識結(jié)合學(xué)習(xí)指導(dǎo)
- 應(yīng)對項目管理中的風(fēng)險應(yīng)對策略
- 海底兩萬里的冒險之旅教案設(shè)計
- 養(yǎng)老服務(wù)機構(gòu)投資建設(shè)合同
- 高端設(shè)備采購與維護合同
- 花木蘭報國傳奇故事解讀
- 租賃戶外場地合同協(xié)議書
- 林木采伐安全協(xié)議書范本
- 招聘技巧話術(shù)培訓(xùn)
- 第九章 壓強 單元練習(xí)(含答案)-2024-2025學(xué)年人教版物理八年級下冊
- 職稱評定述職報告
- 2025-2030年中國黑豬行業(yè)市場發(fā)展狀況及投資戰(zhàn)略研究報告
- 2024年醫(yī)師定期考核考題《臨床練習(xí)》
- 法律職業(yè)倫理知到智慧樹章節(jié)測試課后答案2024年秋溫州大學(xué)
- 英語-遼寧省大連市2024-2025學(xué)年高三上學(xué)期期末雙基測試卷及答案
- 2024安徽教師統(tǒng)一招聘考試《小學(xué)英語》試卷真題及答案
- 2024年考研數(shù)學(xué)(一)試題卷及答案
- 16-SC-提高附著式升降腳手架安全驗收一次合格率4:3
評論
0/150
提交評論