Lec6_TCP-IP_reference model
Lec6_TCP-IP_reference model
INTRODUCTION TO NETWORKING
-Sem-V
TCP/IP Protocol Suite
2
the Internet Protocol (IP)(layer 3), which were the first two networking
protocols defined in this standard.
TCP/IP Protocol Suite
3
TCP/IP Protocol Suite
4
TCP/IP Protocol Suite
5
The router
Each device is involved with a set of layers depending on the role of the device
in the internet.
TCP/IP Protocol Suite
6
The connections that are in the same link uses only one set of protocols. If the
links are different then the set of protocols are also different
TCP/IP Protocol Suite
7
Layer 5
Layer 4
Layer 3
Layer 2
Layer 1
TCP/IP Layer Functions
8
Application layer
User interacts directly with the application software, where application process
creates user data and transmits this data to other application process on same
or another host via one of the transport layer protocol (TCP or UDP).
Application layer protocols:
HTTP(hyper text transfer protocol): It is the protocol that web browsers and
web servers use to communicate with each other.
FTP protocol : Used to exchange computer files within hosts. Setting up an
FTP server becomes necessary for businesses that manage their own network
and need to establish a file transfer (exchange of documents) between
company employees.
DNS protocol: Domain names are alphabetic which are easier to remember.
Internet is however based on IP addresses.DNS involves converting a host
name into its IP address.
TCP/IP Layer Functions
9
Transport Layer
The transport layer receives the data from the application layer and splits it into
separate packets, with an order number and port number.
It is also responsible for error and flow control
Transport Layer Protocols:
TCP - is a connection-oriented protocol.
Network Layer
The network layer is responsible for attaching the sender and destination IP
address.
The IP addresses combined with the ports create sender and receiver sockets.
It is also responsible for packet routing, forwarding the data packets to the next
router towards their destination.
Network Layer Protocols:
The protocol at the network layer is called the Internet protocol.
IP prepares segments received from Transport layer for delivery by splitting
them into units called IP datagrams.
IP attaches an IP header to the segment or packet's header, in addition to the
information that is added by TCP or UDP. Information in the IP header includes
the IP addresses of the sending and receiving hosts.
TCP/IP Layer Functions
11
Physical layer
It provides the hardware means of sending and receiving data on a carrier.
Functions
1.Representation of Bits: Data in this layer consists of stream of bits. The bits must
be encoded into signals for transmission. It defines the type of encoding i.e. how
0's and 1's are changed to signal.
2. Data Rate: This layer defines the rate of transmission which is the number of bits
per second.
3. Synchronization: It deals with the synchronization of the transmitter and
receiver. The sender and receiver are synchronized at bit level.
4. Interface: The physical layer defines the transmission interface between devices
and transmission medium.
TCP/IP Layer Functions
13
Physical layer
5. Line Configuration: This layer connects devices with the medium: Point to
Point configuration(dedicated link between 2 devices) and Multipoint
configuration(shared link between more than 2 devices)
6.Topologies: Devices must be connected using the following topologies: Mesh,
Star, Ring and Bus.
7.Transmission Modes: Physical Layer defines the direction of transmission
between two devices: Simplex(signals can flow only in one direction), Half
Duplex(signals can flow in both directions not at the same time). Full
Duplex(signals can flow in both directions at the same time).
Similarities between OSI and TCP/IP Reference Models
14
In both models the layers up through and including the transport layer are there
to provide an end-to-end, network-independent transport service to processes
wishing to communicate.
Again in both models, the layers above transport are application-oriented users
of the transport service.
Difference between OSI and TCP/IP Reference Models
15
Difference between OSI and TCP/IP Reference Models
16 OSI TCP/IP
1. The OSI model has three concepts: 1. The TCP/IP model does not make a clear
Services, Interfaces and Protocols distinction between services, interfaces and
protocols
2. The OSI model has 7 layers. 2. The TCP/IP model has only 5 layers.
The layers are- Application, Presentation, The layers are - Application, Transport,
Session, Transport, Network, Data Link, Network, Data Link, Physical
Physical
3. Separate Presentation and Session Layer 3. TCP/IP combines the presentation and
session layer into its application layer
4. The OSI model supports both connectionless 4. The TCP/IP model has only connectionless
and connection-oriented communication in mode in the network layer but supports both
the network layer, but only connection modes in the transport layer, giving the
oriented communication in the transport users a choice
layer
Physical and Logical Addressing
17
1 packet
87 10 Data accepted
87 10 Data
4
Physical Address
18
A node with physical address 10 sends a frame to a node with physical address
87. The two nodes are connected by a LAN.
At the data link layer, this frame contains physical (link/MAC) addresses in the
header.. The trailer usually contains extra bits needed for error detection.
The data link layer at the sender receives data from an upper layer. It
encapsulates the data in a frame, adding a header and a trailer. The header,
among other pieces of information, carries the receiver and the sender physical
(link) addresses.
The frame is propagated through the LAN. Each node with a physical address
other than 87 drops the frame because the destination address in the frame does
not match its own physical address.
The intended destination computer, finds a match between the destination
address in the frame and its own physical address.
The frame is checked, the header and trailer are dropped, and the data part is
decapsulated and delivered to the upper layer.
Logical Address
19
IP address: Defines the host among the different hosts in the world.
After host is selected , the port address defines one of the processes on this
particular host.