African Network Operators Group Track 2: IP And Networking Basics Brian Longwe.

Slides:



Advertisements
Similar presentations
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
Advertisements

CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
Department of Computer Engineering University of California at Santa Cruz Networking Systems (1) Hai Tao.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Semester Copyright USM EEE442 Computer Networks Introduction: Protocols En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK)
Introduction to TCP/IP
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
04/26/2004CSCI 315 Operating Systems Design1 Computer Networks.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
Internetworking, or IP and Networking Basics. Outline  Origins of TCP/IP  OSI Stack  TCP/IP Architecture  IP Addressing  Large Network Issues  Routers.
Internetworking. What internetworks are u Start with lots of little networks u Many different types –ethernet, dedicated leased lines, dialup, ATM, Frame.
Network Redundancy Multiple paths may exist between systems. Redundancy is not a requirement of a packet switching network. Redundancy was part of the.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
Chapter 1 Overview Review Overview of demonstration network
Presentation on Osi & TCP/IP MODEL
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Mr. Mark Welton.  A computer network, or simply a network, is a collection of computers and other hardware interconnected by communication channels.
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.
© 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.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
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
CS470 Computer Networking Protocols
Internet Protocol Addressing
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
2.1 Chapter 2 Network Models – cont. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
Data Communication Network Models
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.
TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.
Network Layer 1. OSI network layer  OSI model layer 3  TCP/IP model Internet layer Application Presentation Session Transport Network Data link Physical.
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.
1 28-Sep-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI network layer CCNA Exploration Semester 1 Chapter 5.
● 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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI network layer CCNA Exploration Semester 1 – Chapter 5.
Jaringan Komputer_D3 TT
Instructor & Todd Lammle
ROUTING.
IP: Addressing, ARP, Routing
Network Layer, and Logical Addresses
How the computer transport system works
Scaling the Network: The Internet Protocol
COMPUTER NETWORKS CS610 Lecture-45 Hammad Khalid Khan.
Layered Architectures
Net 431: ADVANCED COMPUTER NETWORKS
CS 457 – Lecture 10 Internetworking and IP
Chapter 5 OSI Network Layer.
TCP/IP Protocol Suite: Review
Net 323 D: Networks Protocols
Scaling the Network: The Internet Protocol
Presentation transcript:

African Network Operators Group Track 2: IP And Networking Basics Brian Longwe

Outline u Origins of TCP/IP u OSI Stack u TCP/IP Architecture u IP Addressing u Large Network Issues u Routers u Routing Protocols

Origins of TCP/IP u 1950’s – 1960’s – US Govt. requirement fo “rugged” network u RAND Corporation – Distributed Network Design u 1968 – ARPA engineers propose Distributed network design for ARPANET (Defense Advanced Research Project Agency Network)

Distributed Network Design u Original network – “connection oriented” – Management & control was centralized u “New” Network – ARPANET – Connectionless – Decentralised u Example: Full Mesh Pentagon

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 Layers u Application, Transport, Network, Data Link Network layer Token Ring ATMX.25PPP Frame Relay HDLCEthernet IP UDPTCP HTTPFTPTelnetDNSSMTPAudioVideo RTP

Frame, Datagram, Segment, Packet u Different names for packets at different layers – Ethernet (link layer) frame – IP (network layer) datagram – TCP (transport layer) segment u Terminology is not strictly followed – we often just use the term “packet” at any layer

Functions of layers in the protocol stack IP TCP/UDPEnd to end reliability Forwarding (best-effort) Framing, delivery Raw signal Mail, Web, etc Application Presentation Session Transport Network Data Link Physical

Layer 1 u 1: Physical layer – moves bits using voltage, light, radio, etc. – no concept of bytes of frames – bits are defined by voltage levels, or similar physical properties

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 » special delimiters to mark start and/or end – often also a definite source and destination link-layer address (e.g. ethernet MAC address) – some link layers detect corrupted frames – some link layers re-send corrupted frames (NOT ethernet)

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 (best effort) » 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 packets 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 » There can be many hops from source to destination

Layer 3 u 3: Network layer (e.g. IP) – Makes routing decisions » how can the packet be sent closer to its destination? » forwarding and routing tables embody “knowledge” of network topology » routers can talk to each other to exchange information about network topology

Layer 4 u 4: Transport layer (e.g. TCP) – end to end transport of segments – encapsulates TCP segments in network layer packets – adds reliability by detecting and retransmitting lost packets » uses acknowledgements and sequence numbers to keep track of successful, out-of-order, and lost packets » timers help differentiate between loss and delay u UDP is much simpler: no reliability features

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 Host Router Host Application Presentation Session Transport Network Link Physical Network Link Network Link Application Presentation Session Transport Network Link Physical Hop by hop End to end

Layer interaction Host Router Host Application TCP or UDP IP Link Physical IP Link IP Link Application TCP or UDP IP Link Physical Hop by hop End to end No session or presentation layers in TCP/IP model

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 u Link and physical layers may be different on each hop

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

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: u Hexadecimal Representation: Basic Structure of an IP Address BA27D

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 = 1 for Table 1, 2 for Table 2, etc. u Write it in decimal form as well as binary form.

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

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

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

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

Address Exercises u Assuming there are 11 routers on the 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?

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 Old systems used more restrictive rules

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

Old-style classes of IP addresses u Just look at the address to tell what class it is. – Class A: to » binary 0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx – Class B: to » binary 10xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx – Class C: to » binary 110xxxxxxxxxxxxxxxxxxxxxxxxxxxxx – Class D: (multicast) to » binary 1110xxxxxxxxxxxxxxxxxxxxxxxxxxxx – Class E: (reserved) to

Implied netmasks of classful addresses u A classful network has a “natural” or “implied” prefix length or netmask: – Class A: prefix length /8 (netmask ) – Class B: prefix length /16 (netmask ) – Class C: prefix length /24 (netmask ) u Old routing systems often used implied netmasks u Modern routing systems always use explicit prefix lengths or netmasks

Traditional subnetting of classful networks u Old routing systems allowed a classful network to be divided into subnets – All subnets (of the same classful net) had to be the same size and have the same netmask – Subnets could not be subdivided any further u None of these restrictions apply in modern systems

Traditional supernetting u Some traditional routing systems allowerd supernets to be formed by combining adjacent classful nets. – e.g. combine two Class C networks (with consecutive numbers) into a supernet with netmask u Modern systems use more general classless mechanisms.

Classless addressing u Forget old Class A, Class B, Class C terminology and restrictions u Internet routing and address management today is classless u CIDR = Classless Inter-Domain Routing – routing does not assume that class A,B,C implies prefix length /8,/16,/24 u VLSM = Variable-Length Subnet Masks – routing does not assume that all subnets are the same size

Classless addressing example u A large ISP gets a large block of addresses – e.g., a /16 prefix, or separate addresses u Allocate smaller blocks to customers – e.g., a /22 prefix (1024 addresses) to one customer, and a /28 prefix (16 addresses) to another customer u 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 is the largest block that is still available? u What other blocks are still available?

Network Topology Thick Ethernet Segment – Bus Topology Thin Ethernet Segment – Bus Topology 10Base-T (also Fiber) – Star Topology

Network Devices Hub - A common connection point for devices in a network. Hubs are commonly used to connect segments of a LAN. A hub contains multiple ports. When a packet arrives at one port, it is copied to the other ports so that all segments of the LAN can see all packetsdevicesnetworksegmentsLANportspacket Switch - Short for port-switching hub, a special type of hub that forwards packets to the appropriate port based on the packet's address. Since switching hubs forward each packet only to the required port, they provide much better performance.hubpacketsport Router - A device that connects any number of LANs. Routers use headers and a forwarding table to determine where packets go, and they use ICMP to communicate with each other and configure the best route between any two hosts. Very little filtering of data is done through routers. Routers do not care about the type of data they handle.deviceLANsheaderspacketsICMP Courtesy of

Large Networks u As networks grow larger it becomes necessary to split them into smaller networks that are interconnected u Since each network needs to be connected to every other network, the number of links can be quite high: N (N-1)/2 u 4 LANs would require six links!

WAN Design u Goal: To minimize the number of interconnecting links u Removing the direct links means that a mechanism must move data packets from their source, through other intermediate nodes and on to the final destination. u This function is performed by a Router

An IP router u A device with more than one link-layer interface u Different IP addresses (from different subnets) on different interfaces u Receives packets on one interface, and forwards them (usually out of another interface) to get them closer to their destination u Maintains forwarding tables u Supports wide variety of media i.e. is media independent

IP router - action for each packet u Packet is received on one interface u Check whether the destination address is the router itself u Decrement TTL (time to live), and discard packet if it reaches zero u Look up the destination IP address in the forwarding table u Destination could be on a directly attached link, or through another router

Forwarding is hop by hop u Each router tries to get the packet one hop closer to the destination u Each router makes an independent decision, based on its own forwarding table u Different routers have different forwarding tables u Routers talk routing protocols to each other, to help update routing and forwarding tables

Hop by Hop Forwarding

Router Functions u Determine optimum routing paths through a network » Lowest delay » Highest reliability u Transport packets through the network » Examines destination address in packet » Makes a decision on which port to forward the packet through » Decision is based on the Routing Table u Interconnected Routers exchange routing tables in order to maintain a clear picture of the network u In a large network, the routing table updates can consume a lot of bandwidth » a protocol for route updates is required

Forwarding table structure u We don't list every IP number on the Internet - the table would be huge u Instead, the forwarding table contains prefixes (network numbers) – "If the first /n bits matches this entry, send the datagram this way" u If more than one prefix matches, the longest prefix wins (more specific route) u /0 is "default route" - matches anything, but only if no other prefix matches

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

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)

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 PreambleDestSourceLengthDataCRCType

Ethernet/IP Address Resolution u Internet Address – Unique worldwide (excepting private nets) – Independent of Physical Network u Ethernet Address – Unique worldwide (excepting errors) – 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 for future use u Old cache entries removed by timeout