You are on page 1of 37

Networks and

Communication
By
Zahra Zahid
za
h ra
za
hi
d@
gm
ai
l. co
m
Client server model

m
l. co
• Server - a computer program running to serve the requests of

ai
other programs, the "clients“
• Login

gm
• Printing
• File sharing

d@
• Game hosting
• email
• Websites

hi
• Other web services
za
• Client - an application or system that accesses a service made
available by a server
ra
• Web browser page requests
• Chat systems on mobile phones
h

• Online games
za
NETWORKING HARDWARE AND

m
co
SOFTWARE

l.
ai
 Hub/Switch – electronic device (with a number of ports) used in a LAN to link
groups of computers

gm
 Repeaters (also called amplifiers) – electronic devices that receive signals
and amplify and send them along the network

d@
 Routers - electronic devices used to ensure messages are sent to their
intended destinations

hi
 Gateway – consists of hardware and/or software that allows communications
between dissimilar networks
 za
Bridge – consists of hardware and/or software
that allows communication between two
ra
similar networks
h
za
HUBS/SWITCHES

m
l. co
ai
gm
d@
The original Ethernet LANs relied on certain physical
characteristics of the cable carrying the network data

hi
(usually coaxial cable).  New Ethernet technologies
introduced new cable types that we unable to fulfill the
za
original physical requirements.  New devices - hubs -
were introduced to simulate those characteristics.
ra

Simply put, the hub's major function is to replicate data it


h

receives from one device attached to it to all others.


za
REPEATERS

m
co
A common problem in the networking world is that of weakening
electrical signals.  Electrical signals traveling through wires (such as

l.
copper wires used in most networks), weaken due to the wire's

ai
electrical resistance.  This effect limits the lengths of the cable that can

gm
be used.  A repeater will overcome this limit, when there is a need to
connect two computers at a larger distance.
A repeater is connected to two cable segments.  Any electrical signal

d@
reaching the repeater from one segment, will be amplified and
retransmitted to the other segment.

hi
za
h ra

An illustration of a repeater at work


The electrical signal entering the repeater at one end is weakened.
za

The repeater amplifies the electrical signals and resends the data.
ROUTERS

m
l. co
ai
gm
d@
hi
 Routers connect two or more networks and forward
data packets between them.  When data arrives from
za
one of the segments, the router decides, according to
it's routing table, to which segment to forward that
ra
data.
h
za

Networks for Beginners: http://compnetworking.about.com/


za
h ra
za
hi
d@
gm
ai
l. co
m
GATEWAY

m
l. co
ai
gm
 "Gateway" is a term that was once used to refer to a routing device.  Today, in the TCP/IP
world, the term "router" is used to describe such a device.

d@
The term gateway now refers to special-purpose devices, that perform protocol
conversions.  Gateways implement application layer conversions of information received

hi
from various protocols.

za
h ra
za
m
Bridge
A bridge is used to connect two LAN segments(Figure 3.8.4). If a

co
school has a network for students and another for school
administration, it may be necessary to link the networks together.
Notice that there is no implication of signals being vetted as to their

l.
right to be transferred across to the other network. It is simply a link

ai
between the two segments.

gm
d@
Consider a LAN split into two segments to improve data

hi
transfer speeds. There is, however, a need for a device on
za one segment to communicate with devices on the other
segment. The bridge maintains a table showing which
ra
MAC addresses is connected to each of its ports (Figure
3.8.5) A MAC is a unique address given to a device by the
h

manufacturer.
za
MODEMS

m
l. co
ai
gm
An illustration of data sent using a modem and a regular

d@
telephone line.

hi
A modem is a device that converts digital data originating from a
terminal or computer, to analog signals used by voice
za
communication networks such as the telephone system. At one
ra
end, modems convert the digital pulses to audible tones and
convert audio tones back to digital pulses at the other.
h

The word "Modem" stands for "MOdulator-DEModulator".


za

Networks for Beginners: http://compnetworking.about.com/


PHYSICAL MEDIA

m
co
 Twisted-pair cable – consists of two independently insulated wires
twisted around each other (least expensive type of cable—the kind

l.
that is used in many telephone systems)

ai
 Coaxial cable – consists of an insulated center wire grounded by a

gm
shield of braided wire (the primary type of cabling used by the cable
television industry; it is more expensive than twisted pair)
 Fiber-optic cable – contains hundreds of clear fiberglass or plastic

d@
fibers (threads) (made from thin, flexible glass tubing; bandwidth is
greater, so it can carry more data; it is lighter than metal wires and is
less susceptible to interference; it is fragile and expensive)

hi
 ISDN line – a special digital telephone line that transmits and receives
za
information at very high speeds
h ra
za

Fuller, Floyd, Computers: Understanding Technology: EMC Paradigm, 2003.


za
h ra
za
hi
d@
gm
ai
l. co
m
WIRELESS MEDIA

m
co
 Microwave system – transmits data via high-frequency

l.
radio signals through the atmosphere

ai
 Satellite system – receive transmitted signals, amplify
them, and then transmit the signals to the appropriate

gm
locations
 Cellular technology – uses antennae resembling telephone

d@
towers to pick up radio signals within a specific area (cell)
 Infrared technology – transmits data as infrared light

hi
waves from one device to another, providing wireless links
between PCs and peripherals
za
Note: The type selected is determined by the type of
ra
network, the size of the network, and the cost.
h
za

Fuller, Floyd, Computers: Understanding Technology: EMC Paradigm, 2003.


za
h ra
za
hi
d@
gm
ai
l. co
m
za
h ra
za
hi
d@
gm
ai
l. co
m
Packet Switching

m
co
A method by which the internet works, it features

l.
delivery of packets of data between devices over

ai
a shared network

gm
d@
hi
za
h ra
za
m
Packet switching steps

co
Data split into chunks (packets)

l.
Each packet has a from address, to address and payload (data

ai
chunk)

gm
If data requires multiple chunks then the order of each packet
is noted

d@
Packets sent onto the network, moving from router to router

hi
taking different paths (set by the router). Each packet's journey
time can therefore differ.
za
Once packets arrive they are re-ordered
ra

Message sent from recipient to sender indicating that the


h

message has been received


za

If no confirmation message, sender transmits data again


za
h ra
za
hi
d@
gm
ai
l. co
m
IP Address

za
h ra
za
hi
d@
gm
ai
l. co
m
IP Address Sturcture

m
co
l.
ai
gm
d@
hi
za
hra
za
Class A,B and C IP addresses

m
co
l.
ai
gm
d@
hi
za
hra
za
za
h ra
za
hi
d@
gm
ai
l. co
m
za
h ra
za
hi
d@
gm
ai
l. co
m
za
h ra
za
hi
d@
gm
ai
l. co
m
in any network, the first and last addresses are special. The

m
first address (all 0's) is used to refer to the network itself.

co
This is not usable as a destination address but is used in
routing protocols. The last address (all 1's) is called the

l.
ai
network directed broadcast and can be used to send an IP
packet to all devices in the network.

gm
d@
hi
za
h ra
za
A subnet mask is a 32 bit binary number where a binary 1

m
indicates a network bit and a binary 0 represents a host bit

co
in the corresponding IP address. Thus subnet masks are
always a series of 1s followed by a series of 0s.

l.
ai
gm
d@
hi
za
h ra
za
Using Subnet mask

m
l. co
ai
 Thus given a device with the IP address 192.168.1.1 and the subnet mask
255.255.255.0, calculate the IP network address of the device

gm
d@
hi
za
h ra
za
Home Network

za
h ra
za
hi
d@
gm
ai
l. co
m
za
h ra
za
hi
d@
gm
ai
l. co
m
Take an example of a PC on internal network with an IP address of 192.168.0.101.
1.It generates a web request to a server at address 151.62.31.240.

m
2.The packet is generated with source address (SA) 192.168.0.101 and destination

co
address (DA) 151.62.31.240
3.It is sent the the edge router because the destination is not on this LAN.

l.
4.The edge router realises it is going to send this packet out to the Internet and thus

ai
performs NAT. The source address is swapped for the public address. The

gm
translation is recorded.
5.The packet now has SA 82.10.250.19 and DA 151.62.31.240 and it heads off to

d@
the web server.
6.The web server generates the reply and swaps the sources and destination

hi
addresses.
za
7.The packet now has SA 151.62.31.240 and DA 82.10.250.19 and makes it way
back to the router.
ra

8.The router recalls the translation and swapps the destination address back.
h

9.The packet now has SA 151.62.31.240 and DA 192.168.0.101 and is sent back to
za

the originating PC.


za
h ra
za
hi
d@
gm
ai
l. co
m
za
h ra
za
hi
d@
gm
ai
l. co
m
za
h ra
za
hi
d@
gm
ai
l. co
m
Uniform Resource Locator - A character string referring to the
location of an internet resource

m
l.co
ai
gm
d@
hi
za
h ra
za
m
Server Side Scripting

co
l.
ai
gm
d@
hi
za
h ra
za
za
h ra
za
hi
d@
gm
ai
l. co
m

You might also like