Top Banner
Chapter 2 Internet Protocol
28

Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Chapter 2

Internet Protocol

Page 2: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

DoD Model

Four layers:– Process/Application layer– Host-to-Host layer– Internet layer– Network Access layer

Page 3: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

The DoD and OSI Models

Page 4: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

The TCP/IP Protocol Suite

Page 5: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Process/Application Layer Protocols

Telnet – terminal emulation

File Transfer Protocol (FTP)

Trivial File Transfer Protocol (TFTP) – not as flexible as

FTP

Network File System (NFS) - UNIX and NT can access

each other’s files

Line Printer Daemon (LPD)

Page 6: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Process/Application Layer Protocols

X Window – GUI for client/server

Simple Network Management Protocol (SNMP) – gathers

network info from devices

Domain Name Service (DNS) – resolves addresses

Dynamic Host Configuration Protocol (DHCP) – assigns

addresses

Page 7: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Host-to Host Layer Protocols

Shields applications from complexities of network

Protocols– Transmission Control Protocol (TCP)– User Datagram Protocol (UDP)

Page 8: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

TCP Segment Format

Page 9: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

UDP Segment

Page 10: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Key Concepts

TCP– Sequenced– Reliable– Connection-oriented– Acknowledgements– Virtual circuit– Lots of overhead

UDP– Unsequenced– Unreliable– Connectionless– Low overhead– Can handle routine

network traffic (SNMP) with ease

Page 11: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Port Numbers

Used by TCP and UDP to communicate with upper layers

Port Numbers:– < 1024: “Well-known port numbers”

Defined in RFC 1700; linked to specific applications or protocols

– > 1024: Dynamically assigned Used by upper layers to communicate between hosts,

keep various connections separate Created by source host

Page 12: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Port Numbers for TCP & UDP

Page 13: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Internet Layer Protocols

Used to route and provide standard interface for upper layers

Internet Protocol (IP) Internet Control Message Protocol (ICMP) Address Resolution Protocol (ARP) Reverse Address Resolution Protocol (RARP)

Page 14: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

IP

Looks at packet addresses Looks at routing table Chooses path to send packet What network is the destination on? (IP,

software, or logical address) What is the ID on the network? (hardware,

MAC address) Receives segments, makes

datagrams/packets

Page 15: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

IP Header

Page 16: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

The Protocol Field in IP Header

Page 17: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

ICMP

Internet Control Message Protocol Handles many management functions

– Destination unreachable– Buffer full– Hops– Ping– Traceroute

Page 18: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Local ARP Broadcast

Page 19: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

RARP Broadcast

Page 20: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Hierarchical IP Addressing Scheme

IP addresses = 32 bits– Divided into 4 sections or octets or bytes– Each byte containing 8 bits– Left to right is general to specific

Depicting IP addresses: Dotted decimal: 172.16.30.56 Binary: 10101100.00010000.00011110.00111000 Hexadecimal: 82 39 1E 38

Page 21: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

IP Addressing

Terminology– Bit: one digit: 1 or 0– Byte: 7 or 8 digits– Octet: Always 8 bits (base-8 addressing)– Network Address: Used to send packets to a remote network– Broadcast Address: Sends information to all nodes on a network

All networks and nodes: 255.255.255.255 All nodes on 172.16 network: 172.16.255.255 All subnets & hosts on 10 network: 10.255.255.255

Page 22: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Summary of the Three Classes of Networks

Page 23: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Class A Addresses

Structure– NetworkNetwork.node.node.node

Class A Valid Host IDs– 10.0.0.0 All host bits off– 10.255.255.255 All host bits on– Valid hosts = 10.0.0.1 - 10.255.255.254

0’s & 255s are valid hosts but hosts bits cannot all be off or on at the same time!

224-2 = 222

Page 24: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Class B Addresses

Structure– NetworkNetwork.NetworkNetwork.node.node

Class B Valid Host IDs– 172.16.0.0 All host bits off– 172.16.255.255 All host bits on– Valid hosts = 172.16.0.1 - 172.16.255.254

0’s & 255s are valid hosts but hosts bits cannot all be off or on at the same time!

216-2 = 214

Page 25: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Class C Addresses

Structure– NetworkNetwork.NetworkNetwork.NetworkNetwork.node

Class C Valid Host IDs– 192.168.100.0 All host bits off– 192.168.100.255 All host bits on– Valid hosts = 192.168.100.1 - 192.168.100.254

0’s & 255s are valid hosts but hosts bits cannot all be off or on at the same time!

28-2 = 26

Page 26: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Private IP Addresses

Use private addresses within a company Translate private to real addresses for

Internet use 10.x.x.x 172.16.x.x to 172.31.x.x 192.168.x.x

Page 27: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

Broadcasts

Layer 2 broadcast to all LAN nodes– All 1s (binary) or Fs (hex)

Layer 3 broadcast to all network nodes– All host bits turned on

Unicast to one particular host Multicast to several nodes

Page 28: Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.

NAT

Network address translation Converts private to public IP addresses Static NAT for one-to-one mapping of these

addresses Dynamic NAT uses a pool of public IP

addresses Overloading many private addresses to one

public address (port address translation)