Chapter 1 - OSI - TCPIP Models

You might also like

You are on page 1of 55

University of Technical Education of Ho Chi Minh City

NETWORKING ESSENTIALS

OSI and TCP/IP models

1
Contents

 OSI model

 TCP/IP model

 Data encapsulation & De-encapsulation

 Understanding the TCP/IP transport layer

 Mapping Layer 4 to Applications

Huynh Nguyen Chinh


2
I. Understanding the Host-to-Host
Communications Model

Huynh Nguyen Chinh


3
What are Protocols ?
Let’s look at what happen:

Oh my
God, what
did he
say ?
Không biết
thằng này
đang nói
cái gì nữa ?

They do not understand each


other because they are using
different languages.

Huynh Nguyen Chinh


4
What are Protocols ? (cont)

Now, Let’s look at what happens next:

They can understand each other


because they are using the
same language.

Huynh Nguyen Chinh


5
What are Protocols ? (cont)

So in order for two people to speak to each other,


the first thing they should to agree on is the
language, or protocols, to use.

 Communication between hosts on the network


is the same. When hosts begin communicating
with each other, they first must agree on what
protocols to use.

Huynh Nguyen Chinh


6
What are Protocols ? (cont)

Huynh Nguyen Chinh


7
What are Protocols ? (cont)

A group of protocol is called a protocol suite or a


protocol stack.

 When combined with other protocols, the


protocol group that result is called a protocol
suite. TCP/IP, for example, is a protocol suite.

Huynh Nguyen Chinh


8
Why We Need Protocols and Standards

Rules – or protocols and standards – are


important to ensure compatibility between
different kinds of things
 Developing protocols is an ongoings, ever-
changing science. As the industry is
increasing so dynamically and rapidly.

 However, before a protocol is accepted and


widely implemented, it has to pass rigorous
testing. So a standard framework is used to
help design, compare, test, and evaluate
protocols.
Huynh Nguyen Chinh
9
Understanding Host-to-Host Communications

Older model
o Proprietary
o Application and combinations software controlled
by one vendor
Standards-based model
o Multivendor software
o Layered approach

Huynh Nguyen Chinh


10
Understanding Host-to-Host Communications

APPLE TALK
Standard

• Interconnection
Proprietary
• Development
• Simplification

TCP/IP DECNET
Huynh Nguyen Chinh
11
Why a Layered Network Model?

 Reduces complexity
 Standardizes interfaces
 Facilitates modular engineering
 Ensures interoperable
technology
 Accelerates evolution
 Simplifies teaching and learning

Huynh Nguyen Chinh


12
The Seven Layers of the OSI Model

Huynh Nguyen Chinh


13
The Seven Layers of the OSI Model (Cont.)

Huynh Nguyen Chinh


14
The Seven Layers of the OSI Model (Cont.)

Huynh Nguyen Chinh


15
The Seven Layers of the OSI Model (Cont.)

Huynh Nguyen Chinh


16
The Seven Layers of the OSI Model (Cont.)

Huynh Nguyen Chinh


17
The Seven Layers of the OSI Model (Cont.)

Huynh Nguyen Chinh


18
The Seven Layers of the OSI Model (Cont.)

Huynh Nguyen Chinh


19
Data encapsulation
& De-encapsulation

Huynh Nguyen Chinh


20
IP Header 1 IP Header 11 IP Header 1

Frame Header
Frame Header IP
IPHeader
Header 11 II IP Header 1
Frame Header IP Header 1 I

Huynh Nguyen Chinh


21
Data Encapsulation

Huynh Nguyen Chinh


22
Data De-Encapsulation

Huynh Nguyen Chinh


23
Peer-to-Peer Communication

Huynh Nguyen Chinh


24
TCP/IP Stack

Defines four layers


Uses different names for
Layers 1 through 3
Combines Layers 5 through 7
into single application layer

Huynh Nguyen Chinh


25
TCP/IP Stack vs. the OSI Model

Huynh Nguyen Chinh


26
Understanding the TCP/IP
Transport layer

Huynh Nguyen Chinh


27
Transport Layer

 Session multiplexing
 Segmentation
 Flow control (when required)
 Connection-oriented
(when required)
 Reliability (when required)

Huynh Nguyen Chinh


28
Reliable vs. Best-Effort Comparison

Huynh Nguyen Chinh


29
UDP Characteristics

Operates at transport layer of OSI and TCP/IP models


Provides applications with access to the network layer
without the overhead of reliability mechanisms
Is a connectionless protocol
Provides limited error checking
Provides best-effort delivery
Has no data-recovery features

Huynh Nguyen Chinh


30
UDP Header

Huynh Nguyen Chinh


31
TCP Characteristics

Transport layer of the TCP/IP stack


Access to the network layer for applications
Connection-oriented protocol
Full-duplex mode operation
Error checking
Sequencing of data packets
Acknowledgement of receipt
Data-recovery features

Huynh Nguyen Chinh


32
TCP Header

Huynh Nguyen Chinh


33
TCP/IP Application Layer Overview
 File transfer
– FTP
– TFTP
– Network File System
 E-mail
– Simple Mail Transfer Protocol
 Remote login
– Telnet
– rlogin
 Network management
– Simple Network Management
Protocol
 Name management
– Domain Name System

Huynh Nguyen Chinh


34
Establishing a Connection

Huynh Nguyen Chinh


35
Three-Way Handshake

CTL = Which control bits in the TCP header are set to 1

Huynh Nguyen Chinh


36
Flow Control

Once data transfer is in progress, congestion can


occur for two reasons.

Huynh Nguyen Chinh


37
Flow Control (tt)

First, the sending device might be able to generate


traffic faster than the network can transfer it.

Huynh Nguyen Chinh


38
Flow Control (tt)

The second reason is that multiple devices need to


send data to the same destination.

Huynh Nguyen Chinh


39
Flow Control (tt)

When datagram arrive too quickly for a device to


process, it temporarily stores them in memory.

Huynh Nguyen Chinh


40
Flow Control (tt)
If the datagrams are part of a small burst, this
buffering solves the problem.

Huynh Nguyen Chinh


41
Flow Control (tt)
However, if the traffic continues at this rate, the device
eventually exhausts its memory and must discard
additional datagrams that arrive.

Huynh Nguyen Chinh


42
Flow Control (tt)

Instead of losing the data, the transport function can


issue a “not ready” indicator to the sender.

Huynh Nguyen Chinh


43
Flow Control (tt)

This acts like a stop sign and signal the sender to


discontinue sending segment traffic to the receiver.

Huynh Nguyen Chinh


44
Flow Control (tt)
After the receiving device has processed sufficient
segments to free space in its buffer, the receiver sends a
“ready transport “ indicator – which is like a go signal.

Huynh Nguyen Chinh


45
Flow Control (tt)

When they receives this indicator, the senders can resume


segment transmission.

Huynh Nguyen Chinh


46
Flow Control (tt)

Huynh Nguyen Chinh


47
TCP Acknowledgment

Huynh Nguyen Chinh


48
Fixed Windowing

Huynh Nguyen Chinh


49
TCP Sliding Windowing

Huynh Nguyen Chinh


50
TCP Sequence and Acknowledgment Numbers

Huynh Nguyen Chinh


51
Mapping Layer 3 to Layer 4

Huynh Nguyen Chinh


52
Mapping Layer 3 to Layer 4

Huynh Nguyen Chinh


53
Mapping Layer 4 to Applications

Huynh Nguyen Chinh


54
????

55

You might also like