Resolucion Ejercicio Forouzan PDF
Resolucion Ejercicio Forouzan PDF
Resolucion Ejercicio Forouzan PDF
LATACUNGA
6th LEVEL
The network support layers are the physical and data link.
Q2-4. In the TCP/IP protocol suite, what are the identical objects
at the sender and the receiver sites when we think about the logical
connection at the application layer?
Identical objects are the two messages at the application
layer: one sent and one received.
Q2-5. A host communicates with another host using the TCP/IP protocol
suite. What is the unit of data sent or received at each of the
following layers?
1
Q2-6. Which of the following data units is encapsulated in a frame?
a) a user datagram
b) a datagram (pag. 39)
c) a segment
2
c) data-link layer Link-layer addresses
The application layer is the top layer in the suite; it does not
provide services to any layer, which means
multiplexing/demultiplexing does not exist for this layer.
Q2-15. If there is a single path between the source host and the
destination host, do we need a router between the two hosts?
We do not need a router in this case because a router is needed when
there is more than one path between the two hosts; the router is
responsible for choosing the best path at each moment.
3
2. PROBLEMS
P2-1. Answer the following questions about Figure 2.2 when the
communication is from Maria to Ann:
P2-2. Answer the following questions about Figure 2.2 when the
communication is from Maria to Ann:
4
FIG 2.2 PROBLEM 2.3
𝑟 20
𝐴 = 𝑃 (1 + ) 𝑛 = 500𝑀 (1 + ) 10
100 100
𝐴 = 500𝑀(1.2)10 = 500𝑀(6.19)
𝐴 = 3100𝑀 = 3.1𝐵
5
P2-5. Assume we have created a packet-switched internet. Using the
TCP/IP protocol suite, we need to transfer a huge file. What are the
advantage and disadvantage of sending large packets?
ADVANTAGE DISADVANTEGE
Solutions:
6
P2-8. In figure 2.10, when the ip protocol decapsulates the
transport-layer packet, how does it know to which upper-layer
protocol (UDP or TCP) the packet should be delivered?
7
At the source node At the destination node
8
a. Original Layers b. Layers used in this book
No it does not mean that we are adding another layer to the protocol
suite, it just means that the transport layer has taken another
function and now contains the encryption/decryption process. This
process could be contained and handled within the transport layer to
be able to encrypt and decrypt data.
Source/destination
Source/destination
airport airport
Baggage Baggage
checking/claiming
checking/claiming
Boarding/unboarding
Boarding/unboarding
Takeoff/Landing Takeoff/Landing
Flying
9
P2-12. The presentation of data is becoming more and more important
in today’s Internet. Some people argue that the TCP/IP protocol suite
needs to add a new layer to take care of the presentation of data.
If this new layer is added in the future, where should its position
be in the suite? Redraw Figure 2.4 to include this layer.
Presentation Presentation
Layer 6
Application Application
Layer 5
Transport Transport Layer 4
If you want to change to one, the ones that will be modified will
be the data link layer and the network layer. The transport layer
does not need modification.
10
P2-15. Using the internet in Figure 1.11 (Chapter 1) in the text,
show the layers of the TCP/IP protocol suite and the flow of data
when two hosts, one on the west coast and the other on the east
coast, exchange messages.
The layers that intervene when two hosts, one on the west coast and
the other on the east coast, exchange messages are:
Physical Layer
Data-link Layer
Network Layer
Transport Layer
Application Layer
There are some protocols in the transport layer on the internet each
designed for some specific task. The main protocol is the
Transmission Control Protocol (TCP).
TCP provides flow control (which matches the sending data rate of
the source host with the receiving data rate of the destination host
to avoid overwhelming the destination)
11
CHAPTER 3
1. QUESTIONS
Q3-1. What is the relationship between period and frequency?
1 1
𝑓= 𝑦 𝑇=
𝑇 𝑓
Q3-2. What does the amplitude of a signal measure? What does the
frequency of a signal measure? What does the phase of a signal
measure?
12
of the cable is utilized by a single signal. Conversely, in the
broadband transmission, multiple signals are sent on multiple
frequencies simultaneously using a single channel.
Q3-9. Why do optical signals used in fiber optic cables have a very
short wave length?
13
Q3-12. Is the frequency domain plot of an alarm system discrete or
continuous?
An alarm system is normally periodic. Its frequency domain plot is
therefore discrete.
Q3-15. We modulate several voice signals and send them through the
air. Is this base-band or broadband transmission?
The baseband deal only with a simple single signal, then it’s
broadband transmission because it involves modulation.
2. PROBLEMS
P3-1. Given the frequencies listed below, calculate the
corresponding periods.
a. 24 Hz
1
𝑓=
𝑇
1
𝑇=
𝑓
1
𝑇=
24
𝑇 = 0.0416𝑠
b. 8 MHz
1
𝑓=
𝑇
1
𝑇=
𝑓
1
𝑇=
8 ∗ 106
𝑇 = 0.125𝜇𝑠
c. 140 KHz
1
𝑓=
𝑇
14
1
𝑇=
𝑓
1
𝑇=
140 ∗ 103
𝑇 = 0.00714𝑚𝑠
a. 5 s
1 1
𝑓= = = 0.2𝐻𝑧
𝑇 5𝑠
b. 12 μs
1 1
𝑓= = = 83333𝐻𝑧 = 83.33 𝑘𝐻𝑧
𝑇 12𝜇𝑠
c. 220 ns
1 1
𝑓= = = 4550000 𝐻𝑧 = 4.55 𝑀𝐻𝑧
𝑇 220𝑛𝑠
Solution:
As it has the frequencies from 0, 20, 50, 100 and 200 Hz. Its lower
frequency is 0 and the upper frequency is 200 Hz. Using the bandwidth
formula, we have:
15
𝐵 = 𝐹𝑆 − 𝐹𝑖
𝐵 = 200𝐻𝑧 − 0
𝐵 = 200ℎ𝑧
P3-7. What is the bit rate for each of the following signals?
16
b. A signal in which 1 bit lasts 2 ms
1 1
bit rate = = = 500 bps = 0.5 Kbps
bit duration 2 ms
10 bits 1 bit
bit = =
20 μs 2 μs
1 1
bit rate = = = 500 000 bps = 500 Kbps
bit duration 2 μs
10𝑏𝑖𝑡𝑠
= 10𝑚𝑠
1000𝑏𝑝𝑠
b. How long does it take to send out a single character (8 bits)?
8bits
= 8𝑚𝑠
1000𝑏𝑝𝑠
100000 ∗ 8𝑏𝑖𝑡𝑠
= 800𝑠
1000𝑏𝑝𝑠
P3-9. What is the bit rate for the signal in Figure 3.35?
17
P3-10. What is the frequency of the signal in Figure 3.36?
18
The signal is periodic, so the frequency domain is made of discrete
frequencies.
19
90
𝑑𝐵 = 10 log10 ( )
100
𝑑𝐵 = −0.46𝑑𝐵
𝑃2
𝑑𝐵 = 10𝑙𝑜𝑔10 ( )
𝑃1
𝑃2
−10 = 10𝑙𝑜𝑔10 ( )
5
𝑃2
−1 = 𝑙𝑜𝑔10 ( )
5
𝑃2
10−1 =
5
𝑃2 = 10−1 (5)
𝑷𝟐 = 𝟎. 𝟓 𝑾
4𝑑𝐵 → 𝑎𝑑𝑚
4𝑑𝐵
10 10 = 2.51 𝑎𝑑𝑚
𝐺𝑡𝑜𝑡𝑎𝑙 = 3(2.51)
𝐺𝑡𝑜𝑡𝑎𝑙 = 7.53
20
P3-18. If the bandwidth of the channel is 5 Kbps, how long does it
take to send a frame of 100,000 bits out of this device?
100,000 bits
= 20 s
5 Kbps
𝑘𝑚
480𝑠 × 300,000 = 144,000,000 𝑘𝑚
𝑠
Data:
Wavelength=1 μm
Periods= 1000
𝑊𝑎𝑣𝑒𝑙𝑒𝑛𝑔𝑡ℎ
𝑃𝑟𝑜𝑝𝑎𝑔𝑎𝑡𝑖𝑜𝑛𝑠 𝑠𝑝𝑒𝑒𝑑 =
𝑝𝑖𝑟𝑖𝑜𝑑
1𝑢𝑚
𝑃𝑟𝑜𝑝𝑎𝑔𝑎𝑡𝑖𝑜𝑛𝑠 𝑠𝑝𝑒𝑒𝑑 =
1
1000
𝑙𝑜𝑔(1 + 𝑆𝑁𝑅)
𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦 = 𝑏𝑎𝑛𝑑𝑤𝑖𝑑𝑡ℎ 𝑥
𝑙𝑜𝑔(2)
21
𝑙𝑜𝑔(1 + 1000)
𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑦 = (4000)𝑥
𝑙𝑜𝑔(2)
𝑪 = 𝑩 𝐥𝐨𝐠 𝟐 (𝟏 + 𝑺𝑵𝑹)
10
𝐶 = 4.000 log 2 (1 + ( ))
0.005
𝐶 = 43,866𝑏𝑝𝑠
To represent 1024 colors, we need log 2 1024 = 10 bits. The total number
of bits are, therefore:
As the noise signal ratio is given by the signal power over the noise
power since it represents the losses they will have in power.
𝑃𝑁 = 𝑁𝑂𝐼𝑆𝐸 ∗ 10
𝑃𝑁 = 2 ∗ 10−6 ∗ 10
𝑃𝑁 = 2 ∗ 10−5
𝑃𝑆
𝑆𝑁𝑅 = ( )
𝑃𝑁
22
0.2
𝑆𝑁𝑅 = ( )
2 ∗ 10−5
𝑆𝑁𝑅 = 100000
(𝑠𝑖𝑔𝑛𝑎𝑙 𝑣𝑜𝑙𝑡𝑎𝑔𝑒)2
𝑆𝑁𝑅 =
(𝑛𝑜𝑖𝑠𝑒 𝑣𝑜𝑙𝑡𝑎𝑔𝑒)2
𝑠𝑖𝑔𝑛𝑎𝑙 𝑣𝑜𝑙𝑡𝑎𝑔𝑒 2
𝑆𝑁𝑅 = ( )
𝑛𝑜𝑖𝑠𝑒 𝑣𝑜𝑙𝑡𝑎𝑔𝑒
𝑠𝑖𝑔𝑛𝑎𝑙 𝑣𝑜𝑙𝑡𝑎𝑔𝑒 = 20 ∗ (𝑛𝑜𝑖𝑠𝑒 𝑣𝑜𝑙𝑡𝑎𝑔𝑒)
2
20 ∗ (𝑛𝑜𝑖𝑠𝑒 𝑣𝑜𝑙𝑡𝑎𝑔𝑒)
𝑆𝑁𝑅 = ( )
𝑛𝑜𝑖𝑠𝑒 𝑣𝑜𝑙𝑡𝑎𝑔𝑒
𝑆𝑁𝑅 = 400
𝑆𝑁𝑅[𝑑𝐵] = 10 ∗ log(𝑆𝑁𝑅 + 1)
𝑆𝑁𝑅[𝑑𝐵] = 10 ∗ log(400 + 1)
𝑆𝑁𝑅[𝑑𝐵] = 26.031
𝑆
𝑆𝑁𝑅𝑑𝐵 = 10𝑙𝑜𝑔10 ( )
𝑁
𝑆
40 = 10𝑙𝑜𝑔10 ( )
𝑁
𝑆 40
= 1010 = 10000
𝑁
𝑆
𝐶 = 𝐵 ∗ 𝑙𝑜𝑔2 (1 + )
𝑁
23
𝐶 = 20𝐾𝐻𝑧 ∗ 𝑙𝑜𝑔2 (1 + 10000)
𝐶 = 265,76 𝐾𝑏𝑝𝑠
𝑆
𝑆𝑁𝑅𝑑𝐵 = 10𝑙𝑜𝑔10 ( )
𝑁
𝑆
4 = 10𝑙𝑜𝑔10 ( )
𝑁
𝑆 4
= 1010 = 2,5118
𝑁
𝑆
𝐶 = 𝐵 ∗ 𝑙𝑜𝑔2 (1 + )
𝑁
𝐶 = 362,44 𝐾𝑏𝑝𝑠
𝑆
𝑆𝑁𝑅𝑑𝐵 = 10𝑙𝑜𝑔10 ( )
𝑁
𝑆
20 = 10𝑙𝑜𝑔10 ( )
𝑁
𝑆 20
= 1010 = 100
𝑁
𝑆
𝐶 = 𝐵 ∗ 𝑙𝑜𝑔2 (1 + )
𝑁
𝐶 = 6,66 𝑀𝑏𝑝𝑠
24
C = B 𝑙𝑜𝑔2 (1 + SNR)
B = bandwidth
C = B 𝑙𝑜𝑔2 (1 + SNR)
𝑆𝑁𝑅 = 225 − 1
𝑆𝑁𝑅 = 33554431
𝑆𝑁𝑅(𝑑𝐵) = 75.25𝑑𝐵
𝑝𝑎𝑐𝑘𝑒𝑡 𝑙𝑒𝑛𝑔𝑡ℎ
𝑇𝑟𝑎𝑛𝑠𝑚𝑖𝑠𝑠𝑖𝑜𝑛 𝑡𝑖𝑚𝑒 =
𝑏𝑎𝑛𝑑𝑤𝑖𝑑𝑡ℎ
25
(8,000,000 𝑏𝑖𝑡𝑠)
𝑇𝑟𝑎𝑛𝑠𝑚𝑖𝑠𝑠𝑖𝑜𝑛 𝑡𝑖𝑚𝑒 = = 40 𝑠
(200,000 𝑏𝑝𝑠)
P3-32. How many bits can fit on a link with a 2 ms delay if the
bandwidth of the link is:
a. 1 Mbps?
b. 10 Mbps?
c. 100 Mbps?
Solution:
26
𝑃𝑟𝑜𝑐𝑒𝑠𝑠𝑖𝑛𝑔 𝑡𝑖𝑚𝑒 = 10 ∗ 1𝜇𝑠
5000000 𝑏𝑖𝑡𝑠
𝑇𝑟𝑎𝑛𝑠𝑚𝑖𝑠𝑠𝑖𝑜𝑛 𝑡𝑖𝑚𝑒 =
5 𝑀𝑏𝑝𝑠
𝑇𝑟𝑎𝑛𝑠𝑚𝑖𝑠𝑠𝑖𝑜𝑛 𝑡𝑖𝑚𝑒 = 1𝑠
2 ∗ 106 𝑚
𝑃𝑟𝑜𝑝𝑎𝑔𝑎𝑡𝑖𝑜𝑛 𝑡𝑖𝑚𝑒 =
2 ∗ 108 𝑚/𝑠
27