Professional Documents
Culture Documents
A Brief Summary On TCP/IP
A Brief Summary On TCP/IP
on TCP/IP
By : Shubham Vishwakarma
Need of communication
● data encapsulation
● accessing the media.
For data encapsulation, This layer adds a header at the beginning of the IP packet and a trailer at the end
of the IP packet .
The header contains the MAC address(A unique 6 byte address embedded in the Network Interface
Card(NIC)
The trailer contains 4 bytes of Error Checking data such as Cyclic Redundancy Check (CRC)
MAC Sub layer #2
● Flow Control
● Error Control
● Sizing of packets
A logical address gives a network device a place where it can be accessed on the network using an
address that you assign though some common protocol such as Internet Protocol (IP). The IP address
ensures that each IP packet reaches the correct destination.
TCP segment to IP packet
Routing
Routing is the method of transferring data between two computers that are situated in two different
networks. It is not needed if the source and destination are in same network because the ARP module
can provide MAC address of receiver easily as they are in same network. But when they are in different
networks the MAC address of router is used to establish a clear path. i.e. The sender packs an ethernet
frame with MAC address of Router between two networks. Then sends the ethernet frame to router .
The router upon receiving it, decapsulates to get the IP packet then uses ARP module in second network
to find MAC address of receiver.
Routing Traffic
Path determination
Transport layer uses two protocols for transferring data. Both follow the principle of division of data into
segments/datagrams. These protocols are TCP and UDP
Transmission Control Protocol (TCP)
Transmission Control Protocols supports segmentation. It divides the data into segments and adds a
header in front of each segment. It is done in three phases. That are:
● Connection establishment
● Data transfer
● Connection termination
These three steps all together are also known as three way TCP connection handshake. TCP is an
connection establishment protocol. It is slower than UDP. It is more reliable as it guarantees error
free and sequenced transmission of segments.
Difference between TCP/IP and OSI model.
TCP/IP Model OSI Model
Protocols are not strictly defined Strict boundaries for the protocols
Combines the session and presentation layer into the application layer. Has separate session and presentation layer
Protocols were developed first then model was developed Model was developed before the development of protocols
Supports only connectionless communication in the network layer Supports connectionless and connection oriented communication in the
network layer