internet routing is based on routing protocols that
play

Internet routing is based on routing protocols that collect the - PDF document

Introduction to Routing in Internet Internet basics IPv4 and ICMP Internet Addressing ARP - Address Resolution Protocol Routing Information (Distance Vector ) Protocol Principles 3-1 S-38.121 S-02 Rka, NB Internet routing is based on


  1. Introduction to Routing in Internet Internet basics IPv4 and ICMP Internet Addressing ARP - Address Resolution Protocol Routing Information (Distance Vector ) Protocol Principles 3-1 S-38.121 S-02 Rka, NB Internet routing is based on routing protocols that collect the input data • No off-line route planning, Routing process off-line only dimensioning. Profile, volume and service requirements of offered traffic • Routing is fully automated. Routing: Forwarding of Route traffic onto selected route generation • Routing is divided to interior and selection Service offering, state Routing protocol and use constraints of and exterior. of network resources functionality – This course will concentrate S38.121/Rka -s-01 1-8 only on Interior routing. – S38.191 will talk about exterior routing 3-2 S-38.121 S-02 Rka, NB

  2. Levels of analysis - we deal with principles, protocols and specifications Products Markets Specifications, RFCs, draft specs Protocols Principles, Requirements 3-3 S-38.121 S-02 Rka, NB Internet Architecture Principles End-to-end principle • All control in end stations k a r l C e v a D y b – e.g. error and flow control • The network can not be trusted • User must in any case check for errors -> network control redundant • More reliable transport works for IP • No state information/connection in the network – packets routed independently • Same principle as in distributed systems 3-4 S-38.121 S-02 Rka, NB

  3. Internet Architecture Principles IP over everything • Interconnection based on IP overlay over all kinds of networks f e r C n t o – framing or encapsulation n s i V y b – address resolution • IP-address to network address for each transport technology – unique IP-address • Interconnection based on translation: – e.g. signalling interworking - inperfect mapping – IPv4 to IPv6 mapping! 3-5 S-38.121 S-02 Rka, NB Internet Architecture Principles IP over everything HTTP, FTP, IMAP, SMTP, ... TCP, UDP, ... IP IEEE-802, ATM, X.25, ... 3-6 S-38.121 S-02 Rka, NB

  4. 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 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 3-7 S-38.121 S-02 Rka, NB By connecting Ethernet segments with routers the traffic of the segments can be separated Host 1 Ethernet 1 Router Ethernet 2 Host 2 3-8 S-38.121 S-02 Rka, NB

  5. Internet layer model - hosts and routers Host 1 Router Host 2 Application Application TCP/ TCP/ UDP UDP IP IP IP Network 1 Network 2 3-9 S-38.121 S-02 Rka, NB Message forwarding in Internet layers App. A App. B TCP/UDP TCP/UDP C IP IP IP network 1 network 2 Encapsulation: a1 c1, IP A B, TCP TCP header Data Ethernet header IP header Encapsulation: c1 b1, IP A B, TCP TCP header Data Ethernet header IP header 3-10 S-38.121 S-02 Rka, NB

  6. The IP address defines the interface Host 2 address A address E address C Router address D address B Host 1 3-11 S-38.121 S-02 Rka, NB Internet architecture includes a set of Service level components on top of TCP/IP Fire- DNS Mobile Web wall Agent server Video Web Multicast Voice gateway proxy router gateway TCP UDP IP In this course we may touch some of these but only in their relation to routing. 3-12 S-38.121 S-02 Rka, NB

  7. IPv4 packet header 4 4 8 16 bits Version IHL Type of Serv/DSCP Total length Identification Flag Fragment offset Time-to-live Protocol Header checksum Source IP Address Destination IP Address Optional Padding 32 bits We assume that the sender knows its own IP address, if not self configuration protocols such as RARP, BOOTP, DHCP - dynamic host conf. protocol are used DSCP - DiffServ Code Point, IHL - IP header length 3-13 S-38.121 S-02 Rka, NB IP version IP version number. Current version is 4 IHL Internet header length. Expressed as number of 32 –bit words Type of TOS contains 3MSBits: packet priority + service type. Service/ DSCP – is proposed use for Differentiated Services DSCP Total length Expressed as nrof octets in the payload and in the of the packet header Identifikation, Are used when large packets are fragmented when Flags and underlaying network has maximum packet length. Offset TTL Time-to-live. The value is decremented with an integer representing the quality of the network on each router a path of the packet. Packet is deleted when TTL reaches 3-14 S-38.121 S-02 Rka, NB

  8. Protocol Protocol, that the receiving host should use to process the datapacket, e.g. TCP Checksum Header checksum. Calculated as 16 bit one’s complement sum Source IP address of the sender of the packet. Address Destination IP address of the destination host Address Options Used for special types of information or “tricks”. One packet can carry many option fields 3-15 S-38.121 S-02 Rka, NB IPv4 address formats • Originally two-level (network, host) hierarchy 32 bits 1 8 1 9 8 8 8 8 MSB(t) Network Host Class 0 7 bits 24 bits A 10 14 bits 16 bits B 110 21 bits 8 bits C 1110 28 bits - multicast address D 1111 Experimental use E 3-16 S-38.121 S-02 Rka, NB

  9. IPv4 address formats 4 8 9 1 • A new level for easier network administration Network Subnet Host • 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 Later updated by CIDR 110...192. - 223. --> C-class 3-17 S-38.121 S-02 Rka, NB Special addresses • Unknown network replaced by 0 – Only in source address – 0.0.0.0 = ”this host in this network” – 0.X.Y.Z = ”host X.Y.Z in this network” • Broadcast address 255.255.255.255 – All host in the local network • Broadcast addresses A.255.255.255, B.B.255.255, C.C.C.255 – All hosts in a specified network • Loopback-address 127.X.X.X (usually 127.0.0.1) – Internal in one host • Multicast-osoitteet 3-18 S-38.121 S-02 Rka, NB

  10. Destination Address and the TTL are used for Routing Version IHL TOS / DSCP Total length Identification Flag Fragment offset Time-to-live Protocol Header checksum Source IP Address Destination IP Address Optional Padding Type of Service Precedence D T R C TOS = route selection criteria: D - minimization of delay or This Schema was never widely adopted! T - maximization of bandwidth or R - maximization of reliability or C - minimization of cost priority - highest value --> must be served first in the queue. Options: for example: source routing. Used very seldom because routers tend to serve packets with options last. 3-19 S-38.121 S-02 Rka, NB Source routing • Implemented with the ”source routing” option – Loose source routing (type 131) • The packet is sent to the next address in the list using normal routing. – Strict source routing (type 137) • The packet is sent to the next address in the list. If there is no direct link to the address, the packet is destroyed. • Not often used 3-20 S-38.121 S-02 Rka, NB

  11. ICMP - Internet Control Message Protocol gives feedback to the sender about the network state • Gives feedback about the network operation • All hosts and routers must support ICMP. • (To battle Denial of Service Attacks not always a good idea). • ICMP packet is sent backwards if e.g. - the receiver is unreachable - router deletes a packet - TTL = 0 • If ICMP message is deleted, a new one is not generated to avoid the snowballing effect. 3-21 S-38.121 S-02 Rka, NB ICMP messages 8 8 8 8 Type Code Header checksum Type=0 - Echo reply 0-field 3 - destination unreachable IP header + leading 64 bits of original 4 - (source quench) datagramm 5 - Redirect 32 bits 8 - Echo 9 - Router advertisement Code = 10 - Router solicitation 0 - net unreachable 11 - Time exceeded 1 - host unreachable 12 - Parameter problem 13 - Timestamp 2 - protocol unreachable 3 - port unreachable 14 - Timestamp reply 4 - fragmentation needed and DF set 15 - Information request 5 - source route failed 16 - Information reply (4 - source quench=“slow down” has been dropped from recommendations) 3-22 S-38.121 S-02 Rka, NB

Recommend


More recommend