Computer Network Unit-1 Complete Notes
Computer Network Unit-1 Complete Notes
Basic Concepts:
Components of data communication, distributed processing,
standards and organizations.
Line configuration,
topology,
Transmission mode, and categories of networks.
OSI and TCP/IP Models:
Layers and their functions,
comparison of models.
Digital Transmission:
Interfaces and Modems:
DTE-DCE Interface,
1. Message:
The message is the information (data) to be communicated. Popular forms of
information include text, numbers, pictures, audio, and video.
2. Sender:
The sender is the device that sends the data message. It can be a
computer, workstation, telephone handset, video camera, and so on.
3. Receiver:
The receiver is the device that receives the message. It can be a
computer, workstation, telephone handset, television, and so on.
4. Transmission medium:
The transmission medium is the physical path by which a message
travels from sender to receiver. Some examples of transmission media
include twisted-pair wire, coaxial cable, fiber-optic cable, and radio
waves.
5. Protocol:
A protocol is a set of rules that govern data communications. It
represents an agreement between the communicating devices. Without
a protocol, two devices may be connected but not communicating, just
as a person speaking French cannot be understood by a person who
speaks only Japanese.
TRANSMISSION MODE/
TYPES OF DATA COMMUNICATION:
A given transmission on a communications channel between two
machines can occur in several different ways.
The transmission is characterized by:
the direction of the exchanges
the transmission mode: the number of bits sent
simultaneously
synchronization between the transmitter and receiver.
Types of Transmission mode
1. Simplex
2. Half Duplex
3. Full Duplex
1.Simplex
A simplex connection is a connection in which the data flows in only one
direction, from the transmitter to the receiver. This type of connection
is useful if the data do not need to flow in both directions (for example,
from your computer to the printer or from the mouse to your
computer...).
2.Half Duplex
A half-duplex connection (sometimes called an alternating
connection or semi-duplex) is a connection in which the data flows in
one direction or the other, but not both at the same time. With this type
of connection, each end of the connection transmits in turn. This type of
connection makes it possible to have bidirectional communications
using the full capacity of the line.
3.Full Duplex
A full-duplex connection is a connection in which the data flow in both
directions simultaneously. Each end of the line can thus transmit and
receive at the same time, which means that the bandwidth is divided in
two for each direction of data transmission if the same transmission
medium is used for both directions of transmission.
TYPE OF COMPUTER NETWORK/ CATEGORIES OF
COMPUTER NETWORK
Data Communication and Computer Network Generally, networks
are distinguished based on their geographical span. A network
can be as small as distance between your mobile phone and its
Bluetooth headphone and as large as the internet itself, covering
the whole geographical world.
Personal Area Network
Local Area Network
Metropolitan Area Network
Wide Area Network
PERSONAL AREA NETWORK (PAN):
A Personal Area Network (PAN) is smallest network which is very
personal to a user. This may include Bluetooth enabled devices or
infra-red enabled devices. PAN has connectivity range up to 10
meters. PAN may include wireless computer keyboard and mouse,
Bluetooth enabled headphones, wireless printers, and TV remotes.
2.LOCAL AREA NETWORK (LAN):
LANs are the most frequently discussed networks, one of the
most common, one of the most original and one of the
simplest types of networks. LANs connect groups of
computers and low-voltage devices together across short
distances (within a building or between a group of two or
three buildings in close proximity to each other) to share
information and resources.
3.METROPOLITAN AREA NETWORK(MAN):
These types of networks are larger than LANs but smaller
than WANs – and incorporate elements from both types of
networks. MANs span an entire geographic area (typically
a town or city, but sometimes a campus). Ownership and
maintenance is handled by either a single person or
company (a local council, a large company, etc.).
4.WIDE AREA NETWORK(WAN):
Slightly more complex than a LAN, a WAN connects computers
together across longer physical distances. This allows
computers and low-voltage devices to be remotely connected to
each other over one large network to communicate even when
they’re miles apart.
The Internet is the most basic example of a WAN, connecting all
computers together around the world. Because of a WAN’s vast
reach, it is typically owned and maintained by multiple
administrators or the public.
DATA PROCESSING
Multiple programming
Real-time processing
On-line processing
Centralized processing
Distributed processing
CENTRALIZED, DECENTRALIZED AND DISTRIBUTED
PROCESSING
More than two devices share the Link that is the capacity of the channel is shared
now. With shared capacity, there can be two possibilities in a Multipoint Line
Configuration:
Spatial Sharing: If several devices can share the link simultaneously, its called
Spatially shared line configuration.
Temporal (Time) Sharing: All devices are given a time spam in which
they can utilize that single link. At that time other device will not send
their data on link.
TOPOLOGIES
Network topologies refers to the way in which a
network is laid out physically. The topology of
network is the geometric representation of the
relationship for all the links and linking devices
(usually called nodes) to one another.
Type of topologies:
1) Bus Topology
2) Star Topology
3) Ring Topology
4) Mesh Topology
5) Tree Topology
6) Hybrid Topology
TYPE OF TOPOLOGIES
1. Bus Topology: Bus topology use the single
communication line called backbone which is shared
by all the nodes or computers to communicate. It is
used for smaller networks mainly and is one of the
most simplest and reliable ways to communicate.
Node
(Cable end)
1. BUS TOPOLOGY:
Advantages:
Suitable for smaller networks.
Easy to implement.
Even if one node breaks down, network does not get
hampered.
Disadvantages:
Cable fail then whole network will be fail.
Within a given cable length, limited number of nodes can
be added.
Data transfer rate gets slow down if more nodes are
added.
Only one data packet can be transferred at a particular
moment.
2. STAR TOPOLOGY
In star topology, every node is connected to central hub or
switch. The switch is the server and the peripherals are
the clients. Data from the source is first delivered to the
hub and then transferred to the transferred to the other
nodes.
HU
B
2. STAR TOPOLOGY
Advantages:
Easy to install and implement.
Server(sender)
Ring topology
NODE
3.RING TOPOLOGY
Advantages:
Ring topology is easy to install.
Advantages:
When one node fails, others continue to work without
disruption.
We can send data from one node to many nodes
Disadvantages:
S/W
Layer S/W
Layer
H/W H/W
Layer Layer
STRUCTURE OF A DATA WHEN IT GOES TO ALL
LAYERS
OSI Model Layers and their
functions
PHYSICAL LAYER:
The physical layer coordinates the functions required to
transmit a bit stream over a physical medium.
THE OTHER RESPONSIBILITIES OF PHYSICAL
LAYER
Physical characteristics of interfaces and media - The physical
layer defines the characteristics of the interface between the devices
and the transmission medium.
Representation of bits - To transmit the stream of bits, it must be
encoded to signals. The physical layer defines the type of encoding.
Data Rate or Transmission rate - The number of bits sent each
second – is also defined by the physical layer.
Synchronization of bits - The sender and receiver must be
synchronized at the bit level. Their clocks must be synchronized.
Line Configuration - In a point-to-point configuration, two devices
are connected together through a dedicated link. In a multipoint
configuration, a link is shared between several devices.
Physical Topology - The physical topology defines how devices are
connected to make a network. Devices can be connected using a
mesh, bus, star or ring topology.
Transmission Mode - The physical layer also defines the direction
of transmission between two devices: simplex, half-duplex or full-
duplex.
DATA LINK LAYER
It is responsible for transmitting
framesfrom one node to next node.
THE OTHER RESPONSIBILITIES OF THIS LAYER
ARE
/Internet/Internal
TCP/IP MODEL LAYERS AND FUNCTIONS
Application Layer: This layer defines the protocol which
enables user to interact with the network. For example, FTP,
HTTP etc.
Transport Layer: This layer defines how data should flow
between hosts. Major protocol at this layer is Transmission
Control Protocol (TCP). This layer ensures data delivered
between hosts is in-order and is responsible for end- to-end
delivery.
Internet Layer: Internet Protocol (IP) works on this layer. This
layer facilitates host addressing and recognition. This layer
defines routing.
Link Layer: This layer provides mechanism of sending and
receiving actual data. Unlike its OSI Model counterpart, this
layer is independent of underlying network architecture and
hardware.
HOW THE WEB WORKS
WHEN YOU TYPE A WEB ADDRESS INTO YOUR
BROWSER
The browser goes to the DNS(Domain Name Servers) server,
and finds the real address of the server that the website lives
on (you find the address of the shop).
The browser sends an HTTP request message to the server,
asking it to send a copy of the website to the client (you go to
the shop and order your goods). This message, and all other
data sent between the client and the server, is sent across
your internet connection using TCP/IP.
If the server approves the client's request, which means "Of
course you can look at that website! Here it is", and then
starts sending the website's files to the browser as a series of
small chunks called data packets (the shop gives you your
goods, and you bring them back to your house).
The browser assembles the small chunks into a complete
web page and displays it to you (the goods arrive at your
door — new shiny stuff, awesome!).
DNS(DOMAIN NAME SERVER)
In OSI model the transport layer 2. In TCP/IP model the transport layer
guarantees the delivery of packets. does not guarantees delivery of packets.
Still the TCP/IP model is more reliable.
OSI model has a separate Presentation 4. TCP/IP does not have a separate
layer and Session layer. Presentation layer or Session layer.
Parallel Serial
Synchronous Asynchronous
1. PARALLEL TRANSMISSION
All the bits of data are transmitted simultaneously on separate
communication lines.
In order to transmit n bits, n wires or lines are used. Thus each bit
has its own line.
Parallel transmission is used for short distance communication.
Advantages: Faster form of transmission, i.e. able to send multiple
bits simultaneously.
Disadvantage: It is costly method of data transmission as it required
n lines to transmit n bits at the same time.
In serial transmission the various bits of data are
TRANSMISSION
2. SERIAL