tcp/ip introduction
TRANSCRIPT
![Page 1: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/1.jpg)
TCP/IPTCP/IP
![Page 2: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/2.jpg)
• Why we should know this?
• Because we do not use any GUI (Wireshark)
when we are on a remote machine.
• We rely on CLI?
• A thorough and packet/bit -level knowledge
is required for packet / protocol analysis.
ANSWER THE QUESTIONS
![Page 3: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/3.jpg)
• TCP/IP is multi-layered.
•Means - one functionality is running at one
layer and another functionality running at
another layer.
INTRODUCTION – TCP/IP
![Page 4: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/4.jpg)
•Why this layered architecture?
• Extensible
•We can add new functionality to the layer
without having to re-implement the whole
TCP/IP stack code.
INTRODUCTION – TCP/IP
![Page 5: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/5.jpg)
• There are two basic architectures to follow
when talking about layers.
• TCP/IP reference model
• OSI (Open Systems Interconnect) Reference
Model
INTRODUCTION – TCP/IP
![Page 6: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/6.jpg)
INTRODUCTION – TCP/IP
![Page 7: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/7.jpg)
• A packet originating from the source
computer traverse through the layers from top
layer to bottom.
• Each layer adds its own set of headers to the
packet.
• At the destination, the packets traverse from
bottom layer to the top layer.
HOW IT WORKS?
![Page 8: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/8.jpg)
• At each layer, the headers are stripped out of
the packet.
• These header give the destination host all the
information needed to process the packet.
HOW IT WORKS?
![Page 9: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/9.jpg)
OSI MODEL
9
![Page 10: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/10.jpg)
• Sending process passes data to the
application layer.
• The application layer attaches an application
header and then passes the frame to the next
layer (presentation layer) – known as
encapsulation.
LET’S GET SOME MORE DETAILS
![Page 11: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/11.jpg)
• The process of adding headers is repeated
from layer to layer until the frame reaches the
data link layer.
• There, in addition to a data-link header, a
data-link trailer is added.
• The data-link trailer contains a checksum and
padding if needed.
LET’S GET SOME MORE DETAILS
![Page 12: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/12.jpg)
•Why Checksum?
• For error detection
•Why padding?
• For frame synchronization
LET’S GET SOME MORE DETAILS
![Page 13: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/13.jpg)
HEADER PAYLOAD TRAILER
![Page 14: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/14.jpg)
A TCP PACKET
DATA DATA
T
C
P
I
P
F
R
A
M
E
T
R
A
I
L
E
R
![Page 15: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/15.jpg)
• PDU = Protocol Data Unit
• Information that is delivered as a unit.
• Consists of layer's Header, Trailer and Data
encapsulated.
PDU
![Page 16: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/16.jpg)
• Process of taking one Protocol Data Unit
(PDU) and enveloping it within a set of protocol
header and trailer.
ENCAPSULATION & PDU
![Page 17: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/17.jpg)
• Each layer may add a Header and a Trailer to
its PDU as it proceeds through the layers.
• The Headers contain information that
specifically addresses layer-to-layer
communication
ENCAPSULATION & PDU
![Page 18: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/18.jpg)
• Packet – PDU @ Layer 3 (Network Layer)
• Frame – PDU @ Layer 2 (Data Link)
ENCAPSULATION & PDU
![Page 19: TCP/IP Introduction](https://reader031.vdocument.in/reader031/viewer/2022022200/58a894c11a28ab68208b5b5d/html5/thumbnails/19.jpg)
PACKETS VS FRAMES
19