● How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.

Slides:



Advertisements
Similar presentations
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Advertisements

OSI Model OSI MODEL.
Chapter 14 TCP/IP and Routing Part #1 Unix System Administration.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
1 IP Addressing (IPv4 ADDRESSES). 2 Universal Service Concept Any computer can communicate with any other computer in the world. Multiple independently.
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
Internetworking. What internetworks are u Start with lots of little networks u Many different types –ethernet, dedicated leased lines, dialup, ATM, Frame.
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.
OSI AND TCP/IP MODELS. Outline Introduction OSI Model TCP/IP Model IPv4 vs. IPv6.
Chapter 2 Network Models
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Component 9 – Networking and Health Information Exchange Unit 1-1 ISO Open Systems Interconnection (OSI) This material was developed by Duke University,
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
ES 101. Module 2 IP Addressing & Routing. Last Lecture Wide area networking Definition of “packets”
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
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.
How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.
TCP/IP Network Essentials
2011 Dar es Salaam, Tanzania IP Basics Unix/IP Preparation Course May 29, 2011 Dar es Salaam, Tanzania.
Linux Operations and Administration Chapter Eight Network Communications.
Net 221D:Computer Networks Fundamentals
workshop eugene, oregon IP Basics Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
1 Objectives Identify the basic components of a network Describe the features of Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6)
IP ADDRESS An IP (Internet Protocol) address is a unique identifier for a node or host connection on an IP network. An IP address is a 32 bit binary number.
Computer Engineering and Networks, College of Engineering, Majmaah University Protocols OSI reference MODEL TCp /ip model Mohammed Saleem Bhat
How the computer passport system works
NgNOG IP Basics Wale Adedokun and Dewole Ajao.
OSI Model OSI MODEL. Communication Architecture Strategy for connecting host computers and other communicating equipment. Defines necessary elements for.
OSI Model OSI MODEL.
Created by : Asst. Prof. Ashish Shah, J. M
LESSON Networking Fundamentals Understand IPv4.
Networking Using the OSI Model.
OSI LAYERS.
Network Protocols and Standards
IP: Addressing, ARP, Routing
How the computer transport system works
Unix System Administration
Part I. Overview of Data Communications and Networking
Internet technologies
The OSI Model and the TCP/IP Protocol Suite
OSI Protocol Stack Given the post man exemple.
Layered Architectures
PART IV Network Layer.
Lecturer, Department of Computer Application
Understand the OSI Model Part 2
DEPARTMENT OF COMPUTER SCIENCE
Network Architecture Introductory material
The Open System Interconnection (OSI) Model & Network Protocols.
The OSI Model and the TCP/IP Protocol Suite
CS 457 – Lecture 10 Internetworking and IP
Review of Important Networking Concepts
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 4: Planning and Configuring Routing and Switching.
Lecture 2: Overview of TCP/IP protocol
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
OSI Model OSI MODEL.
Network Architecture Models
Delivering the Data.
The OSI Model and the TCP/IP Protocol Suite
OSI Reference Model Unit II
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Layering and the TCP/IP protocol Suite
Objectives: 1.Identify different internet protocol (IP) 2.Configure sample of IP address 3.Appreciate and relate protocol in our life.
Presentation transcript:

● How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008

Layers ● Complex problems can be solved using the common divide and conquer principle. In this case the internals of the Internet are divided into separate layers. – Makes it easier to understand – Developments in one layer need not require changes in another layer – Easy formation (and quick testing of conformation to) standards ● Two main models of layers are used: – OSI (Open Systems Interconnection) – TCP/IP

OSI Model

OSI ● Conceptual model composed of seven layers, developed by the International Organization for Standardization (ISO) in ● Layer 7 – Application (servers and clients etc web browsers, httpd) ● Layer 6 – Presentation (file formats e.g pdf, ASCII, jpeg etc) ● Layer 5 – Session (conversation initialisation, termination, ) ● Layer 4 – Transport (inter host comm – error correction, QOS) ● Layer 3 – Network (routing – path determination, IP[x] addresses etc) ● Layer 2 – Data link (switching – media acces, MAC addresses etc) ● Layer 1 – Physical (signalling – representation of binary digits) ● Acronym: All People Seem To Need Data Processing

TCP/IP ● Generally, TCP/IP (Transmission Control Protocol/Internet Protocol) is described using three to five functional layers. We have chosen the common DoD reference model, which is also known as the Internet reference model. – Process/Application Layer consists of applications and processes that use the network. – Host-to-host transport layer provides end-to-end data delivery services. – Internetwork layer defines the datagram and handles the routing of data. – Network access layer consists of routines for accessing physical networks.

TCP/IP model – the “hourglass” BrowserMUA HTTPSMTP TCPUDP DNSRTSP Video Player ICMP PING IP WiFi EthernetPPP CopperFiberPigeonsAir :)

OSI and TCP/IP

Encapsulation & Decapsulation ● Lower layers add headers (and sometimes trailers) to upper layers packets Applicatio n Transport Networ k Data Link Data Header Transport Packet Header Data Header Network Packet DataHeader Trailer

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

So what is an IP address anyway? ● 32 bit number (4 octet number) can be represented in lots of ways: BA27D

More to the structure ● Hierarchical Division in IP Address: – Network Part (Prefix) ● describes which network – Host Part (Host Address) ● describes which host on that network – Boundary can be anywhere ● used to be a multiple of 8 (/8, /16/, /24), but not usual today NetworkHost Mas k

Network Masks ● Network Masks help define which bits are used to describe the Network Part and which for hosts ● Different Representations: – decimal dot notation: ( in byte 3) – binary: – hexadecimal: 0xFFFFE000 – number of network bits: /19 ( ) ● Binary AND of 32 bit IP address with 32 bit netmask yields network part of address

Sample Netmasks /17 (netmask ) /16 (netmask ) /26 (netmask )

Allocating IP addresses ● The subnet mask is used to define size of a network ● E.g a subnet mask of or /24 implies 32-24=8 host bits – 2^8 minus 2 = 254 possible hosts ● Similarly a subnet mask of or /27 implies 32-27=5 hosts bits – 2^5 minus 2 = 30 possible hosts

Special IP Addresses ● All 0’s in host part: Represents Network – e.g /24 – e.g /17 – e.g /25 (WHY ?) ● All 1’s in host part:Broadcast (all hosts on net) – e.g ( /16) – e.g ( /24) – e.g /25 ( /25) (WHY ?) ● /8: Loopback address ( ) ● : Various special purposes (DHCP, etc...)

Networks – super- and subnetting /24 /25 / By adding one bit to the netmask, we subdivide the network into two smaller networks. This is subnetting. i.e.: If one has a /26 network (32 – 26 = 6 => 2^6 => 64 addresses), that network can be subdivided into two subnets, using a /27 netmask, where the state of the last bit will determine which network we are addressing (32 – 27 = 5 => 2^5 => 32 addresses). This can be done recursively (/27 => 2 x /28 or 4 x /29, etc...). Example: /25 ( ) can be subnetted into / 26 and / 26 /27 /26 /25

Networks – super- and subnetting /24 /25 Inversely, if two networks can be “joined” together under the same netmask, which encompasses both networks, then we are supernetting. Example: Networks /24 and /24 can be “joined” together into one network expressed: /23. Note: for this to be possible, the networks must be contiguous, i.e. it is not possible to supernet /24 and /24 /26

Fun with subnets

Numbering Rules ● Private IP address ranges (RFC 1918) – 10/8 ( – ) – /16 ( – ) – /12 ( – ) ● Public Address space available from AfriNIC ● Choose a small block from whatever range you have, and subnet your networks (to avoid problems with broadcasts, and implement segmentation policies – DMZ, internal, etc...)

FreeBSD IP related settings ● ifconfig_em0=“ ” ● defaultrouter=“ ” ● hostname=“pc1.sae.ws.afnog.org”

Reaching hosts on the local net ● If you want to talk to other computers on the same network (e.g: withing the same IP subnet, not necessarily the same physical network!), this is automatically possible the moment you assign an IP address to your network card. ● We will see this later with the hands-on

Reaching hosts on other networks ● If a computer isn't on your subnet, to reach it packets must be sent via a “gateway” connected to your network (“next hop”). ● If not explicit route (“direction”) is given on how to reach a particular network you want to talk to, then the computer will try a last resort “default gateway” for all packets that are not local ● defaultrouter option in /etc/rc.conf sets the default gateway for this system

Forwarding packets ● Any UNIX-like (and other) operating system can function as gateway (e.g.: forwarding packets from one interface to another) ● IP forwarding on a FreeBSD box turned on with the gateway_enable option in /etc/rc.conf ● Without forwarding enabled, the box will not forward packets from one interface to another: it is simply a host with multiple interfaces.

Packet Routing Exercise

Client – Server Architecture ● Client makes requests, Server serves requests – e.g HTTP for transferring “web pages”. This is the easiest way to provide services on demand and provides a means of sharing resources more effectively. ● Example: Mimicking the browser with telnet (client) talking to a web server (server) # telnet 80www.google.com GET / HTTP/1.0 Host:

Debugging ● ping ● traceroute ● tcpdump