chapter 2 the osi model and the tcp/ip protocol suite

45
1 Chapter 2 Chapter 2 The OSI Model and The OSI Model and the TCP/IP Protocol the TCP/IP Protocol Suite Suite Mi-Jung Choi Dept. of Computer Science and Engineering [email protected]

Upload: burt

Post on 05-Jan-2016

75 views

Category:

Documents


2 download

DESCRIPTION

Chapter 2 The OSI Model and the TCP/IP Protocol Suite. Mi-Jung Choi Dept. of Computer Science and Engineering [email protected]. OSI Reference Model. OSI : Open System Interconnection by ISO Basic Reference Model : ISO-7498 Purpose of OSI Model - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

11

Chapter 2Chapter 2 The OSI Model and The OSI Model and the TCP/IP Protocol Suite the TCP/IP Protocol Suite

Mi-Jung Choi

Dept. of Computer Science and Engineering

[email protected]

Page 2: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

22

OSI Reference ModelOSI Reference Model

OSI : Open System Interconnection by ISO

Basic Reference Model : ISO-7498

Purpose of OSI Model

~ is to open communication between different systems without requiring changes to the logic of the underlying hardware and software.

Page 3: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

33

2.1 The OSI Model2.1 The OSI Model

OSI Model

~ is layered framework for the design of network systems that allows for communication across all types of computer systems

Layered Architecture

~ shows the layers involved when a message is sent from device A to device B

Page 4: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

44

OSI Model (cont’d)OSI Model (cont’d)

The OSI Model

Page 5: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

55

OSI LayersOSI Layers

Page 6: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

66

OSI Model (cont’d)OSI Model (cont’d)

Peer-to-peer process

~ process on each machine that communicates at a

given layer

Interfaces between Layers

~ defines what information and services a layer must

provide for the layer above it

Page 7: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

77

OSI Model (cont’d)OSI Model (cont’d)

Organization of the Layers

Layer 1, 2, 3(network support layers)

~ deal with the physical aspects of moving data from one device to another

Layer 5, 6, 7(user support layers)

~ allow interoperability among unrelated software systems

Layer 4(transport layer)

~ links the two subgroups and ensures that what the lower layers have transmitted is in a form that the upper layers can use

Page 8: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

88

OSI Model (cont’d)OSI Model (cont’d)

OSI 모델을 이용한 교환

Headers are added

to the data at layers

6, 5, 4, 3, and 2.

Trailers are usually

added only at layer 2.

Page 9: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

99

2.2 Layers in the OSI Model2.2 Layers in the OSI Model

물리 계층 (Physical Layer)

데이터 링크 계층 (Data Link Layer)

네트워크 계층 (Network Layer)

전송 계층 (Transport Layer)

세션 계층 (Session Layer)

표현 계층 (Presentation Layer)

응용 계층 (Application Layer)

Page 10: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1010

Physical LayerPhysical Layer

coordinates the functions required to transmit a bit

stream over a physical medium.

(deal with the mechanical and electrical specification of

the primary connections: cable, connector)

Page 11: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1111

Physical Layer (cont’d)Physical Layer (cont’d)

Physical Layer

Page 12: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1212

Physical Layer (cont’d)Physical Layer (cont’d)

특징

인터페이스 및 매체의 물리적 특성

Representation of bits : 부호화 (Encoding); 신호에 의한 data

표현

Data rate : 전송속도

비트의 동기화 (Synchronization of bits)

회선구성 (Line configuration) : point-to-point, multipoint

물리적 접속형태 (Topology) : mesh, star, ring, bus

데이터 전송 모드 (Data transmission mode) : simplex, half-duplex,

full- duplex

Page 13: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1313

Data Link LayerData Link Layer

is responsible for delivering data units(group of bits)

from one station to the next without errors.

It accepts a data unit from the third layer and adds

meaningful bits to the beginning(header) and

end(trailer) that contain addresses and other control

information: Frame

Page 14: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1414

Data Link LayerData Link Layer

Data Link Layer

Page 15: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1515

Node-to-Node DeliveryNode-to-Node Delivery

Page 16: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1616

Data Link Layer (cont’d)Data Link Layer (cont’d)

Specific responsibilities

Framing : dividing into Frames

물리주소지정 (Addressing) : 프레임 수신 주소지정

흐름 제어 (Flow control) : for avoiding overwhelming

the receiver

에러 제어 (Error Control) : retransmission

액세스 제어 (Access control) : for avoiding collision

Page 17: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1717

Network LayerNetwork Layer

is responsible for the source-to-destination delivery of

a packet across multiple network link

provides two related services.

Switching

Routing

Page 18: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1818

Network Layer (cont’d)Network Layer (cont’d)

Switching

~ refer to temporary connections between physical links, resulting in longer links for network transmission.(ex: telephone conversation)

routing

~ means selecting the best path for sending a packet from one point to another when more than one path is available

Page 19: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

1919

Network Layer (cont’d)Network Layer (cont’d)

Page 20: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2020

Network Layer (cont’d)Network Layer (cont’d)

• End-to-End Delivery

Page 21: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2121

Network Layer (cont’d)Network Layer (cont’d)

Specific responsibilities

Source-to-destination delivery(packet)

Logical addressing

Routing

Page 22: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2222

Transport LayerTransport Layer

is responsible for source-to-destination (end-to-end) de

livery of the entire message.

cf: the network layer oversees end-to-end delivery of indi

vidual packet.

Page 23: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2323

Transport Layer (cont’d)Transport Layer (cont’d)

Specific responsibility

Reliable End-to-end message delivery

Service-point(port) addressing

delivery of a message to the appropriate application on a

computer running multiple applications

Segmentation and reassembly

Connection control

Flow Control

Error Control

Page 24: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2424

Transport Layer (cont’d)Transport Layer (cont’d)

Reliable End-to-end delivery of a message

Page 25: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2525

Transport Layer (cont’d)Transport Layer (cont’d)

Transport Layer

Page 26: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2626

Session LayerSession Layer

is the network dialog controller

Dialog unit

Page 27: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2727

Session Layer (cont’d)Session Layer (cont’d)

Specific responsibility

Session management

Synchronization

Dialog control : Deciding who sends, and when

Page 28: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2828

Presentation LayerPresentation Layer

ensures interoperability among communicating

devices.

is responsible for the encryption and decryption of data

for security purpose and for the compression and

expansion of data when necessary for transmission

efficiency.

Page 29: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

2929

Presentation Layer (cont’d)Presentation Layer (cont’d)

Page 30: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3030

Presentation Layer (cont’d)Presentation Layer (cont’d)

Specific responsibility

Translation

Encryption

Compression

Page 31: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3131

Application LayerApplication Layer

enables the user, whether human or software, to access

the network.

provides user interfaces and support for services.

Email, remote file access and transfer, shared database management

Page 32: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3232

Application Layer (cont’d)Application Layer (cont’d)

Application Layer

Page 33: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3333

Application Layer (cont’d)Application Layer (cont’d)

Specific services

Network virtual terminal

File access, transfer, and management

Mail services

Directory services

Page 34: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3434

2.3 TCP/IP Protocol Suite2.3 TCP/IP Protocol Suite ~ is made of five layers : physical, data link, network, transport, and

application

Page 35: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3535

Internetworking Protocol (IP)Internetworking Protocol (IP)

Transmission mechanism by the TCP/IP

An unreliable and connectionless datagram protocol – best-effort

delivery service; IP provides no error checking or tracking

Page 36: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3636

UDP and TCPUDP and TCP

User Datagram Protocol (UDP)

A process-to-process protocol that add only port addresses, checksum error control, length information

Transmission Control Protocol (TCP)

Reliable stream (connection-oriented) transport protocol

Dividing a stream of data into smaller units called segments

Page 37: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3737

2.4 Addressing2.4 Addressing

Addresses in TCP/IP

Page 38: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3838

2.4 Addressing (cont’d)2.4 Addressing (cont’d) Relationship of layers and addresses in TCP/IP

Page 39: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

3939

Physical address (example 1)Physical address (example 1)

Page 40: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

4040

Physical address (example 2)Physical address (example 2)

Most local area networks use a 48-bit (6 bytes) physical

address written as 12 hexadecimal digits, with every 2

bytes separated by a hyphen as shown below:

07-01-02-01-2C-4B

A 6-byte (12 hexadecimal digits) physical address

Page 41: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

4141

IP Addresses (example 3)IP Addresses (example 3)

Page 42: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

4242

IP Addresses (example 4)IP Addresses (example 4)

As we will see in Chapter 4, an Internet address (in

IPv4) is 32 bits in length, normally written as four

decimal numbers, with each number representing 1

byte. The numbers are separated by a dot. Below is an

example of such an address

132.24.75.9

Page 43: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

4343

Port Addresses (example 5)Port Addresses (example 5)

Page 44: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

4444

Port Addresses (example 6)Port Addresses (example 6)

As we will see in Chapters 11 and 12, a port address is a 16-bit

address represented by one decimal number as shown below.

753 : A 16-bit port address

Page 45: Chapter 2  The OSI Model and  the TCP/IP Protocol Suite

4545

2.5 TCP/IP Versions2.5 TCP/IP Versions

Version 4 (IPv4)

32 bits address length

Version 6 (IPv6 or IPng)

128 bits address length