www.ciscopress.com copyright 2003 ccna 1 chapter 7 tcp/ip protocol suite and ip addressing by your...

55
www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

Upload: laureen-brown

Post on 23-Dec-2015

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

CCNA 1 Chapter 7

TCP/IP Protocol Suite and IP Addressing

By

Your Name

Page 2: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Objectives

• Introduction to TCP/IP

• Internet addresses

• Obtaining an IP address

Page 3: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

History and Future of TCP/IP

• The U.S. Department of Defense (DoD) created the TCP/IP reference model because it wanted a network that could survive any conditions.

• Some of the layers in the TCP/IP model have the same name as layers in the OSI model.

Page 4: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Application Layer

• Handles high-level protocols, issues of representation, encoding, and dialog control.

• The TCP/IP protocol suite combines all application related issues into one layer and ensures this data is properly packaged before passing it on to the next layer.

Page 5: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Application Layer Examples

• Telnet – Provides the capability to remotely access another computer

• File Transfer Protocol – Download or upload files• Hypertext Transfer Protocol – Works with the

World Wide Web

Page 6: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Transport Layer

Five basic services:• Segmenting upper-layer application data• Establishing end-to-end operations• Sending segments from one end host to another

end host• Ensuring data reliability• Providing flow control

Page 7: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Layer 4 Protocols

Page 8: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Internet Layer

• The purpose of the Internet layer is to send packets from a network node and have them arrive at the destination node independent of the path taken.

• Internet layer protocols:– Internet Protocol (IP)– Internet Control Message Protocol (ICMP) – Address Resolution Protocol (ARP)– Reverse Address Resolution Protocol (RARP)

Page 9: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Network Access Layer

• The network access layer is concerned with all of the issues that an IP packet requires to actually make a physical link to the network media.

• It includes the LAN and WAN technology details, and all the details contained in the OSI physical and data link layers.

Page 10: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Comparing the OSI Model and TCP/IP Model

Page 11: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Similarities of the OSI and TCP/IP models

• Both have layers.• Both have application layers, though they

include very different services.• Both have comparable transport and network

layers. • Packet-switched, not circuit-switched,

technology is assumed.

• Networking professionals need to know both models.

Page 12: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Differences of the OSI and TCP/IP models

• TCP/IP combines the presentation and session layer into its application layer.

• TCP/IP combines the OSI data link and physical layers into one layer.

• TCP/IP appears simpler because it has fewer layers.

• TCP/IP transport layer using UDP does not always guarantee reliable delivery of packets as the transport layer in the OSI model does.

Page 13: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Internet Architecture

• Two computers, anywhere in the world, following certain hardware, software, protocol specifications, can communicate, reliably even when not directly connected.

• LANs are no longer scalable beyond a certain number of stations or geographic separation.

Page 14: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Internet Addresses

Page 15: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

IP Address as a 32-Bit Binary Number

Page 16: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Binary and Decimal Conversion

Page 17: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

IP Address Classes

Page 18: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

IP Address Classes

Page 19: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

IP Addresses as Decimal Numbers

Page 20: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Hosts for Classes of IP Addresses

Class A (24 bits for hosts) 224 - 2* = 16,777,214 maximum hosts

Class B (16 bits for hosts) 216 - 2* = 65,534 maximum hosts

Class C (8 bits for hosts) 28 - 2* = 254 maximum hosts

* Subtracting the network and broadcast reserved address

Page 21: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

IP Addresses as Decimal Numbers

Page 22: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

An IP address such as 176.10.255.255 that has all binary 1s in the host bit positions is reserved for the broadcast address.

An IP address such as 176.10.0.0 that has all binary 0s in the host bit positions is reserved for the network address.

Network IDs and Broadcast Addresses

Page 23: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Private Addresses

Page 24: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Reserved Address Space

• Network ID• Broadcast address• Hosts for classes of IP addresses

Page 25: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Basics of Subnetting

• Classical IP addressing• Subnetworks• Subnet mask• Boolean operations: AND, OR, and NOT• Performing the AND function

Page 26: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Subnetworks

To create a subnet address, a network administrator borrows bits from the original host portion and designates them as the subnet field.

Page 27: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Subnetworks

Page 28: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Subnet Mask

• Determines which part of an IP address is the network field and which part is the host field

• Follow these steps to determine the subnet mask:– 1. Express the subnetwork IP address in binary form.– 2. Replace the network and subnet portion of the

address with all 1s.– 3. Replace the host portion of the address with all 0s.– 4. Convert the binary expression back to dotted-decimal

notation.

Page 29: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Subnet mask in decimal = 255.255.240.0

Subnet Mask

Page 30: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

• AND is like multiplication. • OR is like addition. • NOT changes 1 to 0, and 0 to 1.

Boolean Operations: AND, OR, and NOT

Page 31: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Performing the AND Function

Page 32: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Range of Bits Needed to Create Subnets

Page 33: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Subnet Addresses

Page 34: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Decimal Equivalents of 8-Bit Patterns

Page 35: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Creating a Subnet

• Determining subnet mask size• Computing subnet mask and IP address• Computing hosts per subnetwork• Boolean AND operation• IP configuration on a network diagram• Host and subnet schemes• Private addresses

Page 36: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Class B address with 8 bits borrowed for the subnet

130.5.2.144 (8 bits borrowed for subnetting) routes to subnet 130.5.2.0 rather than just to network 130.5.0.0.

Determining Subnet Mask Size

Page 37: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

The address 197.15.22.131 would be on the subnet 197.15.22.128.

11000101 00001111 00010110 100 00011

Network Field SNHost Field

Class C address 197.15.22.131 with a subnet mask of 255.255.255.224 (3 bits borrowed)

Determining Subnet Mask Size

Page 38: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Subnetting Example with AND Operation

Page 39: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

The router connects subnetworks and networks.

IP Configuration on a Network Diagram

Page 40: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

The number of lost IP addresses with a Class C network depends on the number of bits borrowed for subnetting.

Host Subnet Schemes

Page 41: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

IPv4 versus IPv6

• IP version 6 (IPv6) has been defined and developed.

• IPv6 uses 128 bits rather than the 32 bits currently used in IPv4.

• IPv6 uses hexadecimal numbers to represent the 128 bits.

IPv4

Page 42: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Obtaining an IP Address

Page 43: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Obtaining an IP Address

• Static addressing– Each individual device must be configured with an IP

address.• Dynamic addressing

– Reverse Address Resolution Protocol (RARP)– Bootstrap Protocol (BOOTP)– Dynamic Host Configuration Protocol (DHCP)– DHCP initialization sequence– Function of the Address Resolution Protocol– ARP operation within a subnet

Page 44: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Static Assignment of IP Addresses

• Each individual device must be configured with an IP address.

Page 45: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Reverse Address Resolution Protocol (RARP)

The source initiates a RARP request, which helps it detect its own IP address.

Page 46: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

BOOTP IP

• The Bootstrap Protocol (BOOTP) operates in a client/server environment and only requires a single packet exchange to obtain IP information.

• BOOTP packets can include the IP address, as well as the address of a router, the address of a server, and vendor-specific information.

Page 47: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Dynamic Host Configuration Protocol

• Allows a host to obtain an IP address using a defined range of IP addresses on a DHCP server.

• As hosts come online, contact the DHCP server, and request an address.

Page 48: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Client collects DHCP offer responses from the server.

DHCP Initialization Sequence

Page 49: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

ARP

t

ARP enables a computer to find the MAC addressof the computer that isassociated with an IPaddress.

Page 50: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

All devices on the network receive the packet and pass tonetwork layer; only one device responds with an ARP reply.

ARP Operation Within a Subnet

Page 51: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

ARP Process

Page 52: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Advanced ARP Concepts

• Default gateway

• Proxy ARP

Page 53: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

A default gateway is the IPaddress of the interface on the router that connects to the network segment on which the source host is located.

Default Gateway

Page 54: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

How ARP Sends Data to Remote Networks

Page 55: Www.ciscopress.com Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name

www.ciscopress.comCopyright 2003

Proxy ARP