Professional Documents
Culture Documents
ComputerNetworks 3 1 2022 23
ComputerNetworks 3 1 2022 23
2022/23
TCP/IP Architecture
Lesson 3 – (part 1)
In this lesson
TCP/IP Architecture : De Facto standard
A bit of history
TCP / IP layers
IP addresses
IPv4 : mention to NAT systems
IPv6
TCP / IP – Contents
TCP/IP : history
Development of TCP/IP and Internet are strictly
connected: TCP/IP success is due to Internet popularity
and viceversa
1969 – ARPAnet : in USA 4 Universities are connected
1974: first official document describing TCP
specifications (RFC 675)
1982: definition of “TCP/IP” and “Internet”
TCP / IP – History
TCP/IP : Internet Protocol Suite
Layer 3: Transport
TCP , UDP
Layer 2: Internet
IP
Layer 1: Network ethernet
MAC LLC
IP HEADER TCP Segment of FCS
frame HEADER HEADER
HEADER Upper layer DATA
Network
bits
1011000100010110101001011100010101010010 interface
Transm. medium
TCP / IP – encapsulation
TCP/IP : Network layer
Network (interface): layer 1 of TCP/IP model and
corresponds to layers 1 and 2 of OSI model
Encapsulation into frames:
FRAME = HEADER + DATA + FCS
FCS (Frame control Sequence): to detect transmission
errors
Usually FCS implements the CRC (Cyclic Redundancy
Check)
Physical addressing: MAC address
01110011 01010011 1
TCP / IP – CRC
2 dimensions CRC
ONE error detected:
It’s possible to correct
NO errors
1 0 1 0 1 1 1 0 1 0 1 1
Parity
1 1 1 1 0 0 1 0 1 1 0 0
error
0 1 1 1 0 1 0 1 1 1 0 1
0 0 1 0 1 0 0 0 1 0 1 0
Parity error
TCP / IP – CRC
TCP/IP : Internet layer
2 main protocols
TCP (Transmission Control Protocol)
UDP (User Datagram Protocol)
Let’s see …
… Transmission Media …
TCP / IP – IP addresses
IP address (IPv4)
An IP address is a 32-bits number 4 bytes (octets) (IPv4)
Usually expressed using decimal dotted notation: the value
of each byte is written in decimal format, using a “.” to
separate numbers.
Example: the address 01111100 00100111 10001100 00001001
is written as: 124 . 39 . 140 . 9
TCP / IP – IP address
IP address
31 January 2011 last IP address (IPv4) was assigned by
IANA.
How to solve the problem?
IPv6: 8 groups 16 bits each; the value of each group is
expressed in hexadecimal format and separated by “:”
(colon) the number of addresses is: 2128
Example: 35A9 : 203F : 1206 : C47D : 4ADC : 6018 : F34B : 00F5
TCP / IP – IP address
NAT (Network Address Translation)
How does it work ?
10.0.0.1
10.0.0.4
10.0.0.2
138.76.29.7
Public IP 10.0.0.3
TCP / IP – NAT
NAT
The Tanslation mechanism works using ports: NAT router assigns
a specific port number to each request coming from LAN.
10.0.0.3
TCP / IP – NAT
NAT
From the Internet (WAN) only the output address
(138.76.29.7) of the NAT router is known.
Port number is a 16 bits number, that allows NAT router to
handle up to 216 = 65536 connections simultaneously,
using only a single public IP address!
S=128.119.40.186, 80 10.0.0.1
D=138.76.29.7, 5001 S=128.119.40.186, 80
D=10.0.0.1, 3345
10.0.0.2
138.76.29.7 10.0.0.4
Public IP 10.0.0.3
TCP / IP – NAT
IP structure
TCP / IP – IP structure
IP classes
IP addresses are divided into 5 classes:
A , B , C , D , E.
Classe A
The first bit (most significant bit) is 0
1 byte Network number (most significant byte), 3 bytes Host
Number
Classe B
The first 2 bits (most significant bits) are 10
2 bytes Network number (most significant bytes), 2 bytes Host Number
TCP / IP – IP classes
IP classes
Classe C:
The first 3 bits (most significant bits) are 110
3 byte Network number (most significant bytes), 1 byte
Host Number
TCP / IP – IP classes
IP structure and classes
C LAN
E C
B E E E --------
F C
B F E F F
Due to traffic jam, routing tables are updated
Round-up
HOMEWORK
IPv6: calculate how many IP addresses each hair
Read the Text on IP addresses and do the
exercises from EdPuzzle
TCP / IP – Conclusion