Basics of Networks
The OSI Model
The OSI model was set by International Standards el is not a protocol,
just a model for understanding and designing a network architecture
that is flexible, robust and interoperable.
The Open Systems Interconnection model is a layered framework for design
of network systems that allows for communication across all types of
computer systems. It consists of seven separate but related layers,
each one defining a segment of the process of moving information across
a network.
The architecture of the OSI model goes like this: physical layer (layer
1), data link (layer 2), network (layer 3), transport (layer 4), session
(layer 5), presentation (layer 6) and application (layer 7)

Functions of the Layers
Physical Layer
The physical layer coordinates the functions required to transmit a
bit stream over a physical medium. It deals with the mechanical and
electrical specifications of the interface and transmission medium.
It also defines the procedures and functions that physical devices and
interfaces have to perform for transmission to occur. In order for the
bits to be send they must be encoded into signals – electrical
or optical.
Data Link Layer
Data link layer transforms the physical layer to a reliable link and
is responsible for node to node delivery. It makes the physical layer
appear error free to the network layer. The data link layer is responsible
to divide the stream of bits received into manageable frames. Data link
layer also checks the access on the link by the nodes, has error control
and flow control system.
Network Layer
The network layer is responsible for the source-to-destination delivery
of a packet possibly across multiple networks. Network layer ensures
that the packet gets from its point of origin to its final destination.
Network layer is responsible for logical addressing and routing.
Transport Layer
The transport layer is responsible for the source-to-destination of
the entire message. Whereas network layer oversees end-to-end delivery
of individual packets it does not recognize any relationship between
the packets. Transport layer ensures that the whole message arrives
to destination intact overseeing both error control and flow control.
For more security the transport layer creates a connection between the
two end ports. A connection is a single logical path between the source
and destination that is associated with all packets in a message. The
connection involves three steps: establishing a connection, data transfer
and connection release. With this way the transport layer has more control
over sequencing, flow and error detection and correction. Between the
responsibilities of this layer is connection, flow and error control
and also segmentation and reassembly at which process the message is
divided into transmittable segments containing a sequence number and
reassembles them by reaching the destination.
Session Layer
The services provided by the first three layers (physical, data link
and network) are not sufficient for some processes. The session layer
is the network dialog controller. It establishes, maintains and synchronizes
the interaction between communicating systems. The responsibilities
of the session layer are: dialog control between two systems and synchronization
which is used for large files.
Presentation Layer
The presentation layer is concerned with the syntax and semantics of
the information exchanged between two systems. The responsibilities
of this layer include: Translation - the information should be changed
from characters, numbers etc. to bit streams before they are transmitted.
Encryption - there are private information transmitted over a network,
so to ensure privacy we encrypt (change) the message into another code
and the receiver decrypts it and read it. Compression - data compression
reduces the number of bits to be transmitted.
Application Layer
The application layer enables the user (human or software) to access
the network. It provides user interfaces and support for services such
as electronic mail, remote file access and transfer, shared database
management and other types of distributed information services. The
services provided by the application layer are as follows: Network virtual
terminal- this is a software version of a physical terminal and allows
a user to log on to a remote host. File transfer, access and management
(FTAM) - this application allows user to access, retrieve or manage
files in a remote computer. Mail services – this application provides
the basis for e-mail forwarding and storage. Directory services –
provides distributed database sources and access for global information
about various objects and services.
Network Topologies
The term topology derives from mathematics field that deals with points
and surfaces in space which is the physical layout of objects in space.
Topologies correspond to the OSI physical layer. There are three basic
topologies: Ring, Bus and Star.