Ch2 Part3 TCPIP Model
Ch2 Part3 TCPIP Model
COMMUNICATIONS
AND NETWORKS
(SEET3623)
161.139.102.63
161.139.100.30
N.E.G.2022
TCP/IP MODEL 3
Application
SMTP FTP
Presentation Application Application
DNS HTTP
Session
ICMP IGMP
Network Internet Internet IP RARP ARP
Physical layer
• Physical interface between a data transmission device (e.g. laptop) and a transmission medium or network
• Characteristics of transmission medium
• Signal levels, data rates, ect
Network access layer
• Exchange of data between end system and network
• Destination address provision
Internet layer (IP)
• Provides routing function across multiple networks
• Implemented in end systems and routers
Transport layer
• End-to-end transfer of data
• Ordering of delivery
• May include reliability mechanism
• Hides detail of underlying network
Application layer
• Support for user applications
N.E.G.2022
TCP/IP: APPLICATIONS LAYER 6
HTTP HTTPS
HTTP means Hyper Text Transfer Protocol HTTPS means Hyper Text Transfer
Protocol Secured
URL begins with “http://” URL begins with “https://”
It uses port 80 for communication It uses port 443 for communication
Unsecured Secured
Operates at Application Layer Operates at Transport Layer
TCP UDP
N.E.G.2022
TCP: THREE-WAY HANDSHAKE 9
FIN-ACK FIN-ACK
Step 1 Step 3
ACK ACK
Step 2 Step 4
N.E.G.2022
TCP 11
• At the sending end of each transmission, TCP divides a stream of data into smaller
units called segments. Each segment includes a sequence number for reordering after
receipt, together with an acknowledgment number for the segments received.
• Segments are carried across the internet inside of IP datagrams.
• At the receiving end, TCP collects each datagram as it comes in and reorders the
transmission based on sequence numbers.
N.E.G.2022
TCP HEADER 12
20-60 bytes
N.E.G.2022
UDP 13
N.E.G.2022
UDP HEADER 14
N.E.G.2022
TCP/IP CONCEPTS 15
N.E.G.2022
TCP/IP ADDRESSING 16
N.E.G.2022
TCP/IP ADDRESSES 17
• Physical address - Also known as the link address, is the address of a node as defined by its LAN or
WAN
• It is included in the frame used by the data link layer
• The physical addresses have authority over the link (LAN or WAN)
• The size and format of these addresses vary depending on the network
• Example: 00:A0:C9:14:C8:29
• IP/Logical address – Each host on a subnet needs a unique global network address or logical address
(IP Layer)
• A logical address in the Internet is currently a 32-bit address that can uniquely define a host
connected to the Internet (IPv4).
• IP address - Example: 161.139.220.154 (32 bits)
• Port address – Each application/process on a (multi-tasking) host needs a unique address within the
host (Transport Layer)
• The label assigned to a process is called a port address
• Example: 80, 8888, 22, 21
• Application specific address – website address, e-mail address
N.E.G.2022
CLIENT & SERVER PROCESS 18
• A network application consists of pairs of processes that send messages to each other
over a network
• These pairs are typically labelled as client and server
• Client: Process that initiates communication
• Server: Process that waits to be contacted
• Example:
• In the Web, a browser process initializes contact with a Web server process.
Which one is the client and which one is the server?
• In Peer to peer (P2P) file sharing, A asks B to send specific file. Who is the client
and who is the server?
N.E.G.2022
SOCKET 19
N.E.G.2022
SOCKET 20
• A process sends messages into, and received messages from, the network
through a software called a socket
• Socket analogous to door
• Interface between App Layer and Transport layer
• App developer only can control (on the transport-layer side):
• Choice of transport protocol
• Ability to fix a few parameters such as maximum buffer
N.E.G.2022
INTERNET (NETWORK) LAYER 21
N.E.G.2022
INTERNET (IP) LAYER 22
N.E.G.2022
IP ADDRESSESS 23
N.E.G.2022
TYPES OF TRAFFIC 25
•Elastic traffic
• can adjust to delay & throughput changes over a wide range
• eg. traditional “data” style TCP/IP traffic
• some applications more sensitive though
•Inelastic traffic
• does not adapt to such changes
• eg. “real-time” voice & video traffic
• need minimum requirements on net architecture
N.E.G.2022