Osi model

52
OSI MODEL Sunawar Khan MS(CS) IIUI

Transcript of Osi model

Page 1: Osi model

OSI MODEL

Sunawar Khan MS(CS)

IIUI

Page 2: Osi model

SK Ahsan

PROTOCOL STACK•Protocol Stack is a combination of different protocol.

•All these protocols works together to perform specific task.

•Every Layer Hs different protocol.

•We discuss aboouut layer

Page 3: Osi model

SK Ahsan

LAYERED TASK•We use the concept of layers in our daily life.

•As an example would two friends who communicate through postal email.

•The process of sending a letter to a friend would be complex if there are no service available from the post office

Page 4: Osi model

SK Ahsan

LAYERED TASKSender Receiver

The letter is written put in an envelope, and

dropped in a mailbox

The letter is delivered to carrier by the post office

The letter is carried from the mailbox to a post

office

The letter is picked up, removed from the envelop, and read

The letter is delivered to carrier by the post office

The letter is carried from the mailbox to a post

officeMiddle Layer

Lower Layer

Higher Layer

Parcel is Carried from the source to the destination

Page 5: Osi model

SK Ahsan

THE OSI MODEL• ISO is an organization which is established in 1947.

•AN ISO standard that covers all aspects of network communication.

•Network communication model is defined in OSI.

• It was first introduced in the late 1970s, 1983

Page 6: Osi model

ISO is the organization.OSI is the model.

Note

SK Ahsan

Page 7: Osi model

SK Ahsan

WHY OSI MODEL•OSI model decide how different equipment from different vendors can communicate with one another• Communication process is divided into different subtasks.•Using OSI model NETWORK HARDWARE and SOFTWARE can easily communicate with one another. • If any kind of change is required then it occurs only in required layer.

Page 8: Osi model

SK Ahsan

7 LAYERS OF OSI MODELApplication

Network process to ApplicationPresentation

Data Representation and Encryption

SessionInterhost Communication

TransportEnd to End Connection and

ReliabilityNetwork

Path Determination and IP(Logical) Add.

DataLinkMAC and LLC(Physical Addr)

PhysicalMedia, Signal and Binary

Transmission Send Packet in the form of BITS

Error Checking and Physical Connection

Sequencing and Address Information

Errors Control

Traffic Flow Information

Formatting and Encryption of Packets data

Accept request to CommunicateDATA

DATA

DATA

Segment

Packets

Frames

Bits

Page 9: Osi model

SK Ahsan

MNEMONICS•The following mnemonics may help you remember the layers sequence and names. •All People Seems To Need Data Processing.•Please Do Not Take Sales People’s Advice.•People Design Networks To Send packets Accurately•Always Put Some Thoughts Into Designing Programs.

Page 10: Osi model

SK Ahsan

LAYERING AND INTERNETWORKING

•Communication environments separate the networking functions and application processing are called LAYERING.• OSI divides the big task of host-to-host networking called INTERNETWORKING in to a vertical stack.• This OSI stack contains the seven numbered layers ,these indicate distinct functions.

Page 11: Osi model

CLIENT AND SERVER

SK Ahsan

Application

Presentation

Session

Transport

Network

Datalink

Physical

Client Server

Application

Presentation

Session

Transport

Network

Datalink

PhysicalPhysical Link

Logical Link

Page 12: Osi model

SK Ahsan Figure:The interaction between layers in the OSI model

OSI Layers Interaction

Page 13: Osi model

SK Ahsan

Transmission Medium

Figure: An exchange using the OSI model

Page 14: Osi model

SK Ahsan

ARCHITECTURE DESCRIPTION

Page 15: Osi model

SK Ahsan

PHYSICAL LAYER

Page 16: Osi model

SK Ahsan

PHYSICAL LAYER• It transmits data over physical medium or on network like hardware like cables, cards, electrical, optical, mechanical and functional interface to the medium.• It handles the transmission of raw bits over a communication link.• It is responsible for transmitting bit(ZERO and ONE) by providing signaling of the message and the interface between the sender or receiver and the medium.

Page 17: Osi model

SK Ahsan

PHYSICAL LAYER• Physical Layer must decide the following• Characteristics of Media• Representation of Bits•Data Rate• Synchronization• Line Configuration• Transmission Mode

Page 18: Osi model

The physical layer is responsible for movements of individual bits from one hop (node) to the next.

Note

Page 19: Osi model

SK Ahsan

DATALINK LAYER

Page 20: Osi model

SK Ahsan

DATA LINK LAYER• Frames not raw bits are actually delivered to the host.• The data link layer is responsible for moving frames from one hop (node) to the next.•Manage physical layer communication between connecting systems.• It is responsible for providing node to node communication on a single, local network.

Page 21: Osi model

SK Ahsan

HOP TO HOP DELIVERY

Page 22: Osi model

SK Ahsan

FUNCTIONS OF DATA LINK LAYER• It must provide an address mechanism that enable messages to be

delivered to the correct nodes. • Data units at the Data Link layer are most commonly called

frames, although the term packets is used with some protocols.• The single layer actually incorporates two sub-layers as IEEE

Logical Link Control Model.• The Lower of the two sub-layers is called the MAC and the upper

sub-layer is the LLC.• The MAC layer provides local addressing. Error correction and in

some cases includes a field to distinguish the frame type from the other types.

• Example of Data Link Standards include frame relay, ETHERNET, Token Ring and FDDI.

Page 23: Osi model

SK Ahsan

DATA LINK LAYER

•Datalink layer must decide the following•Framing •Flow control•Error Control•Access Control

Page 24: Osi model

The data link layer is responsible for moving frames from one hop (node) to the next.

Note

Page 25: Osi model

SK Ahsan

NETWORK LAYER

Page 26: Osi model

SK Ahsan

SOURCE TO DESTINATION DELIVERY

Page 27: Osi model

SK Ahsan

NETWORK LAYER• The network layer handles routing among nodes within a packet switched network.• The network layer operates independently of the physical medium, which is a concern of the physical layers.• Routers are network layer devices, they can be used to forward packets between physically different networks. • It adds a header to the message that includes the source and destination network address.• This combination of data plus the network layer is called a PACKETS

Page 28: Osi model

SK Ahsan

NETWORK LAYER• It translates logical addresses and names into physical

addresses for Packets Delivery.• The addressing which makes this delivery can be thought of

as a universal address as compared to the local addressing of the MAC.• It determines routes for sending, managing network traffic

problems, packet switching, routing, data congestion and reassembling data. • It control end-to-end flow of segmentation and reassembly

functions of large packets of data which exceed the Maximum Transmission Units.• The Internet Protocol(IP) is the most common example.

Page 29: Osi model

SK Ahsan

NETWORK LAYER

•Some responsibilities of the network layer are as follows•Logical Addressing

•Routing

Page 30: Osi model

The network layer is responsible for the delivery of individual packets from

the source host to the destination host.

Note

Page 31: Osi model

SK Ahsan

TRANSPORT LAYER

Page 32: Osi model

SK Ahsan

RELIABILITY

Page 33: Osi model

SK Ahsan

TRANSPORT LAYER

• It translates system names into addresses.• The unit of data exchange is commonly called MESSAGE rather

than a packet or frame. • It divides messages into fragments that fit within the size

limitation established by the network.• It allows users to segments/reassemble several upper layer

application on to the same transport data stream. • It ensure host to host session connection. • This layer is responsible for addressing, determining network

traffic problems, packet switching, routing, congestion and reassembling data at receiving end to recover the original message.

Page 34: Osi model

TRANSPORT LAYER

• It ensures that the segments delivered will be acknowledge back too the sender. • It provides retransmission of segments those are not acknowledged.• Puts segments back into their correct sequence at the destination. • To enable packets reassemble in their original order, this layer include a MESSAGE SEQUENCE NUMBER in its header.• Sometimes it provides a multiplexing between the same two end-points.• Delivery may be GUARANTEED or CONNECTION-ORIENTED streams like TCP or UDP SK Ahsan

Page 35: Osi model

TRANSPORT LAYER

• It is also responsible for delivering message from a specific process on one computer to the corresponding process on the destination computer. •Transport layer assigns a service access point to each packet. In TCP/IP terms that is called PORT.•One more responsibility of the transport layer is DETECTING ERRORS In transmitting data.

SK Ahsan

Page 36: Osi model

SK Ahsan

TRANSPORT LAYER•Some responsibilities of the transport layer are as follows•Service Point Addressing•Segmentation and Re-assembly•Connection Control•Flow Control•Error Control

Page 37: Osi model

The transport layer is responsible for the delivery

of a message from one process to another.

Note

Page 38: Osi model

SK Ahsan

Page 39: Osi model

SK Ahsan

SESSION LAYER

Page 40: Osi model

SK Ahsan

SESSION LAYER

• It establishes, manages and terminates session between application.• It provides mechanism for managing end-user, host, process

operations termination and restart procedures.• It is responsible for dialog control between nodes. Dialog is a formal

conversation in which two nodes agree to exchange data.• The communication across a network can take place and controlled

in one of three dialog modes are simplex, Half Duplex and Full Duplex.• Testing for out-of-sequence packet is handles also.• Session enables communication in organized manner in three

phases as Connection Establishment, Data Transfer and Connection Release.

Page 41: Osi model

SK Ahsan

PRESENTATION LAYER

Page 42: Osi model

SK Ahsan

PRESENTATION LAYER• This layer provides data communication and code formatting.• It provides a way for a remote host to inform the local client

how to present the data to the application or client.• It ensures that the data that arrives from the network can be

used by the application, and information send by the application can be transmitted on the network.• It directly translates data from one format to another. • It provides data encryptioiin, decryption, compression and

decompression. • It delivers and format information for application layer

processing.

Page 43: Osi model

SK Ahsan

PRESENTATION LAYER•Presentation Layer perform the following•Data Reformatting•Encryption

Page 44: Osi model

The presentation layer is responsible for translation,

compression, and encryption.

Note

Page 45: Osi model

SK Ahsan

APPLICATION LAYER

Page 46: Osi model

SK Ahsan

APPLICATION LAYER• The application layer provides different services to user application. • It interfaces directly to these services and provide conversion between associated application process.• It contains a variety of protocols that are commonly needed.• Another application layer function is file transfer. • Different file system have different file naming conventions. • Transferring a file between two different system requires handling all incompatibilities.

Page 47: Osi model

SK Ahsan

APPLICATION LAYER•Application Layer provide different information services as•File Transfer•Mail Services•Directory Services

Page 48: Osi model

The application layer is responsible for

providing services to the user.

Note

Page 49: Osi model

SK Ahsan

Page 50: Osi model

SUMMARY

SK Ahsan

Page 51: Osi model

SK Ahsan

REFERENCES• Behroz A Frozen, Textbook Chapter 2, Topic 2.1, 2.2• Larry and Peterson, Textbook Chapter 1

Page 52: Osi model

SK Ahsan

ABOUT• Sunawar Khan Ahsan

[email protected]• +923334892200

• More Slides Find on Slide Share• facebeek.com/sk.ahsan.ms