Antonio Cianfrani. Fundamentals of IP Networking

Similar documents
Chapter 06 IP Address

Chapter 6: Network Layer. Introduction to Networks v5.1

Chapter 6: Network Layer

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

CCENT Practice Certification Exam # 2 - CCNA Exploration: Accessing the WAN (Version 4.0)

The Internet Protocol (IP)

CCNA 1 Chapter 6 v5.0 Exam Answers 2013

TCP/IP Protocol Suite and IP Addressing

Chapter 6: Network Layer

1. Which OSI layers offers reliable, connection-oriented data communication services?

CCNA 1 Final Exam Answers UPDATE 2012 eg.2

Before you start the lab exercises see the lab administrator or EEE3080F tutor to get assigned to your routers.

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

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

The identifier used in the IP layer of the TCP/IP protocol suite to identify each device connected to the Internet is called the Internet address or

Lecture 8 Network Layer: Logical addressing

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

Figure 11 Two-level addressing in classful addressing

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

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

Vorlesung Kommunikationsnetze

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

Router Architecture Overview

TCP/IP THE TCP/IP ARCHITECTURE

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

CCNA 1 Final Exam Answers UPDATE 2012 eg.1

Lab 5.6.2: Challenge RIP Configuration

TCP /IP Fundamentals Mr. Cantu

Chapter 4: Network Layer

Upon successful completion of this course, the student should be competent to complete the following tasks:

Lab 2.8.2: Challenge Static Route Configuration

2. Which two functions of the OSI model occur at layer two? (Choose two.) physical addressing encoding routing cabling media access control

Introduction p. 1 Self-Assessment p. 9 Networking Fundamentals p. 17 Introduction p. 18 Components and Terms p. 18 Topologies p. 18 LAN Technologies

Introduction to TCP/IP

MiPDF.COM. 1. Convert the decimal number 231 into its binary equivalent. Select the correct answer from the list below.

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

Network Layer: outline

1. What type of network cable is used between a terminal and a console port? cross-over straight-through rollover patch cable 2.

Chapter Motivation For Internetworking

NETWORK LAYER: IP Addressing

Computer Networks Lecture -5- IPv4 Addresses. Dr. Abbas Abdulazeez

Internet Protocol Addressing and Routing. Redes TCP/IP

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

Lecture 1: Introduction

Networking and TCP/IP. John Kalbach November 8, 2004

IP Address Assignment

Router Configuration. Router Fundamentals Connecting to the Console Port Router Modes -- User EXEC Router Modes -- Privileged EXEC Lab #9 Goals

Chapter 4: Routing Concepts. Routing & Switching

Exam E1 Copyright 2010 Thaar AL_Taiey

Q&As. Interconnecting Cisco Networking Devices Part 1. Pass Cisco Exam with 100% Guarantee

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

End-to-End Communication

Lecture 5 The Network Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Course: CCNA Bootcamp (Intensive CCNA)

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

OSI Model with Protocols. Layer Name PDU Address Protocols Device

EXAM - HP0-Y52. Applying HP FlexNetwork Fundamentals. Buy Full Product.

Network Layer/IP Protocols

SYSTEMS ADMINISTRATION USING CISCO (315)

Networking Fundamentals

COSC 6377 Mid-Term #2 Fall 2000

IP Addressing and Subnetting

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

TCP/IP and the OSI Model

Cisco CCT Routing & Switching

Introduction to Networking

Interconnecting Cisco Networking Devices Part 1 (ICND1) Course Overview

Interconnecting Cisco Networking Devices Part 1

OSI Data Link & Network Layer

Mobile MOUSe ROUTING AND SWITCHING FUNDAMENTALS ONLINE COURSE OUTLINE

SYSTEMS ADMINISTRATION USING CISCO (315)

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 8 Networking Essentials

Internetworking Part 2

Interconnecting Cisco Networking Devices Part 1 ICND1

Introduction to Local and Wide Area Networks

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 11

CS 348 Computer Networks. IP and Routing. Indian Institute of Technology, Bombay

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

Internet Protocol (IP)

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

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

CHAPTER 2 ACTIVITY

Just enough TCP/IP. Protocol Overview. Connection Types in TCP/IP. Control Mechanisms. Borrowed from my ITS475/575 class the ITL

Lecture 11: Networks & Networking

Chapter 5 TCP/IP SUITE

Networking: Network Layer

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

Where we are in the Course

ITEC 3210 M - Applied Data Communications and Networks. Professor: Younes Benslimane, Ph.D.

2. What flavor of Network Address Translation can be used to have one IP address allow many users to connect to the global Internet? A. NAT B.

CCNA Boot Camp. Course Description

CCNA 4 - Final Exam (B)

ICND1 v2.0 Interconnecting Cisco Networking Devices Part 1 CCENT & Part of CCNA Rout/Switch

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

Chapter 7. Local Area Network Communications Protocols

Network Basic v0.1. Network Basic v0.1. Chapter 3 Internet Protocol. Chapter 3. Internet Protocol

Introduction p. 1 The Need for Security p. 2 Public Network Threats p. 2 Private Network Threats p. 4 The Role of Routers p. 5 Other Security Devices

Introduction to Routing and Packet Forwarding

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

Transcription:

Antonio Cianfrani Fundamentals of IP Networking

The Internet network routers networks Hosts

Network devices

TCP/IP protocol stack Application Transport (TCP/UDP) Network (IP) Data Link Applications (HTTP, FTP, TELNET): distributed programs using the network to exchange data (messages). Transport layer: end-to-end communication service; UDP is connectionless, TCP is connection oriented (take care of segments reorderding and recovery). Network layer main functions: addressing and forwarding/routing. Data Link layer: set of protocols for different physical networks/links (Ethernet, PPP, )

TCP/IP stack in action Ethernet ATM Net link FDDI host............ TCP UDP IP Ethernet router ATM router router switch Ethernet IP ATM IP ATM Atm PPP PPP FDDI IP host............ TCP UDP IP FDDI

IP routers

Router: overview A router is very similar to a PC from an hardware point of view: CPU, memories, system bus and input/output interfaces. It has a dedicate operating System: IOS (Internetwork Operating System) for the Cisco devices. The IOS must be configured to properly work: IP addresses, routing protocols setting, security aspects.. Configuration files

Router hardware components (1/4) CPU RAM Execute IOS instructions, such as initialization, routing functions and interfaces management. High performance routers can have more than one CPU. Used to store the routing table, the cache fast switching, the configuration file and the packet queues. It provides the run time space for the software executed by the IOS and it is composed of interfaces shared memory and main processor memory. It stores the configuration file of the router while it is powered on: the running configuration file.

Router hardware components (2/4) Flash NVRAM Bus Used to store the image of the IOS (the image will be loaded every time the router is powered on) It store the configuration to be used at startup: the startup configuration file. Usually two buses: the system bus and the CPU bus. The system bus is the one providing communication among CPU and interfaces and used to forward packets among ingress and egress interfaces.

Router hardware components (3/4) ROM Stores in a permanent way the code used to perform hardware integrity checking (performed at startup) Interfaces the connections among the router and the external world different types of interfaces Can be classified in: LAN, WAN and console/aux

Router hardware components (4/4)

Cisco 2600 router

Cisco 2600 router interfaces WAN interfaces LAN interfaces

Router interfaces LAN: provide connectivity toward a Local Area Network (LAN); the de-facto LAN standard is Ethernet WAN: provide connectivity toward a Local Area Network (WAN); there is no de-facto standard (many different protocols); this is usually the connection toward an Internet Service Provider. management: provide text-based connection toward a PC to configure the router

Management interfaces The console and AUX (auxiliary) interface are dedicated to router management operations. There must be already one (the console) for the initial router configuration.

Console interface The access provided by the console interface is defined as out-of-band It is used for the initial configuration, for troubleshooting, for monitoring and for disaster recovery procedures. A rollover cable and a RJ-45 to DB-9 adapter are needed to connect to a console port. The PC must support the terminal emulation ( Hyperterminal).

Hyperterminal interface

The LAN interface The router is connected to a LAN using the Ethernet (FastEthernet) interface. The router is connected by its LAN interface to a switch, a hub or a host/router (very rare). For connections with a switch or hub, a straight through cable is used. For connections with a router or a host, a crossover cable is used The LAN interface allows the in-band router configuration: TELNET

The WAN interface (1/2) The WAN connections (also defined as Serial Ports ) can be of different types since different technologies (protocols) can be used.

The WAN interface (2/2)

The IP routers: fundaments

Router functions A router makes possible the interconnections among different subnetworks A router implements the first 3 layers of the TCP/IP protocol stack. The main functions performed are the ones of Network layer. Main protocol of Network layer: Internet Protocol (IP). The IP layer (RFC 791, 919, 922, 950, 1349) executes the following functions: Addressing Forwarding Fragmentation A router must be properly configured by the network administrator

Addressing (1/3) An IP Address identify routers and hosts: a host connected to more than a subnetwork (multi-homed) has an IP address for each subnetwork; a router has an IP address for each interface. An IP address is unique in the Internet (one exception, NAT) it is 32 bits long; a decimal dotted notation is used for easiness. Binary notation Dotted notation 10010111 01100100 00001000 00010010 151. 100. 8. 18 infocom.uniroma1.it

Addressing (2/3) IP addresses have a hierarchical structure. The addressing space is divided into blocks: a block of addresses is assigned to each subnetwork IP_Address=Net_Id.Host_Id The Net_Id identifies the subnetwork (block): Prefix The Host_Id identifies the specific address of the block It allows for a scalable forwarding management Each subnetwork is represented by its Net_Id prefix

Addressing (3/3) To identify the Net_ID lenght, the Subnet Mask (Mask) is introduced: a 32 bit string having 1s for Net_Id bits and 0s for Host_Id bits Address = Net_Id. Host_Id Mask= 1111.11. 00.000 The address used to identify the whole block (subnet) Block Address(S)= Net_Id. 0.000 Mask= 11..11. 0.000 Given the IP address of an host (Add(H)) and a subnet S represented by (Add(S),Mask(S)), to verify if H belongs to S (Matching): Add(H) S Add (H) & Mask(S) = Add(S) AND

Classfull addressing

Classless and subnetting Subnetting allows for the use of netmask different than classfull ones: Esempio.: subnetting starting from a class C block: 255.255.255.128 (10000000) /25 255.255.255.192 (11000000) /26. Net_ID Host_ID Net_ID Sub_Net_ID Host_ID New Net_ID

Host vs router host) Router subnet 191.133.0.0/16 IP address Physical address APPLICATION TCP UDP 191.133.5.98 IF 1 IP IP addresses subnet 191.133.0.0/16 subnet 123.45.0.0/16 subnet 112.4.234.0/24 IP Physical addresses 191.133.5.7 123.45.6.93 112.4.234.9 IF 1 (ATM) IF 2 (Ethernet) IF 3 (FDDI)

IP Forwarding and routing The IP routers perform packet forwarding: 1 2 3 IP IP Routing: the path form a source host to a destination host is composed of routers and networks crossed.

Routing table IP routing is based on the routing table (each host and router has its own one): routing information about known destinations A routing table is composed of (N, M, NH, I) entries: N is the IP address of the destination network, M is the subnet mask of the destination network having N as address NH is the next-hop router toward the destination I is the router/host interface to which forward the packets directed to network N Longest Prefix Matching rule

Example 20.0.0.5 130.11.0.6 213.2.97.7 eth0 11.0.0.0 R1 20.0.0.0 R2 130.11.0.0 R3 eth1 213.2.97.0 11.0.0.5 20.0.0.6 130.11.0.7 213.2.98.12 213.2.98.0 R2 routing table N M NH I 20.0.0.0 255.0.0.0 d.c. (20.0.0.6) 130.11.0.0 255.255.0.0 d.c. (130.11.0.6) 11.0.0.0 255.0.0.0 20.0.0.5 213.2.97.0 255.255.255.0 130.11.0.7 213.2.98.0 255.255.255.0 130.11.0.7 eth0 eth1 eth0 eth1 eth1

Default router/gateway Router to use as next hop for traffic directed to an unknown network (not present in the routing table) Not mandatory but often used. It is representd by all 0s for columns N and M. Destinazione N Maschera M Next hop NH 20.0.0.0 255.0.0.0 d.c. (20.0.0.6) 130.11.0.0 255.255.0.0 d.c. (130.11.0.6) 0.0.0.0 0.0.0.0 20.0.0.5 Interfaccia I eth0 eth1 eth0

Routing table of a Cisco router

Host configuration Any host connected to an IP network must be properly configured Host name IP address Subnet mask Default router Server DNS DHCP protocol Private IP addresses: NAT