Data Communication
Hi
Hi
OSI Model How
Howare
areyou
doing?
you How
Hi
are you
How are you
doing? doing?
doing?
ดร. อนันต ผลเพิ่ม
Anan Phonphoem, Ph.D.
anan@cpe.ku.ac.th
http://www.cpe.ku.ac.th/~anan
Computer Engineering Department Computer User
Kasetsart University, Bangkok, Thailand
01010001
10010001
01010100 10010001
01010100
01010001
1 2
User
Computer Communication
How can it happen? Model
A lot of work since user inputs data Modularity
until the data is transmitted. Well-defined interfaces
Should each application program take Well-defined functions and protocol
care all tasks?
NO
3 4
Open Systems Interconnection
Layered Architecture (OSI) Model
User User
7 Application
•Applications User Support 6 Presentation
User Support
•Allow interoperability
5 Session
Transport •Ensure reliable data transmission Transport 4 Transport
3 Network
•Moving data Network Support
Network Support 2 Data Link
•Physical connections
1 Physical
Network Network
5 6
1. Interfaces between layers
Layering Concept (Physical)
1. Interfaces between layers (Physical) 1
2. Peer-to-Peer process (Logical)
2 Above
4 Below
5
7 8
2. Peer-to-Peer process
(Logical) Direct connection
1 1
7 Application 7 Application
2 2
6 Presentation 6 Presentation
5 Session 5 Session
3 3
4 Transport 4 Transport
3 Network 3 Network
4 4
2 Data Link 2 Data Link
1 Physical 1 Physical
5 5
9 10
Connection via intermediate
nodes Data Flow
Link Link 7 Application Hello
6 Presentation 6 Hello
7 Application 5 Session 56 Hello
7 Application
6 Presentation 6 Presentation 4 Transport 456 Hello
5 Session 5 Session
4 Transport 4 Transport 3 Network 3456 Hello
3 Network Network 3 Network
2 Data Link 2 Data Link 23456 Hello T
2 Data Link
1 Physical 1 Physical 1 Physical 1001101001011101011
11 12
OSI Model
7 Application
OSI Model and data flow 6 Presentation
5 Session
4 Transport
3 Network
2 Data Link
1 Physical
13 14
1. Physical Layer 1. Physical Layer
Physical characteristics of interface
Stream of Bits (e.g., 001010100100)
Line config. (e.g., point-to-point)
Topology (e.g., bus, star)
Transmission mode (e.g., half-duplex)
15 16
2. Data Link Layer 2. Data Link Layer
Physical addressing
Access control
Error control
Node-to-Node delivery (same
network)
17 18
2. Data Link Layer Example 3. Network Layer
19 20
3. Network Layer
Logical Address (e.g.,IP
address:158.108.33.66) 3. Network Layer Example
Routing (router, gateway)
21 22
4. Transport Layer 4. Transport Layer
Service-point addressing (port number)
Segmentation and assembly
Flow and error control
End-to-end delivery (across network)
23 24
5. Session Layer 5. Session Layer
Session control (start, terminate)
Synchronization (e.g., checkpoints)
25 26
6. Presentation Layer 6. Presentation Layer
Translation (information format)
Encryption
Compression
27 28
7. Application Layer 7. Application Layer
User interfaces
Service supports (e.g., mail, FTP)
29 30
OSI model
OSI Model Summary It s just a model
7 Application User service TCP/IP
7 Application
6 Presentation Translate format, encrypt
6 Presentation Applications
5 Session Session manage, checkpoints
5 Session
4 Transport Reliable end-to-end (whole message)
4 Transport TCP/ UDP
3 Network Packet end-to-end (across network)
3 Network IP
2 Data Link Node-to-node (same network segment) 2 Data Link Data Link
1 Physical Physical 1 Physical Physical
31 32