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

Similar documents
Review of Important Networking Concepts

TCP/IP Networking Basics

Review of Important Networking Concepts TCP/IP

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

Review of Important Networking Concepts. Recall the Example from last lecture

IP - The Internet Protocol

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

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

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

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

TCP /IP Fundamentals Mr. Cantu

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

IP Protocols. ALTTC/Oct

TCP/IP THE TCP/IP ARCHITECTURE

TCP/IP Protocol Suite and IP Addressing

Chapter 2 Network Models 2.1

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.

Chapter 7. Local Area Network Communications Protocols

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

The Internet Protocol (IP)

Where we are in the Course

The Internetworking Problem. Internetworking. A Translation-based Solution

Layering in Networked computing. OSI Model TCP/IP Model Protocols at each layer

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

End-to-End Communication

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

The Interconnection Structure of. The Internet. EECC694 - Shaaban

ECE 461 Internetworking Fall Quiz 1

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

IP Addresses. IP Addresses

IP Basics Unix/IP Preparation Course June 29, 2010 Pago Pago, American Samoa

Interconnecting Networks with TCP/IP

Network Architecture Models

TCP/IP and the OSI Model

Chapter 5 TCP/IP SUITE

Special expressions, phrases, abbreviations and terms of Computer Networks

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

Vorlesung Kommunikationsnetze

TSIN02 - Internetworking

Scribe Notes -- October 31st, 2017

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

Protocol Layers & Wireshark TDTS11:COMPUTER NETWORKS AND INTERNET PROTOCOLS

Need For Protocol Architecture

TSIN02 - Internetworking

Need For Protocol Architecture

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

TCP/IP Overview. Basic Networking Concepts. 09/14/11 Basic TCP/IP Networking 1

Networking Fundamentals

Lecture 1: Introduction

B.Sc. (Hons.) Computer Science with Network Security B.Eng. (Hons) Telecommunications B.Sc. (Hons) Business Information Systems

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

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

Lesson 5 TCP/IP suite, TCP and UDP Protocols. Chapter-4 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

CHAPTER-2 IP CONCEPTS

Define TCP/IP and describe its advantages on Windows Describe how the TCP/IP protocol suite maps to a four-layer model

Chapter 19 Network Layer: Logical Addressing

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

Chapter 2 Network Models 2.1

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

SEN366 (SEN374) (Introduction to) Computer Networks

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

ACL Rule Configuration on the WAP371

06/02/ Local & Metropolitan Area Networks 0. INTRODUCTION. 1. History and Future of TCP/IP ACOE322

CHAPTER 2 SINGLE SEGMENT NETWORKS

5105: BHARATHIDASAN ENGINEERING COLLEGE NATTARMPALLI UNIT I FUNDAMENTALS AND LINK LAYER PART A

ECE4110 Internetwork Programming. Introduction and Overview

OSI Data Link & Network Layer

Introduction to Internetworking

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Internet Protocol (IP)

Copyleft 2005, Binnur Kurt. Objectives

Networking Basics. EC512 Spring /15/2015 EC512 - Prof. Thomas Skinner 1

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

CSCI Networking Name:

Internetworking Part 2

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Chapter 5 Network Layer

Business Data Communications and Networking

Network Model. Why a Layered Model? All People Seem To Need Data Processing

SC/CSE 3213 Winter Sebastian Magierowski York University CSE 3213, W13 L8: TCP/IP. Outline. Forwarding over network and data link layers

MODULE: NETWORKS MODULE CODE: CAN1102C. Duration: 2 Hours 15 Mins. Instructions to Candidates:

University of Toronto Faculty of Applied Science and Engineering. Final Exam, December ECE 461: Internetworking Examiner: J.

Chapter 09 Network Protocols

Computer Networks. Fall 2012 (M 6:15-9:00 in Jbarry 201B) Mirela Damian.

Hands-On IP for TeleCom Technicians Internetworking, TCP/IP, VLANS, Wirelss and more...

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

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

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

Significance of TCP/IP Model Divya Shree Assistant Professor (Resource Person), Department of computer science and engineering, UIET, MDU, Rohtak

EE 610 Part 2: Encapsulation and network utilities

Network Security Fundamentals. Network Security Fundamentals. Roadmap. Security Training Course. Module 2 Network Fundamentals

Hands-On Ethical Hacking and Network Defense

Transcription:

Internet Organization Addresses TCP/IP Protocol stack Forwarding Jörg Liebeherr, 1998-2003 1 What defines the Internet? 1. Use of a globally unique address space based on Internet Addresses 2. Support of the Transmission Control Protocol/Internet Protocol (TCP/IP) suite for communications 3. Offers end-to-end delivery service for applications Jörg Liebeherr, 1998-2003 2

Growth of the Internet 1000000000 100000000 10000000 1000000 100000 10000 1000 100 Aug-81 Aug-83 Aug-85 Number of Hosts on the Internet Aug-87 Aug-89 Aug-91 Aug-93 Aug-95 Aug-97 Aug-99 Aug-01 Source: Internet Software Consortium Jörg Liebeherr, 1998-2003 3 Internet Infrastructure Jörg Liebeherr, 1998-2003 4

Internet Infrastructure The infrastructure of the Internet consists of a federation of connected networks that are each independently managed ( autonomous systems ) Note: Each autononmous system may consist of multiple IP networks Hierarchy of Internet service providers (ISPs) Tier-1: Backbone network is a nationwide or worldwide network (US: less than 20) Tier-2: regional networks (in US: less than 100) Tier-3: local Internet service provider (in US: several thousand) Jörg Liebeherr, 1998-2003 5 Internet Infrastructure Location where a network (local or regional ISP, corporate network) gets access to the Internet is called a Point-of- Presence (POP). Locations (Tier-1 or Tier-2) networks are connected for the purpose of exchanging traffic are called peering points. Public peering: Traffic is swapped in a specific location, called Internet exchange points (IXPs) Private peering: Two networks establish a direct link to each other. Jörg Liebeherr, 1998-2003 6

3Com 3Com 3Com 3Com Bay Networks Bay Networks Modem Bank SD SD Mode m B ank Mode m B ank Modem Bank Modem Bank Topology of a Tier-1 NSP Jörg Liebeherr, 1998-2003 7 Organization of a single node in a Tier-1 network Jörg Liebeherr, 1998-2003 8

Addressing in the Internet Jörg Liebeherr, 1998-2003 9 What is an IP Address? An IP address is a unique global address for a network interface A computer with 2 network interfaces has 2 IP addresses An IP address is a 32 bit long identifier that encodes a network number (or network prefix) and a host number Jörg Liebeherr, 1998-2003 10

Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in the range [0..255]: Example: 10000000 10001111 10001001 10010000 1 st Byte 2 nd Byte 3 rd Byte 4 th Byte = 128 = 143 = 137 = 144 128.143.137.144 Jörg Liebeherr, 1998-2003 11 Network number and Host number The network prefix identifies a network and the host number identifies a specific host (actually, interface on the network). The part of an IP address that contains the network number is called the network prefix. network prefix host number How do we know how long the network prefix is? The length of the network prefix is often indicated in the prefix notation of an IP address Prefix notation: 128.143.137.144/16 Network has a 16-bit prefix In the past, the network prefix was implicitly defined (class-based addressing) Jörg Liebeherr, 1998-2003 12

Example Example: ellington.cs.virginia.edu 128.143 137.144 Prefix notation of IP address of ellington.cs.virginia.edu: 128.143.137.144/16» Network prefix is 16 bits long Prefix is: 128.143 Host number: 137.144 IP address of network: 128.143.0.0/16 or 128.143/16 Host number set to zero is the address of the network Network mask is: 255.255.0.0 or ffff000 Jörg Liebeherr, 1998-2003 13 Domain Names and IP Addresses Users and applications on the Internet normally do not use IP addresses directly. No one says: http://128.143.137.29 Rather, users and applications use domain names: http://www.cs.virginia.edu A service on the Internet, called the Domain Name System (DNS) performs the translation between domain names and IP addresses Jörg Liebeherr, 1998-2003 14

Domain Name System (DNS) The DNS can be thought of as an Internet-wide database, which translates between Domain names and IP addresses Web browser vintpc.cs. virginia.edu www.cs.virginia.edu 128.143.137.29 Domain Name Server athena.cs. virginia.edu Many applications can work with both domain names and IP addresses The TCP and IP protocols only work with IP addresses Jörg Liebeherr, 1998-2003 15 MAC addresses At the data link layer (of local area networks), network interfaces are designated by 6-byte long MAC addresses Synonyms: MAC address = physical address = hardware address Translation between IP addresses and MAC layer addresses is performed by the Address Resolution Protocol (ARP) neon.tcpip-lab.edu DNS 128.143.71.21 ARP 00:20:af:03:98:28 domain name IP address MAC address Jörg Liebeherr, 1998-2003 16

Finding MAC addresses with ARP Router71 needs to find the MAC address of Neon. ARP Request is sent as a broadcast message to all hosts Neon responds with an ARP Reply Jörg Liebeherr, 1998-2003 17 TCP/IP protocol suite Jörg Liebeherr, 1998-2003 18

TCP/IP Protocol Suite The TCP/IP protocol suite is the protocol architecture of the Internet The TCP/IP suite has four layers: Application, Transport, Network, and Data Link Layer End systems (hosts) implement all four layers. Gateways (Routers) only have the bottom two layers. Application Transport Network Data Link Data Link Media Access Control (MAC) User-level programs Operating system Sublayer in Local Area Networks Jörg Liebeherr, 1998-2003 19 Functions of the Layers Data Link Layer: Service: Reliable transfer of frames over a link Media Access Control on a LAN Functions: Framing, media access control, error checking Network Layer: Service: Move packets from source host to destination host Functions: Routing, addressing Transport Layer: Service: Delivery of data between hosts Functions: Connection establishment/termination, error control, flow control Application Layer: Service: Application specific (delivery of email, retrieval of HTML documents, reliable transfer of file) Functions: Application specific Jörg Liebeherr, 1998-2003 20

Layers in routers and hosts IP is the highest layer protocol which is implemented at both routers and hosts Jörg Liebeherr, 1998-2003 21 IP: The waist of the hourglass IP is the waist of the hourglass of the Internet protocol architecture Multiple higher-layer protocols Multiple lower-layer protocols Only one protocol at the network layer. Applications HTTP FTP SMTP TCP UDP IP Data link layer protocols Physical layer protocols Jörg Liebeherr, 1998-2003 22

Assignment of Protocols to Layers ping application HTTP Telnet FTP DNS SNMP Application Layer TCP UDP Transport Layer Routing Protocols ICMP RIP IGMP IP PIM Network Layer DHCP OSPF ARP Ethernet Data Link Layer Network Jörg Liebeherr, 1998-2003 Interface 23 Sending a packet from Argon to Neon 128.143.71.21 is not on my local network. Therefore, I need to send the packet to my default 128.143.71.21 gateway with isaddress on my local 128.143.137.1 network. DNS: ARP: What What The is IP is the address the IP MAC address of Therefore, I can send the packet directly. of address ARP: neon.tcpip-lab.edu? The of MAC 128.143.137.1? address is of 128.143.71.21 128.143.137.1 is 00:e0:f9:23:a8:20 ARP: What is the MAC ARP: address The of MAC 128.143.71.21? address of 128.143.137.1 is 00:20:af:03:98:28 frame frame Jörg Liebeherr, 1998-2003 24

Layers in the Example Jörg Liebeherr, 1998-2003 25 Layers in the Example Send HTTP Request to neon Frame is an IP datagram Establish a connection to 128.143.71.21 at port 80Open TCP connection to 128.143.71.21 port 80 IP datagram is a TCP segment for port 80 Send a datagram (which Send contains IP data-gram a connection to Send IP datagram to request) to 128.143.71.21 128.143.71.21 128.143.71.21 Frame is an IP Send the datagram to 128.143.137.1 datagram Send the datagram to 128.143.7.21 Send Ethernet frame to 00:e0:f9:23:a8:20 Send Ethernet frame to 00:20:af:03:98:28 Jörg Liebeherr, 1998-2003 26

Encapsulation and Demultiplexing As data is moving down the protocol stack, each protocol is adding layer-specific control information User data HTTP HTTP Header User data TCP TCP Header HTTP Header User data IP TCP segment IP Header TCP Header HTTP Header User data Ethernet IP datagram Ethernet Header IP Header TCP Header HTTP Header User data Ethernet Trailer Ethernet frame Jörg Liebeherr, 1998-2003 27 Encapsulation and Demultiplexing in our Example Let us look in detail at the Ethernet frame between Argon and the Router, which contains the TCP connection request to Neon. This is the frame in hexadecimal notation. 00e0 f923 a820 00a0 2471 e444 0800 4500 002c 9d08 4000 8006 8bff 808f 8990 808f 4715 065b 0050 0009 465b 0000 0000 6002 2000 598e 0000 0204 05b4 Jörg Liebeherr, 1998-2003 28

Encapsulation and Demultiplexing 6 bytes destination address source address type 4 bytes CRC Ethernet Header IP Header TCP Header Application data Ethernet Trailer Ethernet frame Jörg Liebeherr, 1998-2003 29 Encapsulation and Demultiplexing: Ethernet Header 6 bytes 00:e0:f9:23:a8:20 0:a0:24:71:e4:44 0x0800 4 bytes CRC Ethernet Header IP Header TCP Header Application data Ethernet Trailer Ethernet frame Jörg Liebeherr, 1998-2003 30

Encapsulation and Demultiplexing: IP Header 32 bits version (4 bits) header length TTL Time-to-Live (8 bits) DS Identification (16 bits) Protocol (8 bits) ECN flags (3 bits) Total Length (in bytes) (16 bits) Fragment Offset (13 bits) Header Checksum (16 bits) Source IP address (32 bits) Destination IP address (32 bits) Ethernet Header IP Header TCP Header Application data Ethernet Trailer Ethernet frame Jörg Liebeherr, 1998-2003 31 Encapsulation and Demultiplexing: IP Header 32 bits 0x4 0x5 0x0 0x0 44 10 9d08 010 2 0000000000000 2 128 10 0x06 8bff 128.143.137.144 128.143.71.21 Ethernet Header IP Header TCP Header Application data Ethernet Trailer Ethernet frame Jörg Liebeherr, 1998-2003 32

Encapsulation and Demultiplexing: TCP Header 32 bits Source Port Number Destination Port Number Sequence number (32 bits) Acknowledgement number (32 bits) header 0 Flags length TCP checksum option length type window size urgent pointer Max. segment size Option: maximum segment size Ethernet Header IP Header TCP Header Application data Ethernet Trailer Ethernet frame Jörg Liebeherr, 1998-2003 33 Encapsulation and Demultiplexing: TCP Header 32 bits 1627 10 80 10 607835 10 0 10 6 10 000000 2 000010 2 8192 10 0x598e 0000 2 2 10 4 10 1460 10 Ethernet Header IP Header TCP Header Application data Ethernet Trailer Ethernet frame Jörg Liebeherr, 1998-2003 34

Encapsulation and Demultiplexing: Application data No Application Data in this frame Ethernet Header IP Header TCP Header Application data Ethernet Trailer Ethernet frame Jörg Liebeherr, 1998-2003 35 Forwarding IP datagrams Jörg Liebeherr, 1998-2003 36

IP Forwarding Internet is a collection of IP networks IP provides an end-to-end delivery service for IP datagrams between hosts The delivery service is realized with the help of IP routers The forwarding service of IP is: Best effort Connectionless Unreliable Important: Don t confuse collection of of IP IP networks with collection of of autonomous systems!! The two concepts are very different. Jörg Liebeherr, 1998-2003 37 Delivery of an IP datagram View at the data link layer layer: Internetwork is a collection of LANs or point-to-point links or switched networks that are connected by routers R1 R2 Point-to-point link Point-to-point link H2 Network of Ethernet switches Ethernet H1 R3 Token Ring Ethernet LAN Jörg Liebeherr, 1998-2003 38 R4

Delivery of an IP datagram View at the IP layer: An IP network is a logical entity with a network number We represent an IP network as a cloud The IP delivery service takes the view of clouds, and ignores the data link layer view R1 10.2.1.0/24 R2 20.2.1.0/28 H2 IP 10.1.2.0/24 20.1.0.0/16 H1 10.1.0.0/24 10.3.0.0/16 R3 R4 Jörg Liebeherr, 1998-2003 39 Tenets of end-to-end delivery of datagrams The following conditions must hold so that an IP datagram can be successfully delivered 1. 1. The network prefix of of an an IP IP destination address must correspond to to a unique data link layer network (=LAN or or point-to-point link or or switched network). (The reverse need not be be true!) 2. 2. Routers and hosts that have a common network prefix must be be able to to exchange IP IP dagrams using a data link protocol (e.g., Ethernet, PPP) 3. 3. Every data link layer network must be be connected to to at at least one other data link layer network via a router. Jörg Liebeherr, 1998-2003 40

Routing tables Each router and each host keeps a routing table which tells the router how to process an outgoing packet Main columns: 1. Destination address: where is the IP datagram going to? 2. Next hop or interface: how to send the IP datagram? Routing tables are set so that datagrams gets closer to the its destination Destination Next Hop Routing table of a host or router IP datagrams can be directly delivered ( direct ) or is sent to a router ( R4 ) 10.1.0.0/24 10.1.2.0/24 10.2.1.0/24 10.3.1.0/24 20.1.0.0/16 20.2.1.0/28 direct direct R4 direct R4 R4 Jörg Liebeherr, 1998-2003 41 Delivery with routing tables Destination Next Hop 10.1.0.0/24 R3 10.1.2.0/24 direct 10.2.1.0/24 direct 10.3.1.0/24 R3 20.2.0.0/16 R2 30.1.1.0/28 R2 Destination Next Hop 10.1.0.0/24 R1 10.1.2.0/24 R1 10.2.1.0/24 direct 10.3.1.0/24 R4 20.1.0.0/16 direct 20.2.1.0/28 direct Destination Next Hop 10.1.0.0/24 R2 10.1.2.0/24 R2 10.2.1.0/24 R2 10.3.1.0/24 R2 20.1.0.0/16 R2 20.2.1.0/28 direct R1 10.1.2.0/24 10.2.1.0/24 R2 20.1.0.0/16 20.2.1.0/28 H2 20.2.1.2/28 to: 20.2.1.2 H1 10.1.0.0/24 10.3.0.0/16 R3 R4 Destination Next Hop 10.1.0.0/24 direct 10.1.2.0/24 R3 10.2.1.0/24 R3 10.3.1.0/24 R3 20.1.0.0/16 R3 20.2.1.0/28 R3 Destination Next Hop 10.1.0.0/24 direct 10.1.2.0/24 direct 10.2.1.0/24 R4 10.3.1.0/24 direct 20.1.0.0/16 R4 20.2.1.0/28 R4 Destination Next Hop 10.1.0.0/24 R3 10.1.2.0/24 R3 10.2.1.0/24 R2 10.3.1.0/24 direct 20.1.0.0/16 direct 20.2.1.0/28 R2 Jörg Liebeherr, 1998-2003 42

Delivery of IP datagrams There are two distinct processes to delivering IP datagrams: 1. Forwarding: How to pass a packet from an input interface to the output interface? 2. Routing: How to find and setup the routing tables? Jörg Liebeherr, 1998-2003 43 Processing of an IP datagram in IP IP router: IP forwarding enabled Host: IP forwarding disabled Jörg Liebeherr, 1998-2003 44

Routing table lookup When a router or host need to transmit an IP datagram, it performs a routing table lookup Routing table lookup: Use the IP destination address as a key to search the routing table. Result of the lookup is the IP address of a next hop router, or the name of a network interface Destination address network prefix or host IP address or loopback address or default route Next hop IP address of next hop router or Name of a network interface Jörg Liebeherr, 1998-2003 45 Longest Prefix Match Longest Prefix Match: Search for the routing table entry that has the longest match with the prefix = of the destination IP address 128.143.71.21 Destination address Next hop 1. Search for a match on all 32 bits 2. Search for a match for 31 bits.. 32. Search for a mach on 0 bits 10.0.0.0/8 128.143.0.0/16 128.143.64.0/20 128.143.192.0/20 128.143.71.0/24 128.143.71.55/32 default R1 R2 R3 R3 R4 R3 R5 Host route, loopback entry 32-bit prefix match Default route is represented as 0.0.0.0/0 0-bit prefix match The longest prefix match for 128.143.71.21 is for 24 bits with entry 128.143.71.0/24 Datagram will be sent to R4 Jörg Liebeherr, 1998-2003 46

Design Principles of the Internet Architecture Run over multiple (link layer) network technologies Distributed organization and control Robustness to partial failures End-to-end principle: Keep functionality inside the network (layer 3) simple. Implement complex functions outside the network Jörg Liebeherr, 1998-2003 47 Internet talking points Address depletion IPv6, Network address translation Enhancing the basic best effort service Internet QoS Convergence of routing protocols BGP convergence Security DDoS, Encryption Jörg Liebeherr, 1998-2003 48