Introduction To CN
Introduction To CN
Introduction To CN
by
Dr Hitesh Mohapatra
Associate Professor
What is a Computer Network?
• Computer Network is a group of computers connected with each other through wires, optical
fibres or optical links so that various devices can interact with each other through a network.
• The aim of the computer network is the sharing of resources among various devices.
• In the case of computer network technology, there are several types of networks that vary from
simple to complex level.
Components Of Computer Network:
Network Interface
Card
NIC(National interface card)
NIC is a device that helps the computer to communicate with another device. The network interface
card contains the hardware addresses, the data-link layer protocol use this address to identify the
system on the network so that it transfers the data to the correct destination.
There are two types of NIC: wireless NIC and wired NIC.
• Wireless NIC: All the modern laptops use the wireless NIC. In Wireless NIC, a connection is made
using the antenna that employs the radio wave technology.
• Wired NIC: Cables use the wired NIC to transfer the data over the medium
Hub
Hub is a central device that splits the network connection into multiple devices. When computer
requests for information from a computer, it sends the request to the Hub. Hub distributes this request
to all the interconnected computers.
Switches
Switch is a networking device that groups all the devices over the network to transfer the data to
another device. A switch is better than Hub as it does not broadcast the message over the network,
i.e., it sends the message to the device for which it belongs to. Therefore, we can say that switch
sends the message directly from source to the destination.
Hub Switches
A Router is a networking device that operates under the network layer of the OSI model and is used to connect
two or more networks. It is a device that establishes a common link between networks to enable data flow
between them.
Cables and connectors
Cable is a transmission media that transmits the communication signals. There are three types of
cables:
Twisted pair cable: It is a high-speed cable that transmits the data over 1Gbps or more.
Coaxial cable: Coaxial cable resembles like a TV installation cable. Coaxial cable is more expensive
than twisted pair cable, but it provides the high data transmission speed.
Fibre optic cable: Fibre optic cable is a high-speed cable that transmits the data using light beams. It
provides high data transmission speed as compared to other cables. It is more expensive as compared
to other cables, so it is installed at the government level.
Router
Router is a device that connects the LAN to the internet. The router is mainly used to connect the
distinct networks or connect the internet to multiple computers.
Modem
Modem connects the computer to the internet over the existing telephone line. A modem is not
integrated with the computer motherboard. A modem is a separate part on the PC slot found on the
motherboard.
Uses Of Computer Network
Resource sharing: Resource sharing is the sharing of resources such as programs, printers, and data
among the users on the network without the requirement of the physical location of the resource and
user.
Server-Client model: Computer networking is used in the server-client model. A server is a central
computer used to store the information and maintained by the system administrator. Clients are the
machines used to access the information stored in the server remotely.
Communication medium: Computer network behaves as a communication medium among the users.
For example, a company contains more than one computer has an email system which the employees
use for daily communication.
E-commerce: Computer network is also important in businesses. We can do the business over the
internet. For example, amazon.com is doing their business over the internet, i.e., they are doing their
business over the internet.
Computer Network Architecture
Computer Network Architecture is defined as the physical and logical design of the software,
hardware, protocols, and media of the transmission of data.
Simply we can say that how computers are organized and how tasks are allocated to the computer.
• Peer-To-Peer network
• Client/Server network
Peer-To-Peer network
• Peer-To-Peer network is a network in which all the computers are linked together with equal
privilege and responsibilities for processing the data.
• Special permissions are assigned to each computer for sharing the resources, but this can lead to
a problem if the computer with the resource is down.
Client/Server Network
• Client/Server network is a network model designed for the end users called clients, to access the
resources such as songs, video, etc. from a central computer known as Server.
• The central controller is known as a server while all other computers in the network are called
clients.
• A server performs all the major operations such as security and network management.
• A server is responsible for managing all the resources such as files, directories, printer, etc.
• All the clients communicate with each other through a server. For example, if client1 wants to send
some data to client 2, then it first sends the request to the server for the permission. The server
sends the response to the client 1 to initiate its communication with the client 2.
Computer Network Types
A computer network is a group of computers linked to each other that enables the computer to
communicate with another computer and share their resources, data, and applications.
A computer network can be categorized by their size. A computer network is mainly of four types:
• Local Area Network is a group of computers connected to each other in a small area such as
building, office.
• LAN is used for connecting two or more personal computers through a communication medium
such as twisted pair, coaxial cable, etc.
• It is less costly as it is built with inexpensive hardware such as hubs, network adapters, and
ethernet cables.
• The data is transferred at an extremely faster rate in Local Area Network.
• Government agencies use MAN to connect to the citizens and private industries.
• In MAN, various LANs are connected to each other through a telephone exchange line.
• The most widely used protocols in MAN are RS-232, Frame Relay, ATM, ISDN, OC-3, ADSL, etc.
• It has a higher range than Local Area Network(LAN).
WAN(Wide Area Network)
A Wide Area Network is a network that extends over a large geographical area such as states or
countries.
A Wide Area Network is not limited to a single location, but it spans over a large geographical area
through a telephone line, fibre optic cable or satellite links.
A Wide Area Network is widely used in the field of Business, government, and education.
What is Topology?
Topology defines the structure of the network of how all the components are interconnected to each
other. There are two types of topology: physical and logical topology.
A communication subsystem is a complex piece of Hardware and software. Early attempts for
implementing the software for such subsystems were based on a single, complex, unstructured
program with many interacting components. The resultant software was very difficult to test and modify.
To overcome such problem, the ISO has developed a layered approach. In a layered approach,
networking concept is divided into several layers, and each layer is assigned a particular task.
Therefore, we can say that networking tasks depend upon the layers.
The basic elements of layered architecture are services, protocols, and interfaces.
Protocol: It defines a set of rules that a layer uses to exchange the information with peer entity.
These rules mainly concern about both the contents and order of the messages used.
Interface: It is a way through which the message is transferred from one layer to another layer.
Why do we require Layered architecture?
Modularity: Layered architecture is more modular. Modularity provides the independence of layers,
which is easier to understand and implement.
Easy to modify: It ensures the independence of layers so that implementation in one layer can be
changed without affecting other layers.
Easy to test: Each layer of the layered architecture can be analyzed and tested individually.
OSI Model
• OSI stands for Open System Interconnection is a reference model that describes how information
from a software application in one computer moves through a physical medium to the software
application in another computer.
• OSI consists of seven layers, and each layer performs a particular network function.
• OSI model was developed by the International Organization for Standardization (ISO) in 1984,
and it is now considered as an architectural model for the inter-computer communications.
• OSI model divides the whole task into seven smaller and manageable tasks. Each layer is assigned
a particular task.
• Each layer is self-contained, so that task assigned to each layer can be performed independently.
Characteristics of OSI Model:
1.Physical Layer: This is the cake stand. It holds everything up and
makes sure the cake doesn’t fall apart. Without it, we’d have a messy
pile of frosting and crumbs.
2.Data Link Layer: Think of this as the cake’s wrapper. It keeps the
cake safe and ensures that each slice (or data packet) is delivered without
falling apart.
3.Network Layer: This layer is like the delivery guy who knows all the
best routes to get your cake to you quickly and efficiently, even if there’s
traffic (or network congestion).
4.Transport Layer: Imagine this layer as the cake cutter. It slices the
cake into manageable pieces (data segments) and makes sure everyone
gets their fair share without any crumbs getting lost.
5.Session Layer: This is the party planner. It keeps track of who’s
eating cake, making sure everyone gets their turn and that no one talks
with their mouth full (manages sessions and connections).
6.Presentation Layer: Think of this as the icing and decorations. It
makes the cake look pretty and ensures that everyone can enjoy it, no
matter their taste preferences (data translation and encryption).
7.Application Layer: Finally, this is you enjoying the cake. It’s the layer
where all the hard work pays off, and you get to savor every bite (user
interface and application services).
An exchange using the OSI model
LAYERS IN THE OSI MODEL
2.37
Note
• The TCP/IP model consists of five layers: the application layer, transport layer, network layer, data
link layer and physical layer.
• The first four layers provide physical standards, network interface, internetworking, and transport
functions that correspond to the first four layers of the OSI model and these four layers are
represented in TCP/IP model by a single layer called the application layer.
• TCP/IP is a hierarchical protocol made up of interactive modules, and each of them provides
specific functionality.
Layer 7 - Application Layer:
Consider a user, Alice, who wants to access a website (e.g., www.example.com) using her web
browser (e.g., Google Chrome). At the Application Layer, the web browser initiates the request to
view the webpage.
1. Circuit-Switched Networks
2. Datagram Networks
3. Virtual-Circuit Networks
Switching
• Switches are devices capable of creating temporary connections between
two or more devices linked to the switch
Taxonomy of Switched Networks
Circuit-switched Network
• A circuit-switched network is made of a set of switches connected by physical links, in which
each link is divided into n channels
• In circuit switching, the resources need to be reserved during the setup phase; the resources
remain dedicated for the entire duration of data transfer until the teardown phase.
Circuit-Switched Network: Example 1
Circuit-Switched Network: Example 2
Circuit Switching
• Three phases
– Setup phase, data transfer phase, teardown phase
Disadvantages
• Inefficient Use of Resources
• High Setup Time
• Limited Flexibility
• Scalability Issues
Packet Switched Network
Datagram Networks
• In a packet-switched network, there is no resource reservation; resources are allocated on
demand
• In a datagram network, each packet is treated independently of all others. Sometimes referred
to as connectionless networks
Routing Table
• A switch in a datagram networks uses a routing table that is based on the destination address
• The destination address in the header of a packet in a datagram network remains the same
during the entire journey of the packet
• As in DN, data are packetized and each packet carries an address in the header. The
address has local jurisdiction, not end-to-end jurisdiction.
• As in CSN, all packets follow the same path established during the connection
• VCN is normally implemented in the data link layer, while CSN is in physical layer and DN in
the network layer
Virtual-Circuit Network
Addressing
• Two types of addressing in a virtual-circuit network: global and local (virtual-circuit identifier:
VCI)
Switching technique is used to connect the systems for making one-to-one communicatio n.
Circuit Switching
• Circuit switching is a switching technique that establishes a dedicated path between sender and
receiver.
• In the Circuit Switching Technique, once the connection is established then the dedicated path will
remain to exist until the connection is terminated.
• A complete end-to-end path must exist before the communication takes place.
• In case of circuit switching technique, when any user wants to send the data, voice, video, a request
signal is sent to the receiver then the receiver sends back the acknowledgment to ensure the
availability of the dedicated path. After receiving the acknowledgment, dedicated path transfers the
data.
• Circuit switching is used in public telephone network. It is used for voice transmission.
Communication through circuit switching has 3 phases:
• Circuit establishment
• Data transfer
• Circuit Disconnect
Packet Switching
• The packet switching is a switching technique in which the message is sent in one go, but it is
divided into smaller pieces, and they are sent individually.
• The message splits into smaller pieces known as packets and packets are given a unique
number to identify their order at the receiving end.
• Every packet contains some information in its headers such as source address, destination
address and sequence number.
• Packets will travel across the network, taking the shortest path as possible.
• All the packets are reassembled at the receiving end in correct order.
• If any packet is missing or corrupted, then the message will be sent to resend the message.
• If the correct order of the packets is reached, then the acknowledgment message will be sent.
Approaches Of Packet Switching:
There are two approaches to Packet Switching:
Datagram Packet switching:
Virtual Circuit Switching
• It is a packet switching technology in which packet is
known as a datagram, is considered as an independent
• Virtual Circuit Switching is also known as
entity. Each packet contains the information about the
destination and switch uses this information to forward the connection-oriented switching.
packet to the correct destination.
• In the case of Virtual circuit switching, a
• The packets are reassembled at the receiving end in preplanned route is established before
correct order. the messages are sent.
• In Datagram Packet Switching technique, the path is not • Call request and call accept packets are
fixed.
used to establish the connection between
• Intermediate nodes take the routing decisions to forward sender and receiver.
the packets.
• In this case, the path is fixed for the
• Datagram Packet Switching is also known as duration of a logical connection.
connectionless switching.
virtual circuit switching
• In the above diagram, A and B are the
sender and receiver respectively. 1 and 2
are the nodes.
In the case of Circuit Switching technique, the communication channel is dedicated.
Once the dedicated path is established, the only delay occurs in the speed of data transmission.
It takes a long time to establish a connection approx 10 seconds during which no data can be
transmitted.
It is more expensive than other switching techniques as a dedicated path is required for each
connection.
It is inefficient to use because once the path is established and no data is transferred, then the
capacity of the path is wasted.
In this case, the connection is dedicated therefore no other data can be transferred even if the
channel is free.
Datagram Packet switching:
In the case of Virtual circuit switching, a preplanned route is established before the messages are
sent.
Call request and call accept packets are used to establish the connection between sender and
receiver.
In this case, the path is fixed for the duration of a logical connection.
In Datagram packet switching each packet has all the necessary information like Source address, destination
address etc. So each packet is treated independently. They can choose different routes for transmitting data inside
the network. There is no predefined route. So, the packets can be received in any sequence at the destination.
Packets in this approach are called datagrams. Datagram approach can cause the datagrams to reach the
destination out of order
VC Packet Switching is an approach in which a logical path or virtual circuit connection is done between
sender and receiver. VC stands for Virtual Circuit. Thus, a predefined route is created and all packets will follow
these predefined paths. In this logical connection, all routers or switches are provided with a unique Virtual Circuit
ID to uniquely identify the virtual connections. It also has the same three-phase protocol used in circuit
switching – Setup Phase, Data Transfer Phase and Tear down Phase.
Advantages Of Packet Switching:
Cost-effective: In packet switching technique, switching devices do not require massive secondary
storage to store the packets, so cost is minimized to some extent. Therefore, we can say that the
packet switching technique is a cost-effective technique.
Reliable: If any node is busy, then the packets can be rerouted. This ensures that the Packet
Switching technique provides reliable communication.
Efficient: Packet Switching is an efficient technique. It does not require any established path prior to
the transmission, and many users can use the same communication channel simultaneously, hence
makes use of available bandwidth very efficiently.
Disadvantages Of Packet Switching:
Packet Switching technique cannot be implemented in those applications that require low delay and
high-quality services.
The protocols used in a packet switching technique are very complex and requires high
implementation cost.
If the network is overloaded or corrupted, then it requires retransmission of lost packets. It can also
lead to the loss of critical information if errors are nor recovered.
Application Layer
The application layer in the OSI model is the closest layer to the end user which means that the
application layer and end user can interact directly with the software application. The application layer
programs are based on client and servers.
Identifying communication partners: The application layer identifies the availability of communication
partners for an application with data to transmit.
Determining resource availability: The application layer determines whether sufficient network
resources are available for the requested communication.
Synchronizing communication: All the communications occur between the applications requires
cooperation which is managed by an application layer.
Services of Application Layers
Network Virtual terminal: An application layer allows a user to log on to a remote host. To do so, the
application creates a software emulation of a terminal at the remote host. The user's computer talks to
the software terminal, which in turn, talks to the host. The remote host thinks that it is communicating
with one of its own terminals, so it allows the user to log on.
File Transfer, Access, and Management (FTAM): An application allows a user to access files in a
remote computer, to retrieve files from a computer and to manage files in a remote computer. FTAM
defines a hierarchical virtual file in terms of file structure, file attributes and the kind of operations
performed on the files and their attributes.
Addressing: To obtain communication between client and server, there is a need for addressing. When
a client made a request to the server, the request contains the server address and its own address. The
server response to the client request, the request contains the destination address, i.e., client address.
To achieve this kind of addressing, DNS is used.
Services of Application Layers. cont..
Directory Services: An application contains a distributed database that provides access for global
information about various objects and services.
Application architecture is different from the network architecture. The network architecture is
fixed and provides a set of services to applications.
The application architecture, on the other hand, is designed by the application developer and defines
how the application should be structured over the various end systems.
Client-server architecture: An application program running on the local machine sends a request to
another application program is known as a client, and a program that serves a request is known as a
server. For example, when a web server receives a request from the client host, it responds to the
request to the client host.
Characteristics Of Client-server architecture:
In Client-server architecture, clients do not directly communicate with each other. For example, in
a web application, two browsers do not directly communicate with each other.
A server is fixed, well-known address known as IP address because the server is always on while
the client can always contact the server by sending a packet to the sender's IP address.
It is a single-server based architecture which is incapable of holding all the requests from the clients.
For example, a social networking site can become overwhelmed when there is only one server
exists.
Features of P2P architecture
Self scalability: In a file sharing system, although each peer generates a workload by requesting the
files, each peer also adds a service capacity by distributing the files to the peer.
Cost-effective: It is cost-effective as it does not require significant server infrastructure and server
bandwidth.
Client and Server processes
• A network application consists of a pair of processes that send the messages to each other over
a network.
• In P2P file-sharing system, a file is transferred from a process in one peer to a process in
another peer. We label one of the two processes as the client and another process as the server.
• With P2P file sharing, the peer which is downloading the file is known as a client, and the peer
which is uploading the file is known as a server. However, we have observed in some applications
such as P2P file sharing; a process can be both as a client and server. Therefore, we can say that
a process can both download and upload the files .
Client and Server model
A client and server networking model is a model in which computers such as servers provide the
network services to the other computers such as clients to perform a user based tasks. This model is
known as client-server networking model.
Client
A client is a program that runs on the local machine
requesting service from the server. A client program is a
finite program means that the service started by the user
and terminates when the service is completed.
Server
A server is a program that runs on the remote machine
providing services to the clients. When the client requests
for a service, then the server opens the door for the
incoming requests, but it never initiates the service.
Advantages of Client-server networks:
Centralized: Centralized back-up is possible in client-server networks, i.e., all the data is stored in a
server.
Security: These networks are more secure as all the shared resources are centrally administered.
Performance: The use of the dedicated server increases the speed of sharing resources. This
increases the performance of the overall system.
Scalability: We can increase the number of clients and servers separately, i.e., the new element can
be added, or we can add a new node in a network at any time.
Disadvantages of Client-Server network:
• Traffic Congestion is a big problem in Client/Server networks. When a large number of clients
send requests to the same server may cause the problem of Traffic congestion.
• It does not have a robustness of a network, i.e., when the server is down, then the client requests
cannot be met.
• A client/server network is very decisive. Sometimes, regular computer hardware does not serve a
certain number of clients. In such situations, specific hardware is required at the server side to
complete the work.
• Sometimes the resources exist in the server but may not exist in the client. For example, If the
application is web, then we cannot take the print out directly on printers without taking out the print
view window on the web.