Data Comm Lecture 1
Data Comm Lecture 1
FACULTY OF ENGINEERING
COMPUTER SCIENCE AND ENGINEERING DEPARTMENT
U n d e r s t a n d t h e e l e m e n t s t h a t m a ke u p a d a t a c o m m u n i c a t i o n s y s t e m ;
D e s c r i b e t h e c h a ra c t e r i s t i c s o f n e t w o r k a r c h i t e c t u r e s : r e l i a b i l i t y, p e r f o r m a n c e a n d
s e c u r i t y.
DATA COMMUNICATION
D a t a c o m m u n i c a t i o n re f e r s t o t h e exc h a n g e o f d a t a o r i n f o r m a t i o n b e t we e n t wo o r
m o r e d e v i c e s ove r a c o m m u n i c a t i o n c h a n n e l . T h e c o m m u n i c a t i o n c h a n n e l c a n b e
w i re d o r w i re l e s s , a n d c a n ra n g e f ro m a s i m p l e c a b l e c o n n e c t i n g t wo d e v i c e s to a
c o m p l ex n e t w o r k c o n n e c t i n g m u l t i p l e d e v i c e s .
D a t a c o m m u n i c a t i o n c a n o c c u r i n va r i o u s f o r m s , s u c h a s tex t , vo i c e , v i d e o , o r a ny
o t h e r t y p e o f d i g i t a l d a t a . T h e c o m m u n i c a t i o n p ro c e s s i nvo lve s t h e e n c o d i n g o f d a t a
by t h e s e n d e r, t h e t ra n s m i s s i o n o f t h e d a t a t h ro u gh t h e c o m m u n i c a t i o n c h a n n e l , a n d
t h e d e c o d i n g o f t h e d a t a by t h e re c e ive r.
D a t a c o m m u n i c a t i o n i s e s s e n t i a l fo r m o d e r n c o m m u n i c a t i o n s y s te m s , i n c l u d i n g t h e
i n t e r n e t , t e l e c o m m u n i c a t i o n n e t wo r k s , a n d c o m p u t e r n e t wo r k s . I t a l l o w s f o r e f f i c i e n t
a n d re l i a b l e exc h a n g e o f i n f o r m a t i o n , f a c i l i t a t i n g c o m m u n i c a t i o n a n d c o l l a b o ra t i o n
a m o n g i n d iv i d u a l s , o r ga n i z a t i o n s , a n d m a c h i n e s .
DATA COMMUNICATION CONT’D
T h e e f f e c t ive n e s s o f a d a t a c o m m u n i c a t i o n s s y s te m d e p e n d s o n f o u r f u n d a m e n t a l
c h a ra c t e r i s t i c s :
D e l ive r y - t h e s y s t e m m u s t d e l ive r d a t a t o t h e c o r re c t d e s t i n a t i o n . D a t a m u s t b e
re c e ive d by t h e i n t e n d e d d e v i c e o r u s e r a n d o n ly by t h a t d e v i c e o r u s e r ;
Ac c u ra c y - t h e s y s te m m u s t d e l ive r t h e d a t a a c c u ra te ly. D a t a t h a t h ave b e e n a l te r e d i n
t ra n s m i s s i o n a n d l e f t u n c o r re c t e d a re u n u s a b l e ;
T i m e l i n e s s - t h e sy s t e m m u s t d e l ive r d a t a i n a t i m e ly m a n n e r. D a t a d e l ive re d l a te a r e
u s e l e s s . I n t h e c a s e o f v i d e o a n d a u d i o , t i m e ly d e l ive r y m e a n s d e l ive r i n g d a t a a s t h e y
a re p ro d u c e d , i n t h e s a m e o rd e r t h a t t h e y a re p ro d u c e d , a n d w i t h o u t s i g n i f i c a n t d e l ay.
T h i s k i n d o f d e l ive r y i s c a l l e d r e a l - t i m e t ra n s m i s s i o n ; a n d
J i t t e r - j i t te r re f e r s t o t h e va r i a t i o n i n t h e p a c ke t a r r iva l t i m e . I t i s t h e u n e ve n d e l ay
i n t h e d e l ive r y o f a u d i o o r v i d e o p a c ke t s . Fo r e xa m p l e , l e t u s a s s u m e t h a t v i d e o
p a c ke t s a re s e n t e ve r y 3 D m s . I f s o m e o f t h e p a c ke t s a r r ive w i t h 3 d - m s d e l ay a n d
o t h e r s w i t h 4 d - m s d e l ay, a n u n e ve n q u a l i t y i n t h e v i d e o i s t h e r e s u l t .
QUALITY OF COMMUNICATION
T h e q u a l i t y o f d a t a c o m m u n i c a t i o n re f e r s to t h e l e ve l o f a c c u ra c y, re l i a b i l i t y, a n d
e f f i c i e n c y w i t h w h i c h d a t a i s t ra n s m i t t e d a n d re c e ive d ove r a c o m m u n i c a t i o n c h a n n e l .
T h e f o l l o w i n g a re fa c t o r s t h a t c a n a f f e c t t h e q u a l i t y o f d a t a c o m m u n i c a t i o n :
B a n dw i d t h : b a n dw i d t h r e f e r s t o t h e a m o u n t o f d a t a t h a t c a n b e t ra n s m i t te d ove r a
c o m m u n i c a t i o n c h a n n e l i n a g ive n a m o u n t o f t i m e . H i gh e r b a n dw i d t h a l l o w s fo r fa s te r
a n d m o re e f f i c i e n t d a t a c o m m u n i c a t i o n .
L a t e n c y : l a t e n c y i s t h e t i m e d e l ay b e t we e n t h e t ra n s m i s s i o n a n d re c e i p t o f d a t a . H i g h
l a te n c y c a n re s u l t i n s l o w a n d u n re l i a b l e d a t a c o m m u n i c a t i o n .
E r ro r R a t e : t h e e r ro r ra t e i s t h e f re q u e n c y o f e r ro r s t h a t o c c u r d u r i n g d a t a
t ra n s m i s s i o n . H i g h e r ro r ra t e s c a n re s u l t i n d a t a c o r r u p t i o n a n d l o s s o f i n f o r m a t i o n .
S i g n a l - t o - N o i s e R a t i o : s i g n a l - to - n o i s e ra t i o re f e r s to t h e a m o u n t o f s i g n a l s t re n g t h
c o m p a re d to t h e a m o u n t o f b a c k g ro u n d n o i s e i n a c o m m u n i c a t i o n c h a n n e l . H i gh e r
s i g n a l - to - n o i s e ra t i o s re s u l t i n c l e a re r a n d m o re re l i a b l e d a t a c o m m u n i c a t i o n .
I n t e r f e re n c e : i n t e r f e re n c e c a n o c c u r w h e n o t h e r s i g n a l s o r d e v i c e s i n te r fe re w i t h t h e
communication channel, resulting in data loss or corruption.
QUALITY OF COMMUNICATION CONT’D
T h e s e f a c t o r s c a n a l s o b e c l a s s i f i e d a s i n t e r n a l ly g e n e ra t e d o r a f f e c t e d by e x t e r n a l f o rc e s
I n t e r n a l f a c t o r s - I n t e r n a l fa c to r s t h a t i n t e r fe re w i t h n e t w o r k c o m m u n i c a t i o n a r e
r e l a t e d t o t h e n a t u r e o f t h e m e s s a g e i t s e l f . D i f f e re n t t y p e s o f m e s s a g e s m ay va r y i n
c o m p l ex i t y a n d i m p o r t a n c e . S o m e o f t h e i n t e r n a l f a c t o r s i n c l u d e :
The size of the message
The complexity of the message
The importance of the message
E x te r n a l f a c to r s - T h e e x t e r n a l f a c t o r s a f fe c t i n g c o m m u n i c a t i o n a re re l a t e d to t h e
c o m p l ex i t y o f t h e n e t w o r k a n d t h e n u m b e r o f d e v i c e s a m e s s a g e m u s t p a s s t h r o u g h o n i t s
r o u t e t o i t s f i n a l d e s t i n a t i o n . S o m e o f t h e ex t e r n a l f a c t o r s i n c l u d e :
T h e q u a l i t y o f t h e p a t h way b e t w e e n t h e s e n d e r a n d t h e re c i p i e n t
T h e n u m b e r o f o t h e r m e s s a g e s b e i n g t ra n s m i t t e d s i m u l t a n e o u s ly o n t h e
communication network
The amount of time allotted for successful communication
ELEMENTS OF A DATA COMMUNICATION SYSTEM
A da ta co m m un ic a tio n sys te m i s re fe r re d to a s a c o m p l ex a rra n g e m e n t o f h a rdwa re ,
s o ftwa re , p ro to c o ls , a nd p ro c e du re s t h a t wo rk t o g e t h e r to t ra ns m i t da t a f ro m
s o urc e to de s tin a tio n. A da t a c o m m u n i c a t i o n s sys te m h a s five c o m p o ne nt s , na m e ly :
Me s s a g e - th e m e s s a g e i s t h e i nfo rm a t i o n ( da t a ) to b e c o m m u n i c a te d . Po p u l a r
fo rm s o f info r m a ti o n i nc l u de tex t , nu m b e r s , p i c t u res , a u di o , a nd vi de o ;
S e nd e r - th e s e nde r i s t h e d evi c e t h a t s e nds t h e d a t a m e s s a g e . I t c a n b e a
co m p ute r, wo r ks ta t i o n, te l e p h o n e h a n ds e t , vi de o c a m e ra , a nd s o o n;
Re ce ive r - th e re c e ive r i s t h e d ev i c e t h a t re c e ive s t h e m e s s a g e . I t c a n b e a
co m p ute r, wo r ks ta t i o n, te l e p h o n e h a n ds e t , te l evi s i o n, a nd s o o n;
Trans mi s s io n m e d ium - t h e t ra ns m i s s i o n m e di u m i s t h e p hys i c a l p a t h by wh i c h
a m e s s a g e trave l s fro m s e nd e r to re c e ive r. S o m e exa m p l e s o f t ra n s m i s s i o n
m e dia ; a nd
Pro tocol - A p ro to c o l i s a s e t o f r u l e s t h a t g ove rn da t a c o m m u ni c a t i o ns . It
re p re s e nts a n a g re e m e nt b et we e n t h e c o m m u ni c a t i n g d ev i c e s . Wi t h o u t a
p ro to co l, two devi c e s m ay b e c o nn e c te d b u t n o t c o m m u n i c a t i ng , j u s t a s a p e rs o n
s p e a kin g Fre nch c a nno t b e u nde r s to o d by a p e rs o n wh o s p e a ks o n ly J a p a n e s e .
ELEMENTS OF A DATA COMMUNICATION SYSTEM CONT’D
A typical data communication system is shown in figure 1
Te x t - I n d a t a c o m m u n i c a t i o n s , t e x t i s r e p r e s e n t e d a s a b i t p a t t e r n , a s e q u e n c e o f b i t s ( 0 ’ s o r 1 ’ s ) .
Di fferent set s of bi t patterns have been desi gned to rep resent text symb ol s. Each set i s called a
code, and the process of representing symbols is called coding.
N u m b e r s - N u m b e r s a r e a l s o r e p r e s e n t e d b y b i t p a t t e r n s . H o w e v e r, a c o d e s u c h a s A S C I I i s n o t
used to represent numbers; the number is d irec tly converted to a b inary numb er to simpli fy
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
d e p e n d s o n t h e r e s o l u t i o n . Fo r e x a m p l e , a n i m a g e c a n b e d ivi d ed into 1000 pi xels 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.
Audio - Audio refers to the recording or broadcasting of sound or music. Audio is by nature
d ifferent from text , numbers, or images. It i s continuous, not discrete. Even when we use a
mic rophone to c hange voic e or music to an elec tric signal, we create a conti nuous signal.
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 d i s c r e t e e n t i t y, a r r a n g e d t o c o n v e y t h e i d e a o f m o t i o n . A g a i n , w e c a n c h a n g e v i d e o t o a d i g i t a l
or an analog signal.
NETWORK COMPONENTS
Network components are the various hardware and software elements
that make up a computer network. These components work together
to enable communication and data transfer between devices
connected to the network. Two major categories of devices exist,
namely:
Devices which often originate messages that comprise our
communication. These include various types of computers (a PC and
laptop icon are shown), servers etc.
Devices, used to direct and manage messages across the network, as
well as other common networking symbols. These include routers,
switches, repeaters etc.
NETWORK INTERFACE CARDS
A n et wo rk i nte r fa c e c a rd ( N I C ) i s d e s c r i bed a s a h a rdwa re c o m po n en t t ha t
c o n ne c t s a c o m pu ter s ys tem to a n et wo rk . It is a ls o refe rred to a s a n et wo rk
a d a p ter o r ne t wo rk c a rd . Th e N I C is re s p o ns ib le fo r en a bli ng t he c o m pu ter to
c o m m un ic a te wit h ot he r d ev ic es o n t he n et wo rk by s en d in g a nd rec eiv in g d a t a
p a c ke t s .
N I C s co m e in di f feren t t y p es a n d s p ee d s . T he mo s t co m m o n t y p es o f N I C s
i nc lu de et her ne t , w i-f i , a n d Blu eto o t h. Et he r ne t N I C s a re u s e d fo r w ire d /c a b le
c o n ne c t i on s a nd c a n s u p po r t d if fere nt s pe ed s , in c lud in g 10 m bp s , 1 0 0m bp s , a n d
1 gb ps . W i-f i NIC s a re u s e d fo r w ire les s c o n nec t io n s a n d s u p po r t d i f feren t
s t a nd a rd s, in c lu di ng 8 0 2.1 1n , 8 02 .11 a c , a n d 8 02 .11 a x .
N I C s have a un iq ue id en t if ie r c a l led a m ed ia a c c es s c o n t ro l ( m a c ) a d d re s s . T hi s
a d d res s is us ed to id en t if y t he N I C o n t h e n et wo rk a nd is a s s ig n ed by t he
m a nu fa c t urer. T h e MAC a d d res s is a 48 -bi t va lu e t h a t is t y pi c a lly w r it ten i n
h exa d ec im a l fo r m a t .
N I C s c a n b e c o n f ig u re d us in g s of t wa re to s e t pa ra m ete rs s uc h a s t h e I P a d d res s ,
s ub ne t ma sk , a n d d efa ul t ga teway. T h is c o nf ig ura t io n a ll ows t h e co m p u ter to
c o m m un ic a te wit h o t h er d ev i ce s o n t he n et wo rk .
NETWORK INTERFACE CARDS CONT’D
Fig. 1.2 shows an image of different types of NICs which can be used in computer systems.
Network devices may be inter-network or intra-network. Described below are some examples of network
devices:
Repeater – A repeater is a network device that is used to extend the reach of a network by regenerating and
amplifying network signals. It receives a weak or degraded signal from one network segment and
retransmits the signal at a higher power level to extend the reach of the network. Repeaters work at the
physical layer of the OSI model and can be used to extend the range of both wired and wireless networks.
Types of Hubs
Active Hub - These are the hubs that have their own power supply and can clean, boost, and relay the signal along with the
network. It serves both as a repeater as well as a wiring center. These are used to extend the maximum distance between
nodes.
Passive Hub - These are the hubs that collect wiring from nodes and power supply from the active hub. These hubs relay
signals onto the network without cleaning and boosting them and can’t be used to extend the distance between nodes.
Intelligent Hub - It works like active hubs and includes remote management capabilities. They also provide flexible data
rates to network devices. It also enables an administrator to monitor the traffic passing through the hub and to configure each
port in the hub.
Switches use a technique called MAC (Media Access Control) address learning to identify the devices on the
network and their corresponding MAC addresses. Each device on the network has a unique MAC address, and the
switch maintains a table that maps the MAC addresses of devices connected to its ports. When a data packet
arrives at the switch, the switch looks up the MAC address of the destination device in its table and forwards the
packet only to the appropriate port that is connected to the destination device.
Switches are commonly used in local area networks (LANs) to connect computers, printers, servers, and other
devices within the network. They provide a fast and efficient way for devices to communicate with each other, as
they can send data packets only to the intended recipient, reducing network congestion and improving
performance. Switches can also be used to segment a network into smaller, more manageable subnetworks,
improving security and reducing the scope of network issues. Fig. 1.5 shows an image of a 8-port hub.
Bridges use a technique called MAC (Media Access Control) address filtering to identify the devices on each
network segment and their corresponding MAC addresses. Each device on the network has a unique MAC address,
and the bridge maintains a table that maps the MAC addresses of devices connected to each network segment.
When a data packet arrives at the bridge, the bridge looks up the MAC address of the destination device in its table
and forwards the packet only to the appropriate network segment that is connected to the destination device.
Bridges are commonly used in local area networks (LANs) to connect different segments of the network and
improve network performance. By dividing the network into smaller segments, bridges can reduce network
congestion and improve network speed. Bridges can also be used to segment the network for security reasons,
preventing traffic from one segment of the network from reaching other segments.
Fig. 1.6 shows an image of a bridge.
They provide a bridge between networks with different technologies, allowing devices on one network to
communicate with devices on another network. Gateways can also be used to connect networks with different
security policies, enabling secure communication between different parts of an organization or different
organizations.
For example, a gateway can be used to connect a local area network (LAN) to the internet. The gateway provides a
link between the LAN and the internet, allowing devices on the LAN to access resources on the internet and vice
versa. They are often used in large enterprise networks or in the internet infrastructure to provide connectivity
between different networks. Fig. 1.7 shows an image of a Gateway.
Each device on a network has a unique IP address, and routers use these addresses to determine the path that
data packets should take to reach their destination. When a data packet arrives at a router, the router examines
the destination IP address and uses its routing table to determine the next hop for the packet.
Routers are commonly used in wide area networks (WANs) and the internet to connect different networks
together. They provide a flexible and scalable way to connect networks of different sizes and technologies.
Routers can also be used to segment a network into smaller subnetworks, improving security and reducing the
scope of network issues. In addition to forwarding data packets, routers can also perform other functions, such
as filtering traffic based on various criteria, performing network address translation (NAT), and providing virtual
private network (VPN) connectivity. Fig. 1.8 shows an image of a Router.