introduction to routing in the internet
play

Introduction to routing in the Internet Ethernet, switching vs. - PDF document

Introduction to routing in the Internet Ethernet, switching vs. routing Internet architecture Addressing, routing principles Protocols: IPv4, ICMP, ARP (Chapters 23 in Huitema) Internet-1 S-38.2121 / Fall-07 / RKa, NB Ethernet Most


  1. Introduction to routing in the Internet Ethernet, switching vs. routing Internet architecture Addressing, routing principles Protocols: IPv4, ICMP, ARP (Chapters 2–3 in Huitema) Internet-1 S-38.2121 / Fall-07 / RKa, NB Ethernet • Most widespread LAN technology • Shared medium: Carrier sense multiple access with collision detection (CSMA/CD) Host 2 Host 1 Host 3 Host 4 Shared Ethernet segment • Everyone receives everyone’s traffic! • Supports broadcast • Limited length! Internet-2 S-38.2121 / Fall-07 / RKa, NB 1

  2. Interconnecting Ethernet segments with repeaters • Repeaters repeats traffic of one segment on the other segment Host 1 Host 2 Host 3 Host 2 Host 1 Host 3 Host 4 Host 5 Repeater Hub • Hubs are multi-port • Still everyone receives everyone’s traffic! repeaters • Limited number of repeaters! Internet-3 S-38.2121 / Fall-07 / RKa, NB Bridges learn where devices are and forward packets only to the segment where the destination is • Prior to discovery bridges/switches pass all traffic between segments Host 1 Host 2 Host 3 • Broadcast traffic Host 4 Host 5 sent to all devices Bridge/switch • Allows different speeds in different segments • Network size not physically limited Internet-4 S-38.2121 / Fall-07 / RKa, NB 2

  3. Example Host 1 Host 2 Host 3 Host 4 • Host 1 has a packet to send to Host 4 • The switch receives the packet and learns that Host 1 is on interface 1 • The switch does now know Host 4 • The packet is sent on all interfaces Switch • Host 4 has a packet to send to Host 1 Host 1 Host 2 Host 3 Host 4 • The switch receives the packet and learns that Host 4 is on interface 4 • The switch now knows that Host 1 is on interface 1 Switch • The packet is sent on interface 1 Internet-5 S-38.2121 / Fall-07 / RKa, NB A spanning tree connects all segments without loops • Spanning tree protocol – Only one possible path between two devices -> loops are impossible – Some bridges are redundant Note that the packet from host 1 to host 2 must be sent 1 via two bridges, not one! Redundant bridge Bridge 2 Bridge Bridge Bridge Active bridge Internet-6 S-38.2121 / Fall-07 / RKa, NB 3

  4. A router allows the shortest paths to be used Host 1 Host 3 Ethernet 1 Router Bridge Ethernet 2 ATM A router • operates on the network layer Host 2 • can interconnect networks of different technology (ATM, Ethernet, Frame relay, FDDI, …) Internet-7 S-38.2121 / Fall-07 / RKa, NB Routed IP vs. switched Ethernet Routed IP Switched Ethernet • Interworking between network • Works with Ethernets technologies • Complex, expensive • Simple, cheap, less layers • One route per destination • All destinations use the same spanning tree • shorter routes • load distribution • longer routes • congestion on the tree • Address allocation • Fixed addresses • Hierarchical address space • Flat address space Internet-8 S-38.2121 / Fall-07 / RKa, NB 4

  5. Issues to be addressing for use of Ethernet in WANs • Avoid broadcasting of packets to an unknown destination • Forwarding table size (flat topology) • Use the shortest path instead of a spanning tree • Use all available links for load balancing • Limit use of broadcasting • Faster convergence (rapid spanning tree) • Peering, policies, address hierarchy Do we re-invent IP when these are implemented in Ethernet? Internet-9 S-38.2121 / Fall-07 / RKa, NB Internet Architecture Principles End-to-end principle by Dave Clark • Hop-by-hop control vs. End-to-end control – In X.25 – In IP – Intelligence in the network – Intelligence in end station – Error and flow control on each hop – Error and flow control in end station • The network can not be trusted – The user must in any case check for errors ÿ Network control is redundant • Error checking and flow control by TCP in the end stations • No state information in the network – The network is not aware of any connections – Packets routed independently – If a link fails, another route is used • Same principle as in distributed systems Internet-10 S-38.2121 / Fall-07 / RKa, NB 5

  6. Internet Architecture Principles by Vinston Cerf IP over everything • Internet connects different types of networks – Each with different framing, addressing, … Interconnection based on translation Interconnection based on overlay • Mapping through a gateway • Approach used by IP • Never perfect • Single protocol over all underlying networks • Simple to adapt to new technologies – Define framing or encapsulation – Define address resolution: IP- address ÿ network address • Unique IP-address Translation still needed in many cases E.g. signaling interworking, IPv4 to IPv6 mapping Internet-11 S-38.2121 / Fall-07 / RKa, NB Internet Architecture Principles IP over everything HTTP, FTP, IMAP, SMTP, ... TCP, UDP, ... IP IEEE-802, ATM, X.25, ... Internet-12 S-38.2121 / Fall-07 / RKa, NB 6

  7. Internet Architecture Principles Connectivity is its own reward • The value of a network increases in proportion to the square of the number of nodes on the network (Robert Metcalf's law) • Be liberal with what you receive, conservative with what by Jon Postel you send – try to make your best to understand what you receive – maximum adherance to standard when sending • Snowballing effect keeps all interested in connectivity thus keeps adhering to standards Internet-13 S-38.2121 / Fall-07 / RKa, NB The IP address defines the interface (not the host) Host 3 IP address C IP address F Router IP address D IP address E IP address B IP address A Host 2 Host 1 Internet-14 S-38.2121 / Fall-07 / RKa, NB 7

  8. Every interface also has a media specific MAC address Host 3 IP address C IP address F MAC c MAC f Router IP address D IP address E IP address B MAC d MAC e MAC b IP address A MAC a Host 2 Host 1 Internet-15 S-38.2121 / Fall-07 / RKa, NB Internet layer model – hosts and routers Host 1 Router Host 2 Application Layer Application Application e.g. SIP address Transport Layer TCP/ TCP/ port number UDP UDP Network Layer IP IP IP IP address Link Layer MAC MAC MAC MAC address Physical Layer Network 1 Network 2 Internet-16 S-38.2121 / Fall-07 / RKa, NB 8

  9. Layers and message forwarding Application Application IP address C MAC c Router TCP/UDP Router TCP/UDP IP address D IP address B MAC d MAC b IP A B IP C D IP IP address A Host 2 MAC a a b c d MAC MAC MAC Host 1 network 1 network 2 Encapsulation: a b, IP A D, TCP TCP header Data Ethernet header IP header Encapsulation: c d, IP A D, TCP TCP header Data Ethernet header IP header Internet-17 S-38.2121 / Fall-07 / RKa, NB IPv4 address formats • Originally a two-level (network, host) hierarchy 32 bits 1981 Class MSB Network Host A 0 7 bits 24 bits B 10 14 bits 16 bits C 110 21 bits 8 bits D 1110 28 bits - multicast address E 1111 For experimental and future use Internet-18 S-38.2121 / Fall-07 / RKa, NB 9

  10. IPv4 address formats 1984 • A new level for easier network administration Network Subnet Host Example: Address: 10.38.154.117 00001010 00100110 10011010 01110101 Mask: 255.255.192.0 11111111 11111100 00000000 00000000 Network: first bit “0” 00001010 = 10 Subnet: address* AND mask 001001 = 9 (36) Host: address AND NOT mask 10 10011010 01110101 = 2.154.117 address* = address with network part zeroed NB: Also written as 10.38.154.117 / 14 Internet-19 S-38.2121 / Fall-07 / RKa, NB IPv4 address formats • Examples: Mask IP address Network Subnet Host Mask IP address Network Subnet Host 0xFFFF0000 10.27.32.100 A: 10 27 32.100 0xFFFFFE00 136.27.33.100 B: 136.27 16 (32) 1.100 136.27.34.141 136.27 17 (34) 0.141 0xFFFFFFC0 193.27.32.197 C: 193.27.32 3 (192) 5 High order bits: Without right zeroes (and with right zeroes) 0 ..... 0 - 127. ÿ A-class 10.... 128. - 191. ÿ B-class R I D C y d b e a t p d u e r 110...192. - 223. ÿ C-class a t L ) e r a t d l s e u s s c d i ( Internet-20 S-38.2121 / Fall-07 / RKa, NB 10

  11. Two functions of a router: 1. Packet forwarding Which is the following On which interface should destination on that network? this packet be forwarded? Host 3 address C address F address D Router address E address B address A Host 2 Look in the routing table! Host 1 Internet-21 S-38.2121 / Fall-07 / RKa, NB Two functions of a router: 2. Construction and maintenance of the routing table • Routers exchange routing information with routing protocols (e.g. RIP, OSPF, BGP) Router Router Router Internet-22 S-38.2121 / Fall-07 / RKa, NB 11

  12. Routers maintain routes to networks (not to hosts) • Example Host 3 Network 10.29.0.0 / 16 10.29.0.1 10.30.0.2 Network 10.30.0.0 / 16 Router 10.30.0.254 10.30.0.1 10.31.0.30 Network 10.31.0.0 / 16 10.31.0.35 Host 2 Host 1 Internet-23 S-38.2121 / Fall-07 / RKa, NB Aggregation describes several addresses in a single entry to reduce size of routing tables • Example Host 3 Network 10.29.0.0 / 16 10.29.0.1 10.30.0.2 Network 10.30.0.0 / 16 Network 10.30.0.0 / 16 Router 10.30.0.254 10.30.0.1 10.31.0.30 Network 10.31.0.0 / 16 10.31.0.35 Host 2 Host 1 Network 10.0.0.0 / 8 Internet-24 S-38.2121 / Fall-07 / RKa, NB 12

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend