1. Explain Explain Difer Diferent ent layers layers o OSI model? model? The OSI model is a layered layered ramework or the design o network systems that allows allows commn commnica icatio tion n !etwe !etween en all types types o compt compter er system systems. s. It consists o se"en separate !t related layers# each o which de$nes a part o the proce process ss o mo"ing mo"ing inor inormat mation ion across across a networ network. k. The difer diferent ent layers in OSI model are represented represented in the ollowing $gre. 7
6 5 4 3 2 1
%pplication &resentation Session Transport 'etwork Data link &hysical
1. Physical Layer: The physical layer coordinates the nctions re(ired to car carry a !it !it str stream eam o"er o"er a phys physic ical al medi medim m.. It deal deals s with with the the mecha echani nica call and and ele electr ctrical cal sp spec eci$ i$c catio ations ns o the int intera erace ce and and transmission medim. It also de$nes the procedres and nctions that physical de"ices and interaces ha"e to perorm or transmission to Occr. )igre shows the position o the physical layer with respect to the transmission medim and the data link layer. layer.
The physical layer is also concerned concerned with the ollowing* ollowing* Physical character characteristi istics cs of interface interfaces s and medium: medium: The a. Physical physical layer de$nes the characteristics o the interace !etween the de"ices and the transmission medim. It also de$nes the type o transmission medim. !. Representation of bits* The physical layer data consists o a stream o !its +se(ence o Os or 1s, with no interpretation. To !e transmitted# !its mst !e encoded into signals--electrical or
optical. The physical layer de$nes the type o encoding +how Os and I s are changed to signals,.
Data rate: The transmission rate-the nm!er o !its sent c. each second-is also de$ned !y the physical layer. d. ynchroni!ation of bits: The sender and recei"er not only mst se the same !it rate !t also mst !e synchronied at the !it le"el. In other words# the sender and the recei"er clocks mst !e synchronied. e.Line con"#uration: The physical layer is concerned with the connection o de"ices to the media. In a point-to-point con$gration# two de"ices are connected throgh a dedicated link. In a mltipoint con$gration# a link is shared among se"eral de"ices. . Physical topolo#y: The physical topology de$nes how de"ices are connected to make a network. De"ices can !e connected !y sing a mesh topology +e"ery de"ice is connected to e"ery other de"ice,# a star topology +de"ices are connected throgh a central de"ice,# a ring topology +each de"ice is connected to the next# orming a ring,# a !s topology +e"ery de"ice is on a common link,# or a hy!rid topology +this is a com!ination o two or more topologies,. g. $ransmission mode: The physical layer also de$nes the direction o transmission !etween two de"ices* simplex# haldplex# or ll-dplex. /. Data Lin% Layer: The data link layer is responsi!le or mo"ing rames rom one hop +node, to the next. It makes the physical layer appear error-ree to the pper layer +network layer,. The ollowing )igre shows the relationship o the data link layer to the network and physical layers.
Other responsi!ilities o the data link layer inclde the ollowing* a. &ramin#: The data link layer di"ides the stream o !its recei"ed rom the network layer into managea!le data nits called rames. !. Physical addressin#: I rames are to !e distri!ted to diferent systems on the network# the data link layer adds a header to the rame to de$ne the sender and0or recei"er o the rame. I the rame is intended or a system otside the senders network# the recei"er address is the address o the de"ice that connects the network to the next one. c. &lo' control: I the rate at which the data are a!sor!ed !y the recei"er is less than the rate at which data are prodced in the
sender# the data link layer imposes a 2ow control mechanism to a"oid o"erwhelming the recei"er. d. (rror control: The data link layer adds relia!ility to the physical layer !y adding mechanisms to detect and retransmit damaged or lost rames. It also ses a
mechanism to recognie dplicate rames. Error control is normally achie"ed throgh a trailer added to the end o the rame. e. )ccess control* 3hen two or more de"ices are connected to the same link# data link layer protocols are necessary to determine which de"ice has control o"er the link at any gi"en time. 4. *et'or% Layer: The network layer is responsi!le or the deli"ery o indi"idal packets rom the sorce host to the destination host possi!ly across mltiple networks +links,. 3hereas the data link layer o"ersees the deli"ery o the packet !etween two systems on the same network +links,# the network layer ensres that each packet gets rom its point o origin to its $nal destination. I two systems are connected to the same link# there is sally no need or a network layer. The ollowing shows the relationship o the network layer to the data link and transport layers.
Other responsi!ilities o the network layer inclde the ollowing* a. Lo#ical addressin#: The physical addressing implemented !y the data link layer handles the addressing pro!lem locally. I a packet passes the network !ondary# we need another addressing system to help distingish the sorce and destination systems. The network layer adds a header to the packet coming rom the pper layer that# among other things# incldes the logical addresses o the sender and recei"er. !. Routin#: 3hen independent networks or links are connected to create internetworks +network o networks, or a large network# the connecting de"ices +called routers or switches) rote or switch the packets to their $nal destination. One o the nctions o the network layer is to pro"ide this mechanism. 4. $ransport Layer: The transport layer is responsi!le or process-toprocess deli"ery o the entire message. % process is an application program rnning on a host. 3hereas the network layer o"ersees sorce-to-destination deli"ery o indi"idal packets# it does not recognie any relationship !etween those packets. It treats each one independently# as thogh each piece !elonged to a separate message# whether or not it does. The transport layer# on the other hand# ensres that the whole message arri"es intact and in order# o"erseeing !oth
error control and 2ow control at the sorce-to-destination le"el. The following Figure shows the relationship of the transport layer to the network and session layers.
Other responsi!ilities o the transport layer inclde the ollowing* a. er+ice,point addressin#: 5ompters oten rn se"eral programs at the same time. )or this reason# sorce-to-destination deli"ery means deli"ery not only rom one compter to the next !t also rom a speci$c process +rnning program, on one compter to a speci$c process +rnning program, on the other. The transport layer header mst thereore inclde a type o address called a service point address +or port address,. The network layer gets each packet to the correct compter6 the transport layer gets the entire message to the correct process on that compter. !. e#mentation and reassembly: % message is di"ided into transmitta!le segments# with each segment containing a se(ence nm!er. These nm!ers ena!le the transport layer to reassem!le the message correctly pon arri"ing at the destination and to identiy and replace packets that were lost in transmission. c. -onnection control: The transport layer can !e either connectionless or connection oriented. % connectionless transport layer treats each segment as an independent packet and deli"ers it to the transport layer at the destination machine. % connection oriented transport layer makes a connection with the transport layer at the destination machine $rst !eore deli"ering the packets. %ter all the data are transerred# the connection is terminated. d. &lo' control: 7ike the data link layer# the transport layer is responsi!le or 2ow control. 8owe"er# 2ow control at this layer is perormed end to end rather than across a single link. e. (rror control: 7ike the data link layer# the transport layer is responsi!le or error control. 8owe"er# error control at this layer is perormed process-to-process rather than across a single lin%: The sending transport layer makes sre that the entire message arri"es at the recei"ing transport layer withot error +damage# loss# or dplication,. Error correction is sally achie"ed throgh
retransmission
9. ession Layer: The ser"ices pro"ided !y the $rst three layers +physical# data link# and network, are not s:cient or some processes. The session layer is the network dialog controller. It esta!lishes# maintains# and synchronies the interaction among commnicating systems. Speci$c responsi!ilities o the session layer inclde the ollowing* a. Dialo# control: The session layer allows two systems to enter into a dialog. It allows the commnication !etween two processes to take place in either hal dplex +one way at a time, or ll-dplex +two ways at a time, mode. !. ynchroni!ation: The session layer allows a process to add checkpoints# or synchroniation points# to a stream o data. )or example# i a system is sending a $le o /;;; pages# it is ad"isa!le to insert checkpoints ater e"ery 1;; pages to ensre that each 1;;-page nit is recei"ed and acknowledged independently. In this case# i a crash happens dring the transmission o page 9/4# the only pages that need to !e resent ater system reco"ery are pages 9;1 to 9/4. &ages pre"ios to 9;1 need not !e resent. The ollowing )igre illstrates the relationship o the session layer to the transport and presentation layers.
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.