Chapter 2 The OSI Model and the TCPIP

  • Slides: 45
Download presentation
Chapter 2 The OSI Model and the TCP/IP Protocol Suite Kyung Hee University 1

Chapter 2 The OSI Model and the TCP/IP Protocol Suite Kyung Hee University 1

OSI Reference Model o OSI : Open System Interconnection by ISO o Basic Reference

OSI Reference Model o OSI : Open System Interconnection by ISO o Basic Reference Model : ISO-7498 o Purpose of OSI Model ~ is to open communication between different systems without requiring changes to the logic of the underlying hardware and software. Kyung Hee University 2

2. 1 The OSI Model o. OSI Model ~ is layered framework for the

2. 1 The OSI Model o. OSI Model ~ is layered framework for the design of network systems that allows for communication across all types of computer systems o. Layered Architecture ~ shows the layers involved when a message is sent from device A to device B Kyung Hee University 3

OSI Model (cont’d) o The OSI Model Kyung Hee University 4

OSI Model (cont’d) o The OSI Model Kyung Hee University 4

OSI Layers Kyung Hee University 5

OSI Layers Kyung Hee University 5

OSI Model (cont’d) o. Peer-to-peer process ~ process on each machine that communicates at

OSI Model (cont’d) o. Peer-to-peer process ~ process on each machine that communicates at a given layer o. Interfaces between Layers ~ defines what information and services a layer must provide for the layer above it Kyung Hee University 6

OSI Model (cont’d) o. Organization of the Layers Layer 1, 2, 3(network support layers)

OSI Model (cont’d) o. 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 Kyung Hee University 7

OSI Model (cont’d) o OSI 모델을 이용한 교환 o Headers are added to the

OSI Model (cont’d) o OSI 모델을 이용한 교환 o Headers are added to the data at layers 6, 5, 4, 3, and 2. Trailers are usually added only at layer 2. Kyung Hee University 8

2. 2 Layers in the OSI Model o물리 계층(Physical Layer) o데이터 링크 계층(Data Link

2. 2 Layers in the OSI Model o물리 계층(Physical Layer) o데이터 링크 계층(Data Link Layer) o네트워크 계층(Network Layer) o전송 계층(Transport Layer) o세션 계층(Session Layer) o표현 계층(Presentation Layer) o응용 계층(Application Layer) Kyung Hee University 9

Physical Layer o coordinates the functions required to transmit a bit stream over a

Physical Layer o 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) Kyung Hee University 10

Physical Layer (cont’d) o Physical Layer Kyung Hee University 11

Physical Layer (cont’d) o Physical Layer Kyung Hee University 11

Physical Layer (cont’d) o 특징 인터페이스 및 매체의 물리적 특성 Representation of bits :

Physical Layer (cont’d) o 특징 인터페이스 및 매체의 물리적 특성 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, halfduplex, full- duplex Kyung Hee University 12

Data Link Layer ois responsible for delivering data units(group of bits) from one station

Data Link Layer ois responsible for delivering data units(group of bits) from one station to the next without errors. o. 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 Kyung Hee University 13

Data Link Layer o Data Link Layer Kyung Hee University 14

Data Link Layer o Data Link Layer Kyung Hee University 14

Node-to-Node Delivery Kyung Hee University 15

Node-to-Node Delivery Kyung Hee University 15

Data Link Layer (cont’d) o. Specific responsibilities Framing : dividing into Frames 물리주소지정(Addressing) :

Data Link Layer (cont’d) o. Specific responsibilities Framing : dividing into Frames 물리주소지정(Addressing) : 프레임 수신 주소지정 흐름 제어(Flow control) : for avoiding overwhelming the receiver 에러 제어 (Error Control) : retransmission 액세스 제어(Access control) : for avoiding collision Kyung Hee University 16

Network Layer ois responsible for the source-to-destination delivery of a packet across multiple network

Network Layer ois responsible for the source-to-destination delivery of a packet across multiple network link oprovides two related services. Switching Routing Kyung Hee University 17

Network Layer (cont’d) o. Switching ~ refer to temporary connections between physical links, resulting

Network Layer (cont’d) o. Switching ~ refer to temporary connections between physical links, resulting in longer links for network transmission. (ex: telephone conversation) orouting ~ means selecting the best path for sending a packet from one point to another when more than one path is available Kyung Hee University 18

Network Layer (cont’d) Kyung Hee University 19

Network Layer (cont’d) Kyung Hee University 19

Network Layer (cont’d) • End-to-End Delivery Kyung Hee University 20

Network Layer (cont’d) • End-to-End Delivery Kyung Hee University 20

Network Layer (cont’d) o. Specific responsibilities Source-to-destination delivery(packet) Logical addressing Routing Kyung Hee University

Network Layer (cont’d) o. Specific responsibilities Source-to-destination delivery(packet) Logical addressing Routing Kyung Hee University 21

Transport Layer ois responsible for source-to-destination (end-to-end) delivery of the entire message. cf: the

Transport Layer ois responsible for source-to-destination (end-to-end) delivery of the entire message. cf: the network layer oversees end-to-end delivery of individual packet. Kyung Hee University 22

Transport Layer (cont’d) o. Specific responsibility Reliable End-to-end message delivery Service-point(port) addressing l delivery

Transport Layer (cont’d) o. Specific responsibility Reliable End-to-end message delivery Service-point(port) addressing l delivery of a message to the appropriate application on a computer running multiple applications Segmentation and reassembly Connection control Flow Control Error Control Kyung Hee University 23

Transport Layer (cont’d) o Reliable End-to-end delivery of a message Kyung Hee University 24

Transport Layer (cont’d) o Reliable End-to-end delivery of a message Kyung Hee University 24

Transport Layer (cont’d) o Transport Layer Kyung Hee University 25

Transport Layer (cont’d) o Transport Layer Kyung Hee University 25

Session Layer o is the network dialog controller Dialog unit Kyung Hee University 26

Session Layer o is the network dialog controller Dialog unit Kyung Hee University 26

Session Layer (cont’d) o. Specific responsibility Session management Synchronization Dialog control : Deciding who

Session Layer (cont’d) o. Specific responsibility Session management Synchronization Dialog control : Deciding who sends, and when Kyung Hee University 27

Presentation Layer oensures interoperability among communicating devices. ois responsible for the encryption and decryption

Presentation Layer oensures interoperability among communicating devices. ois responsible for the encryption and decryption of data for security purpose and for the compression and expansion of data when necessary for transmission efficiency. Kyung Hee University 28

Presentation Layer (cont’d) Kyung Hee University 29

Presentation Layer (cont’d) Kyung Hee University 29

Presentation Layer (cont’d) o. Specific responsibility Translation Encryption Compression Kyung Hee University 30

Presentation Layer (cont’d) o. Specific responsibility Translation Encryption Compression Kyung Hee University 30

Application Layer oenables the user, whether human or software, to access the network. oprovides

Application Layer oenables the user, whether human or software, to access the network. oprovides user interfaces and support for services. Email, remote file access and transfer, shared database management Kyung Hee University 31

Application Layer (cont’d) o Application Layer Kyung Hee University 32

Application Layer (cont’d) o Application Layer Kyung Hee University 32

Application Layer (cont’d) o. Specific services Network virtual terminal File access, transfer, and management

Application Layer (cont’d) o. Specific services Network virtual terminal File access, transfer, and management Mail services Directory services Kyung Hee University 33

2. 3 TCP/IP Protocol Suite ~ is made of five layers : physical, data

2. 3 TCP/IP Protocol Suite ~ is made of five layers : physical, data link, network, transport, and application Kyung Hee University 34

Internetworking Protocol (IP) o Transmission mechanism by the TCP/IP o An unreliable and connectionless

Internetworking Protocol (IP) o Transmission mechanism by the TCP/IP o An unreliable and connectionless datagram protocol – best-effort delivery service; IP provides no error checking or tracking Kyung Hee University 35

UDP and TCP o User Datagram Protocol (UDP) A process-to-process protocol that add only

UDP and TCP o User Datagram Protocol (UDP) A process-to-process protocol that add only port addresses, checksum error control, length information o Transmission Control Protocol (TCP) Reliable stream (connection-oriented) transport protocol Dividing a stream of data into smaller units called segments Kyung Hee University 36

2. 4 Addressing o Addresses in TCP/IP Kyung Hee University 37

2. 4 Addressing o Addresses in TCP/IP Kyung Hee University 37

2. 4 Addressing (cont’d) o Relationship of layers and addresses in TCP/IP Kyung Hee

2. 4 Addressing (cont’d) o Relationship of layers and addresses in TCP/IP Kyung Hee University 38

Physical address (example 1) Kyung Hee University 39

Physical address (example 1) Kyung Hee University 39

Physical address (example 2) o. Most local area networks use a 48 -bit (6

Physical address (example 2) o. 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: o 07 -01 -02 -01 -2 C-4 B A 6 -byte (12 hexadecimal digits) physical address Kyung Hee University 40

IP Addresses (example 3) Kyung Hee University 41

IP Addresses (example 3) Kyung Hee University 41

IP Addresses (example 4) o. As we will see in Chapter 4, an Internet

IP Addresses (example 4) o. As we will see in Chapter 4, an Internet address (in IPv 4) 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 o 132. 24. 75. 9 Kyung Hee University 42

Port Addresses (example 5) Kyung Hee University 43

Port Addresses (example 5) Kyung Hee University 43

Port Addresses (example 6) o As we will see in Chapters 11 and 12,

Port Addresses (example 6) o 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. o 753 : A 16 -bit port address Kyung Hee University 44

2. 5 TCP/IP Versions o. Version 4 (IPv 4) 32 bits address length o.

2. 5 TCP/IP Versions o. Version 4 (IPv 4) 32 bits address length o. Version 6 (IPv 6 or IPng) 128 bits address length Kyung Hee University 45