Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSE 331: Introduction to Networks and Security Fall 2001 Instructor: Carl A. Gunter Slide Set 3.

Similar presentations


Presentation on theme: "CSE 331: Introduction to Networks and Security Fall 2001 Instructor: Carl A. Gunter Slide Set 3."— Presentation transcript:

1 CSE 331: Introduction to Networks and Security Fall 2001 Instructor: Carl A. Gunter Slide Set 3

2 Internetworking l Bridges l IP l Scaling IP l Next Generation IP l DNS l Multicast

3 Inter-networking Challenges H eter og e N i e t y Scale

4 Extended LANs l Idea: extend LAN.  More hosts  Larger area l How? Use “amplification”.  Inter-LAN packet forwarding  called a repeater  limited by specification.

5 Bridges l Logically, these are switches l As part of a logical broadcast:  Forward packet on input port to all other ports l Self-Learning Bridge  Watch source addresses to learn destinations  A “transparent” optimization

6 Learning Example

7 Topology and Bridges l Consider broadcast emulation: Host

8 Problem: Cycles (Loops) l Frame gets rebroadcast forever l Could avoid by construction, BUT:  Hard, especially management  Often want redundancy l Solution:  Restrict Active ports to a “Spanning Tree”  Basic design by Radia Perlman

9

10 Root l Spanning Tree: shortest paths to root ROOT Host

11 Spanning Tree Algorithm l Messages  Sender ID  Belief about root ID  Distance to root l Elect root for family of LAN’s and designated bridge for each LAN. l Initially: each bridge considers itself root. l Update and forward protocol.

12 Spanning Tree Algorithm, ctd l A configuration message is better if  provides root with smaller ID  provides root with equal ID but shorter distance to root  provides equal root ID and distance to root but sending ID has smaller ID l Only root bridge sends configuration information at the end. Time out to recover from failure.

13

14 Limitations l Scaling  Connections on order of dozens  Transparency incomplete l Heterogeneity  Limited to compatible link layers

15 IP l Terminology l Service model l Addresses l Forwarding l ARP l ICMP

16 Internetworks Router (Gateway)

17 Internetworks FDDI Ring H5 H4 H6 H3H2H1 H8H7 R2 R1 R3 Ethernet Point-to-Point Link (e.g., ISDN) Ethernet

18 IP Interoperability HTTP TCP FTP UDP NFS ISDN Ethernet ATM Overlays (running at hosts) Virtual Network Infrastructure (runs globally) Networks (run locally)

19 IP Encapsulation

20 Service Model l Choose minimal service model  All nets can implement  “Tin cans and a string” extremum l Features:  Best-effort (datagram) delivery  Reliability, etc. as overlays  Packet format

21 IPv4 Packet Format Version Hlen TOS Length Ident Flags Offset TTL Protocol Checksum SourceAddr DestinationAddr Options (variable length) Pad DATA 0 4 8 16 19 31

22 Fields of IPv4 Header l Version  version of IP, 4 in this case l Hlen  Header length, in 32-bit words l TOS  Type of Service (rarely used)  Priorities, delay, throughput, reliability

23 Header fields, continued l Length  Length of datagram, in bytes  16 bits, hence max. of 65,536 bytes l Fields for fragmentation and reassembly  Identifier  Flags  Offset

24 Header fields, continued l TTL  Time to live (in reality, hop count)  64 is the current default l Protocol  e.g., TCP (6), UDP(17), etc. (see hourglass)

25 Yet more fields…. l Checksum  Checksum of header; described P&D 3.4 l SourceAddr, DestinationAddr  32 bit IP addresses - global, IP-defined l Options  length can be computed using Hlen

26 Fragmentation and Reassembly l Networks differ on maximum packet size l IP Fragmentation-and-Reassembly analogous to ATM Segmentation and Reassembly l Maximum Transmission Unit (MTU)  Path MTU is min MTU for path l F-and-R BAD for performance (Mogul,..)

27 FDDI Ring H5 H4 H6 H3H2H1 H8H7 R2 R1 R3 Ethernet Point-to-Point Link (e.g., ISDN) Ethernet H1R1R2R3H8 ETH IP (1400)FDDI IP (1400)P2P IP (512)ETH IP (512) P2P IP (376)ETH IP (376) ETH IP (512)P2P IP (512) MTU = 1500 MTU = 4500 MTU = 532 MTU = 1500

28 Fragmented packets Unfragmented packet

29 IP addresses l Hierarchical, not flat as in Ethernet l Written as four decimal numbers separated by dots: 158.130.14.2 A B C Network Host 11 1 0 0 0 724 1416 218

30 Network Classes

31 Forwarding l If (network # dest == network # interface) then deliver to destination over interface l else if (network # dest in forwarding table) deliver packet to NextHop router l else deliver packet to default router

32 ARP l ARP - Address Resolution Protocol  Mapping between IP and link layer addresses using broadcast

33 ARP Packet Format

34 ARP and ICMP l ICMP - Internet Control Message Protocol  ping  redirect  error messages

35 Scaling Problems l Not enough network numbers. l Routing information too cumbersome.

36 Subnets l Solution: Subnetting  All nodes are configured with subnet mask  Allows definition of a subnet number -All hosts on a physical subnetwork share the same subnet number 111111111111111111111111 00000000 Network number Subnet ID Host ID Subnet Mask (255.255.255.0) Subnetted Address:

37 Subnets, cont’d l Mask is bitwise-ANDed with address l This is done at routers l Router tables in this model:  l Subnetting allows a set of physical networks to look like a single logical network from elsewhere

38 Forwarding Algorithm D = destination IP address for each forwarding table entry (SubnetNumber, SubnetMask, NextHop) D1 = SubnetMask & D if D1 = SubnetNumber if NextHop is an interface deliver datagram directly to destination else deliver datagram to NextHop (router)

39 IP Routing l Begin by partitioning problem:  Interdomain Routing - between administrative domains (e.g., companies)  Intradomain Routing - inside administrative domains

40 Intradomain Routing l RIP - Routing Information Protocol  Uses distance vector algorithm  Limited to small nets; <15 hops  See packet format p. 245 P&D l OPSF - Open Shortest Path First  Augmented version of link-state  Augmentation includes authentication, load- balancing, and defined areas

41 Synchronous Bellman-Ford 0     0 1   1 0 1 2 2 1 Destination

42 Asynchronous Version 0     0 1    0 1 2   0 1 2 3  0 1 2 3 4

43 Counting to Infinity Loops may form and stability cannot occur without “counting to infinity”. Problem in RIP addressed in AODV at the cost of greater complexity. 1 1 20 6 4 5 3 4 5 3 4 2   2 3  2

44 Interdomain Routing l EGP - Exterior Gateway Protocol  Early; constrained Internet to tree and hence shares some problems of bridging (scalability, path exploitation, etc. ….. )

45 Interdomain Routing, cont. l BGP - Border Gateway Protocol  Arbitrary topology  Lego-like interconnection of Administrative Domains -local traffic: originates or terminates in A.D. -transit traffic: passes through -stub: one A.D.-A.D. link -multihomed: multiple A.D. links, no transit -transit: connections to other A.D.s; carry transit

46 Intradomain Routing, cont. l BGP  A border gateway is an IP router that forwards packets between A.D.s  A.D. has one “BGP speaker”  BGP advertises reachability, not costs  And it advertises paths between A.D.s  Thus, not LSP or DV.  Router state ~# A.D.s, hence large

47 Next Generation IP l Lots of addresses (128 bits) l Real-time l Security l Autoconfiguration l Mobile hosts and other enhanced routing functions

48 Packet Format Next Header/Data Ver. Prio FlowLabel PayloadLEN NextHeader HopLimit Source Address (128 bits) Destination Address (128 bits) 031

49 Domain Name System l System for mapping mnemonic names for computers into IP addresses. l Domain Hierarchy l Name Servers l Name Resolution Cheltenham.cs.arizona.edu192.12.69.60

50

51 Records on Name Servers l l Types  A Host to address mappings  NS Name server address mappings  CNAME Aliases  MX Mail server mappings l Class IN for IP addresses

52 Name Resolution


Download ppt "CSE 331: Introduction to Networks and Security Fall 2001 Instructor: Carl A. Gunter Slide Set 3."

Similar presentations


Ads by Google