Skip to content

Instantly share code, notes, and snippets.

@squirrel532
Created October 27, 2015 10:09
Show Gist options
  • Save squirrel532/c40c8576a13f530d3e5a to your computer and use it in GitHub Desktop.
Save squirrel532/c40c8576a13f530d3e5a to your computer and use it in GitHub Desktop.

B10315002 四資工二 黃昱豪

計算機網路概論 作業二

R24

  • 需要經由傳輸層傳輸的資料
  • 由傳輸層生成的資料,包括應用層的資料以及傳輸層的標頭
  • 使用網路層的標頭封裝傳輸層的資料
  • 經由連結層封裝的資料

R25

  • 實體層、連結層、網路層 (OSI stack 1~3)
  • 實體層、連結層 (OSI stack 1~2)
  • 全部

P13

a. $\frac{n(n-1)L}{2R}$

b. 0 (封包恰好在前一封包傳輸完成時抵達,所以佇列裡沒有封包)

P16

  • $ 750 * (0.01 + 0.01) = 15$ packets/sec

P21

  • $R^k_1, R^k_2, R^k_3, ... R^k_n$ 中的最小值
  • $\mathop{\sum_{k = 1}^{m}} min({ R^k_i | 1 \leq i \leq n }) $

P23

  • $\frac{2L}{R_s} + d_{prop}$ , $\frac{L}{R_s}$

  • 如果第二個封包需要進入佇列等待,可以肯定封包二抵達時間大於封包一的傳輸結束時間,可得 $\frac{L}{R_s} + \frac{L}{R_s} + d_{prop} < \frac{L}{R_c} + \frac{L}{R_s} + d_{prop} \Rightarrow R_c < R_s$

    $\frac{L}{R_s} + \frac{L}{R_s} + d_{prop} + T < \frac{L}{R_c} + \frac{L}{R_s} + d_{prop} \Rightarrow T > \frac{L}{R_c} - \frac{L}{R_s}$

P25

  1. 160000
  2. 80 ms + 400ms
  3. 每秒鐘的傳播時間可以傳輸的資料量
  4. $\frac{2.5 * 10^8}{2 * 10^6} = 125$ m/bit, larger then a football field.
  5. $\frac{s}{R}$

P27

  1. $10^9 \times 0.08 = 8 \times 10^7$
  2. 線路可容納 $8 \times 10^7$bits ,但是總量只有 $8 \times 10^5$ ,所以最大值應是 $8 \times 10^5$
  3. $\frac{2.5 \times 10^8}{10^9} = 0.25$ m.

P29

假設人造衛星與地面距離 L.

a. $\frac{L}{2.4 \times 10^8}$

b. $10^7 \times \frac{L}{2.4 \times 10^8} = \frac{L}{24}$

c. $x \ge \frac{L}{24}$ bits

P31

a. $\frac{8 \times 10^6}{2 \times 10^6} \times 3 = 12 $ secs.

b. $\frac{10^4}{2 \times 10^6} = 5$ ms, 第二個封包亦同

c. 第一個封包需要 5ms * 3 ,剩餘799個封包需要 799 * 5ms 總和為 4010 ms.

d. 減少在錯誤發生時需要重新傳輸的量,以及可以讓更多封包依不同路徑抵達目標。

e. 需要傳輸更多標頭、接收方要重新排列封包

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment