Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction
2008/9/23
Network & System Lab, NSYSU
1
Introduction
Introduction:
This chapter provides an overview of the TCP/IP protocol suite,to
establish an adequate background for the remaining chapters.
Layering:
Application Telnet, FTP, e-mail, etc
2008/9/23
Network & System Lab, NSYSU
2
1
Layering
Layering (Cont.)
TCP protocol
transport TCP TCP
Kernel handles
communication
IP protocol details
network IP IP
2008/9/23
Network & System Lab, NSYSU
4
2
Layering (Cont.)
Layering (Cont.)
2008/9/23
Network & System Lab, NSYSU
6
3
TCP/IP Layering
transport
TCP UDP
Hardware
ARP Interface
RARP link
media
Figure 1.4 Various protocols at the different layers in TCP/IP protocol suite
2008/9/23
Network & System Lab, NSYSU
7
4
Internet Addresses
7 bits 24 bits
Class A 0 netid hostid
14 bits 16 bits
1 0 netid hostid
Class B
21 bits 8 bits
Class C 1 1 0 netid hostid
28 bits
Class D 1 1 1 0 multicast group ID
28 bits
Class E 1 1 1 1 (reserved for future use)
Class Range
A 0.0.0.0 to 127.255.255.255
B 128.0.0.0 to 191.255.255.255
C 192.0.0.0 to 223.255.255.255
D 224.0.0.0 to 239.255.255.255
E 240.0.0.0 to 255.255.255.255
2008/9/23
Network & System Lab, NSYSU
9
Internet address
also called an IP address, 32-bit numbers, unique
How to differentiate between the different classes of addresses?
look at the first number of a dotted-decimal address
5
The Domain Name System
Encapsulation
Each layer adds information to the data by prepending headers
(and sometimes adding trailer information) to data that it receives
For example: UDP passes to IP is called a UDP datagram, and the
size of the UDP header is 8 bytes
2008/9/23
Network & System Lab, NSYSU
11
Encapsulation
user data
application
Appl
header user data
TCP UDP
TCP UDP
header application data header
TCP segment
UDP datagram
IP IP
IP TCP
header header application data
IP segment
Ethernet
Ethernet IP TCP application data Ethernet driver
header header header trailer
14 20 20 4 Ethernet
Ethernet frame
46 to 1500 bytes
2008/9/23
Network & System Lab, NSYSU
12
6
Demultiplexing
IP
ARP RARP
demultiplexing based on
frame type in Ethernet header
Ethernet
driver
incoming frame
Figure 1.8 The demultiplexing of a received Ethernet frame
2008/9/23
Network & System Lab, NSYSU
13
Client-Server Model
concurrent
¾ C1. Wait for a client request to arrive
¾ C2. Start a new server to handle this client’s request. This may involve
creating a new process, task, or thread, depending on the operating
system. This new server handles this client’s entire request. When
complete, this new server terminates
¾ C3. Go back to step C1
2008/9/23
Network & System Lab, NSYSU
14
7
Port Numbers
TCP servers are concurrent, UDP servers are iterative, but there
are a few exceptions
2008/9/23
Network & System Lab, NSYSU
15
Standardization Process
Reserved Ports
Unix systems have the concept of reserved ports. Only a process
with superuser privileges can assign itself a reserved port (1 to
1023)
Who controls the TCP/IP protocol suite, approves new standards?
The Internet Society (ISOC)
The Internet Architecture Board (IAB)
The Internet Engineering Task Force (IETF)
The Internet Research Task Force (IRTF)
¾ Both the IRTF an the IETF fall under the IAB
RFCs
All the official standards in the internet community are published as
Request for Comment (RFC)
2008/9/23
Network & System Lab, NSYSU
16
8
Standard, Simple Services
2008/9/23
Network & System Lab, NSYSU
17
The Internet
Implementations
The standard for TCP/IP implementations is the one from the
Computer Systems Research Group at the University of California
at Berkeley
SunOS 4.x, SVR4, and AIX 3.2 that were originally developed from
the Berkeley sources. These implementations have much in
common, often including the same bugs!
2008/9/23
Network & System Lab, NSYSU
18
9
Implementations
4.2BSD(1983)
first widely available
release of TCP/IP
4.3BSD(1986)
TCP/IP performance improvements
4.3BSD Tahoe(1988)
slow start,
congestion avoidance,
BSD Networking Software fast retransmit
Release 1.0(1989):Net/1
4.3BSD Reno(1990)
fast recovery,
TCP header prediction,
SLIP header compression,
BSD Networking Software
routing table changes
Release 2.0(1991):Net/2
4.3BSD Reno(1990)
multicasting,
long fat pipe modifications
4.4BSD-Lite(1994)
also referred to as Net/3
2008/9/23
Network & System Lab, NSYSU
19
Summary
Distinction between the network layer and the transport layer
¾ network layer (IP) provides a hop-by-hop service
¾ transport layers (TCP and UDP) provide an end-to-end service
Internet is an internet that spans the globe and consists of more
than 10,000 networks and more than one million computers
Servers use well-known ports while clients use ephemeral ports
2008/9/23
Network & System Lab, NSYSU
20
10
Test Network
modem
BSD/386 1.0 BSD/386 1.0 SunOS 4.1.3 .1.29 SVR4
SLIP
slip .13.65 .13.66 bsdi sun svr4
.13.35 .13.33 .13.34
Ethernet
2008/9/23
Network & System Lab, NSYSU
21
11