195
IPv6 Engineering Workshop 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

Embed Size (px)

Citation preview

Page 1: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

1

IPv6 Workshop

University of Maryland - College ParkMay 13-14 and May 15-16, 2008

Page 2: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

2

Acknowledgements

Larry BlunkJoe Breen

Grover BrowningBill CervenyBruce Curtis

Dale FinkelsonMichael LambertRichard Machida

Bill ManningBill Owens

Rick SummerhillBrent Sweeny

Page 3: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

3

IPv6 Addressing

Page 4: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

4

Overview of Addressing

• Historical aspects• Types of IPv6 addresses• Work-in-progress• Internet2 Network IPv6 addressing

Page 5: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

5

Historical Aspects of IPv6

• IPv4 address space not big enough– Can’t get needed addresses

(particularly outside the Americas)– Routing table issues– Resort to private (RFC1918) addresses

• Competing plans to address problem– Some 64-bit, some 128-bit

• Current scheme unveiled at Toronto IETF (July 1994)

Page 6: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

6

Private Address Space

• Led to the development of NAT.• Increased use of NAT has had an effect on

the uses the Internet may be put to.– Due to the loss of transparency

• Increasingly could lead to a bifurcation of the Internet.– Application rich– Application poor

• Affects our ability to manage and diagnose the network.

Page 7: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

7

Types of IPv6 Addresses

• Like IPv4…– Unicast

• An identifier for a single interface. A packet sent to a unicast address is delivered to the interface identified by that address.

– Multicast• An identifier for a set of interfaces (typically belonging to

different nodes). A packet sent to a multicast address is delivered to all interfaces identified by that address.

– Anycast: • An identifier for a set of interfaces (typically belonging to

different nodes). A packet sent to an anycast address is delivered to one of the interfaces identified by that address (the "nearest" one, according to the routing protocols' measure of distance).

• Specified in the v6 address architecture RFC 4291.

Page 8: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

8

What is not in IPv6

• Broadcast– There is no broadcast in IPv6.– This functionality is taken over by multicast.

Page 9: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

9

Interface Identifiers

• 64-bit field• Guaranteed unique on a subnet• Essentially same as EUI-64

– See Appendix A on RFC 4291

• Formula for mapping IEEE 802 MAC address into interface identifier

• Used in many forms of unicast addressing

Page 10: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

10

Interface Identifiers

• IPv6 addresses of all types are assigned to interfaces, not nodes.– An IPv6 unicast address refers to a single

interface. Since each interface belongs to a single node, any of that node's interfaces' unicast addresses may be used as an identifier for the node.

• The same interface identifier may be used on multiple interfaces on a single node.

Page 11: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

11

Interface Identifiers

• EUI-64 from MAC addresses:– 00-02-2D-02-82-34– 0202:2dff:fe02:8234

• The rules are:– Insert fffe after the first 3 octets– Last 3 octets remain the same– Invert the 2nd to the last low order bit of the first octet.

• Universal/local bit

Page 12: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

12

Interface Identifiers• Privacy addresses:

– Some concern was expressed about having one’s MAC address be public - h/w identifier, persistent

– The response was to standardize privacy addresses (RFC 3041).

– These use random 64-bit numbers instead of EUI-64.• May change for different connections• On by default in Windows, off by default in Linux

(net.ipv6.conf.all.use_tempaddr), OSX and BSD (net.inet6.ip6.use_tempaddr)

Page 13: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

13

Interface Identifiers

• A host is required to recognize the following addresses as identifying itself:– Its link-local address for each interface – Assigned unicast and anycast addresses– Loopback address– All-nodes multicast addresses– Solicited-node multicast address for each of

its unicast and anycast addresses– Multicast addresses of all other groups to

which the node belongs

Page 14: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

14

Interface Identifiers

• A router is required to recognize:– All addresses it must recognize as a host,

plus– The subnet-router anycast addresses for the

interfaces it is configured to act as a router on

– All other anycast addresses with which the router has been configured

– All-routers multicast addresses

Page 15: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

15

Representation of Addresses

• All addresses are 128 bits• Written as a sequence of eight groups of

four hex digits (16 bits each) separated by colons– Leading zeros in group may be omitted– A contiguous all-zero group may be replaced

by “::”• Only one such group can be replaced

Page 16: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

16

Examples of Writing Addresses

• Consider– 3ffe:3700:0200:00ff:0000:0000:0000:0001

• This can be written as –3ffe:3700:200:ff:0:0:0:1 or–3ffe:3700:200:ff::1

• Both reduction methods are used here.

Page 17: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

17

Types of Unicast Addresses

• Unspecified address– All zeros (::). Also expressed as ::0/0– Used as source address during initialization– Also used in representing default

• Loopback address– Low-order one bit (::1)– Same as 127.0.0.1 in IPv4

Page 18: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

18

Types of Unicast Addresses

• Link-local address– Unique on a subnet– Auto configured by operating system– High-order: FE80::/10– Low-order: interface identifier– Routers must not forward any packets with link-local source or destination addresses.

Page 19: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

19

Types of Unicast Addresses

• Unique local addresses– RFC 4193– Replaces site-local addressing, which was

deprecated in RFC 3879

• Not everyone thinks ULAs are a great idea– www.nanog.org/mtg-0706/Presentations/ula-

nanog.pdf

Page 20: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

20

Types of Unicast Addresses

• Mapped IPv4 addresses– Of form ::FFFF:a.b.c.d– Used by dual-stack machines to

communicate over IPv4 using IPv6 addressing in system calls

• Compatible IPv4 addresses– Of form ::a.b.c.d– Used by IPv6 hosts to communicate over

automatic tunnels– deprecated in RFC 4291

Page 21: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

21

Types of Unicast Addresses

• Aggregatable global unicast address– Used in production IPv6 networks– Goal: minimize global routing table size– From range 2000::/3– First 64 bits divided into two parts:

• Global routing prefix• Subnet identifier

Page 22: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

22

Address Deployment• There have been many discussions of how to make

use of the immense IPv6 address space.• Suggestions included:

– Provider-Independent (PI)– Provider-Assigned (PA)– Geographical

• PA addressing was selected. – It is important to understand the difference between

allocation and assignment.• More recently ARIN has started providing /48s

to end-user organizations for PI addressing.– www.arin.net/policy/nrpm.html#six58

Page 23: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

23

Internet Registry Hierarchy

• Regional IR - designated by IANA (ARIN, RIPE, APNIC, AfriNIC, LACNIC)

• Local IR - ISP, or other network provider• RIR -> LIR, LIR -> customer (or smaller

provider)ARIN 2001:0400::/23

Internet2 2001:0468::/32

MAX 2001:0468:0C00::/41

UMD 2001:0468:0C01::/48

Page 24: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

24

Internet2 Address Space

• ARIN gave 2001:468::/32 to Internet2• The bit-level representation of this is:

0010 0000 0000 0001 : 0000 0100 0110 1000 ::

• This leaves 32 bits of network space available.

• We will see later how this is to be used.

Page 25: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

25

Current Practice and Aggregation

• The overarching goal of the PA addressing scheme is aggregation.– As you move up the provider chain all

addresses are aggregated into larger blocks.– If implemented completely the result would

be a default-free zone with a very small number of prefixes — only those allocated by the RIRs.

Page 26: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

26

Other Unicast Addresses

• Original provider-based• Original geographically-based• GSE (8+8)• Tony Hain’s Internet Draft for provider-

independent (geographically-based) addressing

Page 27: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

27

Anycast Address

• Interfaces (I > 1) can have the same address. The low-order bits (typically 64 or more) are zero.

• A packet sent to that address will be delivered to the topologically-closest instance of the set of hosts having that address.

• Examples:– subnet-router anycast address (RFC 4291)– reserved subnet anycast address (RFC 2526)– 6to4 relay anycast address (RFC 3068)

Page 28: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

28

Multicast Address

• From FF00::/8– 1111 1111 | flgs (4) | scope (4) | group id (112)|

• Flags– 000t

• t=0 means this is a well-known address• t=1 means this is a transitory address

• Low-order 112 bits are group identifier, not interface identifier

• Scope and Flags are independent of each other– Well-known and local is different from well-known and

global

Page 29: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

29

Multicast address scope

0 reserved 1 interface-local scope 2 link-local scope 3 reserved 4 admin-local scope 5 site-local scope 6 (unassigned) 7 (unassigned)

8 organization-local scope 9 (unassigned) A (unassigned) B (unassigned) C (unassigned) D (unassigned) E global scope F reserved

Page 30: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

30

Internet2 Network Allocation Procedures

• GigaPoPs allocated /40s– Expected to delegate to participants

• The minimum allocation is a /48– No BCP (yet) for gigaPoP allocation

procedures• Direct connectors allocated /48s

– Will (for now) provide addresses to participants behind gigaPoPs which haven’t received IPv6 addresses

• See http://ipv6.internet2.edu/faq.shtml for details

Page 31: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

31

Internet2 Network Registration Procedures

• Providers allocated address space must register suballocations– ARIN allows rwhois or SWIP– For now, Internet2 will use SWIP– Will eventually adopt rwhois– GigaPoPs must also maintain registries

• Will probably have central Internet2 registry

Page 32: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

32

Obtaining Addresses

• If you are a gigaPoP or a direct connect send a note to the Internet2 NOC ([email protected]) with a request.– Will set the wheels in motion

• If you connect to a gigaPoP you should obtain your address block from that gigaPoP— talk to them first. – Remember the minimum you should receive

is a /48.– More is OK if you can negotiate for a larger block.

Page 33: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

33

Allocation Schemes

CIDR representation and IPv6 allocations

Page 34: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

34

IPv4 Subnet Masking

• Originally the network size was based on the first few bits (classful addressing)

• Getting rid of address classes was painful!– routing protocols, stacks, applications

• Modern IPv4 allows subnet boundaries anywhere within the address (classless addressing)

• But decimal addresses still make figuring out subnets unnecessarily difficult. . .

Page 35: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

35

CIDR

In IPv4 you will see representations like:129.93.0.0/16129.93.0.0 255.255.0.0

At the bit level this is:10000001.01011101.00000000.00000000

Page 36: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

36

Reasons for CIDR

• To try to preserve the address space.

• To control the growth of the routing table.

Page 37: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

37

IPv6 Notation

• In IPv6 every address block can be written:– IPv6 address / prefix length

• For example:– 2001:0468::/35– 2001:0468::/32

• At the bit level:– 0010 0000 0000 0001: 0000 0100 0110 1000: 000 35

bits– 0010 0000 0000 0001: 0000 0100 0110 1000 32

bits

Page 38: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

38

Allocation Strategies Example

• We wish to allocate /48s out of the /35.• Which are available:

– 2001:0468:0000::/48 through– 2001:0468:1fff::/48

• Recall that the bit structure is:– 0010 0000 0000 0001: 0000 0100 0110 1000: 000 |

0:0000:0000:0000– 0010 0000 0000 0001: 0000 0100 0110 1000: 000 |

1:1111:1111:1111

• So there are 8192 (213) /48s in a /35

Page 39: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

39

Why Allocation?

• To try to control the growth of the routing table in the default-free zone.

• It is a necessary consequence of using a provider-based aggregatable address scheme.

• It makes the address space more manageable.

Page 40: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

40

How would allocations work?

• Suppose you wish to give out /40s in the /35.– 2001:0468:000 | 0 0000 | or 2001:0468::/40– 2001:0468:000 | 1 1111 | or

2001:0468:1f00::/40

• Thus there are 32 /40s in the /35, each of which has 256 /48s.– 5 bits (25)– 8 bits (28)

Page 41: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

41

How would allocations work?

• The same idea holds for /41s or /42s.– 2001:0468:000 | 0:0000:0 | or 2001:0468::/41– 2001:0468:000 | 1:1111:1 | or

2001:0468:1f80::/41

– 2001:0468:000 | 0:0000:00 - :000 | 1:1111:11

– 2001:0468::/42 – 2001:0468:1fc0::/42

Page 42: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

42

Mixed Allocations

• The interesting case is how to handle mixed allocations.

• Some sites need a /40, others a /42. How can you handle this case?

• See – RFC 3531 (Marc Blanchet)– A flexible method for managing the assignment of

bits of an IPv6 address block– A perl script is included.

Page 43: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

43

Lab - Mixed Allocations

• Take 2001:468::/32. Out of that allocate: – 2 subnets of /34 – 3 subnets of /37– 5 subnets of /38

• Review address allocations (separate slide)• Assign addresses:

– Assign /34s for the two top-tier routers.– Assign /35s for their downstream routers.– Assign /37s for the third-tier routers.– Remember at each level to retain some /64s for "local" use,

and allocate them for point-to-point links in the network diagram.

– When you're done, your network diagram will have loopbacks, point-to-points, and appropriately-sized network blocks allocated at each level.

Page 44: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

44

Router Configuration

Page 45: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

45

Cisco Router Configuration

• Rule #1: What would v4 do?– Enable routing

• ipv6 unicast-routing

– Configure interfaces• ipv6 address

– Configure routing protocols

Page 46: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

46

Cisco Configs

• LAN Interface

interface Ethernet0/0

ip address 192.168.1.254 255.255.255.0

ipv6 address 2001:468:123:1::2/64

Page 47: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

47

Cisco Configs

• Tunnel Interface

interface Tunnel1 description IPv6 to Abilene no ip address no ip redirects no ip proxy-arp ipv6 address 3FFE:3700:FF:105::2/64 tunnel source ATM2/0.1 tunnel destination 192.168.193.14 tunnel mode gre

Page 48: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

48

Cisco Configs

• IGP - OSPFv3, IS-IS, EIGRPv6• Static

ipv6 route <prefix> <nexthop>

Page 49: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

49

Cisco Configs

router BGP <AS-NUMBER> <generic config>address-family ipv6 unicast <ipv6 config>address-family ipv4 unicast <ipv4 config>address-family ipv4 multicast <ipv4 multicast config>

Page 50: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

50

Cisco Configs

• BGP - added to your existing IPv4 BGP config

router bgp 64555

bgp router-id 192.168.2.1

neighbor 2001:468:1::2 remote-as 11537

• router-id– only a 32-bit number, not an IPv4 address– only has to be unique within the AS

Page 51: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

51

Cisco Configs

• BGP continued. . .

address-family ipv6 unicast

neighbor 2001:468:2::1 activate

neighbor 2001:468:2::1 soft-reconfiguration in

neighbor 2001:468:2::1 prefix-list to-Abilene-v6 out

network 2001:468:4ff::/48

exit-address-family

Page 52: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

52

Cisco Configs

• BGP continued. . .

ipv6 route 2001:468:4ff::/48 Null0

!

ipv6 prefix-list to-Abilene-v6 seq 10 permit 2001:468:4ff::/48

Page 53: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

53

Cisco Configs

• OSPF interface config! For each internal (intra-pod) interface - including ! loopback0interface FastEthernet0/0 ipv6 ospf <process> area 0process is an arbitrary number, must be consistent on the

router but can be different between routers

• OSPF router configipv6 router ospf <process>! For any external (inter-pod) interfaces passive-interface <interface>

Page 54: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

54

Cisco Configs

• Securing Console Access

ipv6 access-list V6VTY permit 2001:468:4ff::/48 any

. . .

!

line vty 0 4

ipv6 access-class V6VTY in

Page 55: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

55

JunOS config editor commandsfor Cisco users

• "set" command to enter configuration, e.g. set protocol bgp local-as 65500

• "edit" command to change config context•In Junos, the prompt is your context:•[edit]% edit protocol bgp•[edit protocol bgp]%

• "delete" command to remove lines• "run" command to execute show commands while

in configuration mode• "commit" command to save and execute changes

—"commit" check verifies config

Page 56: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

56

Juniper Router Configuration

• Rule #1: What would v4 do?– Enable routing — already there. . . – Configure interfaces

• family inet6 address

– Configure routing protocols and RIBs

Page 57: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

57

Juniper Configs

• Interface (physical)

interfaces { fe-0/1/0 { unit 0 { family inet6 { address 2001:468:123::1/64; } } }}

Page 58: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

58

Juniper Configs

• Interface (tunnel)

interfaces { gr-0/3/0 { unit 0 { tunnel { source 192.168.2.2; destination 192.168.45.2; } family inet6 { mtu 1514; /* note Cisco vs. Juniper address 2001:468:123::1/64; } }

Page 59: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

59

Juniper Configs

• Router Advertisement - not enabled by default

protocols { router-advertisement { interface fe-0/3/0.0 { prefix 2001:468:123::/64; } }}

Page 60: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

60

Juniper Configs

• Static Routing in Routing-Options

rib inet6.0 {

static {

route 2001:468::/32 {

reject;

install;

readvertise;

}

router-id 192.168.2.1

Page 61: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

61

Juniper Configs

• BGP

protocols { bgp { group Abilene-v6 { type external; family inet6 { unicast; } export to-Abilene-v6; peer-as 11537; neighbor 2001:468:555:200::6; } }}

Page 62: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

62

Juniper Configs

• BGP continued. . .

policy-options { policy-statement to-Abilene-v6 { term accept-aggregate { from { route-filter 2001:468:4ff::/48 exact; } then accept; } term reject { then reject; } }}

Page 63: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

63

Cisco Show Commands

• show bgp • show bgp summary• show bgp ipv6 unicast neighbor <addr> routes• show bgp ipv6 unicast neighbor <addr>

advertised• show ipv6 route• show ipv6 interface• show ipv6 neighbors

Page 64: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

64

Juniper Show Commands

• show bgp summary• show route advert bgp <addr>• show route rece bgp <addr>• show route table inet6.0 (terse)• show interfaces • show ipv6 neighbors

Page 65: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

65

Lab: Router Interface Setup

• Work with your fellow attendees to identify how your network block will be broken up within the lab network.

• Assign IPv6 addresses for the point-to-point links in the lab.

• Confirm that opposite ends of all links are reachable.

Page 66: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

66

IGP – OSPF for IPv6

It is pretty much your father’s OSPF!

Page 67: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

67

OSPF for IPv6

• Published as RFC 2740 (80 pages!)– Protocol version 3– Link-state IGP (additive interface costs)– Same basic structure as OSPF for IPv4– IPv4/IPv6 OSPF run as “ships in the night”

• Assumption: Most campuses run OSPF as their IGP Familiarity

Page 68: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

68

Changes from OSPF for IPv4

• Protocol processing per-link, not per-subnet– “Interfaces” connect to “links”– Nodes without common subnet can

talk over link

• Removal of addressing semantics– IP addresses only in payloads– 32-bit router ID– Protocol-independent core

Page 69: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

69

Changes from OSPF for IPv4

• Addition of flooding scope– Link-local– Area– AS

• Support for multiple instances per link– Sort of like VLAN tagging but for OSPF– E.g., OSPF on shared DMZ

Page 70: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

70

Changes from OSPF for IPv4

• Use of link-local addresses– Used for next hop– Link-local destination not forwarded

• Authentication changes– Remove authentication-related fields– Rely on AH, ESP– Use normal IP checksum

Page 71: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

71

Changes from OSPF for IPv4

• Packet format changes– R-bit, V6-bit

• LSA format changes• Handling unknown LSA types• Stub area support• Identifying neighbors by router ID

Page 72: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

72

Cisco Interface Config

interface Vlan257

ip address 128.254.1.12 255.255.255.0

load-interval 30

ipv6 address 2001:FFE8:1:1::C/64

ipv6 enable

ipv6 ospf network broadcast

ipv6 ospf 1 area 0.0.0.0

Page 73: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

73

Cisco Routing Config

ipv6 router ospf 1

log-adjacency-changes

passive-interface default

no passive-interface Vlan58

no passive-interface Vlan257

no passive-interface Vlan61

no passive-interface Vlan62

no passive-interface Vlan60

no passive-interface Vlan63

no passive-interface Vlan948

redistribute connected metric-type 1

Page 74: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

74

Cisco Commands

cepheus#show ipv6 ospf neighbor

Neighbor ID Pri State Dead Time Interface ID Interface

128.254.1.17 1 FULL/BDR 00:00:33 7 Vlan257

128.254.1.18 1 FULL/DROTHER 00:00:31 7 Vlan257

Page 75: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

75

Cisco Commandscepheus#show ipv6 ospf database

OSPFv3 Router with ID (128.254.58.2) (Process ID 1)

Router Link States (Area 0.0.0.0)ADV Router Age Seq# Fragment ID Link count Bits128.254.1.17 1136 0x800007A9 0 1 E128.254.1.18 1121 0x800007A7 0 1 E128.254.58.2 138 0x8000054F 0 1 E

Net Link States (Area 0.0.0.0)ADV Router Age Seq# Link ID Rtr count128.254.58.2 138 0x8000053C 231 3

Link (Type-8) Link States (Area 0.0.0.0)ADV Router Age Seq# Link ID Interface128.254.1.17 1236 0x800007A2 7 Vl257

Page 76: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

76

Juniper Routing Config

protocols {

ospf3 {

area 0 {

interface interface-name;

}

}

}

Page 77: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

77

Juniper Commands

• show ospf3 neighbor• show ospf3 database

Page 78: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

78

OSPF Lab

• Configure routing and interface addresses• Bring up OSPFv3 on the internal campus

pod networks• Verify that the interface routes are

propagated as expected• Originate and redistribute a default route

from router C• Verify that the internal routers are seeing

the proper default route

Page 79: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

79

Things to watch for in the BGP lab

• You have to be able to reach the peer's address for BGP to come up: static, OSPF, connected.

• Your source-address needs to be the same as the one they're trying to reach (and vice-versa).

• Remember that you have to have your /48 in your IGP. – IOS: network statement and static-route-to-Null or

aggregate-address ... summary-only– JunOS: routing-options static

• Advertise your upstream's originating address into your IGP for your downstreams to be able to reach it, or set next-hop-self.

• iBGP members don't send iBGP-learned prefixes to other iBGP peers: they expect mesh. So, you should iBGP among all of A, B, and C.

• Best practice is to send only your aggregated prefix upstream.

Page 80: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

80

BGP Lab

• Configure iBGP peerings between routers A, B and C, using loopback addresses

• Configure eBGP between pods, using interface addresses agreed to between each pair of pods

• Advertise your aggregate to the other pods• Verify intra-pod and inter-pod connectivity with ping and traceroute• Can you see the other pods' BGP advertisements?

• Configure eBGP between router A and the external connection to the twenty-first router

• Verify receipt of BGP routes from the outside• Verify external connectivity with ping6 and traceroute6 to

ping-nycm.abilene.ucaid.edu• Connect to http://www.kame.net and see the swimming turtle!

Page 81: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

81

IPv6 “Under the Hood”

Page 82: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

82

Basic Headers

• IPv6

• IPv4

Page 83: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

83

Basic Headers• Fields

– Version (4 bits) – only field to keep same position and name

– Class (8 bits) – was Type of Service (TOS), renamed– Flow Label (20 bits) – new field– Payload Length (16 bits) – length of data, slightly

different from total length– Next Header (8 bits) – type of the next header,

new idea– Hop Limit (8 bits) – was time-to-live, renamed– Source address (128 bits)– Destination address (128 bits)

Page 84: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

84

Basic Headers

• Simplifications– Fixed length of all fields, not like old options

field – IHL, or header length irrelevant– Remove Header Checksum – rely on

checksums at other layers– No hop-by-hop fragmentation – fragment

offset irrelevant – MTU discovery– Add extension headers – next header type

(sort of a protocol type, or replacement for options)

– Basic principle: Routers along the way should do minimal processing

Page 85: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

85

Extension Headers

• Extension Header Types– Routing Header– Fragmentation Header– Hop-by-Hop Options Header– Destinations Options Header– Authentication Header– Encrypted Security Payload Header

Page 86: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

86

Extension Headers

• Routing Header

Page 87: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

87

Extension Headers

• General Routing Header

Page 88: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

88

Extension Headers• Fragmentation Header

• “I thought we don’t fragment?”• Can fragment at the sending host

• PathMTU discovery• Insert fragment headers

Page 89: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

89

Extension Headers

• Options headers in general• The usual next header and length• Any options that might be defined

Page 90: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

90

Extension Headers• Destinations Options Header

• Act – The Action to take if unknown option• 00 – Skip Over• 01 – Discard, no ICMP report• 10 – Discard, send ICMP report even if

multicast• 11 – Discard, send ICMP report only if unicast

• C – Can change in route• Number is the option number itself

Page 91: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

91

Extension Headers• Hop-by-Hop Extension Header

• The usual format of an options header• An example is the jumbo packet

• Payload length encoded• Can’t be less than 65,535• Can’t be used with fragmentation header

Page 92: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

92

Extension Headers• Extension Header Order

• Hop-by-Hop options Header• Destination options Header (1)• Routing Header• Fragment Header• Authentication Header• Destination Options Header (2)• Upper Layer Header, e.g. TCP, UDP

• How do we know whether or not we have an upper layer header, or an extension header?• Both are combined into header types

Page 93: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

93

Header Types

• Look in packet for next header• Can be extension header• Can be something like ICMP, TCP, UDP, or

other normal types

Page 94: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

94

Header TypesDecimal Keyword Header Type

0 Reserved (IPv4)

0 HBH Hop-By-Hop options (IPv6)

1 ICMP Internet Control Message (IPv4)

2 IGMP Internet Group Management (IPv4)

2 ICMP Internet Control Message (IPv6)

3 GGP Gateway-to-Gateway Protocol

4 IP IP in IP (IPv4 encapsulation)

5 ST Stream

6 TCP Transmission Control

--- --- ---------------------------------------

17 UDP User Datagram

Page 95: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

95

Header TypesDecimal Keyword Header Type

29 ISO-TP4 ISO Transport Protocol Class

--- --- ---------------------------------------

43 RH Routing Header (IPv6)

44 FH Fragmentation Header (IPv6)

45 IDRP Inter-domain Routing Protocol

--- --- ---------------------------------------

51 AH Authentication Header

52 ESP Encrypted Security Payload

--- --- ---------------------------------------

59 NULL No next header (IPv6)

--- --- ---------------------------------------

Page 96: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

96

Header Types

Decimal Keyword Header Type

80 ISO ISO Internet Protocol (CLNP)

--- --- ---------------------------------------

88 IGRP IGRP

89 OSPF OSPF

--- --- ---------------------------------------

255 Reserved

Page 97: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

97

ICMP• Completely changed – note new header type• Now includes IGMP• Types organized as follows

• 1 – 4 Error messages• 128 – 129 Ping• 130 – 132 Group membership• 133 – 137 Neighbor discovery

• General format:

Page 98: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

98

ICMPType Description

1 Destination Unreachable

2 Packet Too Big

3 Time Exceeded

4 Parameter Problem

128 Echo Request

129 Echo Reply

130 Group Membership Query

131 Group Membership Report

132 Group Membership Reduction

133 Router Solicitation

134 Router Advertisement

135 Neighbor Solicitation

136 Neighbor Advertisement

137 Redirect

Page 99: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

99

ICMP• Error messages (Types 1 – 4) – some examples:

• Destination unreachable• Code 0 – No route to destination• Code 1 – Can’t get to destination for administrative

reasons• Code 2 – Not assigned• Code 3 - Address unreachable• Code 3 – Port unreachable

• Packet too big• Code 0, parameter is set to MTU of next hop• Allows for MTU determination

• General format:

Page 100: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

100

ICMP

• Ping• Similar to IPv4

• Echo request, set code to 0• Echo reply sent back

• General format

Page 101: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

101

Multicast• Multicast (and Anycast) built in from the beginning

• Scope more well-defined – 4-bit integer• Doesn’t influence well-defined groups

Value Scope

0 Reserved

1 Node Local

2 Link Local

5 Site Local

8 Organization Local

E Global Local

F Reserved

Others Unassigned

Page 102: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

102

Multicast• A Few Well-Defined Groups

• Note all begin with ff, the multicast addresses• Much of IGMP is from IPv4, but is in ICMP now

Value Scope

FF02::0 Reserved

FF02::1 All Nodes Address

FF02::2 All Routers Address

FF02::4 DVMRP Routers

FF02::5 OSPF

FF02::6 OSPF Designated Routers

FF02::9 RIP Routers

FF02::D All PIM Routers

ETC

Page 103: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

103

Summary:Changes from IPv4 to IPv6• Expanded addressing capabilities• Header format simplification• Improved support for extensions and

options• Flow labeling capability• Authentication and privacy capabilities

Page 104: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

104

Neighbor Solicitation

Page 105: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

105

Neighbor Solicitation

• This protocol solves a set of problems related to the interaction between nodes attached to the same link. It defines mechanisms for solving each of the following problems...

Page 106: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

106

Problems Solved by Neighbor Solicitation

• Router Discovery: How hosts locate routers that reside on an attached link.

• Prefix Discovery: How hosts discover the set of address prefixes that define which destinations are on-link for an attached link. (Nodes use prefixes to distinguish destinations that reside on-link from those only reachable through a router.)

• Parameter Discovery: How a node learns such link parameters as the link MTU or such Internet parameters as the hop limit value to place in outgoing packets.

Page 107: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

107

• Address Autoconfiguration: How nodes automatically configure an address for an interface.

• Address resolution: How nodes determine the link-layer address of an on-link destination (e.g., a neighbor) given only the destination's IP address.

• Next-hop determination: The algorithm for mapping an IP destination address into the IP address of the neighbor to which traffic for the destination should be sent. The next hop can be a router or the destination itself.

Problems Solved by Neighbor Solicitation

Page 108: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

108

Problems Solved by Neighbor Solicitation

• Neighbor unreachability detection (NUD): How nodes determine that a neighbor is no longer reachable. For neighbors used as routers, alternate default routers can be tried. For both routers and hosts, address resolution can be performed again.

• Duplicate address detection (DAD): How a node determines that an address it wishes to use is not already in use by another node.

• Redirect: How a router informs a host of a better first-hop node to reach a particular destination.

Page 109: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

109

ICMP Packet Types

• Neighbor discovery defines five different ICMP packet types: a pair of router solicitation and router advertisement messages, a pair of neighbor solicitation and neighbor advertisement messages, and a redirect message. The messages serve the following purposes...

Page 110: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

110

ICMP Packet Types

• Router solicitation: When an interface becomes enabled, hosts may send out router solicitations that request routers to generate router advertisements immediately rather than at their next scheduled time.

• Router advertisement (RA): Routers advertise their presence together with various link and Internet parameters either periodically, or in response to a Router solicitation message. Router advertisements contain prefixes that are used for on-link determination and/or address configuration, a suggested hop limit value, etc.

Page 111: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

111

ICMP Packet Types

• Neighbor solicitation: Sent by a node to determine the link-layer address of a neighbor, or to verify that a neighbor is still reachable via a cached link-layer address. Neighbor solicitations are also used for duplicate address detection.

• Neighbor advertisement: A response to a neighbor solicitation message. A node may also send unsolicited neighbor advertisements to announce a link-layer address change.

• Redirect: Used by routers to inform hosts of a better first hop for a destination.

Page 112: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

112

Valid & Preferred Prefixes

• Valid & preferred lifetime values in router-advertisements can be used to re-number.

• During a prefix’s preferred life, new connections can be opened at will.

• During a prefix’s valid life, existing connections can be used, but new connection may not be opened.

• These values are continually refreshed by default.

Page 113: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

113

Stateless Autoconfiguration

Page 114: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

114

Why does this matter?• Manual configuration of individual machines before

connecting them to the network should not be required.• Address autoconfiguration assumes that each interface

can provide a unique identifier for that interface (i.e., an "interface token")

• Plug-and-play communication is achieved through the use of link-local addresses• Small sites should not need stateful servers

• A large site with multiple networks and routers should not require the presence of a stateful address configuration server.

• Address configuration should facilitate the graceful renumbering of a site's machines

Page 115: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

115

Stateless AutoconfigurationGenerate a link local address

Verify this tentative addressis OK. Use a neighbor solicitation

with the tentative address as the target.ICMP type 135

If the address is in usea neighbor advertisement message will be returned.

ICMP type 136

If no response,assign the address to the interface. At this point the

node can communicate on-link.

Fail and go to manual configuration or choose a different interface token.

Page 116: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

116

Stateless Autoconfiguration

Assign address to interface.

Node joins the All Routers multicast group. FF02::2

Sends out a router solicitation message to that group.

ICMP type 133Router responds with arouter advertisement.

ICMP type 134

Page 117: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

117

Stateless Autoconfiguration

Look at the “managed address configuration" flag

If M = 0 proceed withstateless configuration

If M = 1 stop anddo stateful config

Look at "other stateful configuration" flag

If O = 0 finish

If O = 1 use stateful configuration for other information

Page 118: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

118

Router Solicitation

Type = 133 Code = 0 Checksum

Reserved

Possible option:Source Link Layer Address

Page 119: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

119

Router Advertisement

Type = 134 Code = 0 Checksum

Cur. Hop Limit M O Reserved Router Lifetime

Reachable Time

Retransmission Timer

Possible options:-Source Link Layer Address

-MTU-Prefix Information

Page 120: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

120

Neighbor Solicitation

Type = 135 Code = 0 Checksum

Reserved

Target Address

Possible option:Source Link Layer Address

Page 121: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

121

Neighbor Advertisment

Type = 136 Code = 0 Checksum

R S O Reserved

Target Address

Possible option:Source Link Layer Address

Page 122: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

122

Prefix Option

Type Length Prefix Length L A Reserved

Valid Lifetime

Preferred Lifetime

Reserved

Prefix List

Page 123: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

123

Router Solicitation OptionsPrefix Information

• This should include all prefixes the router is aware of

• Flag bits:– On-link = 1

• Prefix is specific to the local site

– Autonomous Configuration bit = 1• Use the prefix to create an autonomous

address

Page 124: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

124

Router Solicitation OptionsPrefix Information

• Valid Lifetime– 32-bit unsigned integer. The length of time

in seconds before an address is invalidated.

• Preferred Lifetime– 32-bit unsigned integer. The length of time

in seconds before an address is deprecated.

Page 125: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

125

Stateless Autoconfig

• Routers are to send out router advertisements at regular intervals to the all-hosts address.– This should update lifetimes.

• Note that stateless autoconfiguration will only configure addresses.– It will not do all the host configuration you

may want to do.

• RFC 2462 defines IPv6 Stateless Autoconfig

Page 126: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

126

Stateful Configuration

• When you do not wish to have stateless configuration done you will need to provide a configuration server (DHCP most likely) to provide configuration information to the hosts as they come up.– RFC 3315 defines DHCP, updated by RFC

4361– Dibbler – DHCPv6 implementation

• http://sourceforge.net/projects/dibbler

Page 127: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

127

Cisco SLAAC/ND Options

• advertisement-interval  Send an advertisement interval option in RA's 

• dad                      Duplicate Address Detection managed-

• config-flag      Hosts should use DHCP for address

• config ns-interval     Set advertised NS retransmission interval 

• other-config-flag Hosts should use DHCP for non-address config 

• prefix              Configure IPv6 Routing Prefix Advertisement 

• ra-interval              Set IPv6 Router Advertisement Interval 

• ra-lifetime              Set IPv6 Router Advertisement Lifetime 

• reachable-time     Set advertised reachability time 

• suppress-ra              Suppress IPv6 Router Advertisements

Page 128: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

128

Address Configuration Lab• Disable IPv6 on router D interface FastEth 1/0 (remove “ipv6

address …” line)• Start Wireshark running on computer• Disconnect and reconnect the Ethernet cable between computer

and switch• Observe the neighbor discovery and attempted address

configuration packets

• Log in to router D• Restore IPv6 on the interface:

interface f1/0ipv6 address 2001:468:0c0d:xxxx::/64

• Disconnect and reconnect the Ethernet, and observe the address autoconfiguration process

• Verify the address with ifconfig

Page 129: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

129

DHCP ‘Lite’

• Used in combination with stateless address configuration, to provide other information:– DNS resolver– domain suffix

ipv6 dhcp pool v6lite dns-server 2001:4::1 domain-name example.com!interface FastEthernet0/1 ipv6 address 2001:4:1::1/64 ipv6 nd other-config-flag ipv6 dhcp server v6lite

Page 130: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

130

Cisco DHCPv6 Configuration

r5(config)#ipv6 dhcp ? 

database Configure IPv6 DHCP database agents 

pool       Configure IPv6 DHCP pool

Page 131: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

131

Cisco DHCPv6 Configuration

r5(config-subif)#ipv6 dhcp ? 

client   Act as an IPv6 DHCP client 

relay    Act as an IPv6 DHCP relay agent 

server   Act as an IPv6 DHCP server

Page 132: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

132

Cisco DHCPv6 Configuration

r5(config)#ipv6 dhcp pool v6-testr5(config-dhcp)#?IPv6 DHCP configuration commands: default             Set a command to its defaults dns-server          DNS servers domain-name Domain name to complete unqualified host

names exit                Exit from DHCPv6 configuration

mode no                  Negate a command or set its defaults prefix-delegation   IPv6 prefix delegation sip                 SIP Servers options

Page 133: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

133

Cisco DHCPv6 Snippets

ipv6 dhcp pool v6-eeeedns-server 2001:DB8:AAAA::3domain-name tb.foo.net[snip]

interface GigabitEthernet0/1.19[snip]

ipv6 address 2001:DB8:EEEE::1/64ipv6 nd ra-interval 60ipv6 nd ra-lifetime 600ipv6 nd other-config-flagipv6 dhcp server v6-eeee

Page 134: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

134

DHCPv6 Clients

• Windows Vista - built into OS• Windows XP- dibbler• Linux - dibbler, ISC DHCPv6• *BSD - ISC DHCPv6• Solaris - ISC DHCPv6• MacOS X - None (except for experimental

Python DHCPv6 client)

Page 135: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

135

Lab - DHCPv6• (This lab assume computer has a DHCPv6 client installed on it)• Set the neighbor discovery option “other-config” on the router

interface attached to LAN switch with interface command “ipv6 nd other-config-flag”

• Configure DHCPv6 options for DNS server and DNS domain on same router as LAN switch with something similar to:– ipv6 dhcp pool lab-dhcpv6– dns-server <v4 or v6 address>– domain-name v6lab.maxgigapop.net

• Refer to above DHCPv6 configuration with interface command “ipv6 dhcp server lab-dhcpv6”

• While running wireshark, disconnect and reconnect Ethernet cable for computer (This can also be observed from the router with appropriate debug commands)

• Check computer’s domain name and DNS server list to confirm that DHCPv6 worked.

Page 136: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

136

DNS

Page 137: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

137

DNS Issues

• BIND Versions– All modern versions of BIND support AAAA– BIND9 can use IPv6 transport for queries

• An IPv6 root test project is underway; see www.rs.net for details.

• ip6.int vs. ip6.arpa – ip6.arpa is in the root servers– ip6.int has been deprecated and dropped

• Some registrars and registries are now supporting IPv6 NS records.

Page 138: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

138

Basic Ideas

• DNS in IPv6 is much like DNS in IPv4.• It is impossible to remember IPv6 addresses — DNS is the

only way to remain sane.• Keep files and delegations as simple as possible.• Can use IPv4 or IPv6 as transport for DNS traffic.• Modern versions of BIND will work. BIND 9 is stable and

works with IPv6 transport.• There is work on dynamic DNS in progress, but we don’t

need to worry about that for now.

Page 139: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

139

Forward Lookups

• Uses AAAA records to assign IPv6 addresses to names.

• Multiple addresses possible for any given name – for example, in a multi-homed situation.

• Can assign A records and AAAA records to a given name/domain.

• Can also assign separate domains for IPv6 and IPv4.

• Don’t be afraid to experiment!

Page 140: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

140

Sample Forward Lookup File;; domain.edu (use your favorite naming scheme)$TTL 86400@ IN SOA ns1.domain.edu. root.domain.edu. (

2002093000 ; serial - YYYYMMDDXX21600 ; refresh - 6 hours1200 ; retry - 20 minutes3600000 ; expire - long time86400) ; minimum TTL - 24 hours

;; NameserversIN NS ns1.domain.edu.IN NS ns2.domain.edu.

;; Hosts with just A recordshost1 IN A 1.0.0.1;; Hosts with both A and AAAA recordshost2 IN A 1.0.0.2

IN AAAA 2001:468:100::2:: Separate domain$ORIGIN ip6.domain.eduhost1 IN AAAA 2001:468:100::1

Page 141: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

141

Reverse Lookups

• Reverses should be put in for the ip6.arpa domain.

• File uses nibble format – see examples on next slide.

Page 142: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

142

Sample Reverse Lookup File;; 0.0.0.0.0.0.1.0.8.6.4.0.1.0.0.2.rev (use your favorite naming scheme;; These are reverses for 2001:468:100::/64);; File can be used for ip6.arpa$TTL 86400@ IN SOA ns1.domain.edu. root.domain.edu. (

2002093000 ; serial - YYYYMMDDXX21600 ; refresh - 6 hours1200 ; retry - 20 minutes3600000 ; expire - long time86400) ; minimum TTL - 24 hours

;; NameserversIN NS ns1.domain.edu.IN NS ns2.domain.edu.

; This is the forward analog for address:; host1.ip6.domain.edu. In aaaa 2001:468:100::1;1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR host1.ip6.domain.edu.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR host2.domain.edu.;;;; Can delegate to other nameservers in the usual way;;

Page 143: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

143

Sample Configuration File// named.conf (use your favorite naming scheme)

zone “domain.edu” {

type master;

file “master/domain.edu”;

}

zone “0.0.0.0.0.0.1.0.8.6.4.0.1.0.0.2.ip6.arpa" {

type master;

file "master/0.0.0.0.0.0.1.0.8.6.4.0.1.0.0.2.rev";

};

Page 144: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

144

DNS Notes

• Bind 8 can return a AAAA record using IPv4 transport.

• Bind 9 can use IPv6 transport.

• When the same name returns both an A and AAAA record, the AAAA is preferred.

• At least one application, Safari, explicitly does not follow this behavior.

Page 145: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

145

Lab - DNS IPv4/IPv6 Reachability

1. Start wireshark/tcpdump on your laptop computer2. Open a browser and attempt to access a destination/web page

that has both A and AAAA DNS records (one such destination is ipv6.google.com).

3. Analyze tcpdump/wireshark dump and identify how the browser and operating system behaves in accessing the dual-stack host.

4. Restart wireshark/tcpdump5. Disable IPv6 on a network segment between your laptop and a

dual-stack host with A and AAAA DNS records. Open browser and attempt to access the dual-stack host.

6. Analyze tcpdump/wireshark dump and identify how browser and operating system behaves when the destination is unreachable via IPv6.

7. Record and compare results with other operating systems and browsers.

Page 146: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

146

Campus IPv6

Addressing, Software Versions, Topology Issues, DNS Support,

Traffic

Page 147: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

147

Campus Addressing

• Most sites will receive /48 assignments:

16 bits left for subnetting - what to do with them?

EUI host address (64 bits)Network address (48 bits) 16 bits

Page 148: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

148

Campus Addressing

1. Sequentially, e.g. 00000001…FFFF

16 bits = 65535 subnets

Page 149: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

149

Campus Addressing

1. Sequentially2. Following existing IPv4:

Subnets or combinations of nets & subnets, or VLANs, etc., e.g.

1. 128.8.60.0/24 003c2. 128.8.91.0/24 005b3. 128.8.156.0/24 009c4. 156.56.60.0/24 vs. 129.79.60.0/24?

• 013c or 383c or 9c3c vs. 023c or 4f3c or 813c

Page 150: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

150

Campus Addressing

1. Sequentially2. Following existing IPv43. Topological/aggregating

reflecting wiring plants, supernets, large broadcast domains, etc.Main library = 0010/60

Floor in library = 001a/64Computing center = 0020/55

Student servers = 002c/64Medical school = 00c0/50and so on. . .

Page 151: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

151

New Things to Think About

• You’re not limited to 254 hosts per subnet!– Switch-rich LANs allow for larger broadcast domains

(with tiny collision domains), perhaps thousands of hosts/LAN…

• No “secondary subnets” (though >1 address/interface)• No tiny subnets either (no /126, /127, /128) — plan for

what you need for backbone blocks, loopbacks, etc.– Note RFC 3627: "Use of /127 Prefix Length Between

Routers Considered Harmful"• Subnet anycast

– Cisco supports it– Juniper doesn't

Page 152: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

152

New Things to Think About

• Every /64 subnet has far more than enough addresses to contain all of the computers on the planet, and with a /48 you have 65536 of those subnets - use this power wisely!

• With so many subnets your IGP may end up carrying thousands of routes — consider internal topology and aggregation to avoid future problems.

Page 153: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

153

New Things to Think About

• Renumbering will likely be a fact of life. Although v6 does make it easier, it still isn’t pretty. . .– Avoid using numeric addresses at all costs– Avoid hard-configured addresses on hosts

except for servers– Anticipate that changing ISPs will mean

renumbering

Page 154: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

154

Router Software Versions

• JUNOS 5.1 and up — Line Rate v6 (just turn it on)

• IOS — Use Feature Navigator to find a version: http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp – IOS 12.2T and 12.3(6a)(LD)– IOS 12.0(22)S6 and up — GSR only– 6500 with IOS 12.2(17a)SX – 7600 with SUP720 card 12.2(17d)SXB

Page 155: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

155

Routing Protocols

• iBGP and IGP (RIPng/IS-IS)– IPv6 iBGP sessions in parallel with IPv4

• Static Routing– all the obvious scaling problems, but works

OK to get started, especially using a trunked v6 VLAN.

• OSPFv3 is available in IOS 12.3 and JUNOS.– It runs in a ships-in-the-night mode relative

to OSPFv2 for IPv4 — neither knows about the other.

Page 156: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

156

Multihoming

A Discussion

Page 157: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

157

Multihoming Issues

• Many sites are multihomed in the current Internet– reliability– stability — which provider will stay in business?– competition– AUP — commodity vs. R&E

• In IPv4 we can use provider-independent addresses, or “poke holes” in the aggregation

• But IPv6 addresses are provider-assigned!

Page 158: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

158

Multihoming

University ofSmallville

ISP1(UUNET)

ISP2(Abilene)

2001:897::/32 2001:468::/32

2001:468:1210::/482001:897:0456::/48

Page 159: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

159

Problems With Multiple Addresses

• If the host or app chooses from several global addresses, that choice overrides policy, may conflict with routing intentions and can break connectivity

• Address selection rules are complex and controversial; see RFC 3484– Other informational RFCs are RFC 3582,

RFC 4116, RFC 4218, RFC 4219

Page 160: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

160

Problems With PI Addressing

• Current protocols can only control routing table growth if routes are aggregated.

• Multihoming is becoming increasingly important to service providers and end-user organizations, and the number of multihomed sites is constantly increasing.

• The address space is so large that routing table growth could easily exceed the capability of the hardware and protocols.

Page 161: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

161

What To Do?• IPv6 can’t be deployed on a large scale without multihoming support —

nobody is disputing this.• It seems likely that there will be short-term fixes to allow v6 deployment,

and long-term solutions.• IETF multi6 and shim6 working groups• recent IAB workshop

– http://www.1-4-5.net/~dmm/draft-iab-raws-report-00.txt

• two mailing lists that are discussing IPv6 multihoming options– https://www1.ietf.org/mailman/listinfo/ram– https://www1.ietf.org/mailman/listinfo/architecture-discuss

• see also– http://www3.tools.ietf.org/group/irtf/trac/wiki/RoutingResearchGroup– http://www.space.net/~gert/RIPE/ipv6-filters.html

Page 162: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

162

Get PI Space

• The RIRs have revised their rules for allocating PI space; the key is that you must plan to assign 200 /48s within 2 years.– This isn’t as hard as it sounds, but it is probably something only

gigaPoPs or large university systems can do (exercise in creativity).

– This breaks when commodity providers start offering IPv6 (unless the gigaPoP aggregates all the commodity providers as well as R&E).

• Also, ARIN has started providing /48s to end-user organizations.– from 2620:0::/23 – see http://www.arin.net/policy/nrpm.html#six58

Page 163: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

163

Poke Holes

• The standard practice in IPv4 is to get addresses from one ISP, and advertise that space to all of our providers, effectively making it a PI address.

• In the v6 world, most providers probably won’t advertise a foreign prefix to their peers, but will carry it within their own network.

• Requires that one ISP be designated as the transit provider, and others are effectively peers.

Page 164: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

164

Poke Holes

University ofSmallville

ISP1(Transit)

ISP2...N(Peers)

2001:897::/32 2001:468::/32

2001:897:0456::/48 2001:897:0456::/48

Page 165: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

165

Transition and Tunnels

Page 166: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

166

Transition

• There are really two types of cases that need to be addressed.– Network layer

• How can we get v6/v4 packets across v4/v6 networks?

– Host layer• How can a v6/v4 host access content on a

v4/v6 host?

Page 167: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

167

Network layer transition

• Tunnels

• Dual Stack

Page 168: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

168

Tunnels

• Information from one protocol is encapsulated inside the frame of another protocol.– This enables the original data to be carried

over a second non-native architecture.

• 3 steps in creating a tunnel– Encapsulation– Decapsulation– Management

Page 169: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

169

Tunnels

• There are at least 4 tunnel configurations:– Router to router– Host to router– Host to host– Router to host

• How the addresses are known determines the type of tunnel.– Configured tunnel– Automatic tunnel

Page 170: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

170

Configured Tunnels

•Typically, configured tunnels connect IPv4/IPv6 dual-stack hosts or networks across IPv4-only networks to other dual-stack networks.

•Local network administrators arrange for a tunnel between IPv6 networks across IPv4-only networks.

•This was default dual-stack architecture on Abilene until 2002; there are still some configured tunnels supported by the Abilene NOC.

Page 171: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

171

Automatic IPv6-in-IPv4 tunnel

•A dual-stack host or network automatically creates a tunnel across an IPv4-only network

•Tunnel Types–6to4: Most commonly deployed automatic tunnel format. Available with Windows XP

–ISATAP: “Intranet” automatic tunnel format; not designed for public networks

–Teredo: Promising, but still a work in progress. Designed to traverse NATs

Page 172: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

172

6to4 Relay Platforms

•Cisco IOS releases that support IPv6•Linux•FreeBSD

Page 173: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

173

Tunnel Security Issues

See: RFC 3964 – Security Considerations for 6 to 4 www.ietf.org/rfc/rfc3964.txt

draft-ietf-v6ops-teredo-security-concerns-02.txt - Teredo Security Concerns

Page 174: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

174

Dual Stack

• This is likely to be the predominant network-layer transition tool.

• It appears that when all the tools using tunnel mechanisms were being developed, no one thought viable dual-stack routers would show up as quickly as they in fact have.– Most backbones could be dual-stack very

easily, and will be when there is a demand.

Page 175: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

175

Transition

• Tunnels will remain useful as a tool for connecting isolated hosts in home networks to v6 nets– Earthlink secure IPv6 in IPv4 tunnel using

open-source Linux on Linksys 54G/GSwww.research.earthlink.net/ipv6/

Page 176: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

176

Host level transition

• This is where transition could bog down.• How do you make web and other servers

transparently accessible to either v6 or v4 hosts?

• There are several approaches.– Dual stack– Bump-in-the-stack– NAT-like devices– Translators

Page 177: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

177

Translators

• Within Linux variants there is a tool called Faithd.– This is a transport layer translator.

• There are also header translators out there:– SIIT– Nat-PT (historical)– Socks– Various application specific translators

Page 178: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

178

Summary

• This is neither as hard as was once thought, nor as easy as we might like to make it.

• Dual Stack will be viable much sooner then was thought.

Page 179: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

179

IPv6 Security

Page 180: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

180

Security Considerations

• Sit down and think, “What do I do for IPv4?”– Go through your best security practices – Create campus/department best security practices if

necessary– Check off each practice for IPv6 as well as IPv4

• Most host OS implementations have IPv6 on by default

• Firewalls (host or router)– Do they support IPv6?– Are they on for IPv6 by default?– Mimic rules for IPv6!!!

• Know your services!– Scan all hosts and routers for IPv6 services – Nmap supports IPv6 – does NOT support subnet

sweeps for IPv6 (approx. 28 years+ for 1 subnet)

Page 181: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

181

Security Considerations (continued)

• Check status of IPv6 support for your security tools– Use netflow9 for IPv6 flow support on Cisco– IDS/IPS support?– Firewall support?– Vulnerability scanner support?– Etc.

• Don’t allow mission critical areas to bring up IPv6 without audit/scan of devices by security group– Human resources department– Credit card department– HIPAA, FERPA, etc.

Page 182: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

182

Security Considerations (continued)• Watch out for router/application access control lists and

various IPv6 address types– IPv6 mapped addresses can cause problems if application

uses them and you don’t allow them– IPv6 multicast groups are necessary for basic network

connectivity– Routers will use link-local addresses for routing

• Be careful with stateless autoconfig– Hosts are “live” on the net with no administrative

interaction• Potential for DoS attacks using RH0

– www.secdev.org/conf/IPv6_RH_security-csw07.pdf– www.sixxs.net/faq/connectivity/?faq=filters– RH0 may soon be deprecated, or disabled by default

Page 183: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

183

Security Considerations (continued)

• Automatic IPv6 tunneling can enable hosts to be on IPv6 network without realizing it– Can also skew traffic delay results

• Prevent hosts on your networks from spoofing IPv6 addresses– Use access lists– Or, on Cisco platforms that support it, use ipv6 verify unicast reverse-path

– Also goes a long way toward blocking the RH0 threats• IPSec inherent to IPv6• IPv6 Security Threats whitepaper -

www.seanconvery.com/v6-v4-threats.pdf

Page 184: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

Portions Copyright Internet2, 2001-2007

184

IPv6 Applications

Page 185: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

185

Operating Systems - Windows

• Windows XP – Supported since initial release– Type “ipv6 install” on XP (no service pack)– Type “netsh interface ipv6 install” for SP1

or SP2 or use control panel to add network protocol

• Advanced networking service pack adds support for Teredo

• Internet Explorer and Firefox web browsers IPv6-enabled

• 6to4, ISATAP and Teredo supported• www.microsoft.com/ipv6/

Page 186: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

186

Operating Systems - Windows• IPv6 is on by default in Windows Vista, and will be

supported across all Microsoft products eventually– Active DNS supports AAAA but not transport

• Firewall in Windows 2003 server with SP1 supports IPv6• Firewall in Windows XP with SP2 supports IPv6• Ping, tracert, telnet, ftp, netstat and netsh commands all

support IPv6• In Windows Vista, some P2P and/or collaboration tools are

IPv6-only– e.g. Windows Meeting Space; see

http://technet.microsoft.com/en-us/windowsvista/aa905083.aspx

– If the two hosts communicating with these tools don't have native IPv6 connectivity, the IPv6 traffic will be encapsulated in tunnels

Page 187: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

187

Operating Systems – MacOS X

• IPv6 is enabled by default on all interfaces, and can be manually configured through the “network preferences” panel

• 6to4 can be configured, and will track IPv4 address changes

• The “security” panel configures both v4 and v6 firewalls (ipfw and ip6fw)

Page 188: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

188

Operating Systems – MacOS X

• IPv6 support has been added for:– AppleShare– ssh and sshd– ftp and ftpd– Safari (uses v6 for sites without v4 addresses)– DNS queries– multicast DNS– many other system utilities (telnet, ping, traceroute, syslog,

xinetd, etc.)– Firefox in MacOS X disabled IPv6 DNS resolution by default

Page 189: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

189

Operating Systems - Linux• www.linux-ipv6.org – USAGI Project (WIDE)

• www.tldp.org/HOWTO/Linux+IPv6-HOWTO/

• www.deepspace6.net – "the Linux IPv6 Portal"

• Most major open source applications support IPv6

– Red Hat / Fedora enable IPv6 by default but do NOT install ip6tables by default!

• Debian IPv6 Developer’s List: http://lists.debian.org/debian-ipv6/

Page 190: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

190

Operating Systems - UNIX

• www.kame.net – WIDE’s FreeBSD IPv6 site• wwws.sun.com/software/solaris/ipv6/ —

IPv6 is standard in Solaris since version 8

Page 191: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

191

IPv6-ready hardware and software

• www.ipv6ready.org– Focuses mostly on routers, network equipment and

operating systems at present– Includes participation by WIDE, IPv6 Forum,

University of New Hampshire Interoperability Lab

• www.ipv6-to-standard.org• Presentations by Ron Broersma of DREN

– http://events.internet2.edu/speakers/speakers.php?go=people&id=1141

– http://winmedia.internet2.edu/jointtechs-w07/jt-w07-day3-3.wmv

Page 192: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

192

DVTS

• DVTS – Digital Video Transport Systemwww.sfc.wide.ad.jp/DVTS/www.dvts.jpA product of the WIDE Project, DVTS is openly available software which encapsulates DV video in IPv4 or IPv6 packets.

• Supports IPv4 and IPv6 Multicast• Good for “smoke testing” networks

Page 193: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

193

Apache v.2

• IPv6 support built-in (no patches or other modifications needed)

Page 194: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

194

Resources

• http://www.ipv6book.ca• http://www.ipv6book.ca/allocation.html• http://ipv6gate.sixxs.net• http://www.sixxs.net• http://www.ipv6forum.com • http://www.ipv6tf.org• http://go6.net• http://www.hexago.com• http://lists.cluenet.de/mailman/listinfo/ipv6-ops

Page 195: IPv6 Engineering Workshop Portions Copyright Internet2, 2001-2007 1 IPv6 Workshop University of Maryland - College Park May 13-14 and May 15-16, 2008

IPv6 Engineering Workshop

195

Contacts

Internet2 IPv6 Working Grouphttp://ipv6.internet2.edu/

Abilene [email protected]