Internetworking. What internetworks are u Start with lots of little networks u Many different types –ethernet, dedicated leased lines, dialup, ATM, Frame.

Slides:



Advertisements
Similar presentations
IP and Networking Basics
Advertisements

1 IPv6. 2 Problem: 32-bit address space will be completely allocated by Solution: Design a new IP with a larger address space, called the IP version.
Internet Protocol Addressing Ubuntunet Workshop 2012 Slides from
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
Chapter 18. IP: Internet Protocol Addresses
Department of Computer Engineering University of California at Santa Cruz Networking Systems (1) Hai Tao.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
5-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
1 Introduction to TCP/IP. 2 Agenda What Is TCP/IP? IP Addressing.
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
Q and A, Ch. 21 IS333, Spring 2015 Victor Norman.
1 Protocol Interaction (ISO’s Open Systems Interconnection (OSI model)) the 7 layers.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
NETWORK LAYER IP Addressing 1. ANNOUNCEMENT: Rescheduled  NO PRACTICAL SESSIONS ON TUESDAY 22, November 2010  Rescheduled sessions: MONDAY: November.
IP Addressing. Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in.
Internetworking, or IP and Networking Basics. Outline  Origins of TCP/IP  OSI Stack  TCP/IP Architecture  IP Addressing  Large Network Issues  Routers.
2010 Pago Pago, American Samoa IP Basics Unix/IP Preparation Course June 29, 2010 Pago Pago, American Samoa.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
PacNOG 6: Nadi, Fiji IP Basics Steven VanDevender Hervey Allen Network Startup Resource Center.
Chapter 1 Overview Review Overview of demonstration network
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
Chapter 4, slide: 1 CS 372 – introduction to computer networks* Friday July 23, 2010 Announcements: r Midterms are graded. r Lab 4 is posted. Acknowledgement:
Lecture 3 Overview. Protocol An agreed upon convention for communication both endpoints need to understand the protocol. Protocols must be formally defined.
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
IP and Networking Basics. Outline  Origins of TCP/IP  OSI Stack & TCP/IP Architecture  IP Addressing  Large Network Issues  Routers  Types of Links.
IP and Networking Basics. Outline  Origins of TCP/IP  OSI Stack & TCP/IP Architecture  IP Addressing  Large Network Issues  Routers  Types of Links.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
© Jörg Liebeherr, Organization Addresses TCP/IP Protocol stack Forwarding Internet.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
2010 paro, bhutan IP Basics IP/ISP Services Workshop July, 2010 Paro, Bhutan.
How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 Chapter Overview Network Communications The OSI Reference Model.
African Network Operators Group Track 2: IP And Networking Basics Brian Longwe.
OV Copyright © 2013 Logical Operations, Inc. All rights reserved. TCP/IP Addressing and Data Delivery  The TCP/IP Protocol Suite  IP Addressing.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
Internetworking. What internetworks are u Start with lots of little networks u Many different types –ethernet, dedicated leased lines, dialup, ATM, Frame.
workshop eugene, oregon IP Basics Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
Internet Protocol Addressing
Introduction to TCP/IP. Agenda What Is TCP/IP? IP Addressing.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
Q and A, Ch. 21 IS333, Spring 2016 Victor Norman.
CIS 173 Networking Week #9 OBJECTIVES Chapter #6 Network Communications Protocols.
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
Routing and the IP v4 Address Space BSAD 141 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
IP and Networking Basics Selection of slides taken from Internet Society Workshop Resource Centre:
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI data link layer CCNA Exploration Semester 1 Chapter 7.
● How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.
How the computer passport system works
IP Addressing Scalable Infrastructure Workshop AfNOG 2011.
Jaringan Komputer_D3 TT
Chapter 9 Introduction To Data-Link Layer 9.# 1
IP: Addressing, ARP, Routing
Network Layer, and Logical Addresses
How the computer transport system works
A quick intro to networking
Scaling the Network: The Internet Protocol
Layered Architectures
Internetworking & Address Resolution
CS 457 – Lecture 10 Internetworking and IP
Chapter 5 OSI Network Layer.
TCP/IP Protocol Suite: Review
Scaling the Network: The Internet Protocol
Presentation transcript:

Internetworking

What internetworks are u Start with lots of little networks u Many different types –ethernet, dedicated leased lines, dialup, ATM, Frame Relay, FDDI u Each type has its own idea of addressing and protocols u Want to connect them all together and provide a unified view of the whole lot

The unifying effect of the network layer u Define a protocol that works in the same way with any underlying network u Call it the network layer u IP routers operate at the network layer u There are defined ways of using: »IP over ethernet »IP over ATM »IP over FDDI »IP over serial lines (PPP) »IP over almost anything

Protocol Stacks u Layers: Network layer Transport layer Token Ring ATMX.25PPP Frame Relay HDLCEthernet IP TCPUDP HTTPFTPTelnetDNSSMTP

Layer Functions Physical Data Link Network Transport IP TCPEnd to end reliability Forwarding best-effort Packet delivery Raw signal Application Mail, Web, etc. Session Presentation

Layer 1 u 1: Physical layer –moves bits using voltage, light, radio, etc. –often 1 bit at a time

Layer 2 u 2: Data Link layer –bundles bits into frames and moves frames between hosts on the same link –a frame has a definite start, end, size –often also a definite source and destination link-layer address (e.g. ethernet MAC address)

Layer 3 u 3: Network layer (e.g. IP) –Single address space for the entire internetwork –adds an additional layer of addressing »e.g. IP address is distinct from MAC address) »so we need a way of mapping between different types of addresses –Unreliable »if packet gets lost, network layer doesn’t care »higher layers can resend lost packets

Layer 3 u 3: Network layer (e.g. IP) –Forwards packet hop by hop »encapsulates network layer packet inside data link layer frame »different framing on different underlying network types »receive from one link, forward to another link –Makes routing decisions »how can the packet be sent closer to its destination? »routing tables embody “knowledge” of network topology

Layer 4 u 4: Transport layer (e.g. TCP) –end to end transport of datagrams –encapsulates datagrams in network layer packets –adds reliability by detecting and retransmitting lost packets »uses acknowledgements and sequence numbers to keep track of successful and lost packets

Layer 5, 6, 7 u 5: Session layer –not used in the TCP/IP network model u 6: Presentation layer –not used in the TCP/IP network model u 7: Application layer –Uses the underlying layers to carry out work »e.g. SMTP (mail), HTTP (web), Telnet, FTP, DNS

Layer interaction Presentation Session Transport Network Link Physical Link Network Physical Link Application Network Host Router Host Presentation Session Transport Network Link Application

Layer interaction u Application protocol is end-to-end u Transport protocol is end-to-end –encapsulation/decapsulation over network protocol on end systems u Network protocol is throughout the internetwork –encapsulation/decapsulation over data link protocol at each hop

Encapsulation u Lower layers add headers (and sometimes trailers) to data from higher layers Data Transport Data Network Data Link Layer Data Header Application Transport Internet Data Link DataHeader Data Link DataHeader Internet

Purpose of an IP address u Unique Identification of –Source Sometimes used for security or policy-based filtering of data –Destination So the networks know where to send the data u Network Independent Format –IP over anything

u 32 bit number (4 octet number): (e.g ) u Decimal Representation: u Binary Representation: Basic Structure of an IP Address

A C B FE I G D H J RouterPC HUB RouterPC HUB RouterPC HUB Router PC HUB RouterPC HUB Router PC HUB Router PC HUB Router PC HUB Router PC HUB Router PC HUB SWITCH Address Exercise

u Construct an IP address for your router’s connection to the backbone network. u x u x = 17 for row A, 18 for row B, etc. u Write it in decimal form as well as binary form.

Classes of links u Different strategies for encapsulation and delivery of IP packets over different classes of links u Point to point (e.g. PPP) u Broadcast (e.g. Ethernet) u Non-broadcast multi-access (e.g. Frame Relay, ATM)

Encapsulation u Lower layers add headers (and sometimes trailers) to data from higher layers Data Transport Data Network Data Link Layer Data Header Application Transport Internet Data Link DataHeader Data Link DataHeader Internet

Point to point links u Two hosts connected by a point-to-point link –data sent by one host is received by the other u Sender takes IP datagram, encapsulates it in some way (PPP, SLIP, HDLC,...), and sends it u Receiver removes link layer encapsulation u Check integrity, discard bad packets, process good packets

Broadcast links u Many hosts connected to a broadcast medium –Data sent by one host can be received by all other hosts –example: radio, ethernet

Broadcast links u Protect against interference from simultaneous transmissions interfering u Address individual hosts –so hosts know what packets to process and which to ignore –link layer address is very different from network layer address u Mapping between network and link address (e.g. ARP)

NBMA links (Non-broadcast multi-access) u e.g. X.25, Frame Relay, SMDS u Many hosts u Each host has a different link layer address u Each host can potentially send a packet to any other host u Each packet is typically received by only one host u Broadcast might be available in some cases

Ethernet Essentials u Ethernet is a broadcast medium u Structure of Ethernet frame: u Entire IP packet makes data part of Ethernet frame u Delivery mechanism (CSMA/CD) –back off and try again when collision is detected Dest Src Len Type Data ChkPre

Ethernet/IP Address Resolution u Internet Address –Unique worldwide –Independent of Physical Network u Ethernet Address –Unique worldwide –Ethernet Only u Need to map from higher layer to lower (i.e. IP to Ethernet, using ARP)

Address Resolution Protocol u Check ARP cache for matching IP address u If not found, broadcast packet with IP address to every host on Ethernet u “Owner” of the IP address responds u Response cached in ARP table

Addressing in Internetworks u More than one physical network u Different Locations u Larger number of computers u Need structure in IP addresses –network part identifies which network in the internetwork (e.g. the Internet) –host part identifies host on that network

Address Structure Revisited u Hierarchical Division in IP Address: –Network Part (Prefix) »describes which physical network –Host Part (Host Address) »describes which host on that network –Boundary can be anywhere »not necessarily at a multiple of 8 bits NetworkHost

Network Masks u Define which bits are used to describe the Network Part u Different Representations: –decimal dot notation: –number of network bits: /19 u Binary AND of 32 bit IP address with 32 bit netmask yields network part of address

Example Prefixes u /17 (netmask ) u /16 (netmask ) u /26 (netmask )

Old-Style Classes of Address u Different classes used to represent different sizes of network (small, medium, large) u Class A networks: –8 bits network, 24 bits host (/8, ) –First byte in range u Class B networks: –16 bits network, 16 bits host (/16, ) –First byte in range u Class C networks: –24 bits network, 8 bits host (/24, ) –First byte in range

Special Addresses u All 0’s in host part: Represents Network –e.g /24 –e.g /17 u All 1’s in host part:Broadcast –e.g ( /16) –e.g ( /24) –e.g ( /17) u /8: Loopback address ( ) u : Various special purposes

More Address Exercises –Assuming there are 11 routers on the classroom backbone network: »what is the minimum number of host bits needed to address each router with a unique IP address? »what is the corresponding prefix length? »what is the corresponding netmask (in decimal)? »how many hosts could be handled with that netmask?

Binary arithmetic tutorial u In decimal (base 10), the number 403 means 4*10^2 + 0*10^1 + 3*10^0, or 4* * *1, or u Similarly, in binary (base 2), the number 1011 means 1*2^3 + 0*2^2 + 1*2^1 + 1*2^0, or 1*8 + 0*4 + 1*2 + 1*1, or , which is the same as the decimal number 11

Grouping of decimal numbers u Suppose we have a lot of 4-digit decimal numbers, 0000 to 9999 u Want to make a group of 10^2 (100) numbers u Could use 00xx (0000 to 0099), or 31xx (3100 to 3199), or 99xx (9900 to 9999), etc u Should not use (0124 to 0223) or (3101 to 3200) etc, because they do not form groups in the same way

Grouping of binary numbers u Suppose we have a lot of 4-bit binary numbers, 0000 to 1111 u Want to make a group of 2^2 (4) numbers u Could use 00xx (0000 to 0011), or 01xx (0100 to 0111), or 10xx (1000 to 1011), or 11xx (1100 to 1111) u Should not use (0101 to 1000) or (1001 to 1100) etc, because they do not form groups in the same way

Grouping of decimal numbers u Given a lot of 4-digit numbers (0000 to 9999) –10^4 = numbers altogether u Can have 10^1 (10) groups of 10^3 (1000) u Can have 10^2 (100) groups of 10^2 (100) u Can have 10^3 (1000) groups of 10^1 (10) u Can have 10^4 (10000) groups of 1 u Any large group can be divided into smaller groups, recursively

Grouping of binary numbers u Given a lot of 4-bit binary numbers (0000 to 1111) –2^4 = 16 numbers altogether u Can have 2^1 (2) groups of 2^3 (8) u Can have 2^2 (4) groups of 2^2 (4) u Can have 2^3 (8) groups of 2^1 (2) u Can have 2^4 (16) groups of 1 u Any large group can be divided into smaller groups, recursively

Grouping of binary numbers u Given a lot of 32-bit numbers ( to ) –Can have 2^0 (1) groups of 2^32 numbers –Can have 2^8 (256) groups of 2^24 numbers –Can have 2^25 groups of 2^7 numbers u Consider one group of 2^7 (128) numbers »e.g xxxxxxx –Can divide it into 2^1 (2) groups of 2^6 (64) –Can divide it into 2^3 (8) groups of 2^4 (16) –etc

More levels of address hierarchy u Remember hierarchical division of IP address into network part and host part u Similarly, we can group several networks into a larger block, or divide a large block into several smaller blocks –arbitrary number of levels of hierarchy –blocks don’t all need to be the same size u Classless address allocation (CIDR)

Classless addressing example –A large ISP gets a large block of addresses »e.g., a /16 prefix, or separate addresses –Allocate smaller blocks to customers »e.g., a /22 prefix (1024 addresses) to one customer, and a /28 prefix (16 addresses) to another customer –An organisation that gets a /22 prefix from their ISP divides it into smaller blocks »e.g. a /26 prefix (64 addresses) for one department, and a /27 prefix (32 addresses) for another department

Classless addressing exercise u Consider the address block /23 u Allocate 8 separate /29 blocks, and one /28 block u What are the IP addresses of each block? –in prefix length notation –netmasks in decimal –IP address ranges u What space is still available (not allocated)?