Internet Protocol Version 6.ppt.ppt_第1页
Internet Protocol Version 6.ppt.ppt_第2页
Internet Protocol Version 6.ppt.ppt_第3页
Internet Protocol Version 6.ppt.ppt_第4页
Internet Protocol Version 6.ppt.ppt_第5页
已阅读5页,还剩44页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、IPv6: An Introduction,Dheeraj Sanghi Department of Computer Science and Engineering Indian Institute of Technology Kanpur dheerajiitk.ac.in http:/www.cse.iitk.ac.in/users/dheeraj,Apr 2005,IIT Kanpur,1,Outline,Problems with IPv4 Basic IPv6 Protocol IPv6 features Auto-configuration, QoS, Security, Mob

2、ility Transition Plans,Apr 2005,IIT Kanpur,2,Internet Protocol,Transports a datagram from source host to destination, possibly via several intermediate nodes (“routers”) Service is: Unreliable: Losses, duplicates, out-of-order delivery Best effort: Packets not discarded capriciously, delivery failur

3、e not necessarily reported Connectionless: Each packet is treated independently,Apr 2005,IIT Kanpur,3,IP Datagram Header,VERS,HLEN,TOS,TOTAL LENGTH,IDENTIFICATION,FLAG,FRAGMENT OFFSET,TTL,PROTOCOL,CHECKSUM,SOURCE ADDRESS,DESTINATION ADDRESS,OPTIONS (if any) + PADDING,0,4,8,16,19,31,Apr 2005,IIT Kanp

4、ur,4,Problems with IPv4: Limited Address Space,IPv4 has 32 bit addresses. Flat addressing (only netid + hostid with “fixed” boundaries) Results in inefficient use of address space. Class B addresses are almost over. Addresses will exhaust in the next 5 years. IPv4 is victim of its own success.,Apr 2

5、005,IIT Kanpur,5,Problems with IPv4: Routing Table Explosion,IP does not permit route aggregation (limited supernetting possible with new routers) Mostly only class C addresses remain Number of networks is increasing very fast (number of routes to be advertised goes up) Very high routing overhead lo

6、t more memory needed for routing table lot more bandwidth to pass routing information lot more processing needed to compute routes,Apr 2005,IIT Kanpur,6,Problems with IPv4: Header Limitations,Maximum header length is 60 octets. (Restricts options) Maximum packet length is 64K octets. (Do we need mor

7、e than that ?) ID for fragments is 16 bits. Repeats every 65537th packet. (Will two packets in the network have same ID?) Variable size header. (Slower processing at routers.) No ordering of options. (All routers need to look at all options.),Apr 2005,IIT Kanpur,7,Problems with IPv4: Other Limitatio

8、ns,Lack of quality-of-service support. Only an 8-bit ToS field, which is hardly used. Problem for multimedia services. No support for security at IP layer. Mobility support is limited.,Apr 2005,IIT Kanpur,8,IP Address Extension,Strict monitoring of IP address assignment Private IP addresses for intr

9、anets Only class C or a part of class C to an organization Encourage use of proxy services Application level proxies Network Address Translation (NAT) Remaining class A addresses may use CIDR Reserved addresses may be assigned But these will only postpone address exhaustion. They do not address prob

10、lems like QoS, mobility, security.,Apr 2005,IIT Kanpur,9,IPng Criteria,At least 109 networks, 1012 end-systems Datagram service (best effort delivery) Independent of physical layer technologies Robust (routing) in presence of failures Flexible topology (e.g., dual-homed nets) Better routing structur

11、es (e.g., aggregation) High performance (fast switching) Support for multicasting,Apr 2005,IIT Kanpur,10,IPng Criteria,Support for mobile nodes Support for quality-of-service Provide security at IP layer Extensible Auto-configuration (plug-and-play) Straight-forward transition plan from IPv4 Minimal

12、 changes to upper layer protocols,Apr 2005,IIT Kanpur,11,IPv6: Distinctive Features,Header format simplification Expanded routing and addressing capabilities Improved support for extensions and options Flow labeling (for QoS) capability Auto-configuration and Neighbour discovery Authentication and p

13、rivacy capabilities Simple transition from IPv4,Apr 2005,IIT Kanpur,12,IPv6 Header Format,Traffic Class,Flow Label,Vers,Payload Length,Next Header,Hop Limit,Source Address,Destination Address,0,4,12,16,24,31,Apr 2005,IIT Kanpur,13,IPv6 Header Fields,Version number (4-bit field) The value is always 6

14、. Flow label (20-bit field) Used to label packets requesting special handling by routers. Traffic class (8-bit field) Used to mark classes of traffic. Payload length (16-bit field) Length of the packet following the IPv6 header, in octets. Next header (8-bit field) The type of header immediately fol

15、lowing the IPv6 header.,Apr 2005,IIT Kanpur,14,IPv6 Header Fields,Hop limit (8-bit field) Decremented by 1 by each node that forwards the packet. Packet discarded if hop limit is decremented to zero. Source Address (128-bit field) An address of the initial sender of the packet. Destination Address (

16、128-bit field) An address of the intended recipient of the packet. May not be the ultimate recipient, if Routing Header is present.,Apr 2005,IIT Kanpur,15,Header Changes from IPv4,Longer address - 32 bits 128 bits Fragmentation field moved to separate header Header checksum removed Header length rem

17、oved (fixed length header) Length field excludes IPv6 header Time to live Hop limit Protocol Next header 64-bit field alignment TOS replaced by flow label, traffic class,Apr 2005,IIT Kanpur,16,Extension Headers,Less used functions moved to extension headers. Only present when needed. Processed only

18、by node identified in IPv6 destination field. = much lower overhead than IPv4 options Exception: Hop-by-Hop option header Eliminated IPv4s 40-byte limit on options Currently defined extension headers: Hop-by-hop, Routing, Fragment, Authentication, Privacy, End-to-end. Order of extension headers in a

19、 packet is defined. Headers are aligned on 8-byte boundaries.,Apr 2005,IIT Kanpur,17,Address Types,UnicastAddress for a single interface. MulticastIdentifier for a set of interfaces. Packet is sent to all these interfaces. Anycast Identifier for a set of interfaces. Packet is sent to the nearest one

20、.,Apr 2005,IIT Kanpur,18,Text Representation of Addresses,HEX in blocks of 16 bits BC84 : 25C2 : 0000 : 0000 : 0000 : 55AB : 5521 : 0018 leading zero suppression BC84 : 25C2 : 0 : 0 :55AB : 5521 : 18 Compressed format removes strings of 0s BC84 : 25C2 : 55AB : 5521 : 18 : can appear only once in an

21、address. can also be used to compress leading or trailing 0s Mixed Notation (X:X:X:X:X:X:d.d.d.d) e.g., :1,Apr 2005,IIT Kanpur,19,IPv6 Addresses,128-bit addresses Multiple addresses can be assigned to an interface Provider-based hierarchy to be used in the beginning Addresses should have

22、 64-bit interface IDs in EUI-64 format Following special addresses are defined : IPv4-mapped IPv4-compatible link-local site-local,Apr 2005,IIT Kanpur,20,Unicast Addresses Examples,Global Aggregate Address Link local address Site-local address,FP,TLA,NLA,3,13,32,SLA,64 bits,Interface ID,1111111010,1

23、0 bits,0,54 bits,Interface ID,64 bits,Public Topology,Site,Topology,Interface Identifier,1111111011,0,Interface ID,subnet ID,10 bits,38 bits,16 bits,64 bits,16,Apr 2005,IIT Kanpur,21,Multicast Address,Flags000T3 bits reserved T= 0permanent T= 1transient Scope2link-local 5site-local 8org-local Egloba

24、l Permanent groups are formed independent of scope.,11111111,flags,scope,Group ID,8 bits,4,4,112 bits,Apr 2005,IIT Kanpur,22,IPv6 Routing,Hierarchical addresses are to be used. Initially only provider-based hierarchy will be used. Longest prefix match routing to be used. (Same as IPv4 routing under

25、CIDR.) OSPF, RIP, IDRP, ISIS, etc., will continue as is (except 128-bit addresses). Easy renumbering should be possible. Provider selection possible with anycast groups.,Apr 2005,IIT Kanpur,23,QoS Capabilities,Protocol aids QoS support, not provide it. Flow labels To identify packets needing same qu

26、ality-of-service 20-bit label decided by source Flow classifier: Flow label + Source/Destination addresses Zero if no special requirement Uniformly distributed between 1 and FFFFFF Traffic class 8-bit value Routers allowed to modify this field,Apr 2005,IIT Kanpur,24,IPv6: Security Issues,Provision f

27、or Authentication header Guarantees authenticity and integrity of data Encryption header Ensures confidentiality and privacy Encryption modes: Transport mode Tunnel mode Independent of key management algorithm. Security implementation is mandatory requirement in IPv6.,Apr 2005,IIT Kanpur,25,Mobility

28、 Support in IPv6,Mobile computers are becoming commonplace. Mobile IPv6 allows a node to move from one link to another without changing the address. Movement can be heterogeneous, i.e., node can move from an Ethernet link to a cellular packet network. Mobility support in IPv6 is more efficient than

29、mobility support in IPv4. There are also proposals for supporting micro-mobility.,Apr 2005,IIT Kanpur,26,Neighbour Discovery,Router Discovery - determines set of routers on the link. Prefix Discovery - set of on-link address prefixes. Parameter Discovery - to learn link parameters such as link MTU,

30、or internet parameters like hop limit, etc. Address Auto-configuration - address prefixes that can be used for automatically configuring interface address. Address resolution - IP to link-layer address mapping. Duplicate Address Detection. Route Redirect - inform of a better first hop node to reach

31、a particular destination.,Apr 2005,IIT Kanpur,27,Neighbour Discovery Operation,Based on ICMPv6 messages Router Solicitation (RS) Router Advertisement (RA) Neighbour Solicitation (NS) Neighbour Advertisement (NA) Redirect Router Solicitation sent when an interface becomes enabled, hosts request route

32、rs to send RA immediately.,Apr 2005,IIT Kanpur,28,Neighbour Discovery Operation (contd.),Router advertisement Sent by routers periodically or in response to RS. Hosts build a set of default routers based on this information. Provides information for address auto-configuration, set of on-link prefixe

33、s etc. Supplies internet/subnet parameters, like MTU, and hop limit. Includes routers link-layer address.,Apr 2005,IIT Kanpur,29,Neighbour Discovery Operation (contd.),Neighbour Solicitation To request link-layer address of neighbour Also used for Duplicate Address Detection Neighbour Advertisement

34、Sent in response to NS May be sent without solicitation to announce change in link-layer address Redirect - used to inform hosts of a better first hop for a destination.,Apr 2005,IIT Kanpur,30,Additional Features,Anycast Addresses Multiple nodes on link may have this address All those nodes will res

35、pond to an NS message. Host will get multiple NA messages, but should accept only one. The messages should be tagged as non-override. Proxy advertisements Router may send NA on behalf of others. Useful for mobile nodes who have moved.,Apr 2005,IIT Kanpur,31,Address Auto-configuration,The problem Sys

36、tem bootstrap (“plug and play”) Address renumbering Addressing Possibilities ManualAddress configured by hand AutonomousHost creates address with no external interaction (e.g., link local) Semi-autonomousHost creates address by combining a priori information and some external information. Stateless

37、ServerHost queries a server, and gets an address. Server does not maintain a state. Stateful ServerHost queries a server, and gets an address. Server maintains a state.,Apr 2005,IIT Kanpur,32,Auto-configuration in IPv6,Link-local prefix concatenated with 64-bit MAC address. (Autonomous mode) Prefix

38、advertised by router concatenated with 64-bit MAC address. (Semi-autonomous mode.) DHCPng (for server modes) Can provide a permanent address (stateless mode) Provide an address from a group of addresses, and keep track of this allocation (stateful mode) Can provide additional network specific inform

39、ation. Can register nodes in DNS.,Apr 2005,IIT Kanpur,33,Address Renumbering,To migrate to a new address change of provider change in network architecture Methods router adds a new prefix in RA, and informs that the old prefix is no longer valid. When DHCP lease runs out, assign a new address to nod

40、e. DHCPng can ask nodes to release their addresses. Requires DNS update. DHCPng can update DNS for clients. Existing conversations may continue if the old address continues to be valid for some time.,Apr 2005,IIT Kanpur,34,Upper Layer Issues,Minor changes in TCP Maximum segment size should be based

41、on Path MTU. The packet size computation should take into account larger size of IP header(s). Pseudo-header for checksum is different. UDP checksum computation is now mandatory. Most application protocol specifications are independent of TCP/IP - hence no change. FTP protocol exchanges IPv4 address

42、es - hence needs to be changed.,Apr 2005,IIT Kanpur,35,The pseudo-header is changed in checksum computation: Address are 128 bits. Payload length is 32 bits. Payload length is not copied from IPv6 header. (Extension headers should not be counted.) Next header field of last extension header is used i

43、n place of protocol. UDP packets must also have checksum. (Since no IP checksum now.),Apr 2005,IIT Kanpur,36,Changes in Other Protocols,ICMPv6 Rate limiting feature added Timer based Bandwidth based IGMP, ARP merged Larger part of offending packet is included DNS AAAA type for IPv6 addresses A6 type

44、: recursive definition of IP address Queries that do additional section processing are redefined to do processing for both A and AAAA type records,Apr 2005,IIT Kanpur,37,Socket API,“Sockets” interface the de facto standard API for TCP/IP Applications. Need to change Socket API in order to reflect th

45、e increased address length in IPv6. Also need to make new features like flow label, visible to applications. A few new library routines Complete source and binary compatibility with original API. One can have some sockets using IPv4 and others using IPv6.,Apr 2005,IIT Kanpur,38,Transition to IPv6: D

46、esign Goal,No “flag”day. Incremental upgrade and deployment. Minimum upgrade dependencies. Interoperability of IPv4 and IPv6 nodes. Let sites transition at their own pace. Basic migration tools Dual stack and tunneling Translation,Apr 2005,IIT Kanpur,39,Transition Mechanisms: Dual Stack,New nodes su

47、pport both IPv4 and IPv6. Upgrading from IPv4 to v4/v6 does not break anything. Same transport layer and application above both. Provides complete interoperability with IPv4 nodes.,Apr 2005,IIT Kanpur,40,Transition Mechanism: Tunnels,Tunnel IPv6 packets across IPv4 topology. Configured tunnels: Expl

48、icitly configured tunnel endpoints. Router to router, host to router. Automatic tunnels: Automatic address resolution using embedded IPv4 address (like IPv4-compatible address). Host to host, router to host,Apr 2005,IIT Kanpur,41,Transition mechanism: Translation,This will allow communication betwee

49、n IPv6 only hosts and IPv4 only hosts. A typical translator consists of two components: translation between IPv4 and IPv6 packets. Address mapping between IPv4 and IPv6 For translation, three technologies are available: header conversion transport relay application proxy,Apr 2005,IIT Kanpur,42,NAT-P

50、T,Combination of Network Address Translation (NAT) and Protocol Translation (PT) Meant for communication between IPv6-only and IPv4-only nodes. No change is needed on the IPv6-only nodes. But translation is not stateless. Hence, single point of failure.,Apr 2005,IIT Kanpur,43,NAPT-PT,Network Address Port Translation + Pr

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论