Understanding OSI and TCP/IP Models
Understanding OSI and TCP/IP Models
2 network models
• ISO –OSI
• TCP/IP
LAYERED TASKS
• It provides a means by which changes in functionality in one layer does not require
changes in other layers by Standardizing interfaces. i.e. It standardizes network
components to allow multiple vendor development and support. i.e. It allows different
types of network hardware and software to communicate with each other
(interoperability).
OSI model
• Layer 1,2,3 : n/w support layers deals with physical moving of data from one
device to next. Implemented as combination of H/W and S/W. except lowest
physical which is implemented in H/W.
NIC switch
Network layer
The network layer is responsible for the delivery of individual packets from
the source host(node) to the destination host(node) connected in different
networks
Source-to-destination delivery
The network layer is responsible for the delivery of individual packets from the source host to the
destination host connected different networks,
Whereas DLL oversees delivery of frame between two systems on same n/w.
So if two systems are connected by single link ,then NL is not required in either systems.
Functions of NL:
• Logical addressing: ( DLL uses physical address, but across different networks a
logical address is required) which is called Internet Protocol (IP) address
• Routing: protocols to decide to which path a packet has to be sent so that it
reaches RX
• Connection model: connection-oriented and connectionless communication
Devices having NL
Routers gateways
Transport layer
• The transport layer is responsible for the delivery
of entire message from one process/application to another.
• A process is an application program running on a host. In destination there can be no. of
applications running . For this each process must be given an address called port
address.
• NL does not recognize any relationship between packets of same message , but TL can .
So TL at Rx combines all packets of same message and gives it to intended
application/process
Reliable process-to-process delivery of a message
Analogy :
A letter to one particular person , out of many persons living in same
house
Functions of Transport layer
• Segmentation and reassembly: Segmentation of message at TX and reassembly at
Rx.
• Connection control : connection oriented or connectionless.
• Flow control : similar to DLL but here it is end to end. In DLL it is hop to hop ( node to
node)
• Error control: similar to DLL but here it is process to process than hop to hop as in
DLL. To make sure entire message arrives at Rx w/o error( loss, duplication, damage)
Eg of protocols used at TL
• Transmission Control Protocol (TCP)
• User Datagram Protocol (UDP)
The Session Layer
Functions ( services ) of session layer
A Allow access to N/W ,Helps Application that URL , computer HTTP, FTP, DNS, X.400
need to communicate to other nodes APDU
eg. email, remote file access & transfer, website
access
P Translation , Encryption , -- computer telnet, X.25 PAD,
Compression
S Session mgmt ( start, manage, -- , message computer PAP,RPC ,SMPP
stop),Authentication , Permissions
Session restoration
T Process to process delivery, Segmentation Port address, computer TCP, UDP
and reassembly , Connection control , Flow (16 bit),
control , Error control Message,
segment
N Source to destination delivery, Routing , Logical (IP) address Router, gateway IP , ICMP, IGMP,
Connection model (32 bit) , Packet
D Node to Node delivery, Framing , Flow Physical (MAC) NIC, switch 802.11, 802.2 , 802.
control , Error control , Access control address, (48 bit), (eternet) ,PPP
Frame
P Convert data to signal and vice versa , Bit NIC, hub 802.11,RS232, SONET,
electrical and mechanical specifications of Tx ,repeater 10baseT, X.25
media , encoding, mux ,data rate
Summary of functions of layers
Internet Protocol Suite (TCP/IP) PROTOCOL SUITE
It is named from two of the most important protocols in it: the Transmission
Control Protocol (TCP) and the Internet Protocol (IP), which were the first two
networking protocols defined in this standard.
Apart from these two , there are various other protocols in Internet protocol
suite.
It was first used in ARPANET ( by U.S. defense)
To connect military networks
So it was robust to failures & flexible to connect different types of networks.
Then it was given to govt. agencies & Universities.
The TCP/IP protocol suite was developed prior to the OSI model. Therefore, the layers in the TCP/IP
protocol suite do not exactly match those in the OSI model
TCP/IP does not define any specific protocol at PL and DLL , it supports all
Protocols.
Internet layer
Internet layer Uses internetworking protocol (IP )
IPv4 uses 32 bit addresses , current IPv6 uses 128 bit addr.
• Address Resolution Protocol (ARP) is the method for finding a host's link
layer (physical/MAC) address when only its Internet Layer (logical/IP)
address is known.
• Reverse Address Resolution Protocol (RARP) used by a host computer to
obtain its Internet Protocol (IPv4) address when it has only its physical
address , but RARP is now obsolete and replaced by DHCP which has
more features.
• The Internet Control Message Protocol (ICMP) :used by networked
computers' operating systems to send error messages—indicating, for
instance, that a requested service is not available or that a host or router
could not be reached.
Eg
The Internet Group Management Protocol (IGMP) is a communications protocol used to
manage the membership of Internet Protocol multicast groups. IGMP is used by IP hosts
and adjacent multicast routers to establish multicast group memberships
Transport layer
The protocol used in this layer is Transmission control protocol(TCP)
the TCP makes delivery from a process in source system to a process in destination
system. for example a Web browser and a Web server.
functions of TCP :
• provides connection oriented ,
• Reliable ( error control)
• ordered delivery ( re sequencing of segments at Rx).
• controls segment size,
• Flow control the rate at which data are exchanged and to reduce network traffic
congestion.
TCP packet header details
SCTP: stream control Transport protocol:
developed for newer application eg VoIP .
It combines UDP and TCP’s best features.
User Datagram Protocol (UDP)
• The User Datagram Protocol (UDP)
• UDP uses a simple transmission model
• without hand-shaking dialogues ( connection less)
• So NO reliability, ordering, or data integrity. Thus, UDP provides an
unreliable service and datagrams may arrive out of order, appear
duplicated, or go missing without notice. UDP assumes that error checking
and correction is either not necessary or performed in the application, avoiding the
overhead of such processing at the network interface level.
• applications of UDP :
• the Domain Name System (DNS), streaming media applications such as
IPTV, Voice over IP (VoIP), Trivial File Transfer Protocol (TFTP) and many
online games.
UDP header
Comparison between OSI and TCP/IP contd …
OSI TCP/IP
It has 7 layers ( APSTNDP) It has 4 layers (ATIN)
OSI is a generic, protocol independent standard TCP/IP model is based on standard protocols Used in
internet of the world.
OSI is a reference model around which the networks TCP/IP model is, in a way implementation of the OSI
are built. Generally it is used as a guidance tool. More model.
commonly used as teaching aids. De-jure De-facto
Follows vertical approach. (Corresponding Layers Follows horizontal approach. (Adjacent Layers
communicate) communicate)
OSI model has a separate Presentation layer and TCP/IP does not have a separate Presentation layer
Session layer. or Session layer.
The model came first, and the protocols later The protocols came first, and the model later was
really just a description of the existing protocols.
Transport Layer is Connection Oriented Transport Layer is Connection Oriented
Network Layer is both Connection Oriented and Network Layer is Connection less.
Connection less.
OSI model has a problem of fitting the protocols
into the model.( some protocols combine functions TCP/IP does not have very strict
of various layers) because OSI has strict boundaries.
boundaries;
OSI model defines services, interfaces and In TCP/IP, services, interfaces and protocols are not
protocols very clearly and makes clear distinction clearly separated. It is also protocol dependent.
between them. It is protocol independent.
The Presentation Layer Not found in TCP/IP model The Session layer Not found in TCP/IP model .In
In TCP/IP, this function is provided by the TCP/IP,its characteristics are provided by the TCP
Application Layer. protocol. (Transport Layer)
addressing
07:01:02:01:2C:4B
• A MAC address is a unique 48 bit network hardware identifier that is burned into a ROM
chip on the NIC( network interface card) to identify that device on the network. The first
24 bits is called the Organizationally Unique Identifier (OUI) and is largely manufacturer
dependent. Each OUI allows for 16,777,216 Unique NIC address.
MAC address format
Q. How to find MAC address of computer ? Can we change it ?
Method 1 ) Press the Windows Start key to open the Start screen.
Type cmd and press Enter to launch the command prompt.
Type ipconfig /all into the command prompt.
Look for the MAC address listed as Physical address
Method 2 ) click on network icon in task bar
IP address
Next Figure shows a part of an internet with two routers connecting three LANs. Each
device (computer or router) has a pair of address (logical and physical) for each
connection. In this case, each computer is connected to only one link and therefore has
only one pair of address. Each router, however, is connected to three networks (only two
are shown in the figure). So each router has three pairs of address, one for each
connection.
A computer can find IP of a computer whose MAC is known by a protocol called ARP
And vice versa by RARP
Q how to find IP address ? Can we change it ?
Method 1 ) Press the Windows Start key to open the Start screen.
Type cmd and press Enter to launch the command prompt.
Type ipconfig /all into the command prompt.
Look for the IPV4 and IPV6 address
Method 2 ) click on network icon in task bar
Port address
Eg: [Link]
Walky talky
telephone
Type of connections:
• [Link]-to-point connection( dedicated link between two stations)
physical topology : refers to the way in which a network is laid out physically. The
topology of a network is the geometric representation of the relationship of all the
links and linking devices(usually called nodes)to one another.
Basic Categories of physical topology
consists of a single cable with a terminator at each end. All nodes (file server,
workstations, and peripherals) are connected to the cable via drop line and taps.
Advantages of a Bus Topology
• Easy to connect a computer or peripheral to a bus.
• Requires less cable length than a star topology.
Disadvantages of a Bus Topology
• Entire network shuts down if there is a break in the main cable.
• Difficult reconnection and fault isolation : a fault or break in the bus cable stops all
transmission, even between Devices on the same side of the problem.
• There is a limit on number of taps and distance between taps
Application: earlier version of ethernet LAN , but now less popular.
Ring Topology
• Each device has a dedicated point-to-point connection with only the two devices on
either side of it. A signal is passed along the ring in one direction , from device to
device , until it reaches its destination .
• A token is passed from one station to next. Only that station who has that token can
send data. Each device has to wait its turn to get the token.
Advantages
• Easy to install and reconfigure .Each device is linked to only its immediate neighbors(either
physically or logically). To add or delete a device requires changing only two connections .
The only constraints are maximum ring length and number of devices.
• fault isolation is simplified. a signal is circulating at all times. If one device does not receive a
signal within a specified period ,it can issue an [Link] alarm alerts the Network operator
to the problem and its location.
Disadvantages : In a simple ring, a break in the ring (such as a disabled station)can disable the
entire network. This
weakness can be solved by using a dual ring
Application :
IBMs token ring LAN , but less popular nowadays
hybrid topology :
A network structure whose design contains more than one topology is said to be hybrid
topology. Hybrid topology inherits merits and demerits of all the incorporating
topologies
The logical topology
in contrast to physical topology , is the way that the signals act on the network media,
or the way that the data passes through the network from one device to the next
without regard to the physical interconnection of the devices.
• A network's logical topology is not necessarily the same as its physical topology.
For example, here hub connects nodes in physical star but is configured to connect
nodes in a ring .
• Tx media is anything that can carry info from source to destination in form of EM signal.
• Different media has different properties and used for particular applications
• Classification of transmission media
Guided media:
are those that provide a conduit from one device to another . The signal is directed and
contained by physical limits of the medium .
Two subtypes:
1) Metallic media carries signal in form of electric current
2) optical media carries signal in the form of light.
Twisted-pair cable
• Why Two wires ? one for signal and one for reference or ground.
• Insulator to avoid shorting of lines .
• Why twists?
Noise affects both lines equally thus at Rx the effect
of noise gets cancelled.
• How many twists?
Number of twists per unit length decides the quality of cable.
More twists , better is the quality
Two types: UTP and STP
Unshielded : cheaper, but more affected by EM noise, more popular
Shielded : designed by IBM , metal braided mesh to prevent noise and crosstalk, but bulkier &
expensive , seldom used outside IBM.
• Categories of UTP cables by EIA ( electronics industries asso)
UTP performance
• Attenuation increases as frequency increases and decrease in thickness
UTP connector
• RJ stands for registered jack. Has 8 pins. Used in LAN
• RJ11 has 6 pins , used in land telephone system with modem.
Wiring
sequence
LAN Tester Cable extender
Coaxial cable
• Outer conductor is in the form of metallic braid used as shield for protection from noise
& to complete the circuit.
• It carries higher freq than TP
Categories of coaxial cables
Applications:
1)Was used in analog telephone networks( to carry 1000 voice channels, then for digital
telephone networks ( upto 600Mbps) But now replaced by FOC
2) Cable TV networks also used co-ax , but there also replaced by FOC
3) Ethernet LAN( Thin 10 base2 10Mbps over 200 meters , Thick 10base5 10Mbps over 500mtr)
but here also it replaced by UTP
Optical fiber
• Transmits signal in form of light.
• Is made of glass or plastic ( glass is costlier than plastic but has better quality , because
of less attenuation , more distance between repeaters ).
Fiber construction
• It consists of core and cladding both covered by buffer and jacket
• Graded index : where density changes gradually, So rays get reflected smoothly.
Single mode fiber:
they support only one mode of propagation i.e. TE or TM ; all signals have one group velocity .
• Transverse electromagnetic (TEM) modes: neither electric nor magnetic field in the direction of
propagation.
• Transverse electric (TE) modes: no electric field in the direction of propagation. These are
sometimes called H modes because there is only a magnetic field along the direction of
propagation (H is the conventional symbol for magnetic field).
• Transverse magnetic (TM) modes: no magnetic field in the direction of propagation. These are
sometimes called E modes because there is only an electric field along the direction of
propagation.
The most common type of single-mode fiber has a core diameter of 8–10 micrometers.
Uses highly focused light , (laser), and propagation of beam almost horizontal.
All beams arrive at Rx together , so least distortion as compared to multimode.
But most costly; used for long haul communication
Fiber types
Give Comparison of
• Single mode and multimode
• Step index and graded index
• TP , co-ax and FOC
Unguided media (wireless media)
• Transports/carries electromagnetic waves without using a physical conductor . eg vacuum
or air.
• Signal is available to anyone who has device capable to receive them i.e. broadcast ( one
to many).
• Eg ?
• AM radio, FM radio, TV , bluetooth , GPS ,mobile, satellite , DTH, WSN, WiFi
Electromagnetic Spectrum And Typical Applications
Since Signals take different path depending on its frequency , they are classified as.
• Ground wave
• Sky wave
• Line of sight
Electromagnetic spectrum used for wireless communication
Videos of EM propagation
Radio & micro waves
Although there is no clear-cut demarcation between radio waves and microwaves,
electromagnetic waves ranging in frequencies between 3 kHz and 1 GHz are normally
called radio waves ;
waves ranging in frequencies between 1 and 300 GHz are called microwaves.
The wavelength of radio waves ranges from 100 kilometers and 100 meters for low to
medium frequencies, to 10 meters to 1 millimeter for high frequencies( hence the name
micro- waves )
• radio waves are used for long-distance communication within the ground due to their
longer wavelengths.
• On the other hand, microwaves are used for both long & short distance communication
• short distance communication such as in mobile , WLAN via Wi-Fi network, as well as WPN
protocols such as Bluetooth and Wi-Fi Direct.
• long-distance communication (through relay links). Radio waves within frequencies
between 3 KHz and 300 MHz are reflected by the ionosphere. However, microwaves can
pass through the atmosphere because of their shorter wavelengths, thus making them
suitable for satellite communication between the ground and beyond the atmosphere.
Because of their higher frequencies, microwaves have more energy. So microwaves are used
in heating, such as in the case of microwave ovens, as well as in wireless power
transmission and direct-energy energy weaponry.
Radio Microwave
Range of freq:
Range of wavelength
Propagation by
Applications in wireless
communication
Other applications:
Radio waves: ( 3KHz to 1 GHz) ( ground & sky propagation)
These waves are Omni directional, so Tx and Rx antenna need not be aligned. So can be used for
multicasting such as AM radio, FM radio, TV, cordless phones, paging
Disadv: Waves Transmitted by one antenna can be interfered by another antenna sending a signal
having same freq band.
Applications : Radio waves using surface/ground mode r used for time signals, and for military
communications, especially with ships and submarines. Radio waves using sky mode r used for AM
radio
Microwave ( 1 to 300 GHz)
Unidirectional ( line of sight) so Tx and Rx antenna need to be aligned.
Since line of sight , Tx and Rx antenna must be put on tall towers,
Repeaters r required for long distances.
Adv: one pair of antenna does not interfere with other pair of antenna even though they may use
same freq.
High data rate possible.
Application: are used for unicast communication such as cellular telephones, satellite networks.
Infrared (300G to 400T i.e. 1 to 770 nm )
Used for very short range and line of sight
Can not penetrate walls so adv is no interference between one system and another , or from one
room to another
Appln: remote control for various gadgets
IrDA specifies standards for data communication between wireless keyboard, mice, PC, printer with
speeds 75Kbps for 8meters , and recent is 4Mbps.
industrial, scientific and medical (ISM) radio bands
• are radio bands (portions of the radio spectrum) reserved internationally for the use
of radio frequency (RF) energy for industrial, scientific and medical purposes other
than telecommunications
• 2.4- 2.4835 GHz, 5.150-5.350 GHz and 5.725 – 5.875 GHz
• Despite the intent of the original allocations, and because there are multiple allocations,
in recent years the fastest-growing uses of these bands have been for short-range, low
power communications systems.
• Wireless LAN devices use wavebands as follows:
• Bluetooth 2450 MHz band falls under WPAN
• HIPERLAN 5800 MHz band
• IEEE 802.11/Wi-Fi 2450 MHz and 5800 MHz bands
• IEEE 802.15.4, ZigBee and other personal area networks may use the 915 MHz and 2450
MHz ISM bands