复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)09 IP Packets

Computer Networking Lecture 9-IP Packets
Computer Networking Lecture 9 – IP Packets

Overview · Last lecture How does choice of address impact network architecture and scalability? What do p addresses look like? · This lecture Modern IP addresses How to get an IP address? What do iP packets look like? How do routers work? 9-26-06 Lecture 9: IP Packets 2
9-26-06 Lecture 9: IP Packets 2 Overview • Last lecture • How does choice of address impact network architecture and scalability? • What do IP addresses look like? • This lecture • Modern IP addresses • How to get an IP address? • What do IP packets look like? • How do routers work?

P Address classes (Some are Obsolete) Network ID HostID 8 16 24 32 Class a o Network ID Host ID Class B 10 Class C 110 Class D 1110 Multicast Addresses Class E1111 Reserved for experiments 9-26-06 Lecture 9: IP Packets 3
9-26-06 Lecture 9: IP Packets 3 IP Address Classes (Some are Obsolete) Network ID Host ID Network ID Host ID 8 16 Class A 32 0 Class B 10 Class C 110 Class D 1110 Multicast Addresses Class E 1111 Reserved for experiments 24

Outline CIDR IP addressing Forwarding examples ·| P Packet format 9-26-06 Lecture 9: IP Packets
9-26-06 Lecture 9: IP Packets 4 Outline • CIDR IP addressing • Forwarding examples • IP Packet Format

IP Address Problem(1991) Address space depletion In danger of running out of classes a and B Why? Class C too small for most domains Very few class a-very careful about giving them out Class B-greatest problem Class b sparsely populated But people refuse to give it back Large forwarding tables 2 Million possible class C groups 9-26-06 Lecture 9: IP Packets
9-26-06 Lecture 9: IP Packets 5 IP Address Problem (1991) • Address space depletion • In danger of running out of classes A and B • Why? • Class C too small for most domains • Very few class A – very careful about giving them out • Class B – greatest problem • Class B sparsely populated • But people refuse to give it back • Large forwarding tables • 2 Million possible class C groups

IP Address Utilization( 97) 一 D http://www.caida.org/outreach/resources/learn/ipv4space/ 9-26-06 Lecture 9: IP Packets 6
9-26-06 Lecture 9: IP Packets 6 IP Address Utilization (‘97) http://www.caida.org/outreach/resources/learn/ipv4space/

Classless Inter-Domain Routing (CIDR)-RFC1338 Allows arbitrary split between network& host part of address Do not use classes to determine network d Use common part of address as network number E.g., addresses 192.4.16-192.4.31 have the first 20 bits in common. Thus. we use these 20 bits as the network number>192.4.16/20 Enables more efficient usage of address space (and router tables)> How? Use single entry for range in forwarding tables Combined forwarding entries when possible 9-26-06 Lecture 9: IP Packets 7
9-26-06 Lecture 9: IP Packets 7 Classless Inter-Domain Routing (CIDR) – RFC1338 • Allows arbitrary split between network & host part of address • Do not use classes to determine network ID • Use common part of address as network number • E.g., addresses 192.4.16 - 192.4.31 have the first 20 bits in common. Thus, we use these 20 bits as the network number → 192.4.16/20 • Enables more efficient usage of address space (and router tables) → How? • Use single entry for range in forwarding tables • Combined forwarding entries when possible

CIDR EXample Network is allocated 8 class c chunks 200.10.0.0to200.10.7.255 Allocation uses 3 bits of class C space Remaining 20 bits are network number, written as201.10.0.0/21 Replaces 8 class C routing entries with 1 combined entry Routing protocols carry prefix with destination network address Longest prefix match for forwarding 9-26-06 Lecture 9: IP Packets 8
9-26-06 Lecture 9: IP Packets 8 CIDR Example • Network is allocated 8 class C chunks, 200.10.0.0 to 200.10.7.255 • Allocation uses 3 bits of class C space • Remaining 20 bits are network number, written as 201.10.0.0/21 • Replaces 8 class C routing entries with 1 combined entry • Routing protocols carry prefix with destination network address • Longest prefix match for forwarding

IP Addresses: How to get one? Network(network portion) Get allocated portion of isPs address space ISPs block 11001000000101110001000000000000200.23.16.0/20 日 Organization0110010000010111000100000020.23160/23 Organization1110010000001011100010010000000200.23180/23 Organization211001000000101110001010000000002002320.0/23 Organization711001000000101110001111000000000200.2330.023 9-26-06 Lecture 9: IP Packets 9
9-26-06 Lecture 9: IP Packets 9 IP Addresses: How to Get One? Network (network portion): • Get allocated portion of ISP’s address space: ISP's block 11001000 00010111 00010000 00000000 200.23.16.0/20 Organization 0 11001000 00010111 00010000 00000000 200.23.16.0/23 Organization 1 11001000 00010111 00010010 00000000 200.23.18.0/23 Organization 2 11001000 00010111 00010100 00000000 200.23.20.0/23 ... ….. …. …. Organization 7 11001000 00010111 00011110 00000000 200.23.30.0/23

IP Addresses: How to get one? How does an isP get block of addresses? From Regional Internet Registries (RIRs) ARIN (North America, Southern Africa), APNIC(Asia-Pacific RIPE(Europe, Northern Africa), LACNIC (South America How about a single host? Hard-coded by system admin in a file DHCP: Dynamic Host Configuration Protocol: dynamically get address: plug-and-play Host broadcasts "DHCP discover msg DHCP server responds with"DHCP offer"msg Host requests| P address:“ DHCP request”msg DHCP server sends address:“ DHCP ack”msg 9-26-06 Lecture 9: IP Packets 10
9-26-06 Lecture 9: IP Packets 10 IP Addresses: How to Get One? • How does an ISP get block of addresses? • From Regional Internet Registries (RIRs) • ARIN (North America, Southern Africa), APNIC (Asia-Pacific), RIPE (Europe, Northern Africa), LACNIC (South America) • How about a single host? • Hard-coded by system admin in a file • DHCP: Dynamic Host Configuration Protocol: dynamically get address: “plug-and-play” • Host broadcasts “DHCP discover” msg • DHCP server responds with “DHCP offer” msg • Host requests IP address: “DHCP request” msg • DHCP server sends address: “DHCP ack” msg
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)08 Software School.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)07 Ethernet.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)06 Physical Layer(Cont)& Data Link Layer.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)05 physical_Transmission.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)04 Socket Programming.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)03 Design Philosophy & Applications.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)02 Protocol Stacks and Layering.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)01 Introduction.ppt
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_拥塞控制_project3-congestion_control.ppt
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_拥塞控制_project3_2013.pdf
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_因特网中继聊天(IRC)路由_project 2 IRC routing.pptx
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_因特网中继聊天(IRC)服务器_socketProgramming-Part2.pptx
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_因特网中继聊天(IRC)服务器_socketProgramming-Part1.pptx
- 复旦大学:《计算机网络 Computer Networking》课程实验指导_因特网中继聊天(IRC)服务器_Network Project1 Request 2013.pdf
- 《计算机网络》课程教学资源(参考文献)MACAW_A Media Access Protocol for Wireless LAN’s.pdf
- 《计算机网络》课程教学资源(参考文献)Interdomain Internet Routing.pdf
- 《计算机网络》课程教学资源(参考文献)END-TO-END ARGUMENTS IN SYSTEM DESIGN.pdf
- 《计算机网络》课程教学资源(参考文献)Analysis and Simulation of a Fair Queueing Algorithm.pdf
- 《计算机网络》课程教学资源(参考文献)The Design Philosophy of the DARPA Internet Protocols.pdf
- 《计算机网络》课程教学资源(参考文献)Automated Worm Fingerprinting.pdf
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)10 Intra-Domain Routing.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)11 Multicast.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)12 Inter-Domain Routing BGP(Border Gateway Protocol).ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)13 DNS.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)14 ip-grab-bag(IP Wrap up).ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)15 Virtual Circuits, ATM, MPLS.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)16 Transport Protocols.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)17 TCP & Congestion Control.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)18 tcpdetails_More TCP & Congestion.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)19 TCP Performance.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)20 The Web.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)21 Peer-to-Peer(p2p).ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)22 Queue Management and QoS.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)23 mobile_Wireless Networking.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)25 Secure Communication with an Insecure Internet Infrastructure.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)25 security-dosfirewall——Attacks and Countermeasures.ppt
- 复旦大学:《计算机网络 Computer Networking》课程电子教案(PPT课件讲稿)26 Wireless, Ad-Hoc Networks, Sensor Networks.ppt
- 复旦大学:《计算机网络》课程PPT课件_10 IP-Prot——Routers and Routing.pdf
- 《数据库系统》参考书籍:《Database Management Systems》2nd Ed(Raghu Ramakrishnan / Johannes Gehrke).pdf
- 《数据库系统》课程参考资料:DB2系统管理员指南 IBM DB2 Version 8 Administrator Guide(1/3)Planning.pdf