版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、COMP 5116Semester 2, 2012,Lecture 4 IP Addressing Extensions ICMP and Applications,1,Comer Readings,Chapter 9 Subnetting: 9.1 9.13 CIDR: 9.16 9.19 (rest for interest) Chapter 8 ICMP,2,Outline,IP addressing extensions Proxy ARP Subnet addressing and forwarding CIDR basics ICMP introduction encapsulat
2、ion/stack position basic ideas ICMP message types applications ping traceroute,3,Classful IP address problems (recap),Problems: class assignment is wasteful, especially class A ip host addresses not necessarily utilized well a single organisation needs multiple ip network addresses (one per physical
3、 network) too many networks in core routers running out of ip addresses ? How can we be more flexible?,4,Proxy ARP (the ARP hack),Works with ARP (only) Single net prefix for two (or more) networks connected to same router Router runs proxy ARP responds to ARP requests to/from other network with own
4、address spoofs hosts to send packets for machines on other network to itself routes packets from outside to correct machine Solution does not scale,5,IP Subnetting,Use single IP network address for multiple physical nets on the same site (organisation) Subnet notion converts (net, host) into slightl
5、y more hierarchical (net, subnet, host) subnet part taken from host bits, can be any number of bits (chosen by administrator) Associate subnet mask with IP address router can identify / extract the subnet part,6,Subnetting,Example: Class B, one byte of subnet: ip = subnet mask=255.255.255
6、.0 Subnet 1 in network 128.10.x.x Host 1 in Subnet 1 or, /24 slash notation, mask length = 24,7,Subnetting,Subnetting functions: you can subnet one network address and split it up on separate physical networks across routers within your own site (conserves address space) you hide your rout
7、ing structure from remote routers, thus reducing routes in their routing tables they only consider the network part of the address,8,Subnetting,Subnet part only meaningful within the subnetted network (subnet forwarding): if dest ip addr & subnet mask = my ip addr and subnet mask dest is on same sub
8、net else on different subnet (send pkt to router),9,Subnetting,Class B network Subnet mask extracts physical subnet address 8-bit subnet address supports up to 256 subnets (all 0s and all 1s subnet addresses sometimes not permitted),Comer Fig 9.2,10,Subnet Mask,Dotted decima
9、l vs CIDR notation / vs /24 Subnet forwarding uses masks in routing table Provides a unified forwarding algorithm: host, 1/32 (to specific host) subnet, /24 (to specific subnet) network, /16 (to specific net) Default, /0 = the all zeroes
10、address host route to default route most specific to least specific (forwarding algorithm),11,Unified IP Forwarding Algorithm,Table must be sorted by mask length: Host Subnet Network Default,Comer Fig 9.7,12,Subnetting Limitations,Only visible within an organisation subnet forwarding only used withi
11、n does not propagate outside (not used in the core) tight guidelines to avoid ambiguity eg fixed length only nearly all Class B networks use /24 Still does not use IP address space efficiently, especially Class A networks,13,Classless Inter-Domain Routing (CIDR) Basics,Introduced in 1993/4 in Intern
12、et core commercial explosion of the net and WWW ISPs assigned blocks of addresses associated with Autonomous Systems (later) can then assign to subscribers Network prefix occurs on arbitrary bit boundary, specified by address mask Eg block 55 2048 contiguous addresses addr
13、ess mask is /21,14,CIDR Basics,No notions of network class or fixed subnets Blocks of addresses can be partitioned on any bit boundaries to ISPs and within ISPs separately routed, outside and within ISP However, requires more complex routing tables and searching (mask length not known a priori) long
14、est prefix matching (LPM) Now used extensively in the Internet core Subnetting still used within sites (Details are beyond the scope of this Unit),15,Protocols,16,ICMP Encapsulation,ICMP transmitted within IP datagram so that it is routeable (unlike arp),17,ICMP Ideas,Considered part of IP (mandator
15、y implementation) Functionality includes: error messages (ttl exceeded, destination unreachable, router is congested, parameter problem) network management (echo request/reply) end host configuration (router advert, netmask) Error messages go from router/end host to original ip src not understood by
16、 intermediate hops,18,ICMP Ideas,Error messages typically sent at IP layer, received by source IP/UDP/TCP, which may forward to an application ICMP error messages never generated due to: ICMP error message (loop) broadcasts/multicasts Why? prevent broadcast storms Error messages contain offending IP
17、 header + 1st 8 bytes of IP data (eg tcp/udp ports),19,ICMP Header,checksum covers icmp header/data, not ip header,20,ICMP messages (not all),21,continued,22,Time Exceeded (11,0/1),If TTL value 0, discard packet and issue ICMP time exceeded, code 0, to IP source If fragments not received within a ce
18、rtain time limit at destination, discard fragments and issue ICMP time exceeded, code 1 Prevents infinite packet loops,23,Destination unreachable (3,x),Host or router cannot deliver a datagram Return IP header, first 8 bytes of datagram data Codes 0 Network unreachable 1 Host unreachable 2 Protocol
19、unreachable 3 Port unreachable 4 DF set but must fragment on next hop Detects forwarding errors (but not all),24,Source Quench (4),No flow control in IP (data rate) Source quench alerts sender: A packet was discarded Slow down transmission rate Returned is IP header plus 8 bytes of data But rarely i
20、mplemented (other congestion control mechanisms are used),25,Parameter problem (12,0/1),If the IP header format wrong Discard datagram Issue ICMP parameter problem Code 0 faulty header field, pointer field in ICMP addresses start byte of problem in IP header Code 1 required part of option is missing
21、,26,Echo request/reply (8/0),Host or router sends echo request to destination IP Destination returns echo reply Used by ping (below),27,Router solicitation (9/10),Host wants to learn about network topology issues ICMP RS message Routers reply with a router advertisement Little used (DHCP is more com
22、mon now),28,ICMP redirect (5),Limited dynamic routing table update technique Only done on same link/network Situation: 1. assume dumb host with 1 default routing table entry 2. two routers on same link, one is default, one is route to net X 3. dumb host sends pkt to net X via default router 4. defau
23、lt router sends ICMP redirect with correct router address to dumb host,29,Picture,Default router also forwards original packet correctly. Dumb host changes its routing table to reflect newly learned route to other net. Means initial configuration can be minimal, and hosts then learn. Now rarely used
24、 (DHCP).,30,Address mask (17/18),If host does not know its netmask, issue Address mask request Router on network replies with mask Can be unicasted or broadcasted Can be used at bootstrapping but now little used,31,ping - ICMP echo request/reply,ping program useful diagnostic tool, uses ICMP echo re
25、quest/reply packets ping adds identifier/sequence number fields to echo/reply packets sequence # allows you to see if packets lost ping will also do roundtrip timing,32,ping example,$ ping PING (): 56 data bytes 64 bytes from icmp_seq=0 time=8ms 64 byte
26、s from icmp_seq=1 time=8ms 64 bytes from icmp_seq=2 time=20ms - PING statistics - 3 packets transmitted, 3 packets received, 0% loss round-trip (ms) min/avg/max = 8/12/20 (MS cmd = ping),33,More ping,So what do you learn? you can route to destination end systems ip
27、 stack is working at least round trip time information are packets being lost (but doesnt tell you why) Echo reply sent by end systems ICMP, you dont know if upper layers are working.,34,traceroute,% traceroute traceroute (a command) allows you to determine the routers from one end to another Uses ICMP ttl exceeded and (UDP port unreachable or ICMP echo reply) messages (2 forms of implementation) (MS = tracert),35,traceroute example,% traceroute (from sirius.cs.pdx.ed
溫馨提示
- 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 四川省綿陽(yáng)市安州區(qū)2025-2026學(xué)年九年級(jí)上學(xué)期1月期末數(shù)學(xué)試題(含答案)
- 2025-2026學(xué)年新疆喀什地區(qū)八年級(jí)(上)期末數(shù)學(xué)試卷(含答案)
- 五年級(jí)下冊(cè)數(shù)學(xué)試卷及答案
- 無(wú)菌技術(shù)試題及答案
- 文學(xué)常識(shí)0試題及答案
- 電氣自動(dòng)化技術(shù)要領(lǐng)
- 2026年經(jīng)濟(jì)師造紙工業(yè)經(jīng)濟(jì)專業(yè)知識(shí)要點(diǎn)練習(xí)(含解析)
- 七年級(jí)期末試題帶答案和解析(2021-2022年河南省鄧州市)
- 初中信息技術(shù)教程
- 時(shí)事政治試題版及答案
- 2026新疆阿合奇縣公益性崗位(鄉(xiāng)村振興專干)招聘44人筆試參考題庫(kù)及答案解析
- 紀(jì)委監(jiān)委辦案安全課件
- 兒科pbl小兒肺炎教案
- 腹部手術(shù)圍手術(shù)期疼痛管理指南(2025版)
- JJG(吉) 145-2025 無(wú)創(chuàng)非自動(dòng)電子血壓計(jì)檢定規(guī)程
- 2025年學(xué)校領(lǐng)導(dǎo)干部民主生活會(huì)“五個(gè)帶頭”對(duì)照檢查發(fā)言材料
- 顱內(nèi)壓監(jiān)測(cè)與護(hù)理
- 浙江省紹興市上虞區(qū)2024-2025學(xué)年七年級(jí)上學(xué)期語(yǔ)文期末教學(xué)質(zhì)量調(diào)測(cè)試卷(含答案)
- 智慧城市建設(shè)技術(shù)標(biāo)準(zhǔn)規(guī)范
- EPC總承包項(xiàng)目管理組織方案投標(biāo)方案(技術(shù)標(biāo))
- 過年留人激勵(lì)方案
評(píng)論
0/150
提交評(píng)論