Chapter 1 Notes
Chapter 1 Notes
Networking
CHAPTER 1
INTRODUCTION
DATA COMMUNICATIONS:
“Data communications are the exchange of data between two devices via some form
of transmission medium such as a wire cable”.
1. Delivery: The system must deliver data to the correct destination. Data must be
received by the intended device or user and only by that device or user.
2. Accuracy: The system must deliver the data accurately. Data that have been altered
in transmission and left uncorrected are unusable.
3. Timeliness: The system must deliver data in a timely manner. Data delivered late
are useless. In the case of video and audio, timely delivery means delivering data as they are
produced, in the same order that they are produced, and without significant delay. This kind
of delivery is called real-time transmission.
4. Jitter: Jitter refers to the variation in the packet arrival time. It is the uneven delay
in the delivery of audio or video packets. For example, let us assume that video packets are
sent every 30-ms.If some of the packets arrive with 30-ms delay and others with 40-ms delay,
an uneven quality in the video is the result.
Q.) What is data communication? What are its four important characteristics?
(Dec.09/Jan.10 06 Marks)
Q.) What is data communications? What are its characteristics? Explain
(Dec.08/Jan.09 06 Marks)
Components:
Sender: The sender is the device that sends the data message. It can be a computer,
workstation, telephone handset, video camera, and so on.
Receiver: The receiver is the device that receives the message. It can be a computer,
workstation, telephone handset, television, and so on.
Data Representation:
Information today comes in different forms such as:- text, numbers, images, audio,
and video.
Text:
Numbers:
Numbers are also represented by bit patterns. However, a code such as ASCII is not
used to represent numbers; the number is directly converted to a binary number to simplify
mathematical operations.
Images:
Images are also represented by bit patterns. In its simplest form, an image is
composed of a matrix of pixels (picture elements), where each pixel is a small dot. The size
of the pixel depends on the resolution.
For example, an image can be divided into 1000 pixels or 10,000 pixels. In the
second case, there is a better representation of the image (better resolution), but more
memory is needed to store the image.
After an image is divided into pixels, each pixel is assigned a bit pattern. If an image
is not made of pure white and pure black pixels, you can increase the size of the bit pattern to
include gray scale. For example, to show four levels of gray scale, you can use 2-bit patterns.
A black pixel can be represented by 00, a dark gray pixel by 01, a light gray pixel by 10, and
a white pixel by 11.
There are several methods to represent colour images. One method is called RGB, so
called because each colour is made of a combination of three primary colours: red, green, and
blue. Another method is called YCM, in which a colour is made of a combination of three
other primary colours: yellow, cyan, and magenta.
Audio:
Video:
Video refers to the recording or broadcasting of a picture or movie. Video can either
be produced as a continuous entity (e.g., by a TV camera), or it can be a combination of
images, each a discrete entity, arranged to convey the idea of motion. We can change video to
a digital or an analog signal.
Data Flow:
Communication between two devices can be simplex, half-duplex, or full-duplex as
shown in Figure 1.2. Below:
Simplex:
In simplex mode, the communication is unidirectional, as on a one-way street. Only one
of the two devices on a link can transmit; the other can only receive (see Figure 1.2a).
Keyboards and traditional monitors are examples of simplex devices. The keyboard can
only introduce input; the monitor can only accept output. The simplex mode can use the entire
capacity of the channel to send data in one direction.
Half-Duplex:
In half-duplex mode, each station can both transmit and receive, but not at the same time.
When one device is sending, the other can only receive, and vice versa (see Figure 1.2b).
Example: Walkie-Talkie.
Full-Duplex:
In full-duplex mode (also called duplex), both stations can transmit and receive
simultaneously (see Figure 1.2c).
In full-duplex mode, signals going in one direction share the capacity of the link with
signals going in the other direction.
Example: Telephone network. (Both can talk and listen at the same time)
NETWORKS:
“A network is a set of devices (nodes) connected by communication links”
A node can be a computer, printer, or any other device capable of sending and receiving data.
Distributed Processing:
Most networks use distributed processing, in which a task is divided among multiple
computers. Instead of one single large machine being responsible for all aspects of process,
separate computers handle a subset.
Network Criteria:
A network must be able to meet a certain number of criteria. The most important of
these are performance, reliability, and security.
Performance:
Performance can be measured in many ways, including transit time and response time.
Transit time is the amount of time required for a message to travel from one
device to another.
Response time is the elapsed time between an inquiry and a response.
However, these two criteria are often contradictory. If we try to send more data to the
network, we may increase throughput but we increase the delay because of traffic congestion
in the network.
Reliability:
Network reliability is measured by the frequency of failure that is the time it takes a
link to recover from a failure.
Security:
Physical Structures
Type of Connection:
a. Point-to-Point:
b. Multipoint:
A multipoint connection is one in which more than two specific devices share a
single link (see Figure 1.3b).
In a multipoint environment, the capacity of the channel is shared, either spatially
or temporally.
If several devices can use the link simultaneously, it is a spatially shared
connection
If users must take turns, it is a timeshared connection.
Physical Topology:
The term physical topology refers to the way in which a network is laid out physically.
Two or more devices connect to a link; two or more links form a topology.
There are four basic topologies possible: mesh, star, bus, and ring (see Figure 1.4).
Mesh Topology:
Advantages:
The use of dedicated links guarantees that each connection can carry its own data
load, thus eliminating the traffic problems that can occur when links must be shared
by multiple devices.
A mesh topology is robust. If one link becomes unusable, it does not incapacitate the
entire system.
There is the advantage of privacy or security. When every message travels along a
dedicated line, only the intended recipient sees it. Physical boundaries prevent other
users from gaining access to messages.
Fault identification and fault isolation easy.
Disadvantages:
The main disadvantages of a mesh are related to the amount of cabling and the
number of I/O ports required.
Every device must be connected to every other device, installation and reconnection
are difficult.
The sheer bulk of the wiring can be greater than the available space (in walls, ceilings,
or floors) can accommodate.
Finally, the hardware required to connect each link (I/O ports and cable) can be
prohibitively expensive.
Q.) With neat diagram explain mesh topology and star topology with
applications of each. (June-July 2009 06 Marks)
Star Topology:
In a star topology, each device has a dedicated point-to-point link only to a central
controller, usually called a hub. The devices are not directly linked to one another.
The controller acts as an exchange: If one device wants to send data to another, it
sends the data to the controller, which then relays the data to the other connected
devices (see Figure 1.6).
Unlike a mesh topology, a star topology does not allow direct traffic between devices.
Advantages:
A star topology is less expensive than a mesh topology. In a star, each device needs
only one link and one I/O port to connect it to any number of others. This factor also
makes it easy to install and reconfigure.
Far less cabling needs to be housed, and additions, moves, and deletions involve only
one connection: between that device and the hub.
If one link fails, only that link is affected. All other links remain active.
Fault identification and fault isolation easy.
Disadvantages:
One big disadvantage of a star topology is the dependency of the whole topology on
one single point, the hub. If the hub goes down, the whole system is dead.
Bus Topology:
Advantages:
Ease of installation. Backbone cable can be laid along the most efficient path, and
then connected to the nodes by drop lines of various lengths.
a bus uses less cabling than mesh or star topologies.
Only the backbone cable stretches through the entire facility. Each drop line has to
reach only as far as the nearest point on the backbone.
Disadvantages:
Ring Topology:
In a ring topology, each device has a dedicated point-to-point connection with only
the two devices on either side of it.
A signal is passed along the ring in one direction, from device to device, until it
reaches its destination.
Each device in the ring incorporates a repeater. When a device receives a signal
intended for another device, its repeater regenerates the bits and passes them along
(see Figure 1.8).
Advantages:
A ring is relatively easy to install and reconfigure. Each device is linked to only its
immediate neighbours.
Disadvantages:
Unidirectional traffic can be a disadvantage. In a simple ring, a break in the ring (such
as a disabled station) can disable the entire network. This weakness can be solved by
using a dual ring or a switch capable of closing off the break.
Hybrid Topology:
Figure 1.9: A hybrid topology: a star backbone with three bus networks
A network can be hybrid. For example, we can have a main star topology with each
branch connecting several stations in a bus topology as shown in Figure 1.9.
Categories of Networks:
A local area network (LAN) is usually privately owned and links the devices in a single
office, building, or campus (see Figure 1.10).
A LAN can be as simple as two PCs and a printer in someone's home office; or it can
extend throughout a company.
Currently, LAN size is limited to a few kilometres.
LANs are designed to allow resources to be shared between personal computers or
workstations. The resources to be shared can include hardware (e.g., a printer), software
(e.g., an application program), or data.
In addition to size, LANs are distinguished from other types of networks by their
transmission media and topology. In general, a given LAN will use only one type of
transmission medium. The most common LAN topologies are bus, ring, and star.
Early LANs had data rates in the 4 to 16 megabits per second (Mbps) range. Today,
however, speeds are normally 100 or 1000 Mbps.
A wide area network (WAN) provides long-distance transmission of data, image, audio,
and video information over large geographic areas that may comprise a country, a
continent, or even the whole world.
A WAN can be as complex as the backbones that connect the Internet or as simple as a
dial-up line that connects a home computer to the Internet.
The switched WAN connects the end systems, which usually comprise a router
(internetworking connecting device) that connects to another LAN or WAN.
The point-to-point WAN is normally a line leased from a telephone or cable TV provider
that connects a home computer or a small LAN to an Internet service provider (lSP). This
type of WAN is often used to provide Internet access.
A metropolitan area network (MAN) is a network with a size between a LAN and a
WAN. It normally covers the area inside a town or a city. It is designed for customers who
need high speed connectivity, normally to the Internet, and have endpoints spread over a city
or part of city. A good example of a MAN is the part of the telephone company network that
can provide a high-speed DSL line to the customer.
Q.) Give the comparison between LAN, MAN and WAN, with an example.
(May/June 2010 06 Marks)
THE INTERNET:
A Brief History:
The Internet has come a long way since the 1960s. The Internet today is not a simple
hierarchical structure. It is made up of many wide- and local-area networks joined by
connecting devices and switching stations. It is difficult to give an accurate representation of
the Internet because it is continually changing-new networks are being added, existing
networks are adding addresses, and networks of defunct companies are being removed. Today
most end users who want Internet connection use the services of Internet service providers
(lSPs).
There are international service providers, national service providers, regional service
providers, and local service providers.
At the top of the hierarchy are the international service providers that connect nations
together.
National Internet service providers are backbone networks created and maintained by
specialized companies that connect regions together.
Regional Internet service providers are the one that connect local service providers
together.
Local Internet service providers provide direct service to the end users. The local ISPs
can be connected to regional ISPs or directly to national ISPs. Most end users are
connected to the local ISPs. Note that in this sense, a local ISP can be a company that
just provides Internet services, a corporation with a network that supplies services to its
own employees, or a non-profit organization, such as a college or a university.
Syntax: The term syntax refers to the structure or format of the data, meaning the order
in which they are presented. For example, a simple protocol might expect the first 8 bits
of data to be the address of the sender, the second 8 bits to be the address of the receiver,
and the rest of the stream to be the message itself.
Semantics: The word semantics refers to the meaning of each section of bits. How is a
particular pattern to be interpreted, and what action is to be taken based on that
interpretation? For example, does an address identify the route to be taken or the final
destination of the message?
Timing: The term timing refers to two characteristics: when data should be sent and how
fast they can be sent. For example, if a sender produces data at 100 Mbps but the receiver
can process data at only 1 Mbps, the transmission will overload the receiver and some
data will be lost.
Standards:
Standards are necessary to ensure that products from different manufacturers can
work together as expected. [Q.) Name any Four Standards?]
(Refer this topic in text- “Data communications and networking, Behroun Fourouzan”.
This is only required for the part of your knowledge)
Q.) Define following terms: (i) Protocol (ii) Internet
(Dec.08/Jan.09 04 Marks)