IP Protocols. ALTTC/Oct

Similar documents
Table of Contents. Cisco TCP/IP

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Introduction to routing in the Internet

Introduction to routing in the Internet

TCPIP Protocol Suite & Utilities. Revision no.: PPT/2K403/02

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Written and provided by. Expert Reference Series of White Papers. TCP/IP Overview COURSES.

The Interconnection Structure of. The Internet. EECC694 - Shaaban

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12

Interconnecting Networks with TCP/IP

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

(Chapters 2 3 in Huitema) E7310/Internet basics/comnet 1

Topics for This Week

The Internet Protocol (IP)

Dongsoo S. Kim Electrical and Computer Engineering Indiana U. Purdue U. Indianapolis

IP Routing. Bharat S. Chaudhari International Institute of Information Technology Pune, India

Internet Control Message Protocol (ICMP)

BTEC Level 3 Extended Diploma

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Chapter 7: Routing Dynamically. Routing & Switching

Chapter 7. Local Area Network Communications Protocols

Internetworking. different kinds of network technologies that can be interconnected by routers and other networking devices to create an internetwork

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Top-Down Network Design

Internet Routing Protocols Tuba Saltürk

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

Why dynamic route? (1)

The Internetworking Problem. Internetworking. A Translation-based Solution

Chapter 3. Introduction to Dynamic Routing Protocols. CCNA2-1 Chapter 3

EEC-684/584 Computer Networks

NET2-2 Internet Protocol and Routing Network Science Certificate George Mason University

Chapter 7 Routing Protocols

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Configuring IP Unicast Routing

Network layer: Overview. Network Layer Functions

Configuring IP Unicast Routing

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

CCM 4300 Lecture 6 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

Introduction to Internetworking

Agenda L2 versus L3 Switching IP Protocol, IP Addressing IP Forwarding ARP and ICMP IP Routing First Hop Redundancy

Introduction to Computer Networks

Open Shortest Path First (OSPF)

HY 335 Φροντιστήριο 8 ο

TDC 363 Introduction to LANs

Router Architecture Overview

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

Networking Fundamentals

Chapter 4: Network Layer

Unit 3: Dynamic Routing

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Configuring IP Unicast Routing

Symbols. Numerics I N D E X

(ICMP), RFC

Routing Overview. Information About Routing CHAPTER

Chapter 09 Network Protocols

Internet Control Message Protocol (ICMP), RFC 792. Prof. Lin Weiguo Copyleft 2009~2017, School of Computing, CUC

ECE4110 Internetwork Programming. Introduction and Overview

IP : Internet Protocol

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

CHAPTER-2 IP CONCEPTS

CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Unit 6 Routing and Layers 3 and 4 Protocols. Chapter 6: Layers 3 and 4 Protocols

Lecture 12. Introduction to IP Routing. Why introduction? Routing

Windows NT Server Operating System. Server. Unicast Routing Principles. White Paper. Abstract

Configuring IP Unicast Routing

1. IPv6 is the latest version of the TCP/IP protocol. What are some of the important IPv6 requirements?

The Internet. The Internet is an interconnected collection of netw orks.

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

Basic Idea. Routing. Example. Routing by the Network

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

To make a difference between logical address (IP address), which is used at the network layer, and physical address (MAC address),which is used at

SEMESTER 1 Chapter 5 OSI Network Layer V What services does the network layer provide?

Planning for Information Network

Information About Routing

Routing by the Network

Master Course Computer Networks IN2097

Routing Protocol. Seiya Tsubone. Apr The University of Tokyo. Seiya Tsubone (The University of Tokyo) Routing Protocol Apr. 25.

Routing Protocols. Autonomous System (AS)

Back to basics J. Addressing is the key! Application (HTTP, DNS, FTP) Application (HTTP, DNS, FTP) Transport. Transport (TCP/UDP) Internet (IPv4/IPv6)

Building the Routing Table. Introducing the Routing Table Directly Connected Networks Static Routing Dynamic Routing Routing Table Principles

CSc 450/550 Computer Networks Internet Routing

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

ECE 158A: Lecture 7. Fall 2015

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Routing. Info 341 Networking and Distributed Applications. Addresses, fragmentation, reassembly. end-to-end communication UDP, TCP

Introduction to Routing

Part II. Chapter 3. Determining IP Routes

To contain/reduce broadcast traffic, we need to reduce the size of the network (i.e., LAN).

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Transcription:

IP Protocols Internet or IP technology over the years has emerged as the most prominent data communication technology. TCP/IP protocol has become de-facto data comm standard throughout the world. It can carry even voice/video also over IP protocol and in turn has started challenging the complete monopoly of TDM technology in voice communication. ALTTC/Oct 2006 2

TCP/IP and OSI OSI is made of seven layers. TCP/IP protocol is made of five layers. APPLICATION PRESENTATION APPLICATION OSI Model SESSION TRANSPORT TRANSPORT TCP/IP Model NETWORK NETWORK DATA LINK DATA LINK PHYSICAL PHYSICAL ALTTC/Oct 2006 3

TCP/IP Protocol Suite A FTP SMTP TELNET HTTP TFTP NFS SNMP DNS T TCP UDP N ICMP IGMP IP ARP RARP D P Protocols defined by the underlying networks ALTTC/Oct 2006 4

Data Encapsulation Application Data TPT Layer TCP Header Data TCP Segment UDP Header Data UDP Message NW Layer IP Header TCP-UDP Data IP Datagram Data Link Frame Head IP Header TCP-UDP Data Trailer Frame ALTTC/Oct 2006 5

TCP Header Octet +0 Octet +1 Octet +2 Octet +3 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 SOURCE PORT DESTINATION PORT SEQUENCE NUMBER ACKNOWLEDGEMENT NUMBER HELEN U R G CHECKSUM A C K P S H R S T S Y N F I N WINDOW SIZE URGENT POINTER OPTIONS AND PADDING ALTTC/Oct 2006 6

UDP Header Octet +0 Octet +1 Octet +2 Octet +3 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 SOURCE PORT DESTINATION PORT MESSAGE LENGTH CHECKSUM ALTTC/Oct 2006 7

IP Header Octet +0 Octet +1 Octet +2 Octet +3 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 VER HLEN TOS TOTAL LENGTH IDENTIFICATION D F M F FRAGMENT OFFSET TIME TO LIVE PROTOCOL HEADER CHECKSUM SOURCE ADDRESS OF HOST DESTINATION ADDRESS OF HOST OPTIONS PADDING ALTTC/Oct 2006 8

Internet Control Message Protocol Internet Control Message Protocol is a mechanism used by hosts and routers to send notification of datagram problems back to the sender. Sends error messages only to the source and not to intermediate routers. Sole function is to report problems, not to correct them. ICMP uses echo/reply to test whether a destination is reachable and responding. ALTTC/Oct 2006 9

ICMP.. Echo request/reply (PING; Packet INternet Gropher) Destination unreachable 0-Network unreachable 1-Host unreachable 2-Protocol unreachable 3-Port unreachable 4-Fragment needed but DF bit is set 5-Source route failed 6-Destination network unknown ALTTC/Oct 2006 10

ICMP 7-Destination host unknown 8-Source host isolated 9-Communication with destination network administratively prohibited 10-Communication with destination host administratively prohibited 11-Network unreachable for type of service 12-Host unreachable for type of service Time exceeded message format 0-TTL exceeded 1-Fragment reassembly time exceeded ALTTC/Oct 2006 11

Internet Group Message Protocol Internet Group Message Protocol provides allows for multicast to operate on an internetwork. Multicast is one-to-many communication. A message sent can be simultaneously received by a group of hosts. Special type of Class-D IP addresses, starting with 1110, are reserved as multicast addresses. ALTTC/Oct 2006 12

Address Resolution Protocol Address Resolution Protocol is used to translate 32 bits IP addresses to 48 bits Ethernet addresses. A host s physical address is determined by broadcasting its IP address to all machines. The machine with matching IP address, in broadcast message, sends its hardware address to the machine originating broadcast. ALTTC/Oct 2006 13

ARP Operation Give me MAC address of 129.1.1.4 Here is my MAC address 129.1.1.1 129.1.1.4 ARP Response Accepted Request Ignored Request Ignored 129.1.1.2 129.1.1.3 That s Me ALTTC/Oct 2006 14

Reverse Address Resolution Protocol Reverse Address Resolution Protocol is used to get the 32 bits Source IP address, knowing the 48 bits Hardware address. It is reverse of ARP, hence named Reverse Address Resolution Protocol. A diskless workstation broadcasts RARP- Request to find its IP Address at the time of boot up. ALTTC/Oct 2006 15

RARP Operation Give me my IP address RARP Response Diskless work station 08-00-39-00-2F-AB 223.1.2.1 08-00-39-00-2F-C3 223.1.2.2 08-00-5A-21-A7-22 RARP Server 223.1.2.3 08-00-10-99-AC-54 ALTTC/Oct 2006 16

IPv4 Address Network 32 Bits Host 8 Bits 8 Bits 8 Bits 8 Bits 172. 16. 122. 204 ALTTC/Oct 2006 17

IPv4 Address Classes Class-A: N H H H Class-B: N N H H Class-C: Class-D: Class-E: N N N For Multicast For Research H Present day Internet does not use Class full addressing, Instead Classless addressing is used. ALTTC/Oct 2006 18

Routing 172.16.2.1 120.1.3.9 Ethernet FDDI Serial TOKEN RING DATA DATA ALTTC/Oct 2006 19

Router Basics For routing the router will do a route table look up. At a minimum, each route entry must contain two items. a destination address i.e. the address of the network the router can reach. a pointer to the destination. the pointer will indicate the destination network directly connected to the router or ALTTC/Oct 2006 20

Router Basics the address of another router on a directly connected network. a router one hop closer to the destination is called a next hop router. ALTTC/Oct 2006 21

Router Lookup The router will match the most specific address it can in the descending order of specificity as below: A host address A subnet A group of subnets A major network number A group of major network numbers A default number ALTTC/Oct 2006 22

Route Table Updation Route table aquires information in two ways: Information may be added manually, by means of static route entries or Automatically by one of several systems of automatic information discovery and sharing known as dynamic routing protocols. ALTTC/Oct 2006 23

Static - Dynamic Routing Static/Non Adaptive Choice of route is computed in advance, off line, and downloaded to the router when network is booted. Dynamic/Adaptive Routing decisions change to reflect the changes in topology and/or traffic. ALTTC/Oct 2006 24

Static Routing Routes to destinations are set up manually. Network reachability is not dependent on the existence and state of the network. Route may be up or down but static routes will remain in the routing tables and traffic would still be sent towards the route. Not suitable for large networks. ALTTC/Oct 2006 25

Default Routing When a router receives a packet and its table does not contain the network number indicated in the packet, it is forwarded to default router. The default router, too, may have a default router. If there is no route or default route at any stage, the router will send a control message (through ICMP) to the originating station. ALTTC/Oct 2006 26

Default Routing Refers to last resort outlet. Easiest form of routing for a domain connected to a single exit point. Default router is indicated as 0.0.0.0 with no subnet mask. ALTTC/Oct 2006 27

Static and Default Routing 192.168.5.0 WAN R1 R2 Traffic to network 192.168.5.0 (Static Route). All outgoing traffic from network 192.168.5.0 (Default Route). ALTTC/Oct 2006 28

Dynamic Routing Routes are learnt via an internal or external routing protocols. Network reachability is dependent on the existence and state of the network. If a router is down, its entry will be deleted from the routing table and traffic to that will not be forwarded. Used to enable routers to build their own routing tables and make appropriate decisions. ALTTC/Oct 2006 29

Dynamic Routing Each router uses the update information to calculate its own shortest path (distance in hops) to a network. Tables are updated only: If the received information indicates a shortest path to the destination network. If the received information indicates a network that is no longer reachable. If a new network is found ALTTC/Oct 2006 30

Routing Protocol It is a language a router speaks with other routers to share information about the reachability and status of the network. Provides mechanisms for sharing routing information. Allows the routers to communicate with other routers to update and maintain routing tables. ALTTC/Oct 2006 31

Routing Protocol Routing Protocol messages do not carry end user traffic from network to network. Routing Protocol uses the routed protocol to pass information between routers. RIP & OSPF are routing protocols. ALTTC/Oct 2006 32

Routing Protocols AS-0 BGP IGP BGP AS-1 AS-2 IGP BGP IGP ALTTC/Oct 2006 33

Interior-Exterior Protocols Interior Gateway Protocols Routing Protocols which run within an Autonomous System are IGPs. Distance Vector and Link State protocols are IGPs. Exterior Gateway Protocols Routing Protocols that route between Autonomous System are EGPs. IGPs discover paths between networks. EGPs discover paths between autonomous systems. ALTTC/Oct 2006 34

Dynamic Routing Protocol Dynamic Routing Protocol Distance Vector Link State Algorithm- Bellman Ford Metric - Hopcount Topology - Flat RIP, IGRP Dijkstra Cost (10 8/BW) Hierarchical OSPF, IS-IS ALTTC/Oct 2006 35

Distance Vector Station-X 50 Kms Station-Y 100 Kms ALTTC/Oct 2006 36

Distance Vector Distance Vector means <Vector,Distance> Vector means the network number. Distance means what costs it go there. The distance is sometimes called metric. ALTTC/Oct 2006 37

Metrics Hop Count Bandwidth Load Delay Reliability Cost ALTTC/Oct 2006 38

Distance Vector Protocols Routing Information Protocol (RIP) for IP. Xerox Networking System s XNS RIP. Novell s IPX RIP. Cisco s Internet Gateway Routing Protocol (IGRP). DEC s DNA Phase IV. Apple Talk s Routing Maintenance Protocol (RTMP). ALTTC/Oct 2006 39

Routing Information Protocol (RIP) RIP is a distance vector protocol designed to serve as an IGP for the exchange of routing information within an autonomous system. RIP is a simple protocol suitable for use in networks of relatively small size not requiring complex metrics. Hop count is used as the metric for path selection RIP supports point-to-point links and broadcast networks Max. allowable hop count is 15 ALTTC/Oct 2006 40

Routing Information Protocol RIP packets are carried over UDP and for routing purposes use port 520. Unless triggered by a configuration change RIP packets are sent every 30 seconds. If no update packets received within 180 seconds the distance for that route is set to infinity and will subsequently be removed from the routing table. The address 0.0.0.0 represents the default route to external network ALTTC/Oct 2006 41

Routing Information Protocol I can reach network 172.16.0.0, 1 hops away I can reach network 172.16.0.0, 0 hops away B I can reach network 172.16.0.0, 2 hops away C A D I can reach network 172.16.0.0, 0 hops Router D Decides to 172.16.0.0 Router D has received two routes away follow this route as it is for network shorter 172.16.0.0, in hop which count. the best route. This It will route run is entered the bellman in ford algorithm routing on table these information s ALTTC/Oct 2006 42

Link State Routing Each router passes this information around, making a copy of it, but never changing it. Every router will have identical information about the internetwork. Every router will independently calculate its own best paths. Link State Routing protocols are sometimes called Shortest Path First or Distributive Database Protocols. ALTTC/Oct 2006 43

Link State Routing Link State Routing protocols are built around well known algorithm from graph theory E.W.Dijkstra shortest path algorithm. Examples of LSR are: Open Shortest Path First (OSPF) The ISO s Intermediate System to Intermediate System (IS-IS) for IP DEC s DNA Phase V Novell s Netware Link State Protocol (NLSP) ALTTC/Oct 2006 44

Open Shortest Path First (OSPF) Link State Protocol Supports VLSM, IP Classless(CIDR) Open (non-proprietary) Interior Gateway Protocol (IGP) Current Version is 2 (defined in RFC 1247) Latest RFC 2328 deletes TOS routing which is not widely used Uses SPF algorithm to calculate Shortest path tree (Dijkstra s Algorithm) ALTTC/Oct 2006 45

OSPF Features Hierarchical routing topology Uses Multiple Areas within an Autonomous System (AS) Area 0 is backbone area All other Areas are connected to Area 0 directly Less CPU / Memory and less protocol data traffic Supports VLSM, CIDR Supports Authentification for secure routing ALTTC/Oct 2006 46

Area-1 OSPF Areas Backbone Router Area-0 (Backbone) ABR Area-2 Area-3 ASBR Area-4 Interior Router To other AS ALTTC/Oct 2006 47

Network 172.16.0.0 connected with Router A, Cost X B OSPF BW=2Mb C Network 172.16.0.0 connected with Router A, Cost X A BW=2Mb BW=64Kb Network 172.16.0.0 connected with Router A, Cost X D BW=2Mb Router D installs route via C in its routing table Cost X Network 172.16.0.0 172.16.0.0 Router D can reach network 172.16.0.0 directly connected with via A or via C. Which one is best. It will run Router A, Cost Dijkstra X algorithm and finds out that route via C is best as total cost 10 8/BW is less for this route although it is longer than the direct route. ALTTC/Oct 2006 48

SPF Algorithm 2 2 1 1 A 5 4 4 5 5 10 10 2 5 2 D 3 3 B E H C F 2 2 1 1 8 8 4 4 G ALTTC/Oct 2006 49

Shortest Path Tree A D G B E H C F ALTTC/Oct 2006 50

OSPF Packet Types Type Code Description 1 Hello 2 Database Description 3 Link State Request 4 Link State Update 5 Link State Acknowledgement ALTTC/Oct 2006 51

Flow Chart of a Packet Packet Received Header & Checksum Valid YES Decrement TTL; TTL>=0 YES Route table lookup on Dest. Add. Route Found YES NO NO NO Send ICMP error message Discard original Packet NO Default route available YES If route available, search MAC in ARP cache MAC Address Found YES NO Build new packet with MAC address and route through port found in routing table NO Received ARP Reply Send ARP request and wait for a response Received ARP reply, insert MAC and IP address into ARP table YES ALTTC/Oct 2006 52