4 Computer Network
4 Computer Network
COMPUTER NETWORK
1) LAN(Local Area Network):- It is small network covering building and campus. Cover 5 to 10 Km
a) PAN (Personal Area Network)
b) CAN(Campus Area Network)
2) MAN(Metropolitan Area Network):- Cover Whole city. It range is up to 50 Km.
3) WAN(Wide Area Network): Large computer network . Connect computer located in different
Geographical location that cover different cities or countries
a) GAN(Global Area Network)
Topology:- It is physical connection of computer in the network . There are different topology which are
use in different application:
1) Bus topology:- All computers are connected through common communication channel.
Advantage:-
Disadvantage:-
Node
Node
Hub
Node
Node
Advantage:- 1) Reliable
Not expandable
Node
Node
Node
Node
No required Server
Disadvantage: Unidirectional
Failure of any link will bring the entire network down.
HUB
Advantage: Extensible
Error detection is easy
If any segment is damage other Segment is not effected
Division Of network is easy
Disadvantage:- Relies on main cable
Maintenance Become difficult If large
Mesh Topology:- All computers are directly Connected. Total number of link in the network
Node Node
Node Node
Protocol:- It is a set of rules and guide line which help for data communication. It define
1) Packet format
2) Address format
3) Error detection method
4) Flow control method.
Network Architecture:- It define the way computer are connected in the network. Following are the
different architecture of computer
Client1
sever
Client2
2) Peer To peer(P2P):- It is simplest for of network. It does not required server computer it ,two or
more computer are directly connected. It required less resources and more reliable than client and
server but it is not expandable. Access right are govern by setting sharing permission on individual
computer.
Node Node
Node Node
Reference Model
The two most common network models for network design are
1) TCP/IP:- It was developed in 1979 on the basis of ARPANET(Advance Research Project agency
network) of DoD(Department of Defense of USA). ARPANET was first Large Global Network. It
consist of four layers
(1) Application layer
(2) Transport Layer
(3) Network or Internet Layer
(4) Network interface Layer
2) OSI(Open System Interconnection) Reference Model: This model was develop in 1980. It consist
of seven layer each layer perform define function. This model was approved by ISO(International
standard Organisation). It si open to all type of network. Following are the layer:-
7
Application
6
Presentation
5
Session
4
Transport
3
Network
2
Data Link
1
Physical
Comparison between TCP/IP and OSI Model
TCP/IP OSI
It deal with raw bit and mechanical and electrical requirement of computer network. It also deal
with the signal ,communication channel and switches used in data communication. Two type of
signals are used for data communication.
1) Analog Signal
2) Digital Signal.
Analog:- It is continues with time. It can take any value in the given range of values. Most of the signal
generated in nature are analog. Human voice is an example of analog signal. It is easily effected
unwanted noise or signal. Analog signal is represented by sine wave
Digital:- It is discrete in nature. It can take only two values 0 or one. Signal generated by computer is an
example of digital signal. It is represented by square wave. It is not effected by noise or un wanted
signal.
Wavelength
3) Amplitude:- It is maximum distance from the mean position. The intensity of wave depend on
amplitude. It is directly propositional to it.
4) Time period: It is time required to complete one wave. Relation between Time period and
frequency is
T=1/F
5) Phase : It is position of wave at particular time.
6) Transmission Rate:- There are two unit for measuring the transmission rate of data through
different channel:
a) Bps(bit per second):- It is number of bit transmitted per unit time.
b) Baud:- Number of changes per second is measure in baud.
7) Bandwidth:- Range of frequency transmitted through the given channel is called bandwidth .It unit
is Hertz. Maximum Frequency maximum capacity of channel. Maximum rate of channel depend on
bandwidth. For noiseless channel and according to Nyquist Theorem
Maximum Rate=Hlog2(1+S/N)
The signal-to-noise ratio (S/N) is usually expressed in decibels (dB) given by the formula:
10 * log10(S/N)
10 * log10(1000) = 30 dB.
Example
For a typical telephone line with a signal-to-noise ratio of 30dB and an audio bandwidth of 3kHz, we get
a maximum data rate of:
R = 3000 * log2(1001)
Satellite TV Channel
For a satellite TV channel with a signal-to noise ratio of 20 dB and a video bandwidth of 10MHz, we get
a maximum data rate of:
R=10000000 * log2(101)
Transmission Media Or Channel:- It is medium through which data is transmitted through source ad
destination. There are two type of media:-
Guided Media
Twisted Pair Wire:- It consist of two copper wire twisted together. It is one of the most cheapest
transmission media.
Coaxial Cable:- Consist thick copper wire sounded by insulator and consist of braided conductor. Most
common use in TV transmission. Basic characteristic of coaxial cable
1) Bandwidth 750MHz .
2) Maximum transmission rate 100Mbps
3) There are two type of coaxial cable (1 )Base band(single signal at a time) (2) Broad band (multiple
signal at a time
4) Maximum range 500m
5) Uesd in establishing LAN and TV
Optical Fiber:- In optical fiber we use light signal for data transmission. Optical fiber consist of three
components.
LED convert the electric signal into light signal. Transmission medium is ultra thin fiber
glass. Detector generate electric signal when light is incident on it. Principle of total Internal
Reflection is used for transmission of light through fiber glass. Optical fiber operate in two
mode
a) Multimode:- Each ray has different mode. Its quality is not as good as single mode.
b) Single mode: Each ray has same mode. It can propagate in single line. Better quality
than multimode.
Radio Wave:-It is Omni directional ie it move in all direction. Generally used for radio transmission.They have
frequencies from 300 GHz to as low as 3 kHz, and corresponding wavelengths from 1 millimeter to 100
kilometers. Low radio wave intensity decrease with distance rapidly. It has following characteristic:-
1) It is effected by weather
2) Microwave communication is widely used for long distance telephone communication, cellular
telephone and television distribution.
3) It has larger bandwidth than radio wave
Infrared Rays:- It is also known as millimeter wave and commonly use for short range communication.
Infrared (IR) light is electromagnetic radiation with a wavelength longer than that of visible light, but
shorter than that of microwaves. ...Infrared communication is therefore a realistic alternative for indoor
wireless LANs. It can not pass through solid. It is commonly use in VCR and TV remote Control.
Characteristic of infrared rays
a) Low cost
b) Easy to generate
c) Can only be use for in house communication
d) Can not pass through solid object.
Satellite Communication:- It is use for long distance communication. Satellite work as repeater. It
contain number of transponder which received signal coming from earth and amplify it and retransmit it
to earth. Communication satellite is put in geostationary orbit which is 36000 km from the earth . Total
number of satellite which can be put in this orbit is 180. At earth there is micro station know as
VSAT(Very small Aperture terminal)
Characteristic:-
o High latency
o Significant jitter
o Limited & shared bandwidth
o Variable service level
o Non-trivial setup
o Many different failure modes
o Use for long distance communication.
Modulation
Modulation means changing data signal to transmission signal. Data signal is combine with carrier
Signal so that it can be transmitted to a long distance. There are different type of modulation
i) AM(Amplitude modulation)
j) FM(Frequency modulation)
k) PM(Phase Modulation)
a) Unipolar
b) Polat
a) AM(Amplitude modulation):- In this modulation, the amplitude of the carrier signal varies in
accordance with the message signal, and other factors like phase and frequency remain constant.
This type of modulation requires more power and greater bandwidth; filtering is very difficult.
Amplitude modulation is used in computer modems, VHF aircraft radio, and in portable two-
way radio. It is effected by noise but can be use for long distance. AM circuit is simple and less
complex. Can be easily demodulated using diode
b) FM(Frequency Modulation):- In this type of modulation, the frequency of the carrier signal
varies in accordance with the message signal, and other parameters like amplitude and phase
remain constant. Frequency modulation is used in different applications like radar, radio and
telemetry, seismic prospecting and monitoring newborns for seizures via EEG, etc. It is not
effected by noise but cannot be use for long distance
c) Phase Modulation:- In this type of modulation, the phase of the carrier signal varies in
accordance with the message signal. When the phase of the signal is changed, then it affects the
frequency. So, for this reason, this modulation is also comes under the frequency modulation. It
characteristic is very similar to FM.
2Hlog2V
Delta Modulation:- It is more simple technique than PCM. Delta modulation form changes from
previous sample.
i)ASK(Amplitude shift key):- In this method zero and one has different key. In amplitude shift keying,
the amplitude of the carrier signal is varied to create signal elements. Both frequency and phase
remain constant while the amplitude changes. It si simple to implement but effected by noise
ii) FSK:- Frequency of carrier wave vary according to zero and one. It is less effected by noise.
FSK spectrum is 2×ASK
Advantage : PSK is less susceptible to errors than ASK, while it requires/occupies the same bandwidth
as ASK more efficient use of bandwidth (higher data-rate) are possible, compared to FSK .
• Disadvantage: more complex signal detection / recovery process,than in ASK and FSK
QAM(Quadrature Amplitude Modulation):- It is combination of ASK and PSK. It has better performance
than simple ASK and PSK. It can be represented by Constellation diagram.
In QAM various combinations of amplitude and phase are employed to achieve higher digital data rates.
1 0 1 1 0
Polar Scheme:- In polar schemes, the voltages are on the both sides of the time axis. For example, the
voltage level for 0 can be positive and the voltage level for I can be negative.ie both negative and positive
current can be use to represent 1 and 0. It has two version:-
NRZ(None return to zero):- It is further divided into two part:-
a) NRZ-L
b) NRZ-I
In NRZ-L the level of the voltage determines the value of the bit. In NRZ-I the inversion or the lack
of inversion determines the value of the bit.
Return to Zero (RZ):- In RZ, the signal changes not between bits but during the bit. In Figure 4.7 we
see that the signal goes to 0 in the middleof each bit. It remains there until the beginning of the next
bit.
TDM(Time division Multiplexing):- In this method each user can use the whole channel for
fixed period of time. This is best suited for digital signal.There are two type of TDM
1) Synchronous
2) Statistical or Asynchronous
Synchronous:- In synchronous TDM, each input connection has an allotment in the output even if it is
not sending data. In synchronous TDM, the data flow of each input connection is divided into units,
where each input occupies one input time slot. A unit can be 1 bit, one character, or one block of data.
Each input unit becomes one output unit and occupies one output time slot. However, the duration of an
output time slot is n times shorter than the duration of an input time slot. It is not very efficient, there is
wastage of bandwidth if input is not sending signal.
3) Statistical or Asynchronous:- In statistical time-division multiplexing, slots are dynamically
allocated to improve bandwidth efficiency. Only when an input line has a slot's worth of data
to send is it given a slot in the output frame. In statistical multiplexing, the number of slots in
each frame is less than the number of input lines. The multiplexer checks each input line in
round robin fashion; it allocates a slot for an input line if the line has data to send; otherwise,
it skips the line and checks the next line.
Wavelength Division Multiplexing:- WDM is conceptually the same as FDM, except that the
multiplexing and demultiplexing involve optical signals transmitted through fiber-optic channels.
The idea is the same: Here we take wavelength of source signal to multiplex the data. Although
WDM technology is very complex, the basic idea is very simple. We want to combine multiple
light sources into one single light at the multiplexer and do the reverse at the demultiplexer. The
combining and splitting of light sources are easily handled by a prism.
Objective question:-
1) Which signal is generated by human voice
A analog
B Digital
C Both A and B
D None
2) Which is the unit of transmission rate
A bps
B baud
C hertz
D both A and B
3) Which transmission Media you will prefer for wireless in house Transmission
A Radio wave
B Microwave
C Light source
D Infra Red
4 ) Which is not dis advantage optical fiber:
A Costly
B Difficult to layout
C To optical fiber can not be easily join
D Low range
DATA LINK LAYER
It is the second layer of OSI reference model. Its main objective is to perform host to host communication
through the use of frame. This layer is divided into two sub layer
1) LLC(Logical link control):- It perform three function
A ) Framing
B) Error control
C) Flow control
2) MAC(Medium access control ):- It define the protocol to access common channel.
Framing:- Framing means dividing the data into logical segment. There are different framing method
a) Character count.
b) Character stuffing
c) Bit stuffing
Character count:-In this method we use field in the header to specify the number of character in the
frame. When the data link at the destination sees character count. It know how many characters follow
and hence where the end of frame is. The main problem with is method is that if header field has error all
the frame beyond the error frame will disturb.
Frame1 Frame2 Frame3 Frame4
5 1 2 3 4 5 6 7 8 9 8 0 1 2 3 4 5 6 8 7 8 9 0 1 2 3
Character count
a) Character stuffing:- In this method we add special ASCII character at the start and end of Frame
like STX(start of text ) and ETX(End of text). This will solve the problem of Character count.
The problem occur if these special character is send as a data. To remove this problem we add
extra special character with data to remove this confusion.
Received A DLE B
data E
Main disadvantage of Character stuffing is that it required more bits
2) Bit stuffing:- In this method special bit pattern is use at the end and start of he frame call flags.
Generally flag has following pattern:
01111110
When data bit contain continuous five one then extra 0 is added to data bit, so that data bit is not
confuse with data bit extra 0 bit
Data bit 010101111110101010
Transmitted bit 0101011111001010
Received 010101111110101010
Bit stuffing is more cost effective than character stuffing.
10011 11010110110000
10011
010011
10011
000001
00000
000010
00000
00010 1
00000
01011
00000
010110
10011
001010
00000
010100
10011 Remainder
001110
00000
1110
Source, add even parity to each circle where there is no intersection part
Let bit at the point where three circle meet become 0 . Destination, add even parity to each circle
where there is no intersection part
001
110
111 Decimal value 7 this will give the position where error will occur.
Let there i code bit then total number of binary combination 2i.
Then total number of error position 2 i – 1. Let there be N data bit. To detect error at all position
2i-1>= N+i
Example
If N=7 then minimum i=4 the above condition will be satisfied if i=4. There for total number of bit
7+4=11 Let data bit be 1101100 . We don,t know where data bit is place in the 11 bit position
11 10 9 8 7 6 5 4 3 2 1
1 1 0 0 1 1 0 0 0 0 0
d7 d6 d5 r4 d4 d3 d2 r3 d1 r2 r1
Flow control
It is not necessary that all computer in the network has same speed . Some are fast and some may are
slow. Therefore for proper data transmission we required some flow control method. There are
different flow control method.
a) Stop and wait(ARQ Automatic repeat request)
b) Sliding Window
i) Go back N
ii) Selective repeat
c) Piggy backing
a) Stop and Wait :- In this method sender will send frame and wait for positive
ACK(Acknowledgement) before sending next frame.
Sender Receiver