Layer OSI
Layer OSI
The Physical Layer defines the electrical and physical specifications for devices. In
particular, it defines the relationship between a device and a transmission medium, such as a
copper or optical cable. This includes the layout of pins, voltages, cable specifications, hubs,
repeaters, network adapters, host bus adapters and more.
To understand the function of the Physical Layer, contrast it with the functions of the Data
Link Layer. Think of the Physical Layer as concerned primarily with the interaction of a single
device with a medium, whereas the Data Link Layer is concerned more with the interactions of
multiple devices (i.e., at least two) with a shared medium. Standards such as RS-232 do use
physical wires to control access to the medium.
The major functions and services performed by the Physical Layer are:
The Data Link layer provides a means for exchanging data over a common local media. It is
responsible for the exchange of frames between nodes over the media of a physical network.
Allows the upper layers to access the media using techniques such as framing
Controls how data is placed onto the media and is received from the media using
techniques such as media access control and error detection
The Network layer, or OSI Layer 3, provides services to exchange the individual pieces of
data over the network between identified end devices. To accomplish this end-to-end transport,
Layer 3 uses four basic processes:
Addressing
Encapsulation
Routing
Decapsulation
The Network Layer provides the functional and procedural means of transferring variable
length data sequences from a source to a destination via one or more networks, while
maintaining the quality of service requested by the Transport Layer. The Network Layer
performs network routing functions, and might also perform fragmentation and reassembly, and
report delivery errors. Routers operate at this layer—sending data throughout the extended
network and making the Internet possible. This is a logical addressing scheme – values are
chosen by the network engineer. The addressing scheme is not hierarchical.
Layer 4: Transport Layer
The Transport Layer provides transparent transfer of data between end users, providing
reliable data transfer services to the upper layers. The Transport Layer controls the reliability of
a given link through flow control, segmentation/desegmentation, and error control. Some
protocols are state and connection oriented. This means that the Transport Layer can keep
track of the segments and retransmit those that fail. The Transport layer also provides the
acknowledgement of the successful data transmission and sends the next data if no errors
occurred.
The two most common Transport layer protocols of TCP/IP protocol suite are Transmission
Control Protocol (TCP) and User Datagram Protocol (UDP). Both protocols manage the
communication of multiple applications. The differences between the two are the specific
functions that each protocol implements.
UDP is a simple, connectionless protocol, described in RFC 768. It has the advantage of
providing for low overhead data delivery. The pieces of communication in UDP are called
datagrams. These datagrams are sent as "best effort" by this Transport layer protocol.
Web Browsers
E-mail
File Transfers
As the name of the Session layer implies, functions at this layer create and maintain
dialogs between source and destination applications. The Session layer handles the exchange
of information to initiate dialogs, keep them active, and to restart sessions that are disrupted or
idle for a long period of time.
The Session Layer controls the dialogues (connections) between computers. It establishes,
manages and terminates the connections between the local and remote application. It provides
for full-duplex, half-duplex, or simplex operation, and establishes checkpointing, adjournment,
termination, and restart procedures. The OSI model made this layer responsible for graceful
close of sessions, which is a property of the Transmission Control Protocol, and also for session
checkpointing and recovery, which is not usually used in the Internet Protocol Suite. The
Session Layer is commonly implemented explicitly in application environments that use remote
procedure calls.
Coding and conversion of Application layer data to ensure that data from the source device
can be interpreted by the appropriate application on the destination device.
Compression of the data in a manner that can be decompressed by the destination device.
Encryption of the data for transmission and the decryption of data upon receipt by the
destination.
Presentation layer implementations are not typically associated with a particular protocol
stack. The standards for video and graphics are examples. Some well-known standards for
video include QuickTime and Motion Picture Experts Group (MPEG). QuickTime is an Apple
Computer specification for video and audio, and MPEG is a standard for video compression and
coding.
The Application Layer is the OSI layer closest to the end user, which means that both
the OSI application layer and the user interact directly with the software application. This layer
interacts with software applications that implement a communicating component. Such
application programs fall outside the scope of the OSI model. Application layer functions
typically include identifying communication partners, determining resource availability, and
synchronizing communication. When identifying communication partners, the application layer
determines the identity and availability of communication partners for an application with data to
transmit. When determining resource availability, the application layer must decide whether
sufficient network or the requested communication exists. In synchronizing communication, all
communication between applications requires cooperation that is managed by the application
layer.