Professional Documents
Culture Documents
Session 2
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 1
1. CCNA
2. OSI & TCP/IP
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 2
OSI Layers
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 3
OSI Layers
Network
Layer Encapsulation Protocol
Devices
HTTP- FTP-
Upper Layers
7 Application Data SMTP- POP3 -
DNS
JPG – AVI -
6 Presentation Data
SWF
5 Session Data SQL
Lower Layers
3 Network Packet Router IP - ICMP
ARP – Ethernet
2 Data Link Frame Switch
MAC Address
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 5
OSI Layers
Physical Layer
This is the first layer, which describes the electrical and physical
specifications for devices such as, cables, connectors, hubs, repeaters
and more. Troubleshooting start in layer one, which means ensure that
everything is plugged in, turned on, using the right cables and
connectors.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 6
OSI Layers
Data Link Layer
This is the second layer, which works to ensure that the transferred data
are free of errors. This layer encompasses basic protocols such as “802.3
for Ethernet” and “802.11 for Wi-Fi” perform :
1. Framing
2. Error detection and correction
3. Flow control
This layer provides connections between hosts on the same networks.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 7
OSI Layers
Data Link Layer
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 8
Data Link Sublayers
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 9
Data Link Sublayers
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 10
OSI Layers
Encapsulation
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 11
OSI Layers
Encapsulation
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 12
OSI Layers
Network Layer
1. This is the third layer, which determines the path of the data
packets (Source and destination ) “ Routing”
2. At this layer, we can see the IP Addressing for routing of data
packets.
3. this layer includes routing protocols such as, Routing Information
Protocol (RIP) & the Interior Gateway Routing Protocol (IGRP).
4. This layer provides connections between hosts on different
networks.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 13
OSI Layers
Network Layer
IPV4
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 14
OSI Layers
Network Layer
Packet
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 15
OSI Layers
Transport Layer
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 16
OSI Layers Transport Layer
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 18
UDP header
1. Source Port-
•Source Port is a 16 bit field.
•It identifies the port of the sending application.
2. Destination Port-
•Destination Port is a 16 bit field.
•It identifies the port of the receiving application.
3. Length-
•Length is a 16 bit field.
•It identifies the combined length of UDP Header and Encapsulated data.
4. Checksum-
•Checksum is a 16 bit field used for error control.
•It is calculated on UDP Header, encapsulated data and IP pseudo header.
•Checksum calculation is not mandatory in UDP.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 19
TCP header
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 20
Because different applications have different requirements,
there are multiple Transport layer protocols.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 21
Transport Layer Functions
• TCP/UDP FUNCTIONS.
1. Multiplexing of upper layer application using port numbers
2. segmentation of data
3. error detection
TCP Additional functions
1. Establishment of connection (3-way handshake)
2. Management of connection
reliability (sequencing and acknowledgements)
error correction
flow control (Buffering, congestion avoidance,
windowing)
3. Termination of connection (4-way handshake)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 22
OSI Layers
What is 3 way handshake?
When you request a website, your computer (client) will first send a
packet with a SYN flag to the web server. SYN is short for Synchronize.
It's an attempt to open a connection. The server then respond with SYN
flag and ACK flag to Acknowledge the connection. Then your computer
sends an ACK flag to confirm the handshake
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 23
TCP / Window size
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 24
TCP / Window size
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 25
Port Addressing
Identify how a port number is represented and describe
the role port numbers play in the TCP and UDP
protocols.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 26
Layer 4 Addressing
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 27
192.168.1.101 Destination
Source
Port
Port 198.133.219.25
49888 80
49890
80
172.16.5.5 Source
www.cisco.com
Port
49888 66.13.29.25
80
www.yahoo.com
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 28
TCP
or Source IP Destination IP Connection State
UDP Source Port Destination Port
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 30
Summary
TCP vs. UDP
TCP provides: UDP provides:
Reliable delivery Unreliable delivery
Error checking No error checking
Flow control No flow control
Congestion control No congestion control
Ordered delivery No ordered delivery
(Connection establishment) (No connection establishment)
Applications: Applications
HTTP DNS (usually)
FTP SMTP
Telnet RTP (Real-Time Protocol)
MSN messenger VoIP
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 31
OSI Layers
Session Layer
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 32
Connection types
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 33
Methods of Sending Data
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 34
OSI Layers
Presentation Layer
This is the sixth layer that provides a translation of data to the next
layer (Prepare the data to the Application Layer). Encryption and
decryption protocols happen in this layer such as, Secure Socket Layer
(SSL). In addition, compression and installing programs like (java)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 35
OSI Layers
Application Layer
This is the seventh layer, which functions as the user interface platform
(including software within the system). For example, the protocols that
we interact with on a daily basis such as, Mail, Web (HTTP), FTP and
many more.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 36
OSI Layers
Protocols
7 Application layer
HTTP [ Hyper Text Transfer Protocol]
HTTP HTTP
Server Client
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 38
OSI Layers
Protocols
7 Application layer
DNS [ Domain Name Services ]
Domain Name Servers (DNS) are the Internet's equivalent of a
phone book. They maintain a directory of domain names and
translate them to Internet Protocol (IP) address
DNS Caching
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 39
OSI Layers
Protocols
7 Application layer
DHCP [Dynamic Host Configuration Protocol ]
ITE PC v4.0
DHCP servers can be: Server on LAN – Router - Server at ISP
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 40
OSI Layers
Protocols
7 Application layer
DHCP [Dynamic Host Configuration Protocol ]
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 41
OSI Layers
Protocols
7 Application layer
DHCP [Dynamic Host Configuration Protocol ]
169.254.X.X
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 42
OSI Layers
Protocols
7 Application layer
DHCP [Dynamic Host Configuration Protocol ]
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 43
OSI Layers
Protocols
7 Application layer
Telnet
Allows a user to remotely access
another device (host, router, switch).
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 46
OSI Layers
Protocols
7 Application layer
SMTP (Simple mail transfer protocol)
User agents
Allows users to read, reply, compose, forward, save, etc., mail messages
GUI user agents: Outlook, Eudora, Messenger
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 47
OSI Layers
Protocols
7 Application layer
SMTP (Simple mail transfer protocol)
Mail servers
Stores user mail boxes, communicates with local user agents and other mail
servers.
SMTP
Principle application layer protocol for Internet mail
Sent over TCP
Mail access protocols: POP3, IMAP, HTTP (Web-based email)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 48
OSI Layers
Protocols
7 Application layer
SMTP (Simple mail transfer protocol)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 49
OSI Layers
Protocols
7 Application layer
SMTP (Simple mail transfer protocol)
Mail software, processes used: MTA and MDA
MUA (Mail User Agent) – Email client software.
MTA (Mail Transfer Agent) – Software that governs transfer of email between
mail servers.
Includes UNIX send mail, Microsoft Exchange Server, Postfix, and Exim
MDA (Mail Delivery Agent) – Software that governs transfer of email from mail
servers to clients.
.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 50
OSI Layers
Protocols
7 Application layer
POP3 (Post office protocol 3)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 51
OSI Layers
Protocols
7 Application layer
POP3 (Post office protocol 3)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 52
OSI Layers
Protocols
7 Application layer
IMAP (Internet Message Access Protocol)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 53
OSI and TCP/IP Models
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 54
Course Instructor
01014746164
Facebook.com/EngSherifKhalil
Youtube.com/SherifKhalil
instagram.com/sherifkhalil91/
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 55