IP and Networking Basics

Slides:



Advertisements
Similar presentations
Computer Networks TCP/IP Protocol Suite.
Advertisements

Introduction to TCP/IP
Topic 19 TCP/IP Enabling Objectives 19.1 DESCRIBE the OSI model and the TCP/IP Protocol DISCUSS IP addresses IDENTIFY common TCP/IP based protocols.
TCP/IP MODEL Maninder Kaur
Introduction to Internet Protocol (IP) Version 4 and Version 6 1.
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
Introduction to TCP/IP
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
1 Version 3.0 Module 10 Routing Fundamentals and Subnetting.
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
CS 356 Systems Security Spring Dr. Indrajit Ray
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.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
PacNOG 6: Nadi, Fiji IP Basics Steven VanDevender Hervey Allen Network Startup Resource Center.
Review: – computer networks – topology: pair-wise connection, point-to-point networks and broadcast networks – switching techniques packet switching and.
Chapter 2 Network Models
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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
ACM 511 Chapter 2. Communication Communicating the Messages The best approach is to divide the data into smaller, more manageable pieces to send over.
Huda AL_Omairl - Network 71 Protocols and Network Software.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
Protocols 1 Objective: Build a protocol foundation for Client / Server programming in an Internet Environment Note: RFCs available from
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.
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.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
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.
Data Communications and Networks
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
African Network Operators Group Track 2: IP And Networking Basics Brian Longwe.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
Telecommunications Essentials John R. Durrett July 5, 2005.
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
1 DETAILS OF PROTOCOLS The Zoo Protocol - TCP - IP.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
Communication Networks NETW 501 Tutorial 2
Lecture 4 : Network Architectures (cont..) 1. 2 Summary of OSI Layers.
IP and Networking Basics Selection of slides taken from Internet Society Workshop Resource Centre:
● How the computer transport system works IP Basics AFNOG IX Rabat, Morocco May 2008.
How the computer passport system works
Roadmap  Introduction to Basics  Computer Network – Components | Classification  Internet  Clients and Servers  Network Models  Protocol Layers.
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.
How the computer transport system works
Unix System Administration
Scaling the Network: The Internet Protocol
OSI Protocol Stack Given the post man exemple.
Networking for Home and Small Businesses – Chapter 6
Networking for Home and Small Businesses – Chapter 6
Internetworking Outline Best Effort Service Model
TCP/IP Protocol Suite: Review
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Scaling the Network: The Internet Protocol
Networking for Home and Small Businesses – Chapter 6
OSI Reference Model Unit II
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Presentation transcript:

IP and Networking Basics

Outline Origins of TCP/IP OSI Stack & TCP/IP Architecture Client Server Architecture IP Addressing & Numbering Rules IP Forwarding and default route Network Troubleshooting Tools

Origins of TCP/IP 1950’s – 1960’s – US Govt. requirement for “rugged” network that would continue to work in case of a nuclear attack RAND Corporation (America’s leading think thank) & DoD formed ARPA (Advanced Research Project Agency) 1968 – ARPA engineers proposed Distributed network design for ARPANET Network

Distributed Network Design Pre-ARPANET networks “connection oriented” Management & control was centralized “New” Network – ARPANET Connectionless Decentralised Modern Internet has evolved from the ARPANET

Simplified view of the Internet

Internetworks Start with lots of little networks Many different types Ethernet, dedicated leased lines, dialup, ATM, Frame Relay, FDDI Each type has its own idea of addressing and protocols Want to connect them all together and provide a unified view of the whole lot (i.e. act as a single large network)

A small internetwork or “Internet”

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

OSI Stack & TCP/IP Architecture

What is TCP/IP? In simple terms is a language that enables communication between computers A set of rules (protocol) that defines how two computers address each other and send data to each other Is a suite of protocols named after the two most important protocols TCP and IP but includes other protocols such as UDP, RTP, etc

Open Systems & TCP/IP TCP/IP formed from standardized communications procedures that were platform independent and open Open systems open architecture - readily available to all What is open system networking? network based on well known and standardized protocols standards readily available networking open systems using a network protocol When we talk about open systems networking, we mean a network protocol that is based on well known and standardized protocols and is readily available

OSI - Layered Model Concept Divide-and-conquer approach Dividing requirements into groups, e.g transporting of data, packaging of messages, end user applications Each group can be referred to as a layer Upper layers are logically closer to the user and deal with more abstract data, relying on lower layer protocols to translate data into forms that can eventually be physically transmitted. Open Systems Interconnection Reference Model (OSI- RM) adopted as a standard for networking The OSI model whichas been widely adopted as a standard for networking closely resembles the TCP/IP model and uses the underlying principle of divide-and conquer.

OSI Model

OSI Model Application Presentation Session Transport Network Data Link Physical 1 3 2 4 5 6 7 APPLICATION Upper Layers Application oriented Independent of layers below TRANSPORT Lower Layers Transmission of data No differentiation of upper layers

Layers 7, 6, 5 7: Application layer 6: Presentation layer Provides different services to the applications Uses the underlying layers to carry out work e.g. SMTP (mail), HTTP (web), Telnet, FTP, DNS 6: Presentation layer Converts data from applications into common format and vice versa 5: Session layer organizes and synchronizes the exchange of data between application processes

Layer 4 4: Transport layer Provides end to end transportation of segments E.g. TCP 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 UDP is much simpler: no reliability features

Layer 3 3: Network layer Routes the information in the network E.g. IP is a network layer implementation which defines addresses in such a way that route selection can be determined. Single address space for the entire internetwork adds an additional layer of addressing, e.g. IP address, which is different from MAC address.

Layer 3 3: Network layer (e.g. IP) Unreliable (best effort) if packet gets lost, network layer doesn’t care for higher layers can resend lost packets 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 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 2 2: Data Link layer Provides reliable transit of data across a physical network link 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) some link layers detect corrupted frames while other layers re-send corrupted frames (NOT Ethernet)

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

OSI and TCP/IP Application Presentation Session Transport Network 1 3 2 4 5 6 7 Application Presentation Session Transport Network Data Link Physical Application Mail, Web, etc. Transport TCP/UDP – end to end reliability Network IP - Forwarding (best-effort) This diagram shows the mapping between the OSI and the TCP/IP model. The OSI models further divides the application layer in the TCP/IP into separate layers, each with its own function Data Link & Physical Framing, delivery Raw signal OSI TCP/IP

TCP/IP Layer Model

Protocol Layers: The TCP/IP Hourglass Model Application layer SMTP HTTP FTP Telnet DNS Audio Video TCP UDP RTP Transport layer IP Network layer Token Ring Frame Relay Ethernet ATM X.25 PPP HDLC Data link layer

Layer Interaction Application, Presentation and Session protocols are end-to-end Transport protocol is end-to-end encapsulation/decapsulation over network protocol on end systems Network protocol is throughout the internetwork encapsulation/decapsulation over data link protocol at each hop Link and physical layers may be different on each hop

Layer Interaction: OSI 7-Layer Model Application Application End to end Presentation Presentation Session Session Transport Transport Network Network Network Network Hop by hop Link Link Link Link Link Link Physical Physical Physical Router Host Host Router

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

Encapsulation & Decapsulation Lower layers add headers (and sometimes trailers) to data from higher layers Application Data Transport Header Transport Layer Data Network Header Network Layer Data Network Header Header Data Data Link Header Link Layer Data Trailer Data Link Header Header Header Data 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

Layer 2 - Ethernet frame Destination and source are 48-bit MAC addresses Type 0x0800 means that the data portion of the Ethernet frame contains an IP datagram. Type 0x0806 for ARP. Preamble Dest Source Length Type Data CRC 6 bytes 6 bytes 2 bytes 2 bytes 46 to 1500 bytes 4 bytes

Layer 3 - IP datagram Version = 4 If no options, IHL = 5 Type of Service Total Length Version = 4 If no options, IHL = 5 Source and Destination are 32-bit IP addresses Protocol = 6 means data portion contains a TCP segment. Protocol = 17 means UDP. Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source Address Destination Address Options Padding Data

Acknowledgement Number Layer 4 - TCP segment Source Port Destination Port Sequence Number Acknowledgement Number Data Offset Reserved U R G A C K E O L R S T S Y N F I N Window Checksum Urgent Pointer Options Padding Data Source and Destination are 16-bit TCP port numbers (IP addresses are implied by the IP header) If no options, Data Offset = 5 (which means 20 octets)

Client Server Architecture simple example layer 7 protocol: HTTP Client makes requests, Server serves requests – e.g HTTP for transferring “websites”. 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 www.google.com 80 GET / HTTP/1.1 Host: www.google.com

IP Addressing

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

Purpose of an IP Address Identifies a machine’s connection to a network Physically moving a machine from one network to another requires changing the IP address TCP/IP uses unique 32-bit addresses

Basic Structure of an IP Address 32 bit number (4 octet number): (e.g. 133.27.162.125) Decimal Representation: 133 27 162 125 Binary Representation: 10000101 00011011 10100010 01111101 Hexadecimal Representation: 85 1B A2 7D

IP Address Allocation Private IP address ranges: 10/8 (10.0.0.0 – 10.255.255.255) 192.168/16 (192.168.0.0 – 192.168.255.255) 172.16/12 (172.16.0.0 – 172.31.255.255) Public IP address space Assigned by an appropriate authority such as RIPE, ARIN, AFRINIC, etc. or Local Internet Registries (LIRs) Public Address space for the Africa Region available from AfriNIC Choose a small block from whatever range you have, and subnet your networks (to avoid problems with broadcasts)

Addressing in Internetworks The problem we have More than one physical network Different Locations Larger number of computers 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 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 very often NOT at a multiple of 8 bits 1 205 . 154 . 8 11001101 10011010 00001000 00000001 Network Host

Network Masks Network Masks help define which bits are used to describe the Network Part and which for hosts Different Representations: decimal dot notation: 255.255.224.0 binary: 11111111 11111111 11100000 00000000 hexadecimal: 0xFFFFE000 number of network bits: /19 Binary AND of 32 bit IP address with 32 bit netmask yields network part of address

Classless Addressing IP address with the subnet mask defines the range of addresses in the block E.g 10.1.1.32/28 (subnet mask 255.255.255.240) defines the range 10.1.1.32 to 10.1.1.47 10.1.1.32 is the network address 10.1.1.47 is the broadcast address 10.1.1.33 ->46 assignable addresses

Forwarding Computers can only send packets directly to other computers on their subnet If the destination computer is not on the same subnet, packets are sent via a “gateway” defaultrouter option in /etc/rc.conf sets the default gateway for this system. IP forwarding on a FreeBSD box turned on with the gateway_enable option in /etc/rc.conf otherwise the box will not forward packets from one interface to another.

How DNS fits Computers use IP Addresses but Humans find names easier to remember DNS provides a mapping of IP Addresses to names and vice versa Computers may be moved between networks, in which case their IP address will change BUT their names can remain the same

Network Troubleshooting Tools ping traceroute tcpdump