Chapter 6 Internet Protocol Internet DNS FTP SMTP
- Slides: 106
Chapter 6 Internet Protocol
Internet基本协议栈 DNS FTP SMTP POP 3 User Space Message(消息) 传 输 层 IP 层 TCP Segment(数据段 ) IGMP UDP Datagram(数据报) IP/IPv 6 ICMP IP Packet(分组) drivers 网 络 接 口 层 ARP 802. 3/802. 11/802. 16… Frame(帧) Physical Interface RARP Kernel Space (OS) Applications Network stack HTTP
IP address is used to identify the node around Internet Router A router forwards packets based on IP addresses Network Data Link Physical 4
Chapter 6 Internet Protocol n n n n 6. 1 IP地址 6. 2 地址解析协议 6. 3 IP协议 6. 4 IP路由和转发 6. 5 ICMP协议 6. 6 IP组播 6. 7 IPv 4的可扩展性 6. 8 IPv 6协议 5
Chapter 6 Internet Protocol n n n n 6. 1 IP地址 6. 2 地址解析协议 6. 3 IP协议 6. 4 IP路由和转发 6. 5 ICMP协议 6. 6 IP组播 6. 7 IPv 4的可扩展性 6. 8 IPv 6协议 6
IP地址格式 在网络号所指定的网 络中标识IP地址所对 应的节点,主机号的 长度决定了网络所能 容纳节点的数量! 标识IP地址所对 应节点所在的网 络,也被称为网 络前缀 32 bits 网络号 主机号 8 bits Binary notation 1010 0101 0011 1100 Dotted notation (W. X. Y. Z) 170 85 51 204 Class A 0 NET HOST (0– 127) Class B 10 NET HOST (128 – 191) Class C 110 NET NET HOST (192 – 223) Class D 1110 组 播 地 址 (224 -239) 11110 保 留 地 址 (240 -247) Class E
IP地址分配 n Internet上的IP地址由IANA(Internet Assigned Numbers Authority )负责分配和管理 n 地 址 块 细 分 n n 地区级(RIR): 范围为一个指定的地理区域,例如 亚太网络信息中心(APNIC:Asia Pacific Network Information Center)、 ARIN、 RIPE NCC、 Afri. NIC、 LACNIC 国家级(NIR):范围为一个国家或者特定的经济 区域,例如中国互联网中心(CNNIC: China Internet Network Information Center) 本地级(LIR):通常为Internet服务提供商(ISP: Internet Service Provider),包括可进一步进 行地址分配的下游ISP 用户(Customer):单个用户、企业、机构 10 10
Table 1: The Percentage of IP Address Ownership by Country in 2010 ISO Country Code US CN UK JP DE KR FR CA IT NL Country Name UNITED STATES CHINA UNITED KINGDOM JAPAN GERMANY KOREA REPUBLIC OF FRANCE CANADA ITALY NETHERLANDS Percentage 36. 5982% 9. 7077% 8. 1512% 7. 0413% 3. 6158% 3. 4460% 3. 3053% 2. 4097% 1. 7404% 1. 7086% Ranking 1 2 3 4 5 6 7 8 9 10 From: http: //www. ip 2 location. com/reports/internet-ip-address-2011 -report 11
DHCP中继 14
Chapter 6 Internet Protocol n n n n 6. 1 IP地址 6. 2 地址解析协议 6. 3 IP协议 6. 4 IP路由和转发 6. 5 ICMP协议 6. 6 IP组播 6. 7 IPv 4的可扩展性 6. 8 IPv 6协议 16
Chapter 6 Internet Protocol n n n n 6. 1 IP地址 6. 2 地址解析协议 6. 3 IP协议 6. 4 IP路由和转发 6. 5 ICMP协议 6. 6 IP组播 6. 7 IPv 4的可扩展性 6. 8 IPv 6协议 26
服务类型(TOS) 优先级d t r 0 0 可靠性: 0 -一般可靠; 1 -高可靠 吞吐量: 0 -一般; 1 -高吞吐 延时: 0 -一般; 1 -低延时 000 Routine 001 Priority 010 Immediate 011 Flash 100 Flash override 101 Critical 110 Internetwork control 111 Network control
TTL和协议 n n 生存时间(TTL: Time to Live): 8 bits,单位秒,表示分组的生存时 间。实际操作时,分组每经过一个路由器,TTL值减一,当TTL值为 0 时,该分组被丢弃 协议(Protocol):表示高层协议类型。 n n n 0 Reserved 1 Internet Control Message Protocol (ICMP) 2 Internet Group Management Protocol (IGMP) 3 Gateway-to-Gateway Protocol (GGP) 4 IP (IP encapsulation) 5 Stream 6 Transmission Control (TCP) 8 Exterior Gateway Protocol (EGP) 9 Private Interior Routing Protocol 17 User Datagram (UDP) 89 Open Shortest Path First(OSPF)
校验和计算实例 45 00 00 34 1 F CF 40 00 40 06 00 00 DA F 6 BC FD DA 1 E + 6 C 39 ---------3 C 3 53 把进位3加到结果后: 3 + C 3 53 = C 3 56 C 3 5 6 1100 0011 0101 0110 求反码: 0011 1100 1010 1001得到 3 CA 9
Chapter 6 Internet Protocol n n n n 6. 1 IP地址 6. 2 地址解析协议 6. 3 IP协议 6. 4 IP路由和转发 6. 5 ICMP协议 6. 6 IP组播 6. 7 IPv 4的可扩展性 6. 8 IPv 6协议 39
路由表实例 E 0: 210. 1. 1. 1 E 0: 210. 1. 5. 1 S 0: 210. 1. 2. 1 E 0: 210. 1. 3. 1 S 0: 210. 1. 4. 2 A S 1: 210. 1. 6. 1 C S 1: 210. 1. 4. 1 NETWORK NEXT HOP S 0: 210. 1. 2. 2 NETWORK NEXT HOP 210. 1. 1. 0/24 directly 210. 1. 2. 0/24 directly 210. 1. 3. 0/24 210. 1. 2. 2 NETWORK NEXT HOP 210. 1. 4. 0/24 210. 1. 2. 2 210. 1. 2. 0/24 directly 210. 1. 5. 0/24 210. 1. 2. 2 210. 1. 3. 0/24 directly 210. 1. 6. 0/24 210. 1. 2. 2 210. 1. 4. 0/24 directly 210. 1. 1. 0/24 210. 1. 2. 1 210. 1. 5. 0/24 210. 1. 4. 2 210. 1. 6. 0/24 210. 1. 4. 2 B 210. 1. 4. 0/24 210. 1. 5. 0/24 directly 210. 1. 6. 0/24 directly 210. 1. 1. 0/24 210. 1. 4. 1 210. 1. 2. 0/24 210. 1. 4. 1 210. 1. 3. 0/24 210. 1. 4. 1 43
缺省路由 E 0: 210. 1. 1. 1 S 0: 210. 1. 2. 1 E 0: 210. 1. 3. 1 S 0: 210. 1. 4. 2 A 210. 1. 1. 0/24 directly 210. 1. 2. 2 S 1: 210. 1. 6. 1 C S 1: 210. 1. 4. 1 NETWORK NEXT HOP S 0: 210. 1. 2. 2 default E 0: 210. 1. 5. 1 NETWORK NEXT HOP B NETWORK NEXT HOP 210. 1. 2. 0/24 directly 210. 1. 3. 0/24 directly 210. 1. 4. 0/24 directly 210. 1. 1. 0/24 210. 1. 2. 1 default 210. 1. 4. 2 210. 1. 4. 0/24 210. 1. 5. 0/24 directly 210. 1. 6. 0/24 directly default 通过缺省路由可以减少路由表表项 210. 1. 4. 1 44
查看路由表 n Linux下面 n n ip route show Windows下面 n 命令行下运行route print 45
1 ---Hello 2 ----Database Description 3 ---Link State Request 4 ---Link State Update 5 ---Link State Acknowledgement OSPF 分组 比特 0 8 版 16 本 类 路 31 型 分 组 长 度 证 类 型 由 器 标 识 符 区(Area) 标 识 符 检 验 和 认 认 认 证 证 24 字节 OSPF 头标 IP头标 OSPF载荷 OSPF 分组 IP 分组
Chapter 6 Internet Protocol n n n n 6. 1 IP地址 6. 2 地址解析协议 6. 3 IP协议 6. 4 IP路由和转发 6. 5 ICMP协议 6. 6 IP组播 6. 7 IPv 4的可扩展性 6. 8 IPv 6协议 56
Chapter 6 Internet Protocol n n n n 6. 1 IP地址 6. 2 地址解析协议 6. 3 IP协议 6. 4 IP路由和转发 6. 5 ICMP协议 6. 6 IP组播 6. 7 IPv 4的可扩展性 6. 8 IPv 6协议 63
Unicast(单播) 128. 146. 199. 0/24 128. 146. 116. 0/24 Sender Receiver 2 128. 146. 222. 0/24 Receiver 1 128. 146. 226. 0/24 Receiver 3 Receiver 644
Multicast(组播) 128. 146. 199. 0/24 128. 146. 116. 0/24 Sender Receiver 2 128. 146. 222. 0/24 Receiver 1 128. 146. 226. 0/24 Receiver 3 Receiver 654
IGMP n 组成员管理协议IGMP: Internet Group Management Protocol 组播地址,表示 LAN上所有系统 224. 0. 0. 1 Designated router queries LAN for group membership Host informs router with IGMP report 224. 2. 127. 254 68
Root 组播路由协议 n n R 3 R 5 DVMRP( Distance Vector Multicast Routing Protocol ) MOSPF (Multicast Extension to OSPF) 基于共享树的协议,对于每个组使用同一颗树 n n R 2 R 4 基于源的组播协议,以发送方为多播树的根,并且 包含了所有的组成员 n n R 1 CBT(Core Based Trees) 混合以上两种方法的协议 n n PIM (Protocol Independent Multicast) PIM-DM (Dense Mode), PIM-SM (Sparse Mode) 69
L 2交换机与组播 Source Multicast aware switch IGMP Snooping 01 00 5 E 0+IP组播地址低23位 Receiver 交换机只向连接有组成员的端口转发分组 71
Chapter 6 Internet Protocol n n n n 6. 1 IP地址 6. 2 地址解析协议 6. 3 IP协议 6. 4 IP路由和转发 6. 5 ICMP协议 6. 6 IP组播 6. 7 IPv 4的可扩展性 6. 8 IPv 6协议 72
划分子网—分组转发实例 路由表 128=1000 0000 10=0000 1010 151=1001 0111 90=0101 1010 192=1100 0000 12=0000 1100 17=0010 0001 子网号 子网掩� 下一跳 目的地址 下一跳 128. 96. 39. 0 255. 128 接口 0 128. 96. 39. 10 接口 0 128. 96. 39. 128 255. 128 接口 1 128. 96. 40. 12 R 2 128. 96. 40. 0 255. 128 R 2 128. 96. 40. 151 R 4 192. 4. 153. 0 255. 192 R 3 192. 4. 153. 17 R 3 0. 0 R 4 192. 4. 153. 90 R 4 主要操作:通过子网掩码得IP地址所对应子网号,然后查找路由表
无类别域间寻路—地址分配 具有相同前缀的连续的IP地 址组成CIDR Block,对于 CIDR Block,前缀越短, block越大,该block包含 的地址数量越多 n ARIN RIPE NCC Afri. NIC APNIC LACNIC CIDR Block分配 IANA(Internet Assigned Numbers Authority)--〉 RIRs(Regional Internet Registries)--〉 NIR (National Internet Registries)--> ISPs(Internet Service Providers)--〉 Subscribers 83
程硕士课程:信息网络与技术 16个连续的/24的CIDR Block可以用一个/20的CIDR Block来表示,因此对外汇聚成一条/20的路由 208. 130. 16. 0/24~208. 130. 31. 0/24 --〉 (0001 0000~0001 1111) 208. 130. 16. 0/20 16条 路由 202. 130. 16. 0/24 R 1 202. 130. 16. 0/20 R 1 ……. . 208. 130. 31. 0/24 R 1 R 0 前缀汇聚 R 1 208. 130. 16. 0 . . R 1 208. 130. 31. 0 208. 130. 16. 0 16个连续的网络 . . 208. 130. 31. 0 16个连续的网络
网络地址转换—私有IP地址 n 10. 0 - 10. 255 A single Class A network n 172. 16. 0. 0 - 172. 31. 255 16 contiguous Class B networks n 192. 168. 0. 0 - 192. 168. 255 256 contiguous Class C networks
网络地址转换—原理 最简单的NAT:只使用IP地址信息 202. 38. 75. 11 源IP地址: 202. 38. 75. 11 到 Internet 源IP地址: 10. 0. 0. 1 NAT 目的IP地址: 10. 0. 0. 1 目的IP地址: 202. 38. 75. 11 到 内部网络 Direction Field Old Value New Value out 源IP地址 10. 0. 0. 1 202. 38. 75. 11 In 目的IP地址 202. 38. 75. 11 10. 0. 0. 1 转换表(自动生成)
程硕士课程:信息网络与技术 direction Fields Old Value New Value out 源IP地址:协议:源端口号 10. 0. 0. 3: TCP: 1025 202. 38. 75. 11: TCP: 2000 out 源IP地址:协议:源端口号 10. 0. 0. 2: TCP: 1023 202. 38. 75. 11: TCP: 1011 in 目的IP地址:协议:目的端口号 202. 38. 75. 11: TCP: 2000 10. 0. 0. 3: TCP: 1025 In 目的IP地址:协议目的端口号 202. 38. 75. 11: TCP: 1011 10. 0. 0. 2: TCP: 1023 a Internet 10. 0. 0. 3, port 1025 10. 0. 0. 1 Web server mapped to 202. 38. 75. 11, port 2000 NAT b c 10. 0. 0. 254 202. 38. 75. 11 Connection request from ‘c’ forwarded to <web server> source 202. 38. 75. 11, port 2000. 10. 0. 0. 3 Connection request to port 80 from ‘c‘ to <web server> source 10. 0. 0. 3, port 1025.
程硕士课程:信息网络与技术 direction Fields Old Value New Value out 源IP地址:协议:源端口号 10. 0. 0. 3: TCP: 1025 202. 38. 75. 11: TCP: 2000 out 源IP地址:协议:源端口号 10. 0. 0. 2: TCP: 1023 202. 38. 75. 11: TCP: 1011 in 目的IP地址:协议:目的端口号 202. 38. 75. 11: TCP: 2000 10. 0. 0. 3: TCP: 1025 In 目的IP地址:协议目的端口号 202. 38. 75. 11: TCP: 1011 10. 0. 0. 2: TCP: 1023 Internet a 响应发往 202. 38. 75. 11: 2000 10. 0. 0. 1 NAT b 10. 0. 0. 254 将202. 38. 75. 11: 2000 转换为 10. 0. 0. 3: 1025 c 10. 0. 0. 3 Web server
Chapter 6 Internet Protocol n n n n 6. 1 IP地址 6. 2 地址解析协议 6. 3 IP协议 6. 4 IP路由和转发 6. 5 ICMP协议 6. 6 IP组播 6. 7 IPv 4的可扩展性 6. 8 IPv 6协议 97
信息网络与协议 基本头标格式 1)扩展地址空间,128位地址 2)改善了选项功能,简化头标 20 ocets 3)修订了参数,增加流标记域 V 6: 6 fields + 2 addr V 4: 10 fields + 2 addr + options Deleted: Header length type of service identification, flags, fragment Header Checksum 40 ocets Added Traffic class Flow label Renamed: length -> Payload length Protocol -> Next header time to live -> Hop Limit Redefined: Option mechanism
IPv 6地址 n n IPv 6地址长度为 128比特,地址数量大约为 3. 4× 1038 表示方法采用十六进制冒号分割法 n n n 如2001: 0000: 00 A 1: 0000: 1 E 2 A 以上地址还可表示为 2001: 0: 0: A 1: : 1 E 2 A 混合表示 n n : : FFFF: 129. 144. 52. 38 URL中的IPv 6地址 n http: //[2001: 0: 0: A 1: : 1 E 2 A]: 7878/webpage. html 102
习题 n 34,39,40,42,43,49 106
- Ftp and smtp
- Ftp.nifc.gov to ftp.wildfire.gov
- Ftp dns
- In ftp protocol client contacts server using
- Ftp protocol purpose
- Purpose of ftp protocol
- Snmp
- Dns transport layer protocol
- Securesmtp
- Sap scot email configuration
- Smtp vs snmp
- Smtp rfc 821
- Smtp 220
- Jangomail api
- маил
- Microsoft mail header analyzer
- Telia sip trunk
- Ftp application layer
- Smtp.rcpttodomain
- Osi model
- Smtp wp.pl nie działa
- Smtp
- Medallia launchpad
- Smtp dna
- Smtp voo
- Smtp traceroute
- Volny.cz imap
- Lab 3: smtp lab
- Protokol smtp
- Security architecture for the internet protocol
- Internet transport protocol in computer networks
- Dongyang mirae university
- Internet official protocol standards
- Internet protocol cursus
- Iotp
- Jedną z cech dobrze zaprojektowanej sieci nie jest
- Iptv internet protocol television
- Adaptive internet protocol
- Utp ftp stp
- Ftp definicja
- Alteryx scrape website
- Ftp objectives
- Ftp privileged port bounce scan
- Sercel ftp
- Grid ftp
- Ftp introduction
- Amber it ftp server
- Ftp programme
- Codice univoco seac
- Which layer in the osi model covers http, ftp, and rdc?
- Ftp tftp
- Cbre global corporate services
- Micro focus server express
- Ftp iut dijon
- Ftp server api
- Ftp passive mode command
- Ftp client api
- Ftp adrom
- Autowu
- Ahe ftp
- Ftp utcluj
- War ftp server
- Nifc ftp
- Metronet ftp server
- Twisted pair kabel
- Http https ftp
- Ataque ftp bounce
- Trivial ftp
- Ftp topology
- Telekom ftp
- Fiddler for linux
- Kr5yihtnp1c -site:youtube.com
- Ftp kamsoft
- Odot ftp
- Ftp
- Rfc 959
- Samba vs ftp
- Fdot selection results
- Steve and roger
- Ftp antibot
- Goanywhere ftp
- Ftp network layer
- Upiopi
- Ftp server spring 2017
- Faceb oo
- Ivan maurits
- งช
- Ftp vs tftp
- Ftp server windows 2003
- Slidetodoc
- Ftp, telnet belongs to which layer in edi architecture?
- Udp ftp
- Tftp udp
- Lstc ftp
- Ftp icfes
- Cpanel.byethost
- Ftp energia bme
- Globus grid computing
- Ftp slides size 11
- Cnet ftp
- Ftp objectives
- Osi layer ftp
- Ftp://cooperftp.com
- Dns drip
- Suspicious dns query
- Dns performance test