CN 1
CN 1
1.1 Definition
A Computer Network can be defined as a collection of two or more, independent, interconnected, intelli-
gent nodes, allowing them to communicate with each other.
7
1.3.3 Communication Protocols
Communication protocols are a set of formal rules describing how to interconnect and/or transmit data
in a network. Low level protocols defines the electrical and physical standards to be observed, while
higher level protocols defines data formatting, syntax of messages etc.
Some of the popular protocols include: TCP/IP, IPX/SPX, AppleTalk, Ethernet, and ATM.
(i) Peer-to-Peer Model : In this model, there is no ‘master-slave’ type of relationships. Any given node
can request for service from other nodes (so resembling a client), as well as provide service to other
nodes (resembling a server ) at different point of time. Examples includes file sharing services like
BitTorrent, Gnutella, and Napster.
(ii) Client/Server Model : In this model, a dedicated node (or a set of nodes) known as the Server
provides the service or replies to requests, while the other nodes in the network, known as the
Clients requests and obtains the service. Examples include: Web Server, File Server, Mail Server
etc.
This model may be implemented in different levels, also known as tiers. Some common types are:
(a) Two-tier Architecture: In this model, as the name suggests, there are only two tiers. One tier
consists of the Server(s), while the other tier consists of the Clients.
(b) Three-tier Architecture: In this model, the first tier may consist of the user interface (i.e. the
client, eg. a PC with a Web Browser), the second tier may consist of the functional process
logic or the “business rules” (eg. a Web Server running PHP), and the third tier may consist
of data storage and access facility (eg. a Database Server such a MySQL or Mariadb).
(c) n-tier Architecture: More tiers may be introduced into the model. For example, an enterprise
application may be broken down into multiple modules. This allows for easy upgrade of a
particular module, without affecting the others.
In this scenario, one tier may be for the user interface (eg. Web Browser), the next tier for the
Web Server (eg. Apache Web Server), the next tier for the Application Server (eg. RedHat
JBoss, Apache Tomcat), and the last tier for the Database Server (eg. Mariadb).
Yet more tiers may be added to this architecture — for example, a Load Balancer to distribute
the requests to different Web Servers.
8
• Internetwork : An interconnection of multiple types of individual networks spanning the entire
globe can be called a Internetwork.
Note 1 : Smaller networks tends to be generally faster than bigger ones.
Note 2 : There are also other special types of networks, which may have varying sizes. Examples include
Storage Area Network (SAN), and Controller Area Network (CAN).
9
1.7 Data Transmission
1.7.1 Modes of Communication
Transmission of bits can be done in either of the following two methods:
(i) Serial Communication
(ii) Parallel Communication
In case of serial communication, data bits are transmitted sequentially one after the other. Serial
communication is used for long distance communication and most computer networks.
In case of parallel communication however, a group of data bits are transmitted at a time. As a
result, the sender and the receiver must have multiple data lines or multiple communication channels to
support parallel transmission of bits.
10
Figure 1.1: Common Network Topologies (Courtesy: Wikipedia)
1.8.1 Types
It can be divided into two types:
(i) Physical Topology: Tells us how the different networking components are laid out in the network.
(ii) Logical Topology: Tells us how the data actually flows in the network.
1.8.2 Classification
Some of the common topologies are (Refer to figure 1.1):
• Point-to-Point
• Bus
• Star
• Ring
• Mesh1
• Tree
• Hybrid
Note: The physical and the logical topology of a given network may not be the same. For example,
when using a hub, the data flow in a Star network actually happens like a Bus. So, though the physical
topology in this case is a star, the logical topology is actually a bus.
11