Lecture 6 Osi Model
Lecture 6 Osi Model
PHYSICAL LAYER
Is the lowest layer and is concerned with the transmission and reception of the unstructured raw bit stream over a
physical medium. It describes the electrical/optical, mechanical, and functional interfaces to the physical medium, and
carries the signals for all of the higher layers. It provides:
1
1. Data encoding: modifies the simple digital signal pattern (1s and 0s) used by the PC to better accommodate
the characteristics of the physical medium, and to aid in bit and frame synchronization. It determines:
How the receiving station defines a frame
What signal state represents a binary 1
How the receiving station knows when a "bit-time" starts
2. Physical medium attachment, accommodating various possibilities in the medium:
3. Transmission technique: determines whether the encoded bits will be transmitted by baseband (digital) or
broadband (analog) signaling.
4. Physical medium transmission: transmits bits as electrical or optical signals appropriate for the physical
medium.
NETWORK LAYER
The network layer controls the operation of the subnet, deciding which physical path the data should take based on
network conditions, priority of service, and other factors. It provides:
Routing: routes frames among networks.
Subnet traffic control: routers (network layer intermediate systems) can instruct a sending station to "throttle
back" its frame transmission when the router's buffer fills up.
Frame fragmentation: if it determines that a downstream router's maximum transmission unit (MTU) size is
less than the frame size, a router can fragment a frame for transmission and re-assembly at the destination
station.
Logical-physical address mapping: translates logical addresses, or names, into physical addresses.
Subnet usage accounting: has accounting functions to keep track of frames forwarded by subnet intermediate
systems, to produce billing information.
Communications Subnet
The network layer software must build headers so that the network layer software residing in the subnet intermediate
systems can recognize them and use them to route data to the destination address.
This layer relieves the upper layers of the need to know anything about the data transmission and intermediate
switching technologies used to connect systems. It establishes, maintains and terminates connections across the
intervening communications facility (one or several intermediate systems in the communication subnet).
TRANSPORT LAYER
It ensures that messages are delivered error-free, in sequence, and with no losses or duplications. It relieves the higher
layer protocols from any concern with the transfer of data between them and their peers.
The size and complexity of a transport protocol depends on the type of service it can get from the network layer. For a
reliable network layer with virtual circuit capability, a minimal transport layer is required. If the network layer is
unreliable and/or only supports datagrams, the transport protocol should include extensive error detection and
recovery.
2
Message traffic control: tells the transmitting station to "back-off" when no message buffers are available.
Session multiplexing: multiplexes several message streams, or sessions onto one logical link and keeps track
of which messages belong to which sessions.
Typically, the transport layer can accept relatively large messages, but there are strict message size limits imposed by
the network (or lower) layer. Consequently, the transport layer must break up the messages into smaller units, or
frames, prepending a header to each frame.
The transport layer header information must then include control information, such as message start and message end
flags, to enable the transport layer on the other end to recognize message boundaries. In addition, if the lower layers
do not maintain sequence, the transport header must contain sequence information to enable the transport layer on the
receiving end to get the pieces back together in the right order before handing the received message up to the layer
above.
End-to-end layers
Unlike the lower "subnet" layers whose protocol is between immediately adjacent nodes, the transport layer and the
layers above are true "source to destination" or end-to-end layers, and are not concerned with the details of the
underlying communications facility. Transport layer software (and software above it) on the source station carries on a
conversation with similar software on the destination station by using message headers and control messages.
SESSION LAYER
The session layer allows session establishment between processes running on different stations. It provides:
Session establishment, maintenance and termination: allows two application processes on different machines to
establish, use and terminate a connection, called a session.
Session support: performs the functions that allow these processes to communicate over the network, performing
security, name recognition, logging, and so on.
PRESENTATION LAYER
The presentation layer formats the data to be presented to the application layer. It can be viewed as the translator for
the network. This layer may translate data from a format used by the application layer into a common format at the
sending station, then translate the common format to a format known to the application layer at the receiving station.
APPLICATION LAYER
The application layer serves as the window for users and application processes to access network services. This layer
contains a variety of commonly needed functions:
Resource sharing and device redirection
Remote file access
Remote printer access
Inter-process communication
Network management
Directory services
Electronic messaging (such as mail)
Network virtual terminals
The OSI Physical layer does not define the media used, this layer is concerned with all aspects of transmitting and
receiving data on the network media. Specifically, the Physical layer is concerned with transmitting and receiving bits.
This layer defines several key characteristics of the Physical network, including the following:
Physical structure of the network (physical topology)
Mechanical and electrical specifications for using the medium(not the medium itself )
Bit transmission, encoding, and timing
3
Although the Physical layer does not define the physical medium, it defines clear requirements that the medium must
meet. These specifications differ depending on the physical medium. Ethernet for UTP, for example, has different
specifications from coaxial ethernet.
Circuit Switching
Circuit switching establishes a path that remains fixed for the duration of a connection. Circuit switching provides
devices with a dedicated path and a well defined bandwidth, but circuit switching is not free of disadvantages.
4
Establishing a connection between devices can be time-consuming.
Because other traffic cannot share the dedicated media path, bandwidth might be inefficiently utilized.
Circuit-switching networks must have a surplus of bandwidth, so these types of switches tend to be expensive
to construct.
Message Switching
Message switching treats each message as an independent entity. Each message carries address information that
describes the message’s destination, and this information is used at each switch to transfer the message to the next
switch in the route.
Message switching transfers the complete message from one switch to the next, where the message is stored before
being forwarded again. Because each message is stored before being sent on to the next switch, this type of network
frequently is called a store-and forward network. The message switches often are general-purpose computers and must
be equipped with sufficient storage (usually hard drives, or RAM) to enable them to store messages until forwarding
is possible.
Message switching offers the following advantages:
Data channels are shared among communicating devices, improving the efficiency of available bandwidth.
Message switches can store messages until a channel becomes available, reducing sensitivity to network
congestion.
Message priorities can be used to manage network traffic.
Broadcast addressing uses network bandwidth more efficiently by delivering messages to multiple
destinations.
The chief disadvantage of message switching is that
message switching is not suited for real-time applications, including data communication, video, and audio.
Packet Switching
In packet switching, messages are divided into smaller pieces called packets. Each packet includes source and
destination address information so that individual packets can be routed through the internetwork independently.
So far, packet switching looks considerably like message switching, but the distinguishing characteristic is that
packets are restricted to a size that enables the switching devices to manage the packet data entirely in memory. This
eliminates the need for switching devices to store the data temporarily on disk. Packet switching, therefore, routes
packets through the network much more rapidly and efficiently than is possible with message switching.
Several methods of packet switching exist. Two common methods of packet switching are as follows:
Datagram
Virtual circuit
5
required for packet switching.
A system must be in place by which devices can recognize when packets have been lost so that retransmission
can be requested.
The advantage of connectionless mode is that connectionless communications can be processed more quickly and
more simply because the internal nodes only forward data and thus don’t have to track connections or provide
retransmission or flow control.
Connectionless mode does have its share of disadvantages, however, including the following:
Messages sometimes get lost due to an overflowing buffer or a failed link along the pathway.
If a message gets lost, the sender doesn’t receive notification.
Retransmission for error correction takes longer because a faulty transmission can’t be corrected across an
internal link.
Gateway Services
Routers can handle interconnection of networks whose protocols function in similar ways. When the rules differ
sufficiently on the two networks, however, a more powerful device is required.
A gateway is a device that can translate the different protocols used by different networks. Gateways can be
implemented starting at the Network layer or at higher layers in the OSI model, depending on where the protocol
translation is required.
A hybrid device called a brouter combines some characteristics of a router and a bridge. A brouter routes routable
protocols using information available at the Network layer and acts as a bridge for nonroutable protocols. A routable
protocol is a protocol that can pass through a router. TCP/IP and IPX/SPX are examples of routable protocols.
6
Session Layer Concepts
The Session layer, manages dialogs between two computers by establishing, managing, and terminating
communications. Dialogs can take three forms:
Simplex dialogs. These dialogs are responsible for one-way data transfers only. An example is a fire alarm, which
sends an alarm message to the fire station but cannot (and does not need to) receive messages from the fire
station.
Half-duplex dialogs. These dialogs handle two-way data transfers in which the data flows in only one direction at
a time.
Full-duplex dialogs. This third type of dialog permits two-way simultaneous data transfers by providing each
device with a separate communication channel.
Costs rise for half- and full-duplex operation because the more complex dialog technologies are naturally more
expensive. Designers of communications systems, therefore, generally use the simplest dialog mode that satisfies the
communication requirements.
7
NETWORKING STANDARDS
Standards Organizations and the ISO
The development and implementation of de jure standards is regulated by standards organizations. For example, the
CCITT (this is a French acronym that translates to the International Consultative Committee for Telegraphy and
Telephony) and the Institute of Electrical and Electronic Engineers (IEEE), among other organizations, are
responsible for several prominent network standards that support the International Standards Organization’s objective
of network interoperability.
The International Standards Organization (ISO)—whose name is derived from the Greek prefix iso, meaning
“same”—is located in Geneva, Switzerland. ISO develops and publishes standards and coordinates the activities of all
national standardization bodies. In 1977, the ISO designed a communication standard based on the open systems
architecture theory from which computer networks would be designed. This model came to be known as the Open
Systems Interconnection (OSI) model. This model has become an accepted framework for analyzing and developing
networking components and functionality.