TCP/IP
Internetwork
Kumpulan jaringan yang terinterkoneksi dimana terdiri dari
jaringan-jaringan yang berbeda saling terhubung.
Misal: Penyambungan sebuah LAN dengan sebuah WAN
atau penyambungan dua buah LAN disebut Internetwork.
Permasalahan:
kompatibiltas antar perangkat (keras/ lunak)?
Internetworking
Sebagian besar jaringan saling terhubung:
Antar LAN yang berbeda tipe
Antar LAN yang serupa
Merbagai site terhubung dg WAN
Dapat membentuk jaringan yang besar
Konfigurasi tertentu dirujuk sbg internet
Setiap bagian jaringan merupakan subnetwork
Kebutuhan Internetwork
Data path/ jalur data: jalur yang menghubungkan node-node pada
internetwork untuk memindahkan/ mentransmisikan data
(melakukan proses pengiriman/ penerimaan data)
Sistem sumber juga harus mampu menginformasikan identitas
sistem tujuan yang diinginkan kepada jaringan komunikasi.
Sistem sumber harus dapat memastikan bahwa sistem tujuan
benar-benar dipersiapkan untuk menerima data
Aplikasi transfer file pada sistem sumber harus dapat memastikan
bahwa program manajemen file pada sistem tujuan benar-benar
dipersiapkan untuk menerima dan menyimpan file untuk beberapa
user tertentu.
Bila format-format file yang dipergunakan pada kedua sistem
tersebut tidak kompatibel, maka salah satu atau sistem yang lain
harus mampu melakukan fungsi penterjemahan.
5
Italian Business
Effective Communication
Translator
French Business
Translator
Telex Operator
Telex Operator
Physical Communication
Sejarah TCP/IP
The Defense Advance Research Projects Agency
(DARPA) mengembangkan Transmission Control
Protocol/Internet Protocol (TCP/IP) untuk
interkoneksi antar berbagai jaringan komputer pada
departemen keamanan
The Internet, an international Wide Area Network,
menggunakan TCP/IP untuk menghubungkan institusi
pendidikan dan pemerintah di seluruh dunia
TCP/IP juga digunakan secara luas untuk jaringan
komersial dan privat
Internetworking
Sebagian besar jaringan saling terhubung:
Antar LAN yang berbeda tipe
Antar LAN yang serupa
Merbagai site terhubung dg WAN
Dapat membentuk jaringan yang besar
Konfigurasi tertentu dirujuk sbg internet
Setiap bagian jaringan merupakan subnetwork
Internetworking Devices
Setiap subnetwork meliputi komunikasi antar devais yang
terhubung ke subnetwork
End systems (ESs)
Routers
Interconnect dissimilar subnetworks
Provide a link between networks
Provide for routing and delivery of data between processes on end
systems attached to different networks
Do not require modifications of architecture of subnetworks
Addressing schemes
Maximum packet sizes
Interfaces
Reliability
Internetworking Terminology
Internet
Sekumpulan jaringan komunikasi ynag interkoneksi menggunakan
bridges dan/atau routers
Intranet
Subnetwork
Refers to a constituent network of an internet. This avoids ambiguity
because the entire internet, from a user's point of view, is a single
network
Bridge
Router
IS used to connect two networks that may or may not be similar
Uses an internet protocol present in each router and each end system of the
network
Layer 3 of the OSI model
Standards
Dibutuhkan guna interoperability antar perangkat
Keuntungan:
Menjamin pasar besar bagi perangkat dan
software
Memungkinkan komunikasi antar produk yang
berbeda
Kerugian
Freeze technology (???)
13
15
IETF Organization
Dikelompokkan dalam area
Aplikasi, security, routing, dll.
Setiap area mempunyai Area Director, yang juga
member IESG
Setiap area mempunyai beberapa working groups
working groups berkontribusi untuk
standards/protocols, etc.
Voluntary participation in IETF working groups
For detail see
www.ietf.org or
RFC 3160 - The Tao of IETF - A Novice's Guide to
the Internet Engineering Task Force
16
17
Consensus needed
18
PROTOKOL TCP/IP
Definisi Protokol
Perlunya aturan, yaitu tata cara bagaimana mereka
dapat saling mengenal dan melakukan transfer data
tanpa error.
Harus berbicara dengan bahasa yang sama.
Protokol: Kesepakatan dalam komunikasi tentang:
- apa yang dikomunikasikan,
- bagaimana komunikasi itu terjadi
- kapan komunikasi tersebut dilakukan
21
TCP/IP Model
Because TCP/IP was developed earlier than the OSI
7-layer mode, it does not have 7 layers but only 4
layers
TCP/IP Protocol Suite
OSI 7-layer
TCP, UDP
IP, ARP, ICMP
Network Interface
23
Figure 2.11
OSI v TCP/IP
Internet
Standards
IEEE
ISO
ITU-T
Process
Process
TCP/IP
Process Layer
TCP
UDP
Transport Layer
ICMP, ARP
&
RARP
IP
Network Layer
802.3
Data-Link Layer
Machine B
Machine A
Application
Application
Router/Gateway
Transport
Internet
Internet
Internet
Network Interface
Network 1
1.
2.
3.
4.
Transport
Network Interface
Network Interface
Network 2
Machine A
Machine B
Application
Application
Router/Gateway
IP
packet
Transport
Internet
Network Interface
Packet
of network1
IP
packet
IP
packet
Internet
Network InterfaceS
Packet
of network1
Network 1
1.
2.
3.
Transport
Internet
IP
packet
Network Interface
Packet
of network2
Packet
of network2
Network 2
28
Figure 2.11
App.
SMTP
HTTP
Transport
TCP
Internet
Network
Interface 1
(e.g., Ethernet driver)
RTP
DNS
UDP
IP
Network
Interface 2
TCP/UDP Provides
a network
independent
platform
IP provides
independence
from underlying
networks
Network
Interface 3
30
Figure 2.12
31
32
Application
Segments
Transport
Network
h M
h h M
h M
h M
h h M
h h M
Packets
Network Interface
h h h M
h h h M
Frames
34
87 10
Data
packet
discarded
packet
discarded
packet
accepted
3
4
35
87 10
Data
36
Destination IP = 158.132.148.132
Packet
Ethernet
Packet
Ethernet
Frame
Ethernet address = ?
37
Case 1
Ethernet Frame
38
ARP Address
Resolution Protocol
Case 2
Router
3.
39
ARP Cache
Will have a heavy traffic if so many ARP
broadcast messages are generated
Each host will have a cache to store the
mappings (from IP to MAC address) that were
obtained before
IP Address
MAC Address
158.132.148.80
00-60-8C-27-35-9A
158.132.148.28
02-60-8C-1A-37-49
40
NETWORK LAYER:
ALAMAT LOGIKA
Network Layer
Message
Application
Segments
Transport
Network
Network Interface
h M
h h M
h M
h h M
h M
h h M
Datagrams / Packets
42
3
Segment
IP
Time to
Live
Protocol
Header
CheckSum
Source Address
Destination Address
Segment
43
(Already mentioned)
Each computer (host) must have a unique network
address (or IP address for TCP/IP suite)
Each IP address is 32-bit long (four bytes)
The four-byte address is written out as a.b.c.d
e.g.
Byte 1
Byte 2
Byte 3
Byte 4
158
132
161
99
45
7 bits
24 bits
Net I.D.
Host I.D.
14 bits
Net I.D.
16 bits
Host I.D.
1001 1110
Network I.D.
1000 0100
0000 1110
Host I.D.
0000 0001
47
21 bits
0
Net I.D.
8 bits
Host I.D.
48
ENG224
INFORMATION TECHNOLOGY Part I
9. TCP/IP
28 bits
0
Group no.
49
ENG224
INFORMATION TECHNOLOGY Part I
9. TCP/IP
Special Addresses
Host I.D. = all 1s Directed broadcast
Broadcast to all hosts in the network or
subnetwork, not assigned
Host I.D. = all 0s This network, not assigned
Network I.D. = 127 is reserved for loopback and
diagnostic purposes, not assigned
Network I.D. + Host I.D. = all 1s Limited
broadcast
Broadcast to all hosts in the current network,
not assigned
50
ENG224
INFORMATION TECHNOLOGY Part I
9. TCP/IP
Subnets
A class B address can have 65536 hosts
Difficult to manage
Usually subdivide into a few small subnets
Subnetting can also help to reduce broadcasting
traffic
158.132.1.0
158.132.0.0
Total 65536 hosts
Router
Router
158.132.2.0
158.132.3.0
All traffic to
158.132.0.0
All traffic to
158.132.0.0
Subnet Mask
How does the router know which subnet a packet
should go?
For each interface of the router, a subnet mask is
provided to redefine which part of the address is
Net ID and which part is Host ID
Become classless addressing
A subnet mask: 255.255.255.0
1111 1111.1111 1111. 1111 1111. 0000 0000
1s Net ID
0s Host ID
52
158.132.1.10
Router
E0
A packet with destination
address 158.132.1.10
S0
S1
S2
Routing Table
Subnet
Mask
S0
S1
S2
158.132.1.0
158.132.2.0
158.132.3.0
158.132. 1. 10
AND 255.255.255. 0
158.132. 1. 0
53
ENG224
INFORMATION TECHNOLOGY Part I
9. TCP/IP
F. Routing
How a packet finds its way to a computer in a
network?
By using Routers
Routing is the selection of a path to guide a
packet from the source to the destination
Criteria in selecting a path may be:
Shortest path
Quickest path
Cheapest path
54
ENG224
INFORMATION TECHNOLOGY Part I
9. TCP/IP
Internet
router
U.S.
212.64.123.98
55
ENG224
INFORMATION TECHNOLOGY Part I
9. TCP/IP
ENG224
INFORMATION TECHNOLOGY Part I
9. TCP/IP
Host A
158.132.148.66
Default gateway: Router C
Subnet
158.132.166.0
S0
Router A
T0
T1
T0
S1
S1
T1
S1 158.132.166.0 Direct
255.255.255.0
T1 160. 64. 0. 0 Forward
255.255. 0. 0
T0
S0
Router C
Routing Table
Router B T0
Routing Table
S0 160. 64.124.0 Direct
255.255.255.0
S1 160. 64.123.0 Direct
255.255.255.0
S0
Subnet
160.64.124.0
S1
Subnet
160.64.123.0
Host B
57
160.64.123.98
Obtaining an IP Address
Dynamic addressing
MAC HEADER
IP HEADER
Destination
Destination
FF-FF-FF-FF-FF-FF
255.255.255.255
Source
Source
FE:ED:FD:23:44:EF
????????
RARP REQUEST
MESSAGE
What is my IP
address?
BOOTP IP
The Bootstrap Protocol (BOOTP) operates in a
client/server environment and only requires a single
packet exchange to obtain IP information.
BOOTP packets can include the IP address, as well as
the address of a router, the address of a server, and
vendor-specific information.
TRANSPORT LAYER:
PORT ADDRESSING
Transport Layer
Message
Application
Segments
Transport
h M
h M
h M
Network
Network Interface
67
TCP
Destination
Port
Sequence Number
Acknowledgement
Number
Message
Checksum
Message Data
68
Sender
2
Timeout
A2
retransmit
A1
A3
Recipient
69
A Typical Procedure
Sender
Recipient
When receiving segments, send the acknowledgement with correct
number
Reassembly the segments back to the message
70
Port Multiplexing
A computer may perform a number of network
applications at the same time
FTP + SMTP + HTTP, etc.
SMTP
Port 25
HTTP
Port 80
71
72
Client
SMTP Server
Located by: network
address + TCP port no.
SMTP port
= 1357
Source Port
= 1357
Destination
Port = 25
SMTP port
= 25
Sequence Number
Acknowledgement
Number
Checksum
Message Data
73
Client A
SMTP port
= 1357
Client B
FTP port
= 21
FTP port
= 1361
74
TCP
Usual transport layer is Transmission Control Protocol
Reliable connection
Connection
Temporary logical association between entities in different systems
TCP PDU
Called TCP segment
Includes source and destination port (c.f. SAP)
Identify respective users (applications)
Connection refers to pair of ports
APPLICATION LAYER
Typical protocols:
TCP Transmission Control Protocol
Provide further the functions such as reordering and data resend
UDP User Datagram Service
Use when the message to be sent fit exactly into a datagram
Use also when a more simplified data format is required
79
Application Layer
Application
Transport
Network
Network Interface
81
B. Example: SMTP
SMTP Server
Client
Virtual
SMTP
SMTP
TCP
TCP
Actual
Binary or ASCII
Ensure the right recipient
Example: SMTP
The following mail is to be sent:
Date: Fri, 18 Jan 02 13:26:31 EDT
From: enpklun@polyu.edu.hk
To: tchsun@eee.hku.hk
Subject: meeting
Lets get together Monday at 1pm.
84
Client
SMTP Server
access port 25 of server
Client
SMTP Server
RCPT To:<tchsun@eee.hku.hk>
250 Recipient accepted
DATA
354 Start mail input; end with
.
86
The domain
within hk
Note: edu.hk is
not the same as
edu
89
90
Where is
www.yahoo.com?
Client
usually UDP
Address of www.yahoo.com
Become
client
Where is
www.yahoo.com?
Where is yahoo.com?
Address of the DNS
of Yahoo.com
Address of www.Yahoo.com
DNS of Yahoo.com
DNS of com
91
92