Learning Guide 3 Data Communication
Learning Guide 3 Data Communication
Learning Guide 3 Data Communication
To reduce the design complexity, most of the networks are organized as a series of
layers or levels, each one build upon one below it. The basic idea of a layered architecture
is to divide the design into small pieces. Each layer adds to the services provided by the
lower layers in such a manner that the highest layer is provided a full set of services to
manage communications and run the applications. The benefits of the layered models are
modularity and clear interfaces, i.e. open architecture and comparability between the
different providers' components. A basic principle is to ensure independence of layers by
defining services provided by each layer to the next higher layer without defining how the
services are to be performed. This permits changes in a layer without affecting other layers.
The basic elements of a layered model are services, protocols and interfaces. A service is a
set of actions that a layer offers to another (higher) layer. Protocol is a set of rules that a
layer uses to exchange information with a peer entity. These rules concern both the
contents and the order of the messages used. Between the layers service interfaces are
defined. The messages from one layer to another are sent through those interfaces.
Peers
Physical Layer {the physical layer is responsible for transmitting individual bits from one node to the next}
The physical layer is the lowest layer of the OSI hierarchy and coordinates the
functions required to transmit a bit stream over a physical medium. It also defines the
procedures and functions that physical devices and interfaces have to perform for
transmission occur. The physical layer specifies the type of transmission medium and the
transmission mode (simplex, half duplex or full duplex) and the physical, electrical,
functional and procedural standards for accessing data communication networks.
Transmission media defined by the physical layer include metallic cable, optical fiber cable
or wireless radio-wave propagation. The physical layer also includes the carrier system used
to propagate the data signals between points in the network. The carrier systems are
simply communication systems that carry data through a system using either metallic or
optical fiber cables or wireless arrangements such as microwave, satellites and cellular
radio systems.
The data link layer transforms the physical layer, a raw transmission facility, to a
reliable link and is responsible for node-to-node delivery. It makes the physical layer appear
error free to the upper layer (network layer).
The data link layer packages data from the physical layer into groups called blocks, frames
or packets. If frames are to be distributed to different systems on the network, the data link
layer adds a header to the frame to define the physical address of the sender (source
address) and/or receiver (destination address) of the frame. The data-link layer provides
flow-control, access-control, and error-control.
Network Layer {is responsible for the delivery of individual packets from the source host to the destination host}
The network layer provides details that enable data to be routed between devices in
an environment using multiple networks, subnetworks or both. This is responsible for
addressing messages and data so they are sent to the correct destination, and for
translating logical addresses and names (like a machine name FLAME) into physical
addresses. This layer is also responsible for finding a path through the network to the
destination computer.
The network layer provides the upper layers of the hierarchy with independence from the
data transmission and switching technologies used to interconnect systems. Networking
components that operate at the network layer include routers and their software.
The transport layer controls and ensures the end-to-end integrity of the data message
propagated through the network between two devices, providing the reliable,
transparent transfer of data between two endpoints.
Session layer, some times called the dialog controller provides mechanism for
controlling the dialogue between the two end systems. It defines how to start, control and
end conversations (called sessions) between applications.
Session layer protocols provide the logical connection entities at the application layer.
These applications include file transfer protocols and sending email. Session responsibilities
include network log-on and log-off procedures and user authentication. Session layer
characteristics include virtual connections between applications, entities, synchronization of
data flow for recovery purposes, creation of dialogue units and activity units, connection
parameter negotiation, and partitioning services into functional groups.
The presentation layer translated between different data formats and protocols.
Presentation functions include data file formatting, encoding, encryption and decryption of
data messages, dialogue procedures, data compression algorithms, synchronization,
interruption, and termination.
The application layer is the highest layer in the hierarchy and is analogous to the
general manager of the network by providing access to the OSI environment. The
applications layer provides distributed information services and controls the sequence of
activities within and application and also the sequence of events between the computer
application and the user of another application.
The application layer communicates directly with the user’s application program. User
application processes require application layer service elements to access the networking
environment. The service elements are of two types: CASEs (common application service
elements) satisfying particular needs of application processes like association control,
concurrence and recovery. The second type is SASE (specific application service elements)
which include TCP/IP stack, FTP, SNMP, Telnet and SMTP.
The following figure shows a simple two-station data communications circuit. The
main components are:
Source: - This device generates the data to be transmitted; examples are mainframe
computer, personal computer, workstation etc. The source equipment provides a means for
humans to enter data into system.
10
accept an analog signal coming from a network or transmission line and convert it into a
digital bit stream.
Destination: - Takes the incoming data from the receiver and can be any kind of digital
equipment like the source.
While serial data transmission is much simpler and less expensive because of the use
of a single interconnecting line, it is a very slow method of data transmission. Serial data
transmission is useful in systems where high speed is not a requirement. Parallel
communication is used for short-distance data communications and within a computer, and
serial transmission is used for long-distance data communications.
11
Circuit Configurations
Transmission Modes
There are four modes of transmission for data communications circuits:
12
The major components of a network are end stations, applications and a network that will
support traffic between the end stations. Computer networks all share common devices,
functions, and features, including servers, clients, transmission media, shared data, shared
printers and other peripherals, hardware and software resources, network interface card
(NIC), local operating system (LOS) and the network operating system (NOS).
Servers: Servers are computers that hold shared files, programs and the network operating
system. Servers provide access to network resources to all the users of the network and
different kinds of servers are present. Examples include file servers, print servers, mail
servers, communication servers etc.
Clients: Clients are computers that access and use the network and shared network
resources. Client computers are basically the customers (users) of the network, as they
request and receive service from the servers.
Shared Data: Shared data are data that file servers provide to clients, such as data files,
printer access programs, and e-mail.
13
Shared Printers and other peripherals: these are hardware resources provided to the users
of the network by servers. Resources provided include data files, printers, software, or any
other items used by the clients on the network.
Network interface card: Every computer in the network has a special expansion card called
network interface card (NIS), which prepares and sends data, receives data, and controls
data flow between the computer and the network. While transmitting, NIC passes frames of
data on to the physical layer and on the receiver side, the NIC processes bits received from
the physical layer and processes the message based on its contents.
Local operating system: A local operating system allows personal computers to access files,
print to a local printer, and have and use one or more disk and CD drives that are located
on the computer. Examples are MS-DOS, PC-DOS, UNIX, Macintosh, OS/2, Windows 95, 98,
XP and Linux.
Network operating system: the NOS is a program that runs on computers and servers that
allows the computers to communicate over a network. The NOS provides services to clients
such as log-in features, password authentication, printer access, network administration
functions and data file sharing.
Network Models
Computer networks can be represented with two basic network models: peer-to-peer
client/server and dedicated client/server. The client/server method specifies the way in
which two computers can communicate with software over a network.
Peer-to-peer client/server network: Here, all the computers share their resources, such as
hard drives, printers and so on with all the other computers on the network. Individual
resources like disk drives, CD-ROM drives, and even printers are transformed into shared,
collective resources that are accessible from every PC. Unlike client-server networks, where
network information is stored on a centralized file server PC and made available to tens,
hundreds, or thousands client PCs, the information stored across peer-to-peer networks is
uniquely decentralized. Because peer-to-peer PCs have their own hard disk drives that are
accessible by all computers, each PC acts as both a client (information requestor) and a
server (information provider). The peer-to-peer network is an appropriate choice when
there are fewer than 10 users on the network, security is not an issue and all the users are
located in the same general area.
14
Dedicated client/server network: Here, one computer is designated as server and the rest
of the computers are clients. Dedicated Server Architecture can improve the efficiency of
client server systems by using one server for each application that exists within an
organization. The designated servers store all the networks shared files and applications
programs and function only as servers and are not used as a client or workstation. Client
computers can access the servers and have shared files transferred to them over the
transmission medium. In some client/server networks, client computers submit jobs to one
of the servers and once they process the jobs, the results are sent back to the client
computer.
Network Topologies
In computer networking, topology refers to the layout of connected devices, i.e. how the
computers, cables, and other components within a data communications network are
interconnected, both physically and logically. The physical topology describes how the
network is actually laid out, and the logical topology describes how the data actually flow
through the network. Two most basic topologies are point-to-point and multipoint. A point-
to-point topology usually connects two mainframe computers for high-speed digital
information. A multipoint topology connects three or more stations through a single
transmission medium and some examples are star, bus, ring, mesh and hybrid.
Star topology: A star topology is designed with each node (file server, workstations, and
peripherals) connected directly to a central network hub, switch, or concentrator. Data on a
star network passes through the hub, switch, or concentrator before continuing to its
destination. The hub, switch, or concentrator manages and controls all functions of the
network. It also acts as a repeater for the data flow.
15
Bus topology: Bus networks use a common backbone to connect all devices. A single
cable, (the backbone) functions as a shared communication medium that devices attach or
tap into with an interface connector. A device wanting to communicate with another device
on the network sends a broadcast message onto the wire that all other devices see, but
only the intended recipient actually accepts and processes the message. The bus topology is
the simplest and most common method of interconnecting computers. The two ends of the
transmission line never touch to form a complete loop. A bus topology is also known as
multidrop or linear bus or a horizontal bus.
Ring topology: In a ring network (sometimes called a loop), every device has exactly
two neighbours for communication purposes. All messages travel through a ring in the
same direction (either "clockwise" or "counter clockwise"). All the stations are
interconnected in tandem (series) to form a closed loop or circle. Transmissions are
unidirectional and must propagate through all the stations in the loop. Each computer acts
like a repeater and the ring topology is similar to bus or star topologies.
Mesh topology: The mesh topology incorporates a unique network design in which each
computer on the network connects to every other, creating a point-to-point connection
between every device on the network. Unlike each of the previous topologies, messages sent
on a mesh network can take any of several possible paths from source to destination. A
16
mesh network in which every device connects to every other is called a full mesh. A
disadvantage is that, a mesh network with n nodes must have n(n-1)/2 links and each node
must have n-1 I/O ports (links).
Network Classifications
One way to categorize the different types of computer network designs is by their scope or
scale. Common examples of area network types are:
LAN - Local Area Network
WLAN - Wireless Local Area Network
WAN - Wide Area Network
MAN - Metropolitan Area Network
SAN - Storage Area Network, System Area Network, Server Area Network, or sometimes Small Area
Network
CAN - Campus Area Network, Controller Area Network, or sometimes Cluster Area Network
PAN - Personal Area Network
DAN - Desk Area Network
17
Local area network: A local area network (LAN) is a network that connects computers
and devices in a limited geographical area such as home, school, computer laboratory,
office building, or closely positioned group of buildings. LANs use a network operating
system to provide two-way communications at bit rates in the range of 10 Mbps to 100
Mbps. In addition to operating in a limited space, LANs are also typically owned, controlled,
and managed by a single person or organization. They also tend to use certain connectivity
technologies, primarily Ethernet and Token Ring.
Advantages of LAN:
Share resources efficiently
Individual workstation might survive network failure if it doesn’t rely upon others
Component evolution independent of system evolution
Support heterogeneous hardware/software
Access to other LANs and WANs
High transfer rates with low error rates
Metropolitan area network: A MAN is optimized for a larger geographical area than a
LAN, ranging from several blocks of buildings to entire cities. Its geographic scope falls
between a WAN and LAN. A MAN might be a single network like the cable television
network or it usually interconnects a number of local area networks (LANs) using a high-
capacity backbone technology, such as fiber-optical links, and provides up-link services to
wide area networks and the Internet. MANs typically operate at speeds of 1.5 Mbps to 10
Mbps and range from five miles to a few hundred miles in length. Examples of MANs are
FDDI (fiber distributed data interface) and ATM (asynchronous transfer mode).
18
Wide area network: Wide area networks are the oldest type of data communications
network that provide relatively slow-speed, long-distance transmission of data, voice and
video information over relatively large and widely dispersed geographical areas, such as
country or entire continent. WANs interconnect routers in different locations. A WAN
differs from a LAN in several important ways. Most WANs (like the Internet) are not owned
by any one organization but rather exist under collective or distributed ownership and
management. WANs tend to use technology like ATM, Frame Relay and X.25 for
connectivity over the longer distances.
Global area network: A GAN provides connections between countries around the entire
globe. Internet is a good example and is essentially a network comprised of other networks
that interconnect virtually every country in the world. GANs operate from 1.5 Mbps to 100
Gbps and cover thousands of miles.
Campus Area Network: - a network spanning multiple LANs but smaller than a MAN, such as on a
university or local business campus.
Storage Area Network: - connects servers to data storage devices through a technology like Fibre
Channel.
Building backbone: - It is a network connection that normally carries traffic between departmental
LANs within a single company. It consists of a switch or router to provide connectivity to other
networks such as campus backbones, enterprise backbones, MANs, WANs etc
Camus backbone: - It is a network connection used to carry traffic to and from LANs located in
various buildings on campus. It normally uses optical fiber cables for the transmission media
between buildings and operates at relatively high transmission rates.
Enterprise networks: - It includes some or all of the above networks and components connected in
a cohesive and manageable fashion.
The U.S. Department of Defense (DoD) created the TCP/IP reference model because it
wanted a network that could survive any conditions, even a nuclear war. Transmission
Control Protocol/Internet Protocol (TCP/IP) {commonly known as internet suite} model is a
set of communication protocols that allow communication across multiple diverse
networks. TCP/IP is a hierarchical protocol comprised of either three or four layers. The
19
three-layer version of TCP/IP contains the network, transport and application layers. Four
layer version specifies the host to network layer.
The designers of TCP/IP felt that the higher level protocols should include the
session and presentation layer details. They simply created an application layer that handles
high- level protocols, issues of representation, encoding, and dialog control. The TCP/IP
combines all application-related issues into one layer, and assures this data is properly
packaged for the next layer.
The TCP/IP transport layer deals with the quality-of-service issues of reliability, flow
control, and error correction. One of its protocols, the transmission control protocol (TCP),
provides excellent and flexible ways to create reliable, well-flowing, low-error network
communications. TCP is a connection-oriented protocol. The other protocol is User
Datagram Protocol (UDP) which is a connection less protocol.
20
The purpose of the Internet layer is to send source packets from any network on
the internetwork and have them arrive at the destination independent of the path and
networks they took to get there. The specific protocol that governs this layer is called the
Internet protocol (IP). Best path determination and packet switching occur at this layer.
The network access layer also called the host-to-network layer is concerned with all
of the issues of physically delivering data packets using frames or cells.
Cisco has defined a hierarchical model known as the hierarchical internetworking model.
This model simplifies the task of building a reliable, scalable, and less expensive hierarchical
internetwork because rather than focusing on packet construction; it focuses on the three
functional areas, or layers, of your network.
Core layer: This layer is considered the backbone of the network and includes the high-end
switches and high-speed cables such as fiber cables. This layer of the network does not
route traffic at the LAN. In addition, no packet manipulation is done by devices in this layer.
Rather, this layer is concerned with speed and ensures reliable delivery of packets.
Distribution layer: This layer includes LAN-based routers and layer 3 switches. This layer
ensures that packets are properly routed between subnets and VLANs in your enterprise.
This layer is also called the Workgroup layer. It also provides policy-based network
connectivity, including:
Packet filtering (firewalling): Processes packets and regulates the transmission of
packets based on its source and destination information to create network
borders.
QoS: The router or layer 3 switches can read packets and prioritize delivery, based
on policies set.
Access Layer Aggregation Point: The layer serves the aggregation point for the
desktop layer switches.
Control Broadcast and Multicast: The layer serves as the boundary for broadcast
and multicast domains.
Application Gateways: The layer allows you to create protocol gateways to and
from different network architectures.
The distribution layer also performs queuing and provides packet manipulation of
the network traffic.
21