SlideShare a Scribd company logo
1
TRANSMISSION CONTROL PROTOCOL /
INTERNET PROTOCOL
(TCP/IP)
K. PALANIVEL
Systems Analyst, Computer Centre
Pondicherry University, Puducherry – 605014.
LECTURE 3
COMS 525: TCPIP
COURSE
TOPIC
TOPICS TO BE COVERED
• TCPIP
• Layered Architecture
• Functions
• Layered Communications
• Different Views of Layers
• Encapsulation and Demultiplexing
• Summary
Why TCP/IP is so popular?
• TCP/IP was developed very early
• Technologies were widely discussed and circulated
in documents called “Request for Comments”
(RFC) – free of charge
• Supported by UNIX operating system
4
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
OSI 7-layerTCP/IP Protocol Suite
FTP, SMTP, Telnet,
HTTP,…
TCP, UDP
IP, ARP, ICMP
Network Interface
TCP/IP Model
Application Layer
Application programs using the network
Transport Layer (TCP/UDP)
Management of end-to-end message transmission,
error detection and error correction
Network Layer (IP)
Handling of datagrams : routing and congestion
Data Link Layer
Management of cost effective and reliable data delivery,
access to physical networks
Physical Layer
Physical Media
6
• Application layer protocols define the rules when implementing
specific network applications
• Rely on the underlying layers to provide accurate and efficient
data delivery
• Typical protocols:
• FTP – File Transfer Protocol
• For file transfer
• Telnet – Remote terminal protocol
• For remote login on any other computer on the network
• SMTP – Simple Mail Transfer Protocol
• For mail transfer
• HTTP – Hypertext Transfer Protocol
• For Web browsing
Application Layer Protocols
7
• TCP/IP is built on “connectionless” technology, each datagram
finds its own way to its destination
• Transport Layer protocols define the rules of
• Dividing a chunk of data into segments
• Reassemble segments into the original chunk
• 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
Transport Layer Protocols
8
• Network layer protocols define the rules of how to find the
routes for a packet to the destination
• It only gives best effort delivery. Packets can be delayed,
corrupted, lost, duplicated, out-of-order
• Typical protocols:
• IP – Internet Protocol
• Provide packet delivery
• ARP – Address Resolution Protocol
• Define the procedures of network address / MAC
address translation
• ICMP – Internet Control Message Protocol
• Define the procedures of error message transfer
Network Layer Protocols
9
Encapsulation and Demultiplexing
TCP/IP Protocol Suite
 The TCP/IP protocol suite is
the protocol architecture of
the Internet
 The TCP/IP suite has four
layers: Application,
Transport, Network, and
Data Link Layer
 End systems (hosts)
implement all four layers.
Gateways (Routers) only
have the bottom two layers.
10
Application
Transport
Network Operating system
User-level programs
Data Link
Data Link
Media Access
Control (MAC)
Sublayer in
Local Area
Networks
Functions of the Layers
• Data Link Layer:
– Service: Reliable transfer of frames over a link
Media Access Control on a LAN
– Functions: Framing, media access control, error checking
• Network Layer:
– Service: Move packets from source host to destination
host
– Functions: Routing, addressing
• Transport Layer:
– Service: Delivery of data between hosts
– Functions: Connection establishment/termination, error
control, flow control
• Application Layer:
– Service: Application specific (delivery of email,
retrieval of HTML documents, reliable transfer of file)
– Functions: Application specific
11
TCP/IP Suite and OSI Reference Model
Application
Layer
Application
Layer
Presentation
Layer
Session
Layer
Transport
Layer
Network
Layer
(Data) Link
Layer
Physical
Layer
Transport
Layer
Network
Layer
OSI
Reference
Model
(Data) Link
Layer
TCP/IP Suite
12
The TCP/IP protocol stack does not define the lower layers of a
complete protocol stack
13
Assignment of Protocols to
Layers Network
Layer
Routing Protocols
PIM
OSPF
RIP
Application
Layer
Data Link
Layer
IP
ARP Ethernet
Network
Interface
Transport
Layer
TCP UDP
SNMPFTP DNSHTTP
ICMP
IGMP
ping
application
Telnet
DHCP
Layered Communications
• An entity of a particular layer can only communicate with:
1. a peer layer entity using a common protocol (Peer
Protocol)
2. adjacent layers to provide services and to receive services
14
N+1 Layer
Entity
N+1 Layer
Entity
N+1 Layer Protocol
N+1 Layer
N-1 Layer
Entity
N-1 Layer
Entity
N-1 Layer Protocol
N-1 Layer
N Layer
Entity
N Layer
Entity
N Layer Protocol
N Layer
layer N+1/N
interface
layer N/N-1
interface
Layered Communications
A layer N+1 entity sees the lower layers only as a service
provider
Service Provider
N+1 Layer
Entity
N+1 Layer
Entity
N+1 Layer Peer Protocol
Request
Delivery
Indicate
Delivery
Service Access Points
• A service user accesses services of the service
provider at Service Access Points (SAPs)
• A SAP has an address that uniquely identifies where
the service can be accessed
16
Layer-N
Entity
N Layer
Layer- N-1
Entity
N-1
Layer
layer N/N-1
service interface
Layer
N-1
SAP
Exchange of Data
• The unit of data send between peer entities is called a
Protocol Data Unit (PDU)
• For now, let us think of a PDU as a single packet
• Scenario: Layer-N at A sends a layer-N PDU to layer-N at B
• What actually happens:
– A’s layer-N passes the PDU to one the SAPs at layer-N-1
– Layer-N-1 entity at A constructs its own (layer-N-1) PDU
which it sends to the layer-N-1 entity at B
– PDU at layer-N-1 = layer-N-1 Header + layer –N PDU
N Layer
Entity
PDU
(at layer N)
N Layer
Entity
A B
18
Exchange of DataLayer-N
Entity
N PDU
Layer- N-1
Entity
Layer-N PDU and control data is
sent to SAP of Layer-N-1
SAPs
control
N PDUcontrol
Header
(of layer N-1)
N PDU
PDU of Layer-N-1
Layer-N
Entity
Layer- N-1
Entity
A B
Exchange of Data
Layers in the Example
HTTP
TCP
IP
argon.tcpip-
lab.edu
128.143.137.144
Ethernet Ethernet Ethernet
IP
HTTP
TCP
IP
neon.tcpip-lab.edu
128.143.71.21
Ethernet
router71.tcpip-
lab.edu
128.143.137.1
00:e0:f9:23:a8:20
router137.tcpip-
lab.edu
128.143.71.1
HTTP protocol
TCP protocol
IP protocol
Ethernet
IP protocol
Ethernet
20
Layers in the Example
HTTP
TCP
IP
argon.tcpip-
lab.edu
128.143.137.144
Ethernet Ethernet Ethernet
IP
HTTP
TCP
IP
neon.tcpip-lab.edu
128.143.71.21
Ethernet
router71.tcpip-
lab.edu
128.143.137.1
00:e0:f9:23:a8:20
router137.tcpip-
lab.edu
128.143.71.1
Send HTTP Request
to neon
Establish a connection to 128.143.71.21 at
port 80Open TCP connection to
128.143.71.21 port 80
Send a datagram (which contains a connection
request) to 128.143.71.21
Send IP datagram to
128.143.71.21
Send the datagram to 128.143.137.1
Send Ethernet frame
to 00:e0:f9:23:a8:20
Send Ethernet frame
to 00:20:af:03:98:28
Send IP data-gram to
128.143.71.21
Send the datagram
to 128.143.7.21
Frame is an IP
datagram
Frame is an IP
datagram
IP datagram is a TCP
segment for port 80
Layers and Services
 Service provided by TCP to HTTP:
◦ reliable transmission of data over a logical connection
 Service provided by IP to TCP:
◦ unreliable transmission of IP datagrams across an IP
network
 Service provided by Ethernet to IP:
◦ transmission of a frame across an Ethernet segment
 Other services:
◦ DNS: translation between domain names and IP
addresses
◦ ARP: Translation between IP addresses and MAC
addresses
21
Encapsulation and Demultiplexing
Encapsulation and Demultiplexing
• As data is moving down the protocol stack, each
protocol is adding layer-specific control information
23
HTTP
TCP
IP
Ethernet
User data
User dataHTTP Header
TCP Header
TCP HeaderIP Header
TCP HeaderIP Header
Ethernet
Header
Ethernet
Trailer
IP datagram
TCP segment
Ethernet frame
User dataHTTP Header
User dataHTTP Header
User dataHTTP Header
Encapsulation and Demultiplexing
 Let us look in detail at the Ethernet frame between
Argon and the Router, which contains the TCP
connection request to Neon.
 This is the frame in hexadecimal notation.
00e0 f923 a820 00a0 2471 e444 0800 4500 002c
9d08 4000 8006 8bff 808f 8990 808f 4715 065b 0050
0009 465b 0000 0000 6002 2000 598e 0000 0204
05b4
24
Parsing the information in the frame
25
version
0x4
header length
0x5
Type of Service/TOS
0x00
total length (in bytes)
0x002c
Identification
0x9d08
flags
0102
fragment offset
00000000000002
cource IP address
128.143.137.144
destination IP address
128.143.71.21
time-to;ive
0x80
protocol
0x06
header checksum
0x8bff
source port number
162710
destination port number
8010
sequence number
0x0009465b
acknowledgement number
0x00000000
header length
0x6
unused
0000002
flags
0000102
window size
819210
TCP checksum
0x598e
urgent pointer
0x0000
maximum segment size
146010
option type
0x02
option length
0x04
destination address
00:e0:f9:23:a8:20
source address
0:a0:24:71:e4:44
type
0x0800
4 bytes
CRC
Ethernet
header
(14 bytes)
IP Header
(20 bytes)
TCP Header
(24 bytes)
Ethernet
trailer
(4 bytes)
26
Application dataTCP HeaderIP HeaderEthernet Header Ethernet Trailer
Ethernet frame
destination address
source address
type
6 bytes
CRC
4 bytes
Encapsulation and Demultiplexing: Ethernet Header
Encapsulation and Demultiplexing: Ethernet Header
27
00:e0:f9:23:a8:20
0:a0:24:71:e4:44
0x0800
6 bytes
CRC
4 bytes
Application dataTCP HeaderIP HeaderEthernet Header Ethernet Trailer
Ethernet frame
28
Application dataTCP HeaderEthernet Header Ethernet Trailer
Ethernet frame
IP Header
DS ECN
version
(4 bits)
header
length
Total Length (in bytes)
(16 bits)
Identification (16 bits)
flags
(3 bits)
Fragment Offset (13 bits)
Source IP address (32 bits)
Destination IP address (32 bits)
TTL Time-to-Live
(8 bits)
Protocol
(8 bits)
Header Checksum (16 bits)
32 bits
Encapsulation and Demultiplexing: IP Header
29
Application dataTCP HeaderEthernet Header Ethernet Trailer
Ethernet frame
IP Header
0x0 0x00x4 0x5 4410
9d08 0102
00000000000002
128.143.137.144
128.143.71.21
12810
0x06 8bff
32 bits
Encapsulation and Demultiplexing: Ethernet Header
Sequence number (32 bits)
Source Port Number Destination Port Number
Acknowledgement number (32 bits)
window size
header
length
0 Flags
TCP checksum urgent pointer
32 bits
length Max. segment size
option
type
30
Application dataEthernet Header Ethernet Trailer
Ethernet frame
IP Header TCP Header
Option:
maximum
segment size
Encapsulation and Demultiplexing: TCP Header
60783510
162710
8010
010
819210
610
0000002 0000102
0x598e 00002
32 bits
410 146010210
Application dataEthernet Header Ethernet Trailer
Ethernet frame
IP Header TCP Header
Encapsulation and Demultiplexing: Ethernet Header
Application dataEthernet Header Ethernet Trailer
Ethernet frame
IP Header TCP Header
No Application Data
in this frame
Encapsulation and Demultiplexing: Application Data
Different Views of Networking
Different Views of Networking
• Different Layers of the protocol stack have a different view
of the network. This is HTTP’s and TCP’s view of the
network.
34
HTTP client
TCP client
Argon
128.143.137.144
HTTP
server
TCP server
Neon
128.143.71.21
IP Network
HTTP
server
TCP server
35
Network View of IP Protocol
Network View of Ethernet
• Ethernet’s view of the network
Questions?
37

More Related Content

What's hot

Network infrastructure - TCP/IP
Network infrastructure - TCP/IPNetwork infrastructure - TCP/IP
Network infrastructure - TCP/IP
raymondkao
 
TCP Theory
TCP TheoryTCP Theory
TCP Theory
soohyunc
 
Overview of TCP IP
Overview of TCP IPOverview of TCP IP
Overview of TCP IP
university of education,Lahore
 
TCP/IP
TCP/IPTCP/IP
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
Aung Thu Rha Hein
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
SMC Networks Europe
 
TCP/IP Introduction
TCP/IP Introduction TCP/IP Introduction
TCP/IP Introduction
LJ PROJECTS
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
Ankur Kumar
 
TCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer DescriptionTCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer Description
Shubham Khedekar
 
"Internet Protocol Suite" prepared by Szymon M. from Poland
"Internet Protocol Suite" prepared by Szymon M. from Poland"Internet Protocol Suite" prepared by Szymon M. from Poland
"Internet Protocol Suite" prepared by Szymon M. from Poland
irenazd
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
sanjoysanyal
 
Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- final
Taymoor Nazmy
 
Network layer logical addressing
Network layer logical addressingNetwork layer logical addressing
Network layer logical addressing
Sri Manakula Vinayagar Engineering College
 
What is TCP/IP
What is TCP/IPWhat is TCP/IP
What is TCP/IPfarhan516
 
TCP/IP Protocol Architeture
TCP/IP Protocol ArchitetureTCP/IP Protocol Architeture
TCP/IP Protocol Architeture
Manoj Kumar
 
presentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationspresentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunications
AnyapuPranav
 
Presentation on TCP/IP Model
Presentation on TCP/IP ModelPresentation on TCP/IP Model
Presentation on TCP/IP Model
Abir Junayed
 

What's hot (20)

Network infrastructure - TCP/IP
Network infrastructure - TCP/IPNetwork infrastructure - TCP/IP
Network infrastructure - TCP/IP
 
TCP Theory
TCP TheoryTCP Theory
TCP Theory
 
Overview of TCP IP
Overview of TCP IPOverview of TCP IP
Overview of TCP IP
 
TCP/IP
TCP/IPTCP/IP
TCP/IP
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
4. network layer
4. network layer4. network layer
4. network layer
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
TCP/IP Introduction
TCP/IP Introduction TCP/IP Introduction
TCP/IP Introduction
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
TCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer DescriptionTCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer Description
 
"Internet Protocol Suite" prepared by Szymon M. from Poland
"Internet Protocol Suite" prepared by Szymon M. from Poland"Internet Protocol Suite" prepared by Szymon M. from Poland
"Internet Protocol Suite" prepared by Szymon M. from Poland
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- final
 
Network layer logical addressing
Network layer logical addressingNetwork layer logical addressing
Network layer logical addressing
 
TCP/IP(networking)
TCP/IP(networking)TCP/IP(networking)
TCP/IP(networking)
 
TCPIP
TCPIPTCPIP
TCPIP
 
What is TCP/IP
What is TCP/IPWhat is TCP/IP
What is TCP/IP
 
TCP/IP Protocol Architeture
TCP/IP Protocol ArchitetureTCP/IP Protocol Architeture
TCP/IP Protocol Architeture
 
presentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationspresentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunications
 
Presentation on TCP/IP Model
Presentation on TCP/IP ModelPresentation on TCP/IP Model
Presentation on TCP/IP Model
 

Similar to 02 coms 525 tcpip - introduction to tcpip

Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IPPiero Fraternali
 
TCPIP SLIDES.ppt
TCPIP SLIDES.pptTCPIP SLIDES.ppt
TCPIP SLIDES.ppt
aymenshykh
 
unit2-210710110327.pptx
unit2-210710110327.pptxunit2-210710110327.pptx
unit2-210710110327.pptx
LAVANYAsrietacin
 
Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol Suite
Atharaw Deshmukh
 
Tcp/ip model
Tcp/ip  modelTcp/ip  model
Tcp/ip model
Kumar Alok
 
ENC_254_PPT_ch04.pdf
ENC_254_PPT_ch04.pdfENC_254_PPT_ch04.pdf
ENC_254_PPT_ch04.pdf
shaker402
 
Sargation university's open system interconnection
Sargation university's open system interconnectionSargation university's open system interconnection
Sargation university's open system interconnection
KingPinYT
 
Lecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptxLecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptx
Ronoh Kennedy
 
3131471Scanned.ppt
3131471Scanned.ppt3131471Scanned.ppt
3131471Scanned.ppt
ssuserf21d85
 
CISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network FundamentalCISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network Fundamental
Karthikeyan Dhayalan
 
TCP /IP
TCP /IPTCP /IP
Lecture 2 -_understanding_networks_2013
Lecture 2 -_understanding_networks_2013Lecture 2 -_understanding_networks_2013
Lecture 2 -_understanding_networks_2013Travis Leong Ping
 
Tcp model by ananya shukla
Tcp model by ananya shuklaTcp model by ananya shukla
Tcp model by ananya shukla
ananya_shukla
 
Osi
OsiOsi
Bhargava Presentation.ppt
Bhargava Presentation.pptBhargava Presentation.ppt
Bhargava Presentation.ppt
EnumulaBhargava1
 
Bhargava Presentation.ppt
Bhargava Presentation.pptBhargava Presentation.ppt
Bhargava Presentation.ppt
EnumulaBhargava1
 
Unit 2 ppt-idc
Unit 2 ppt-idcUnit 2 ppt-idc
Unit 2 ppt-idc
hiya123jes
 
lecture 4.pptx
lecture 4.pptxlecture 4.pptx
lecture 4.pptx
MelkamuEndale1
 

Similar to 02 coms 525 tcpip - introduction to tcpip (20)

Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IP
 
TCPIP SLIDES.ppt
TCPIP SLIDES.pptTCPIP SLIDES.ppt
TCPIP SLIDES.ppt
 
unit2-210710110327.pptx
unit2-210710110327.pptxunit2-210710110327.pptx
unit2-210710110327.pptx
 
Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol Suite
 
Tcp/ip model
Tcp/ip  modelTcp/ip  model
Tcp/ip model
 
ENC_254_PPT_ch04.pdf
ENC_254_PPT_ch04.pdfENC_254_PPT_ch04.pdf
ENC_254_PPT_ch04.pdf
 
Sargation university's open system interconnection
Sargation university's open system interconnectionSargation university's open system interconnection
Sargation university's open system interconnection
 
Lecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptxLecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptx
 
3131471Scanned.ppt
3131471Scanned.ppt3131471Scanned.ppt
3131471Scanned.ppt
 
CISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network FundamentalCISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network Fundamental
 
TCP /IP
TCP /IPTCP /IP
TCP /IP
 
Lecture 2 -_understanding_networks_2013
Lecture 2 -_understanding_networks_2013Lecture 2 -_understanding_networks_2013
Lecture 2 -_understanding_networks_2013
 
Tcp model by ananya shukla
Tcp model by ananya shuklaTcp model by ananya shukla
Tcp model by ananya shukla
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
Osi
OsiOsi
Osi
 
Tcp ip
Tcp ipTcp ip
Tcp ip
 
Bhargava Presentation.ppt
Bhargava Presentation.pptBhargava Presentation.ppt
Bhargava Presentation.ppt
 
Bhargava Presentation.ppt
Bhargava Presentation.pptBhargava Presentation.ppt
Bhargava Presentation.ppt
 
Unit 2 ppt-idc
Unit 2 ppt-idcUnit 2 ppt-idc
Unit 2 ppt-idc
 
lecture 4.pptx
lecture 4.pptxlecture 4.pptx
lecture 4.pptx
 

More from Palanivel Kuppusamy

16 coms 525 tcpip - routing protocols -all
16    coms 525 tcpip - routing protocols -all16    coms 525 tcpip - routing protocols -all
16 coms 525 tcpip - routing protocols -all
Palanivel Kuppusamy
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocols
Palanivel Kuppusamy
 
14 coms 525 tcpip - applications - snmp
14    coms 525 tcpip - applications - snmp14    coms 525 tcpip - applications - snmp
14 coms 525 tcpip - applications - snmp
Palanivel Kuppusamy
 
13 coms 525 tcpip - applications - file transfer protocol
13   coms 525 tcpip - applications - file transfer protocol13   coms 525 tcpip - applications - file transfer protocol
13 coms 525 tcpip - applications - file transfer protocol
Palanivel Kuppusamy
 
12 coms 525 tcpip - applications - http - telnet
12   coms 525 tcpip - applications - http - telnet12   coms 525 tcpip - applications - http - telnet
12 coms 525 tcpip - applications - http - telnet
Palanivel Kuppusamy
 
11 coms 525 tcpip - internet protocol - forward
11   coms 525 tcpip - internet protocol - forward11   coms 525 tcpip - internet protocol - forward
11 coms 525 tcpip - internet protocol - forward
Palanivel Kuppusamy
 
10 coms 525 tcpip - internet protocol - ip
10   coms 525 tcpip -  internet protocol - ip10   coms 525 tcpip -  internet protocol - ip
10 coms 525 tcpip - internet protocol - ip
Palanivel Kuppusamy
 
09 coms 525 tcpip - tcp 2
09   coms 525 tcpip - tcp 209   coms 525 tcpip - tcp 2
09 coms 525 tcpip - tcp 2
Palanivel Kuppusamy
 
08 coms 525 tcpip - tcp 1
08   coms 525 tcpip - tcp 108   coms 525 tcpip - tcp 1
08 coms 525 tcpip - tcp 1
Palanivel Kuppusamy
 
07 coms 525 tcpip - udp
07    coms 525 tcpip - udp07    coms 525 tcpip - udp
07 coms 525 tcpip - udp
Palanivel Kuppusamy
 
07 coms 525 tcpip - udp [autosaved]
07    coms 525 tcpip - udp [autosaved]07    coms 525 tcpip - udp [autosaved]
07 coms 525 tcpip - udp [autosaved]
Palanivel Kuppusamy
 
06 coms 525 tcpip - dhcp and dns
06   coms 525 tcpip - dhcp and dns06   coms 525 tcpip - dhcp and dns
06 coms 525 tcpip - dhcp and dns
Palanivel Kuppusamy
 
05 coms 525 tcpip - icmp
05   coms 525 tcpip - icmp05   coms 525 tcpip - icmp
05 coms 525 tcpip - icmp
Palanivel Kuppusamy
 
04 coms 525 tcpip - arp and rarp
04   coms 525 tcpip - arp and rarp04   coms 525 tcpip - arp and rarp
04 coms 525 tcpip - arp and rarp
Palanivel Kuppusamy
 
03 coms 525 tcpip - ip address
03   coms 525 tcpip -  ip address03   coms 525 tcpip -  ip address
03 coms 525 tcpip - ip address
Palanivel Kuppusamy
 
01 coms 525 tcpip - networking concepts review
01   coms 525 tcpip - networking concepts review01   coms 525 tcpip - networking concepts review
01 coms 525 tcpip - networking concepts review
Palanivel Kuppusamy
 
00 coms 525 tcpip - introduction to networks
00   coms 525 tcpip -  introduction to networks00   coms 525 tcpip -  introduction to networks
00 coms 525 tcpip - introduction to networks
Palanivel Kuppusamy
 

More from Palanivel Kuppusamy (17)

16 coms 525 tcpip - routing protocols -all
16    coms 525 tcpip - routing protocols -all16    coms 525 tcpip - routing protocols -all
16 coms 525 tcpip - routing protocols -all
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocols
 
14 coms 525 tcpip - applications - snmp
14    coms 525 tcpip - applications - snmp14    coms 525 tcpip - applications - snmp
14 coms 525 tcpip - applications - snmp
 
13 coms 525 tcpip - applications - file transfer protocol
13   coms 525 tcpip - applications - file transfer protocol13   coms 525 tcpip - applications - file transfer protocol
13 coms 525 tcpip - applications - file transfer protocol
 
12 coms 525 tcpip - applications - http - telnet
12   coms 525 tcpip - applications - http - telnet12   coms 525 tcpip - applications - http - telnet
12 coms 525 tcpip - applications - http - telnet
 
11 coms 525 tcpip - internet protocol - forward
11   coms 525 tcpip - internet protocol - forward11   coms 525 tcpip - internet protocol - forward
11 coms 525 tcpip - internet protocol - forward
 
10 coms 525 tcpip - internet protocol - ip
10   coms 525 tcpip -  internet protocol - ip10   coms 525 tcpip -  internet protocol - ip
10 coms 525 tcpip - internet protocol - ip
 
09 coms 525 tcpip - tcp 2
09   coms 525 tcpip - tcp 209   coms 525 tcpip - tcp 2
09 coms 525 tcpip - tcp 2
 
08 coms 525 tcpip - tcp 1
08   coms 525 tcpip - tcp 108   coms 525 tcpip - tcp 1
08 coms 525 tcpip - tcp 1
 
07 coms 525 tcpip - udp
07    coms 525 tcpip - udp07    coms 525 tcpip - udp
07 coms 525 tcpip - udp
 
07 coms 525 tcpip - udp [autosaved]
07    coms 525 tcpip - udp [autosaved]07    coms 525 tcpip - udp [autosaved]
07 coms 525 tcpip - udp [autosaved]
 
06 coms 525 tcpip - dhcp and dns
06   coms 525 tcpip - dhcp and dns06   coms 525 tcpip - dhcp and dns
06 coms 525 tcpip - dhcp and dns
 
05 coms 525 tcpip - icmp
05   coms 525 tcpip - icmp05   coms 525 tcpip - icmp
05 coms 525 tcpip - icmp
 
04 coms 525 tcpip - arp and rarp
04   coms 525 tcpip - arp and rarp04   coms 525 tcpip - arp and rarp
04 coms 525 tcpip - arp and rarp
 
03 coms 525 tcpip - ip address
03   coms 525 tcpip -  ip address03   coms 525 tcpip -  ip address
03 coms 525 tcpip - ip address
 
01 coms 525 tcpip - networking concepts review
01   coms 525 tcpip - networking concepts review01   coms 525 tcpip - networking concepts review
01 coms 525 tcpip - networking concepts review
 
00 coms 525 tcpip - introduction to networks
00   coms 525 tcpip -  introduction to networks00   coms 525 tcpip -  introduction to networks
00 coms 525 tcpip - introduction to networks
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 

02 coms 525 tcpip - introduction to tcpip

  • 1. 1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry – 605014. LECTURE 3 COMS 525: TCPIP COURSE TOPIC
  • 2. TOPICS TO BE COVERED • TCPIP • Layered Architecture • Functions • Layered Communications • Different Views of Layers • Encapsulation and Demultiplexing • Summary
  • 3. Why TCP/IP is so popular? • TCP/IP was developed very early • Technologies were widely discussed and circulated in documents called “Request for Comments” (RFC) – free of charge • Supported by UNIX operating system
  • 4. 4 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 OSI 7-layerTCP/IP Protocol Suite FTP, SMTP, Telnet, HTTP,… TCP, UDP IP, ARP, ICMP Network Interface
  • 5. TCP/IP Model Application Layer Application programs using the network Transport Layer (TCP/UDP) Management of end-to-end message transmission, error detection and error correction Network Layer (IP) Handling of datagrams : routing and congestion Data Link Layer Management of cost effective and reliable data delivery, access to physical networks Physical Layer Physical Media
  • 6. 6 • Application layer protocols define the rules when implementing specific network applications • Rely on the underlying layers to provide accurate and efficient data delivery • Typical protocols: • FTP – File Transfer Protocol • For file transfer • Telnet – Remote terminal protocol • For remote login on any other computer on the network • SMTP – Simple Mail Transfer Protocol • For mail transfer • HTTP – Hypertext Transfer Protocol • For Web browsing Application Layer Protocols
  • 7. 7 • TCP/IP is built on “connectionless” technology, each datagram finds its own way to its destination • Transport Layer protocols define the rules of • Dividing a chunk of data into segments • Reassemble segments into the original chunk • 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 Transport Layer Protocols
  • 8. 8 • Network layer protocols define the rules of how to find the routes for a packet to the destination • It only gives best effort delivery. Packets can be delayed, corrupted, lost, duplicated, out-of-order • Typical protocols: • IP – Internet Protocol • Provide packet delivery • ARP – Address Resolution Protocol • Define the procedures of network address / MAC address translation • ICMP – Internet Control Message Protocol • Define the procedures of error message transfer Network Layer Protocols
  • 10. TCP/IP Protocol Suite  The TCP/IP protocol suite is the protocol architecture of the Internet  The TCP/IP suite has four layers: Application, Transport, Network, and Data Link Layer  End systems (hosts) implement all four layers. Gateways (Routers) only have the bottom two layers. 10 Application Transport Network Operating system User-level programs Data Link Data Link Media Access Control (MAC) Sublayer in Local Area Networks
  • 11. Functions of the Layers • Data Link Layer: – Service: Reliable transfer of frames over a link Media Access Control on a LAN – Functions: Framing, media access control, error checking • Network Layer: – Service: Move packets from source host to destination host – Functions: Routing, addressing • Transport Layer: – Service: Delivery of data between hosts – Functions: Connection establishment/termination, error control, flow control • Application Layer: – Service: Application specific (delivery of email, retrieval of HTML documents, reliable transfer of file) – Functions: Application specific 11
  • 12. TCP/IP Suite and OSI Reference Model Application Layer Application Layer Presentation Layer Session Layer Transport Layer Network Layer (Data) Link Layer Physical Layer Transport Layer Network Layer OSI Reference Model (Data) Link Layer TCP/IP Suite 12 The TCP/IP protocol stack does not define the lower layers of a complete protocol stack
  • 13. 13 Assignment of Protocols to Layers Network Layer Routing Protocols PIM OSPF RIP Application Layer Data Link Layer IP ARP Ethernet Network Interface Transport Layer TCP UDP SNMPFTP DNSHTTP ICMP IGMP ping application Telnet DHCP
  • 14. Layered Communications • An entity of a particular layer can only communicate with: 1. a peer layer entity using a common protocol (Peer Protocol) 2. adjacent layers to provide services and to receive services 14 N+1 Layer Entity N+1 Layer Entity N+1 Layer Protocol N+1 Layer N-1 Layer Entity N-1 Layer Entity N-1 Layer Protocol N-1 Layer N Layer Entity N Layer Entity N Layer Protocol N Layer layer N+1/N interface layer N/N-1 interface
  • 15. Layered Communications A layer N+1 entity sees the lower layers only as a service provider Service Provider N+1 Layer Entity N+1 Layer Entity N+1 Layer Peer Protocol Request Delivery Indicate Delivery
  • 16. Service Access Points • A service user accesses services of the service provider at Service Access Points (SAPs) • A SAP has an address that uniquely identifies where the service can be accessed 16 Layer-N Entity N Layer Layer- N-1 Entity N-1 Layer layer N/N-1 service interface Layer N-1 SAP
  • 17. Exchange of Data • The unit of data send between peer entities is called a Protocol Data Unit (PDU) • For now, let us think of a PDU as a single packet • Scenario: Layer-N at A sends a layer-N PDU to layer-N at B • What actually happens: – A’s layer-N passes the PDU to one the SAPs at layer-N-1 – Layer-N-1 entity at A constructs its own (layer-N-1) PDU which it sends to the layer-N-1 entity at B – PDU at layer-N-1 = layer-N-1 Header + layer –N PDU N Layer Entity PDU (at layer N) N Layer Entity A B
  • 18. 18 Exchange of DataLayer-N Entity N PDU Layer- N-1 Entity Layer-N PDU and control data is sent to SAP of Layer-N-1 SAPs control N PDUcontrol Header (of layer N-1) N PDU PDU of Layer-N-1 Layer-N Entity Layer- N-1 Entity A B Exchange of Data
  • 19. Layers in the Example HTTP TCP IP argon.tcpip- lab.edu 128.143.137.144 Ethernet Ethernet Ethernet IP HTTP TCP IP neon.tcpip-lab.edu 128.143.71.21 Ethernet router71.tcpip- lab.edu 128.143.137.1 00:e0:f9:23:a8:20 router137.tcpip- lab.edu 128.143.71.1 HTTP protocol TCP protocol IP protocol Ethernet IP protocol Ethernet
  • 20. 20 Layers in the Example HTTP TCP IP argon.tcpip- lab.edu 128.143.137.144 Ethernet Ethernet Ethernet IP HTTP TCP IP neon.tcpip-lab.edu 128.143.71.21 Ethernet router71.tcpip- lab.edu 128.143.137.1 00:e0:f9:23:a8:20 router137.tcpip- lab.edu 128.143.71.1 Send HTTP Request to neon Establish a connection to 128.143.71.21 at port 80Open TCP connection to 128.143.71.21 port 80 Send a datagram (which contains a connection request) to 128.143.71.21 Send IP datagram to 128.143.71.21 Send the datagram to 128.143.137.1 Send Ethernet frame to 00:e0:f9:23:a8:20 Send Ethernet frame to 00:20:af:03:98:28 Send IP data-gram to 128.143.71.21 Send the datagram to 128.143.7.21 Frame is an IP datagram Frame is an IP datagram IP datagram is a TCP segment for port 80
  • 21. Layers and Services  Service provided by TCP to HTTP: ◦ reliable transmission of data over a logical connection  Service provided by IP to TCP: ◦ unreliable transmission of IP datagrams across an IP network  Service provided by Ethernet to IP: ◦ transmission of a frame across an Ethernet segment  Other services: ◦ DNS: translation between domain names and IP addresses ◦ ARP: Translation between IP addresses and MAC addresses 21
  • 23. Encapsulation and Demultiplexing • As data is moving down the protocol stack, each protocol is adding layer-specific control information 23 HTTP TCP IP Ethernet User data User dataHTTP Header TCP Header TCP HeaderIP Header TCP HeaderIP Header Ethernet Header Ethernet Trailer IP datagram TCP segment Ethernet frame User dataHTTP Header User dataHTTP Header User dataHTTP Header
  • 24. Encapsulation and Demultiplexing  Let us look in detail at the Ethernet frame between Argon and the Router, which contains the TCP connection request to Neon.  This is the frame in hexadecimal notation. 00e0 f923 a820 00a0 2471 e444 0800 4500 002c 9d08 4000 8006 8bff 808f 8990 808f 4715 065b 0050 0009 465b 0000 0000 6002 2000 598e 0000 0204 05b4 24
  • 25. Parsing the information in the frame 25 version 0x4 header length 0x5 Type of Service/TOS 0x00 total length (in bytes) 0x002c Identification 0x9d08 flags 0102 fragment offset 00000000000002 cource IP address 128.143.137.144 destination IP address 128.143.71.21 time-to;ive 0x80 protocol 0x06 header checksum 0x8bff source port number 162710 destination port number 8010 sequence number 0x0009465b acknowledgement number 0x00000000 header length 0x6 unused 0000002 flags 0000102 window size 819210 TCP checksum 0x598e urgent pointer 0x0000 maximum segment size 146010 option type 0x02 option length 0x04 destination address 00:e0:f9:23:a8:20 source address 0:a0:24:71:e4:44 type 0x0800 4 bytes CRC Ethernet header (14 bytes) IP Header (20 bytes) TCP Header (24 bytes) Ethernet trailer (4 bytes)
  • 26. 26 Application dataTCP HeaderIP HeaderEthernet Header Ethernet Trailer Ethernet frame destination address source address type 6 bytes CRC 4 bytes Encapsulation and Demultiplexing: Ethernet Header
  • 27. Encapsulation and Demultiplexing: Ethernet Header 27 00:e0:f9:23:a8:20 0:a0:24:71:e4:44 0x0800 6 bytes CRC 4 bytes Application dataTCP HeaderIP HeaderEthernet Header Ethernet Trailer Ethernet frame
  • 28. 28 Application dataTCP HeaderEthernet Header Ethernet Trailer Ethernet frame IP Header DS ECN version (4 bits) header length Total Length (in bytes) (16 bits) Identification (16 bits) flags (3 bits) Fragment Offset (13 bits) Source IP address (32 bits) Destination IP address (32 bits) TTL Time-to-Live (8 bits) Protocol (8 bits) Header Checksum (16 bits) 32 bits Encapsulation and Demultiplexing: IP Header
  • 29. 29 Application dataTCP HeaderEthernet Header Ethernet Trailer Ethernet frame IP Header 0x0 0x00x4 0x5 4410 9d08 0102 00000000000002 128.143.137.144 128.143.71.21 12810 0x06 8bff 32 bits Encapsulation and Demultiplexing: Ethernet Header
  • 30. Sequence number (32 bits) Source Port Number Destination Port Number Acknowledgement number (32 bits) window size header length 0 Flags TCP checksum urgent pointer 32 bits length Max. segment size option type 30 Application dataEthernet Header Ethernet Trailer Ethernet frame IP Header TCP Header Option: maximum segment size Encapsulation and Demultiplexing: TCP Header
  • 31. 60783510 162710 8010 010 819210 610 0000002 0000102 0x598e 00002 32 bits 410 146010210 Application dataEthernet Header Ethernet Trailer Ethernet frame IP Header TCP Header Encapsulation and Demultiplexing: Ethernet Header
  • 32. Application dataEthernet Header Ethernet Trailer Ethernet frame IP Header TCP Header No Application Data in this frame Encapsulation and Demultiplexing: Application Data
  • 33. Different Views of Networking
  • 34. Different Views of Networking • Different Layers of the protocol stack have a different view of the network. This is HTTP’s and TCP’s view of the network. 34 HTTP client TCP client Argon 128.143.137.144 HTTP server TCP server Neon 128.143.71.21 IP Network HTTP server TCP server
  • 35. 35 Network View of IP Protocol
  • 36. Network View of Ethernet • Ethernet’s view of the network