workshop eugene, oregon IP Basics Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA

Slides:



Advertisements
Similar presentations
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.
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
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.
Network Layer. The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of data over the network between identified end.
1 Version 3.0 Module 10 Routing Fundamentals and Subnetting.
Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name.
CSC 412 – Networking Scott Heggen. Agenda Today The Network Layer (Chapter 5) Discussion on A2: The Data Link Layer Thursday Q2: The Networking Layer.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
IP Addressing INTW What is an IP address? An unique identifier for a computer or device (host) on a TCP/IP network A 32-bit binary number usually.
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
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.
Protocol Layering Chapter 10. Looked at: Architectural foundations of internetworking Architectural foundations of internetworking Forwarding of datagrams.
Protocol Architectures. Simple Protocol Architecture Not an actual architecture, but a model for how they work Similar to “pseudocode,” used for teaching.
ACM 511 Chapter 2. Communication Communicating the Messages The best approach is to divide the data into smaller, more manageable pieces to send over.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
Networking Colin Alworth May 26, Quick Review IP address: four octets Broadcast addresses –IP addresses use all 1’s for the host bits, and whatever.
ES 101. Module 2 IP Addressing & Routing. Last Lecture Wide area networking Definition of “packets”
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:
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
1 TCP/IP Networking. 2 TCP/IP TCP/IP is the networking protocol suite most commonly used with UNIX, Windows, NT and most other OS’s. TCP/IP defines a.
Lesson 5—Networking BASICS1 Networking BASICS Protocols and Network Software Unit 2 Lesson 5.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
First, by sending smaller individual pieces from source to destination, many different conversations can be interleaved on the network. The process.
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.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
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.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer PART IV.
Protocol Layering Chapter 11.
CS470 Computer Networking Protocols
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
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.
TCP/IP Protocol Suite and IP Addressing Presented By : Dupien AMS.
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
Network Layer IP Address.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
● How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.
How the computer passport system works
NgNOG IP Basics Wale Adedokun and Dewole Ajao.
IP – Subnetting and CIDR
Created by : Asst. Prof. Ashish Shah, J. M
LESSON Networking Fundamentals Understand IPv4.
IP: Addressing, ARP, Routing
How the computer transport system works
Unix System Administration
Internet technologies
PART IV Network Layer.
Chapter 6 – Routing.
CS4470 Computer Networking Protocols
CS 457 – Lecture 10 Internetworking and IP
Presentation transcript:

workshop eugene, oregon IP Basics Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA

workshop eugene, oregon 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

workshop eugene, oregon OSI Model

workshop eugene, oregon 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

workshop eugene, oregon 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.

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

workshop eugene, oregon OSI and TCP/IP

workshop eugene, oregon Encapsulation & Decapsulation Lower layers add headers (and sometimes trailers) to upper layers packets Application Transport Networ k Data Link Data Header Transport Packet Header Data Header Network Packet DataHeader Trailer

workshop eugene, oregon 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

workshop eugene, oregon Summary Networking is a problem approached in layers. OSI Layers TCP/IP Layers Each layer adds headers to the packet of the previous layer as the data leaves the machine (encapsulation) and the reverse occurs on the receiving host (decapsulation)

workshop eugene, oregon So what is an IPv4 address anyway? 32 bit number (4 octet number) can be represented in lots of ways: BA27D

workshop eugene, oregon 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 Networ k Hos t Mas k

workshop eugene, oregon 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

workshop eugene, oregon Sample Netmasks /17 (netmask ) /16 (netmask ) /26 (netmask )

workshop eugene, oregon 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 host bits 2^5 minus 2 = 30 possible hosts

workshop eugene, oregon 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.)

workshop eugene, oregon 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

workshop eugene, oregon 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

workshop eugene, oregon 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...)

workshop eugene, oregon Linux IP related settings Files /etc/network/interfaces /etc/hosts /etc/hostname( optional) Commands ifconfig eth x/24 route add default gw hostname pc1.cs.uoregon.edu

workshop eugene, oregon Routing Every host on the internet needs a way to get packets to other hosts outside its local network. This requires special hosts called routers that can move packets between networks. Packets may pass through many routers before they reach their destinations.

workshop eugene, oregon The route table All hosts (including routers) have a route table that specifies which networks it is connected to, and how to forward packets to a gateway router that can talk to other networks. A simple route table (as might be shown by route -n): Destination Gateway Genmask Flags Interface U eth UG eth0

workshop eugene, oregon What do route table entries mean? Destination Gateway Genmask Flags Interface U eth UG eth0 The destination is a network address. The gateway is an IP address of a router that can forward packets (or , if the packet doesn't need to be forwarded). The genmask is a netmask. Flags indicate the type of route. The interface is the network interface that is connected to that network.

workshop eugene, oregon How the route table is used A packet that needs to be sent has a destination IP address. For each entry in the route table (starting with the first): Compute the logical AND of the destination IP and the genmask entry. Compare that with the destination entry. If those match, send the packet out the interface, and we're done. If not, move on to the next entry in the table.

workshop eugene, oregon Reaching the local network Suppose we want to send a packet to using this route table. Destination Gateway Genmask Flags Interface U eth UG eth0 In the first entry: AND = This matches the destination of the first routing table entry, so send the packet out interface eth0. That first entry is called a network route.

workshop eugene, oregon Reaching other networks Suppose we want to send a packet to using this route table. Destination Gateway Genmask Flags Interface U eth UG eth AND = This does not match the first entry, so move on to the next entry AND = This does match the second entry, so forward the packet to via eth0.

workshop eugene, oregon The default route Note that this route table entry: Destination Gateway Genmask Flags Interface UG eth0 matches every possible destination IP address. This is called the default route. The gateway has to be a router capable of forwarding traffic.

workshop eugene, oregon More complex routing Consider this route table: Destination Gateway Genmask Flags Interface U eth U eth U eth U eth UG eth0 This is what a router's routing table might look like. Note that there are multiple interfaces for multiple local networks, and a gateway that can reach other networks.

workshop eugene, oregon Forwarding packets Any UNIX-like (and other) operating system can function as gateway:  In Linux in /etc/sysctl.conf set: net.ipv4.ip_forward=1 Without forwarding enabled, the box will not forward packets from one interface to another: it is simply a host with multiple interfaces.