1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
umka2103 [35]
3 years ago
10

Suppose you are designing a sliding window protocol for a 1 Mbps point-to-point link to the moon, which has a one-way latency of

1.25 seconds. Assume that each frame carries 1 KB of data. (a) How many frames need to be in transit to keep this pipe full? (b) What is the maximum reasonable size for SWS and RWS needed for such a system? (c) For the SWS and RWS sizes found in part b, what is the number of bits needed for the sequence number?
Engineering
1 answer:
mylen [45]3 years ago
7 0

Answer:

approx 306 frames need to be in transit to keep this pipe full

maximum reasonable size is 306 frames

sequence number = 10 bit

Explanation:

given data

transmission rate = 1 Mbps

size of frame Tt = 1 KB

one way latency Tp = 1.25 s

to find out

How many frames need and What is the maximum reasonable size for SWS and RWS and what is the number of bits needed for the sequence number

solution

we know useful time is = \frac{1 KB}{1 Mbps} = \frac{1024*8}{1000*1000}

so total time is

total time = Tt + 2Tp

total time = \frac{1024*8}{1000*1000} + 2 × 1.25

so

possible frames are

\frac{n*Tt}{Tt+2Tp} ≤ 1

n ≤ 1 + \frac{2.5*1000000}{1024*8}

n ≤ 306.17

so approx 306 frames need to be in transit to keep this pipe full

and

we know here

size of sending window is equal to size of receiving window

so maximum reasonable size is 306 frames

and

bit need for sequence number is

sequence number = log^{306+306}_2

sequence number = 10 bit

You might be interested in
Assume a program requires the execution of 50 x 10^6 FP instructions, 110 x 10^6 INT instructions, 80 x 10^6 Load/Store (L/S) in
Svetradugi [14.3K]

Answer:

We can not improve CPI of FP instructions when we run the program two times faster because it would be negative.

Explanation:

Processor clock rate = 2 GHz

Execution Time =   ∑  (\frac{Clock cyles}{Clock rate})

Clock cycles can be determined using following formula

Clock cycles = (CPI_{FP} x  No. FP instructions )+ ( CPI_{INT} x No. INT instructions) + ( CPI_{L/S}  x No. L/S instructions ) + ( CPI_{branch} x No. branch instructions)

Clock cycles = ( 50 x 10^{6} x 1) + (  110 x 10^{6} x 1) + ( 80 x 10^{6} x 4) + ( 16 x 10^{6} x 2)

Clock cycles = 512 x 10⁶

So,Initial Execution time for FP instructions is,

    = \frac{512(10^{6}) }{2(10^{9}) }

 Initial execution Time =  256 x 10⁻³

For 16 processors ,

clock cycle = 512 x 10⁶

Execution Time = 256 x 10⁻³

To run the program two times faster, half the number of clock cycles

(\frac{Clockcycles}{2} )=   (CPI_{FP} x  No. FP instructions )+ ( CPI_{INT} x No. INT instructions) + ( CPI_{L/S}  x No. L/S instructions ) + ( CPI_{branch} x No. branch instructions)

CPI_{FP improved} x No. FP instructions  =  (\frac{Clockcycles}{2} ) -[ ( CPI_{INT} x No. INT instructions) + ( CPI_{L/S}  x No. L/S instructions ) + ( CPI_{branch} x No. branch instructions)]

CPI_{FP improved} x 50 x 10^{6}  = ( \frac{512(10)^{6} }{2} ) - [ (  110 x 10^{6} x 1) + ( 80 x 10^{6} x 4) + ( 16 x 10^{6} x 2)]

CPI_{FP improved} x 50 x 10^{6}  =  - 206 x 10^{6}

CPI_{FP improved}  = - 206 x 10^{6} / 50 x 10^{6}

CPI_{FP improved} = - 4.12 < 0

3 0
3 years ago
One kilogram of air, initially at 5 bar, 350 K, and 3 kg of carbon dioxide (CO2), initially at 2 bar, 450 K, are confined to opp
pentagon [3]

Answer:

Check the explanation

Explanation:

Energy alance of 2 closed systems: Heat from CO2 equals the heat that is added to air in

m_{a} c_{v,a}(T_{eq} -T_{a,i)} =m_{co2} c_{v,co2} (T_{co2,i} -T_{eq)}

1x0.723x(T_{eq} -350)=3x0.780x(450-T_{eq} ) ⇒T_{eq} = 426.4 °K

The initail volumes of the gases can be determined by the ideal gas equation of state,

V_{a,i}  = \frac{mRT_{a,i} }{P_{a,i} }=  \frac{1x (8.314 28.97 kJ kg • °K)x 350°K}{5 bar x 100KPa bar} = 0.201m^{3}

The equilibrium pressure of the gases can also be obtained by the ideal gas equation

P_{eq=\frac{(m_{a}R_{a}T_{eq})+(m_{a}R_{a}T_{eq} ) }{(V_{a,eq}+V_{CO2,eq)} } =\frac{(m_{a}R_{a}T_{eq})+(m_{a}R_{a}T_{eq} ) }{(V_{a,i}+V_{CO2,i)} }

P_{eq}= 1x(8.314 28.97)x426.4+3x(8.314 44)x426.4

                             (0.201+1.275)

= 246.67 KPa = 2.47 bar

6 0
2 years ago
For each of the resistors shown below, use Ohm's law to calculate the unknown quantity, Be sure to put your answer in proper eng
daser333 [38]

Answer:

the hurts my brain sorry bud cant help

Explanation:

6 0
2 years ago
What is the probability that Tina will NOT wear a white t-shirt on the first day of her trip?
katrin2010 [14]

Answer:

4/5

Explanation:

She is not wearing white t-shirt on the first day so she is wearing the other 4 t-shirt

4 0
3 years ago
Vital role of maritime english among seaferers
seropon [69]

Answer:

uehgeg7djw7heidiisosowiuisiejei2k

8 0
3 years ago
Other questions:
  • What is the heights part of Maine?
    5·1 answer
  • Explain how the objects in a battery work with its components
    10·1 answer
  • A seawall with an opening is used to dampen the tidal influence in a coastal area (and limit erosion). The seawall is 2.5 m long
    11·1 answer
  • Liquid water is fed to a boiler at 24°C and 10 bar is converted at a constant pressure to saturated steam.
    12·1 answer
  • Assume the triac of an AC discrete output module fails in the shorted state. How would this affect the device connected to this
    5·1 answer
  • Given the latent heat of fusion (melting) and the latent heat of vaporisation for water are Δhs = 333.2 kJ/kg and Δhv = 2257 kJ/
    15·1 answer
  • Consider a step pn junction made of GaAs at T = 300 K. At zero bias, only 20% of the total depletion region width is in the p-si
    11·1 answer
  • Design drawings use line styles of up to eight different varieties to communicate important information about the item. true or
    7·1 answer
  • What additive keeps engines clean by preventing contaminants and deposits from collecting on surfaces?
    10·2 answers
  • How many and what type of<br> receptacles are connected to<br> this circuit?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!