Top Banner
1 TCP/IP Chapter 7
46

TCP/IP

Jan 01, 2016

Download

Documents

Chapter 7. TCP/IP. TCP/IP History. Developed in the 1970s Created for use on the ARPANET Used by UNIX Predates the PC, the Open Systems Interconnection (OSI) model, and Ethernet Platform and operating system independent. TCP/IP Standards. Developed using a collaborative process - PowerPoint PPT Presentation
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: TCP/IP

11

TCP/IP Chapter 7

Page 2: TCP/IP

Chapter 7: TCP/IP 2

TCP/IP History

Developed in the 1970s

Created for use on the ARPANET

Used by UNIX

Predates the PC, the Open Systems Interconnection (OSI) model, and Ethernet

Platform and operating system independent

Page 3: TCP/IP

Chapter 7: TCP/IP 3

TCP/IP Standards

Developed using a collaborative process

Published as Requests for Comments (RFCs) by the Internet Engineering Task Force (IETF)

In the public domain

Page 4: TCP/IP

Chapter 7: TCP/IP 4

Advantages of a Multilayered Design

Platform independence – Separate protocols make it easier to support a variety of communicating Platforms

Quality of service – Provide level of service required

Simultaneous development – Can develop various protocols simultaneously

Page 5: TCP/IP

Chapter 7: TCP/IP 5

TCP/IP AND THE OSI MODEL

Page 6: TCP/IP

Chapter 7: TCP/IP 6

THE LINK LAYER

Transmission Control Protocol/Internet Protocol (TCP/IP) link layer protocols include Serial Line Internet Protocol (SLIP)

Point-to-Point Protocol (PPP)

Page 7: TCP/IP

Chapter 7: TCP/IP 7

THE INTERNET LAYER

The TCP/IP internet layer is equivalent to the Open Systems Interconnection (OSI) network layer.

Examples of Internet layer protocols include IP

Address Resolution Protocol (ARP)

Internet Control Message Protocol (ICMP)

Routing protocols: Routing Information Protocol (RIP) version 1 and 2

Open Shortest Path First (OSPF)

Page 8: TCP/IP

Chapter 7: TCP/IP 8

THE TRANSPORT LAYER

The TCP/IP transport layer is equivalent to the OSI transport layer.

Examples of transport layer protocols include TCP

UDP

Page 9: TCP/IP

Chapter 7: TCP/IP 9

THE APPLICATION LAYER

The TCP/IP application layer is equivalent to the session, presentation, and application layers in the OSI model.

Examples of application layer protocols include Domain Name System (DNS)

Dynamic Host Configuration Protocol (DHCP)

File Transfer Protocol/Trivial File Transfer Protocol (FTP/TFTP)

Hypertext Transfer Protocol (HTTP)

Simple Mail Transfer Protocol (SMTP)

Telnet

Simple Network Management Protocol (SNMP)

Page 10: TCP/IP

Chapter 7: TCP/IP 10

ARP

The Address Resolution Protocol (ARP) resolves logical network layer addresses to Media Access Control (MAC) addresses.

ARP is defined in Request for Comments (RFC) 826.

ARP requests and replies are broadcasts that can be generated by end systems and routers.

ARP broadcast messages are not forwarded by routers.

Page 11: TCP/IP

Chapter 7: TCP/IP 16

THE INTERNET CONTROL MESSAGE PROTOCOL (ICMP)

The ICMP protocol (described in RFC 792) is a connectionless network layer messaging protocol.

Two types of messages can be sent by end systems and routers: Error and diagnostic.  Used to report error

conditions and perform diagnostic tests on a network

Query. Used to request information from another system

Page 12: TCP/IP

Chapter 7: TCP/IP 21

IP ROUTING BASICS

Routers are network layer devices that Connect similar or dissimilar data-link layer

architectures to form an internetwork. Use route tables to forward datagrams across an

internetwork. Datagrams are forwarded based on the logical

destination network layer address. The best path selection is determined by the least

cost metric. Routes to remote destinations are learned in two

ways: Statically Dynamically

Page 13: TCP/IP

Chapter 7: TCP/IP 22

DIRECTLY CONNECTED NETWORKS

Page 14: TCP/IP

Chapter 7: TCP/IP 23

STATIC ROUTES

Static routes are manually configured by an administrator.

There must be one static route for each destination network.

There must be a default static route.

When a specific route becomes unavailable, a new static route must be added and the old one must be removed.

Static routes do not generate broadcast traffic.

Suitable only for small networks

Page 15: TCP/IP

Chapter 7: TCP/IP 24

DYNAMIC ROUTES

Dynamic routes are automatically learned and advertised by routing protocols.

Routers use dynamic routing protocols to build their route tables and advertise route information.

Routing protocols, such as RIP and OSPF, can adapt very quickly to changes in the network.

Routes are either broadcast or multicast.

The best path selection is based on metrics.

Page 16: TCP/IP

Chapter 7: TCP/IP 25

DYNAMIC ROUTES (CONT.)

Suitable for large networks

Automatically compensates for network infrastructure changes

Reduces administrative workload

Page 17: TCP/IP

Chapter 7: TCP/IP 26

ROUTING TABLE INFORMATION

Each route entry includes the following information: The destination network and subnet mask

The IP address of the next gateway (or router) used to reach the destination

The specific outgoing interface used to reach the destination

The metric value associated with the route

Page 18: TCP/IP

Chapter 7: TCP/IP 27

MICROSOFT WINDOWS XP ROUTING TABLE

Page 19: TCP/IP

Chapter 7: TCP/IP 28

STATIC ROUTE EXAMPLE

Page 20: TCP/IP

Chapter 7: TCP/IP 29

STATIC ROUTE COMMANDS

The configuration of a static route varies, depending on the operating system of the computer or router you are using.

For Microsoft Windows Server 2003 you can use either Route.exe command line interface

Routing And Remote Access Console

Page 21: TCP/IP

Chapter 7: TCP/IP 30

STATIC ROUTE COMMANDS (CONT.)

For UNIX and Linux systems, use the Route command line interface.

For NetWare servers, you can use either Routecon.nlm or Inetcfg.nlm.

Page 22: TCP/IP

Chapter 7: TCP/IP 31

ROUTE.EXE SYNTAX

To add a static route, use the following command line syntax: ROUTE ADD [destination network] MASK

[subnet mask] [local interface address] IF [local interface number] METRIC [metric value for route]

For example: ROUTE ADD 192.168.3.0 MASK

255.255.255.0 192.168.2.2 IF 1 METRIC 1

Page 23: TCP/IP

Chapter 7: TCP/IP 32

DYNAMIC ROUTING PROTOCOLS

Routers use dynamic routing protocols to advertise and learn about networks.

There are two types of routing protocols: Distance vector

Link state

Page 24: TCP/IP

Chapter 7: TCP/IP 36

RIP (Routing Information protocol)

RIP is a distance vector routing protocol.

There are two versions of RIP: RIP version 1, or RIP v1 (defined in RFC

1058)

RIP version 2, or RIP v2 (defined in RFC 2453)

RIP uses the least number of hops to determine the best path to a destination.

The maximum hop count is 15 (16 = destination unreachable).

Page 25: TCP/IP

Chapter 7: TCP/IP 40

OSPF (Open Shortest Path First)

OSPF is a link state routing protocol defined in RFC 2328.

OSPF uses link costs with the lowest values to determine the best path to a destination.

Routers maintain a database of routes for the entire network.

Routers exchange route information through multicast advertisements.

OSPF supports load balancing and authentication.

Page 26: TCP/IP

Chapter 7: TCP/IP 41

APPLICATION LAYER PROTOCOLS

Provide the communication between a client program and a server program across a network

Run on TCP or UDP

Page 27: TCP/IP

Chapter 7: TCP/IP 42

DNS (Domain Name System)

Resolves Internet Protocol (IP) host names to logical network layer addresses (converts IP addresses to Hostnames)

Runs on top of UDP or TCP

Uses well-known port 53

Page 28: TCP/IP

Chapter 7: TCP/IP 43

DNS (Domain Name System) (CONT.)

A hierarchical namespace for computer networks – Identifies computers using names composed of 3 or more words, separated by periods.

Common Top Level Domains .edu .gov .mil .com .net .org

Page 29: TCP/IP

Chapter 7: TCP/IP 44

DNS (Domain Name System) (CONT.)

Top Level Domain

Second Level Domain

Page 30: TCP/IP

Chapter 7: TCP/IP 45

DNS Name Resolution

The DNS Name Resolution Process

Page 31: TCP/IP

Chapter 7: TCP/IP 46

DHCP (Dynamic Host Configuration Protocol)

Facilitates the automatic assignment of IP addresses

Runs on top of UDP or TCP

Uses well-known server port 67 and client port 68

DHCP

Page 32: TCP/IP

Chapter 7: TCP/IP 47

FTP (File Transfer Protocol)

Is a connection-oriented file transfer protocol

Runs on top of TCP

Uses well-known server ports 21 (for control) and 20 (for data)

Page 33: TCP/IP

Chapter 7: TCP/IP 48

TFTP (Trivial File Transfer Protocol)

Is a connectionless file transfer protocol

Runs on top of UDP

Uses well-known server port 69

Page 34: TCP/IP

Chapter 7: TCP/IP 49

HTTP (Hypertext Transfer Protocol)

Used to access Web services

Runs on top of UDP or TCP

Uses well-known server port 80

Page 35: TCP/IP

Chapter 7: TCP/IP 50

SMTP (Simple Mail Transfer Protocol)

Is an e-mail protocol

Runs on top of TCP

Uses well-known server port 25

Page 36: TCP/IP

Chapter 7: TCP/IP 51

SNMP (Simple Network Management Protocol)

Allows SNMP management devices to query clients for information and set network traps. Use to gather information about the network

Runs on top of UDP or TCP

Uses well-known server port 161

Page 37: TCP/IP

Chapter 7: TCP/IP 52

THE TELNET (Terminal Emulation) PROTOCOL

Is a terminal emulation program that allows remote access and management of network devices

Runs on top of TCP

Uses well-known server port 23

Page 38: TCP/IP

Chapter 7: TCP/IP 53

TCP/IP CONFIGURATION PARAMETERS Each TCP/IP Windows host must be

configured with the following parameters: IP Address Subnet Mask Default Gateway DNS Server Address Windows Internet Name Service (WINS)

Server Address Network Basic Input/Output System

(NetBIOS)/Host Name

Page 39: TCP/IP

Chapter 7: TCP/IP 54

TCP/IP AND WINDOWS

All current versions of Windows use the TCP/IP protocol stack by default.

When the operating system detects a network interface adapter, it automatically installs the network interface device driver and the following TCP/IP modules: Client for Microsoft Networks

File and Print Sharing for Microsoft Networks

Internet Protocol (TCP/IP)

Page 40: TCP/IP

Chapter 7: TCP/IP 56

INSTALLING TCP/IP COMPONENTS

Page 41: TCP/IP

Chapter 7: TCP/IP 57

THE INTERNET PROTOCOL (TCP/IP) PROPERTIES DIALOG BOX

Page 42: TCP/IP

Chapter 7: TCP/IP 58

THE IP SETTINGS TAB

Page 43: TCP/IP

Chapter 7: TCP/IP 59

THE DNS TAB

Page 44: TCP/IP

Chapter 7: TCP/IP 60

THE WINS TAB

Page 45: TCP/IP

Chapter 7: TCP/IP 61

THE OPTIONS TAB

Page 46: TCP/IP

Chapter 7: TCP/IP 62

SUMMARY

The TCP/IP protocol stack consists of four layers: link, internet, transport, and application.

ARP resolves logical network layer addresses to MAC addresses.

ICMP is a messaging protocol used to report IP errors and query hosts for information.

Routers connect networks. They use static or dynamic routing protocols to learn and advertise routes.

Application layer protocols provide services to IP clients, such as file transfer and e-mail capability.

IP hosts must be configured with an IP Address, Subnet Mask, Default Gateway, DNS Server Address, WINS Server Address, and other parameters to communicate on a network.