Beruflich Dokumente
Kultur Dokumente
Unit - 1
Data Communications
Text Book
Behrouz .A. Forouzan, Data communication and Networking, Tata McGrawHill, 2004
10/12/2012
Overview
10/12/2012
Introduction
10/12/2012 Unit-1 : Data Communications 4
Components
Figure 1.1
10/12/2012
Figure 1.2
Simplex
10/12/2012
Figure 1.3
Half-duplex
10/12/2012
Figure 1.4
Full-duplex
10/12/2012
1.2 Networks
Distributed Processing Network Criteria Physical Structures Categories of Networks
10/12/2012 Unit-1 : Data Communications 10
Figure 1.5
Point-to-point connection
10/12/2012
11
Figure 1.6
Multipoint connection
10/12/2012
12
Figure 1.7
Categories of topology
10/12/2012
13
Figure 1.8
10/12/2012
14
Figure 1.9
Star topology
10/12/2012
15
Figure 1.10
Bus topology
10/12/2012
16
10/12/2012
17
Figure 1.12
Categories of networks
10/12/2012
18
Figure 1.13
LAN
10/12/2012
19
Figure 1.13
LAN (Continued)
10/12/2012
20
Figure 1.14
MAN
10/12/2012
21
Figure 1.15
WAN
10/12/2012
22
10/12/2012
23
Figure 1.16
Internet today
10/12/2012
24
Network Models
10/12/2012 Unit-1 : Data Communications 26
Figure 2.1
Sending a letter
10/12/2012
28
Peer-to-Peer Processes
Figure 2.2
Internet layers
10/12/2012
30
Figure 2.3
Peer-to-peer processes
10/12/2012
31
Figure 2.4
10/12/2012
32
Figure 2.5
Physical layer
10/12/2012
33
Note: The physical layer is responsible for transmitting individual bits from one node to the next.
10/12/2012
34
Figure 2.6
10/12/2012
35
Note: The data link layer is responsible for transmitting frames from one node to the next.
10/12/2012
36
Figure 2.7
Node-to-node delivery
10/12/2012
37
Example 1
In Figure 2.8 a node with physical address 10 sends a frame to a node with physical address 87. The two nodes are connected by a link. At the data link level this frame contains physical addresses in the header. These are the only addresses needed. The rest of the header contains other information needed at this level. The trailer usually contains extra bits needed for error detection
10/12/2012
38
Figure 2.8
Example 1
10/12/2012
39
Figure 2.9
Network layer
10/12/2012
40
Note: The network layer is responsible for the delivery of packets from the original source to the final destination.
10/12/2012
41
Figure 2.10
Source-to-destination delivery
10/12/2012
42
Example 2
In Figure 2.11 we want to send data from a node with network address A and physical address 10, located on one LAN, to a node with a network address P and physical address 95, located on another LAN. Because the two devices are located on different networks, we cannot use physical addresses only; the physical addresses only have local jurisdiction. What we need here are universal addresses that can pass through the LAN boundaries. The network (logical) addresses have this characteristic.
10/12/2012
43
10/12/2012
44
Figure 2.12
Transport layer
10/12/2012
45
Note: The transport layer is responsible for delivery of a message from one process to another.
10/12/2012
46
Figure 2.12
10/12/2012
47
Example 3
Figure 2.14 shows an example of transport layer communication. Data coming from the upper layers have port addresses j and k (j is the address of the sending process, and k is the address of the receiving process). Since the data size is larger than the network layer can handle, the data are split into two packets, each packet retaining the port addresses (j and k). Then in the network layer, network addresses (A and P) are added to each packet.
10/12/2012
48
Figure 2.14
Example 3
10/12/2012
49
Figure 2.15
Application layer
10/12/2012
50
Note: The application layer is responsible for providing services to the user.
10/12/2012
51
Figure 2.16
Summary of duties
10/12/2012
52
A comparison
10/12/2012
53
Figure 2.17
OSI model
10/12/2012
54
Digital Transmission
10/12/2012 Unit-1 : Data Communications 55
Some Characteristics
Figure 4.1
Line coding
10/12/2012
57
Figure 4.2
10/12/2012
58
Figure 4.3
DC component
10/12/2012
59
Example 1
A signal has two data levels with a pulse duration of 1 ms. We calculate the pulse rate and bit rate as follows:
Pulse Rate = 1/ 10-3= 1000 pulses/s Bit Rate = Pulse Rate x log2 L = 1000 x log2 2 = 1000 bps
10/12/2012
60
Example 2
A signal has four data levels with a pulse duration of 1 ms. We calculate the pulse rate and bit rate as follows:
Pulse Rate = = 1000 pulses/s Bit Rate = PulseRate x log2 L = 1000 x log2 4 = 2000 bps
10/12/2012
61
Figure 4.4
Lack of synchronization
10/12/2012
62
Example 3
In a digital transmission, the receiver clock is 0.1 percent faster than the sender clock. How many extra bits per second does the receiver receive if the data rate is 1 Kbps? How many if the data rate is 1 Mbps?
Solution
At 1 Kbps: 1000 bits sent 1001 bits received1 extra bps At 1 Mbps: 1,000,000 bits sent 1,001,000 bits received1000 extra bps
10/12/2012
63
Figure 4.5
10/12/2012
64
10/12/2012
65
Figure 4.6
Unipolar encoding
10/12/2012
66
Note: Polar encoding uses two voltage levels (positive and negative).
10/12/2012
67
Figure 4.7
10/12/2012
68
Note: In NRZ-L the level of the signal is dependent upon the state of the bit.
10/12/2012
69
10/12/2012
70
Figure 4.8
10/12/2012
71
Figure 4.9
RZ encoding
10/12/2012
72
Note: A good encoded digital signal must contain a provision for synchronization.
10/12/2012
73
Figure 4.10
Manchester encoding
10/12/2012
74
Note: In Manchester encoding, the transition at the middle of the bit is used for both synchronization and bit representation.
10/12/2012
75
10/12/2012
76
Note: In differential Manchester encoding, the transition at the middle of the bit is used only for synchronization. The bit representation is defined by the inversion or noninversion at the beginning of the bit.
10/12/2012 Unit-1 : Data Communications 77
Note: In bipolar encoding, we use three levels: positive, zero, and negative.
10/12/2012
78
Figure 4.12
10/12/2012
79
Figure 4.13
2B1Q
10/12/2012
80
Figure 4.14
MLT-3 signal
10/12/2012
81
10/12/2012
82
Figure 4.15
Block coding
10/12/2012
83
Figure 4.16
10/12/2012
84
0000
0001
11110
01001
1000
1001
10010
10011
0010
0011 0100 0101 0110 0111
10/12/2012
10100
10101 01010 01011 01110 01111
1010
1011 1100 1101 1110 1111
10110
10111 11010 11011 11100 11101
85
S (Set) R (Reset)
10/12/2012
11001 00111
Unit-1 : Data Communications 86
Figure 4.17
10/12/2012
87
4.3 Sampling
Pulse Amplitude Modulation Pulse Code Modulation Sampling Rate: Nyquist Theorem How Many Bits per Sample? Bit Rate
10/12/2012 Unit-1 : Data Communications 88
Figure 4.18
PAM
10/12/2012
89
Note: Pulse amplitude modulation has some applications, but it is not used by itself in data communication. However, it is the first step in another very popular conversion method called pulse code modulation.
10/12/2012 Unit-1 : Data Communications 90
Figure 4.19
10/12/2012
91
Figure 4.20
10/12/2012
92
Figure 4.21
PCM
10/12/2012
93
Figure 4.22
10/12/2012
94
Note: According to the Nyquist theorem, the sampling rate must be at least 2 times the highest frequency.
10/12/2012
95
Figure 4.23
Nyquist theorem
10/12/2012
96
Example 4
What sampling rate is needed for a signal with a bandwidth of 10,000 Hz (1000 to 11,000 Hz)?
Solution
The sampling rate must be twice the highest frequency in the signal: Sampling rate = 2 x (11,000) = 22,000 samples/s
10/12/2012
97
Example 5
A signal is sampled. Each sample requires at least 12 levels of precision (+0 to +5 and -0 to -5). How many bits should be sent for each sample?
Solution
We need 4 bits; 1 bit for the sign and 3 bits for the value. A 3-bit value can represent 23 = 8 levels (000 to 111), which is more than what we need. A 2-bit value is not enough since 22 = 4. A 4-bit value is too much because 24 = 16.
10/12/2012 Unit-1 : Data Communications 98
Example 6
We want to digitize the human voice. What is the bit rate, assuming 8 bits per sample?
Solution
The human voice normally contains frequencies from 0 to 4000 Hz. Sampling rate = 4000 x 2 = 8000 samples/s Bit rate = sampling rate x number of bits per sample = 8000 x 8 = 64,000 bps = 64 Kbps
10/12/2012 Unit-1 : Data Communications 99
Note: Note that we can always change a band-pass signal to a low-pass signal before sampling. In this case, the sampling rate is twice the bandwidth.
10/12/2012
100
10/12/2012
101
Figure 4.24
Data transmission
10/12/2012
102
Figure 4.25
Parallel transmission
10/12/2012
103
Figure 4.26
Serial transmission
10/12/2012
104
Note: In asynchronous transmission, we send 1 start bit (0) at the beginning and 1 or more stop bits (1s) at the end of each byte. There may be a gap between each byte.
10/12/2012
105
Note: Asynchronous here means asynchronous at the byte level, but the bits are still synchronized; their durations are the same.
10/12/2012
106
Figure 4.27
Asynchronous transmission
10/12/2012
107
Note: In synchronous transmission, we send bits one after another without start/stop bits or gaps. It is the responsibility of the receiver to group the bits.
10/12/2012
108
Figure 4.28
Synchronous transmission
10/12/2012
109
Modem Standards
10/12/2012
110
Note: A telephone line has a bandwidth of almost 2400 Hz for data transmission.
10/12/2012
111
Figure 5.18
10/12/2012
112
10/12/2012
113
Figure 5.19
Modulation/demodulation
10/12/2012
114
Figure 5.20
10/12/2012
115
Figure 5.21
10/12/2012
116
Figure 5.22
Traditional modems
10/12/2012
117
Figure 5.23
56K modems
10/12/2012
118
Transmission Media
10/12/2012 Unit-1 : Data Communications 119
Figure 7.1
10/12/2012
120
Figure 7.2
10/12/2012
121
Figure 7.3
Twisted-pair cable
10/12/2012
123
Figure 7.4
10/12/2012
124
1
2
very low
< 2 MHz
Analog
Analog/digital
Telephone
T-1 lines
3
4 5 6 (draft) 7 (draft)
10/12/2012
16 MHz
20 MHz 100 MHz 200 MHz 600 MHz
10 Mbps
20 Mbps 100 Mbps 200 Mbps 600 Mbps
Unit-1 : Data Communications
Digital
Digital Digital Digital Digital
LANs
LANs LANs LANs LANs
125
Figure 7.5
UTP connector
10/12/2012
126
Figure 7.6
UTP performance
10/12/2012
127
Figure 7.7
Coaxial cable
10/12/2012
128
Category
RG-59 RG-58 RG-11
Impedance
75 W 50 W 50 W
Use
Cable TV Thin Ethernet Thick Ethernet
10/12/2012
129
Figure 7.8
BNC connectors
10/12/2012
130
Figure 7.9
10/12/2012
131
Figure 7.10
10/12/2012
132
10/12/2012
133
Figure 7.12
Propagation modes
10/12/2012
134
Figure 7.13
Modes
10/12/2012
135
10/12/2012
136
Figure 7.14
Fiber construction
10/12/2012
137
Figure 7.15
10/12/2012
138
Figure 7.16
10/12/2012
139
Radio Waves
Microwaves Infrared
10/12/2012 Unit-1 : Data Communications 140
Figure 7.17
10/12/2012
141
Figure 7.18
Propagation methods
10/12/2012
142
10/12/2012
143
Figure 7.19
10/12/2012
144
Figure 7.20
Omnidirectional antennas
10/12/2012
145
Note: Radio waves are used for multicast communications, such as radio and television, and paging systems.
10/12/2012
146
Figure 7.21
Unidirectional antennas
10/12/2012
147
Note: Microwaves are used for unicast communication such as cellular telephones, satellite networks, and wireless LANs.
10/12/2012
148
Note: Infrared signals can be used for shortrange communication in a closed area using line-of-sight propagation.
10/12/2012
149