Escolar Documentos
Profissional Documentos
Cultura Documentos
640-802
Internet Protocol
TCP/IP Protocol
• The Transmission Control Protocol/Internet Protocol
(TCP/IP) suit was created by the Department of Defense
(DoD).
• Later TCP/IP was included with the Berkeley Software
Distribution of UNIX.
• The Internet Protocol can be used to communicate across
any set of interconnected networks.
• TCP/IP supports both LAN and WAN communications.
• IP suite includes not only Layer 3 and 4 specifications but
also specifications for common applications like e-mail,
remote login, terminal emulation and file transfer.
• The TCP/IP protocol stack maps closely to the OSI model in
the lower layers.
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
Application
Application Presentation
Session
Host-to-Host Transport
Internet Network
Data Link
Network
Access
Physical
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
Process/Application Layer
• The Process / Application layer defines protocols for node-
to-node application communication and also controls user-
interface specification.
• Telnet, FTP, TFTP, NFS, SMTP, SNMP, DNS DHCP, BootP etc.
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
Host-to-Host Layer
• The Host-to-Host layer parallels the functions of the OSIs
Transport layer
Applications
Internet Layer
• Internet Layer corresponds to the OSI’s Network Layer.
model.
• Lets have a look on how TCP/IP Protocol suit relates to the DoD
model layers.
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
Telnet
• Telnet is used for Terminal Emulation.
• It uses TCP for data transfer and hence slow but reliable.
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
• It uses UDP for data transfer and hence faster but not reliable.
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
• The LPD along with the LPR (Line Printer Program) allows
using TCP/IP.
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
X Window
address.
24 bytes
Window (16)
(4) (6) bits (6)
Options (0 or 32 if any)
Data (varies)
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
UDP segment
Bit 0 Bit 15 Bit 16 Bit 31
Source port (16) Destination port (16)
Length (16) Checksum (16)
Data (if any)
8 bytes
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
TCP UDP
Sequenced Unsequenced
Reliable Unreliable
Connection-oriented Connectionless
Virtual circuit Low overhead
Acknowledgments No acknowledgment
Windowing flow control No windowing or flow control
Revision no.: PPT/2K804/04
FTP TCP 21
Telnet TCP 23
SMTP TCP 25
DNS TCP & UDP 53
DNS uses UDP for name resolution and TCP for Server Zone
Transfers
TFTP UDP 69
.
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
Port Numbers
• Some ports are reserved in both TCP and UDP
IP header
Bit 0 Bit 15 Bit 16 Bit 31
Priority and
Version( Header
Type of Total length (16)
4) length (4)
Service (8)
Identification (16) Flags(3) Fragment offset (13)
Time to Live (8) Protocol (8) Header checksum (16)
Source IP address (32)
Destination IP address (32)
Options (0 or 32 if any)
20 bytes
Data (varies if any)
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
Layer
Layer
Internet
Transport
Revision no.: PPT/2K804/04
6
TCP
IP
The Protocol field in an IP header
17
UDP
Protocol
Numbers
Revision no.: PPT/2K804/04
an IP Header
• Bits
• Octet
• Bytes
Revision no.: PPT/2K804/04
IP Addressing
• IP Terminology
• Network Address
• Broadcast Address
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
Reserved IP Addresses
Address Function
Entire IP address set to all 0s Used by Cisco routers to designate the default
route. Could also mean “any network.”
Entire IP address set to all 1s (same as Broadcast to all nodes on the current network;
255.255.255.255) sometimes called an “all 1s broadcast” or
limited broadcast.
Revision no.: PPT/2K804/04
© CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission.
Private IP Addresses
Broadcast Addresses
Translation (NAT)
• In NAT terminology, the inside network is the set of networks that