Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 1
Computer Networking - A Top-Down Approach Featuring the Internet, 5
th
edition
Solutions to Review Questions and Problems (Vietnamese version)
Author : K55CC translate team.(K55CC-University of engineering and technology-Vietnam national university)
This document belong to K55CC.All copies or sharing must be allowed by K55CC.
Chapter1: Introduction-Review Question
1: S
thay th cho nhau.
End system gt ni internet
v giao thc ngoi giao (diplomatic protocol)
Gi s Alice, m i s ca quc gia A mun mi Bob, m i s c B, i. Alice ch
gi cn gi Bob n tho n ca ". Thay
gi Bob cho thy mt i gian. Bob ng b rng i
s c th n m Alice Bob tip tc gi p" qua li cho
n khi h i gian. Bob y ti s tho thun,
hy vng c khi hoc sau khi th thu c cho
hoc Alice hoc Bob lch s hy b s tham gia nu h hp
n
dch v t
M c ni vs
u vi
cn dch v t server.
truy cp.
1. Dial-up modem over telephone line: residential;
2. DSL over telephone line: residential or small office;
3. Cable to HFC: residential;
4. 100 Mbps switched Ethernet: company;
5. Wireless LAN: mobile;
6. Cellular mobile access (for example, WAP): mobile
truyn ci 1 t truyn mi user trong m
truyc v
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 2
truys. VD vi X Mbps Ethernet (
X = 10, 100, 1,000 or 10,000), m truyn lien tc vi t X Mbps nu ch
i d liu. Nu user ho truyc vi t X Mbps.
ng v truy
truyng trc mng xo truyn qua si
ng tr
t khong t truyn c c
kiu chia s t?
Dial up modems: up to 56 Kbps, bandwidth is dedicated; ISDN: up to 128 kbps, bandwidth is
dedicated; ADSL: downstream channel is .5-8 Mbps, upstream channel is up to 1 Mbps, bandwidth is
dedicated; HFC, downstream channel is 10-30 Mbps and upstream channel is usually less than a few
Mbps, bandwidth is shared. FTTH: 2-10Mbps upload; 10-20 Mbps download; bandwidth is not shared.
truy c bin hi
bit c
Hi truy c bin.
- M
n 1 tr m truy cm c ng
c kt ni Internet b
- Mng truy cn r thc truy h
t thn thoi, tr c qup
dch v vin tp s truy cc
kilomet t .
n li ca mng chuyn mn so vi chuyn m
Mng chuyn m m bng c a 2 m n c
gi. Hu hng chuyn mn nay (bao gm c o s m b
m ni.
s c chuyn t host gn host nhn. T truyn gia host g
n l s switch s dng chuyn m
chuyn ting thi gian delay gim n g
tr khi truy
Ti thm t
0
, host gi bu truyn. Ti thm t
1
= L/R1, host gc truy
c nhn t khi truy i thm t
1
truyn host nhn ti thm t
1
. Ti thim t
2
= t
1
c truy c nhn ti host nhy, tng thi gian tr
Câu 15: Giả sử nhiều user chia sẻ 1 link 2Mbps. Và cũng giả sử rằng mỗi user truyền lien tục vs tốc độ
1Mbps khi truyền, nhưng mỗi user chỉ truyền 20% thời gian.
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 3
a. Nếu dùng chuyển mạch điện thì có bao nhiêu user được sử dụng?
b. Giả sử dùng chuyển mạch gói. Tại sao nếu có ít hơn hoặc bằng 2 user cùng truyền thì không phải
đợi? và nếu nhiều hơn 2 user cùng truyền thì phải có hàng đợi?
c. Tính xác suất để mỗi user được truyền.
d. Giả sử có 3 user. Tính xác suất tại bất kì thời điểm nào, cả 3 user cùng truyền 1 lúc. Tính khoảng
thời gian để hình thành hàng đợi.
TL:
a. c truyi user cn 1 nng truyn.
b. Theo gi thit, mi user cn 1Mbps khi truyn, n
cng truyi
.
c li, nn s 3Mbps, nhi
ng h ng truyn.
c. t = 0.2
d.
3
. (1-p)
3-3
= (0.2)
3
i
t c ho tt c
truy
s 1 host ngu ng c nh. Li
khong tr i?
n tr gm: tr khi x khi lan ta (propagation delay), tr khi truyn (transmission
i. Tr tr i, tt c nhng khong tr nh.
ng th truy ng truyn kho
truy chuy thu
ng tgian = d/s.
thu chuyn R.
s host A mun gi 1 file ln n B, t l
a. Gi s c nghn trong mng truyn file?
b. Gi s ng 4 tric file bi gian
xp x truyn host B?
c. i R2 gi
TL:
a. 500 kbps.
b. 4.000.000 byte = 4.000 KB = 32.000 Kbit. Tgian = 32000/500 = 64 s
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 4
c. ng = 100 kbps. Tgian = 320 s.
m v thc hi xng hp mt hay nhiu
nhim v c thc hin bi nhiu tc k?
5 nhim v u khin lui, dt kt
ni. C xng hp 1 hay nhiu nhim v c thc hin bi nhiu tng. VD: kii
c cung cp nhiu tng.
t message tng ng d t segment tng giao vn? Mt datagram tng
network? Mt frame tt?
-
-
.
- a tng giao v.
-
t router x tt switch x tt host x t
tng 1, 2, 3 tng v t
2 tng v c 5 tng.
Chapter1: : Introduction- Problem
P5: Gi s t ni vi nhau b c
lan tn host B.
a. Biu di tr lan ta (d
prop
b. nh thi gian truyn c
trans
c. B tr x i. Vit biu th tr gim k
d. Gi s Host A bu truyi thm t = 0. Ti thm t = d
trans
, bit cu
c
e. Gi s d
prop
> d
trans
. Ti thm t = d
trans
f. Gi s d
prop
< d
trans
. Ti thm t = d
trans
g. Gi s s = 2,5.10
8
d
prop
= d
trans
TL:
a. d
prop
= m/s (s) tr lan ta (tht kho
b. d
trans
= L/R (s) tr truyn (thi gian t n khi bit cui
i host).
c. d
A-B
= d
prop
+ d
trans
= m/s + L/R (s)
d. Ti t = d
trans
, bit cua ri khi host A.
e. Ti t = d
trans
, bit ng truyc host B.
f. Ti t = d
trans
n host B.
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 5
g. d
prop
= d
trans
m/s = L/R m = Ls/R = 523158 (m)
c gi gii gian thc t n host B qua 1 mng chuyn m
A chuyn giu s
bytes. Ch ng duy nht t n B t truy tr lan t
host A t n
i gian k t c to (t u gc
n khi bit cuc gi host B)?
c truyt c c to
y cn:
3
10.64
8.56
(s) = 7 (ms).
Thi gian c truy
6
10.2
8.56
(s) = 224
s
tr lan t
tr n khi gi
s + 10 ms = 17,224 ms
P12: Gi s ng truyn tc truyc phi
x t ng truy tr
tin.
tr
1)
tr c
(L/R + 2L/R + + (N-1).L/R) / N
= L/(RN) * (1 + 2 + + (N-1))
= L/(RN) * N(N-1)/2
= LN(N-1)/(2RN)
= (N-1)L/(2R)
P24: Gi s c ni trc tip vs nhau bng t R = 2
Mbps. Tc lan tng truy
8
m/s.
a. tr (R.d
prop
).
b. c g n B. Gi s c truyc. S bit t
c truyng truyn ti b
c. Gi
prop
.
d. rng cng truyn b
e. Vic t rng cng truyn. Cho bit t lan tc
truy ng truy
TL:
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 6
a. R.d
prop
= R. m/s = 2. 20.10
6
/ (2,5.10
8
) = 160.000 bits.
b. S bit tc truyng truyn ti bm = R.d
prop
= 160.000 bits.
c. gi tr(d
prop
) ca ng truy bit t ng
truyn
d. rng c ng truyn / (R.d
prop
) = 20.10
6
/ 160.000 = 125 m
e. rng ca 1 bit = m / (R.d
prop
) = s/R.
Chapter2: Application Layer -Review Question
1:
- The Web - HTTP;
- File transfer (bittorrent) - FTP;
- Remote login - Telnet;
- Network News - NNTP;
- E-mail - SMTP;
t gi
- Network architecture t h thp v
- Application architecture c hin ng d
u khin hong c
ng dng chia s file P2P. Bi nh
server trong 1 giao tip gii sao?
i giao dng dng chia s file P2P
g
s bn mut giao dch gii t cao, bn
UDP hay TCP?
N dn thit lng chuyn ch mt 1 RTT
u tu s dng TCP bn mt cho vic thit
lp kt n
u khi-of-band?
FTP s dng 2 kt ni TCP song song. Mt kt n king hu
chuyn giao 1 tp tint kt n chuyp tin . Bm
c g kt ni vi t ng FTP
"out-of-band" .
t gia download-and-delete mode and the download-and-keep mode in POP3?
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 7
- Vi download-and-delete y tin nhn t m n s
b t ra mt v cn gi quyn t
nhi)
- Trong download-and-keep, tin nhn s i s dng ln.
t tii li s dng ln, tt c
c chuy
mt M (alias) cho 1
hostname host name of the mail server?
c s d a mail server va ch IP.
Cverlay network N The edgesc
c t
- t h thng g tt gi
- a router.
- The edges c.
- i thn bia ch IP ca 1 hay nhiu
node ca h th gode h
s tr n ca h thng.
P2P cho 2 giao thc quan tr
ng dng quan trp vi ki
a) File Distribution
b) Instant Messaging
c) Video Streaming
d) Distributed Computing
Chapter2: Application Layer -Problem
a. Mu t nh, client s gi 1 tin nhn 4
tin nhn phn hi? - Sai: gi 4 nhn 4
b. gt n-
c. Vi mt kt n c hin 2 request
- Sai
d. u ca giao th rng.
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 8
:
- Application layer protocols: DNS and HTTP
- Transport layer protocols: UDP for DNS; TCP for HTTP
Gi s t web ba 1 trang web. Bn cn la ch IP
cn phi l
DNS bn mt RTT thi gian l
1
, RTT
2
RTT
n
ng text.
Bn mt RTT
0
host ti server chi gian t n khi nhc
ng.
Tng th la ch
1
n
;
a ch IP bn mt RTT
0
kt n
0
n gi
ng.
ng thi gian cn thi
0
+ RTT
1
n
;
a. :
Kng ta cn 8 ln thit ln gt
th
0
= 16 RTT
0
ng th
0
+ RTT
1
n
+ 16 RTT
0
b. t ni song song:
1 ln kt ni gi nhng cn 2 ln kt nt th
0
ng th
0
+ RTT
1
n
+ 4 RTT
0
c.
0
ng th
0
+ RTT
1
n
+ RTT
0
= 3 RTT
0
+ RTT
1
n
s dc ging
k
- SMTP kng m cha du chm.
- HTTP qu
- s dc ging SMTP d
dng ASCII
s truy cp mail ca bn bng POP3
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 9
a. Gi s bnh da bc ch
i:
C: dele 1
C: retr 2
S: .
C: dele 2
C: quit
S: +OK POP3 server signing of
b. Ch down xong gi
C: retr 2
S: .
C: quit
S: +OK POP3 server signing off
u ch down xong gi ng
hp
C: list
S: 1 498
S: 2 912
S: .
C: retr 1
S: .
C: retr 2
S: .
C: quit
S: +OK POP3 server signing off
: Suppose you can access the caches in the local DNS servers of your depart ment. Can you
propose a way to roughly determine the Web servers (outside your department) that are most popular
among the users in your department?
n ca DNS caches trong nh
Web server xut hi bin nh
bi nu nhic gi
t hin trong DNS caches nhilocal DNS cache,
y thi gian truy vn s ng hi gian truy vn l
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 10
22: Consider distributing a file of F = 15 Gbits to N peers. The server has an upload rate of us = 30
Mbps, and each peer has a download rate of d i = 2 Mbps and an upload rate of u. For N = 10, 100, and
1,000 and u = 300 Kbps, 700 Kbps, and 2 Mbps, prepare a chart giving the minimum distribution time
for each of the combinations of Nand u for both client-server distribution and P2P distribution.
u phi ti thiu phi client-server, ta s
dc:
Dcs = max {NF/us, F/dmin}
u phi ti thiu phi P2P, ta s dc:
F = 15 Gbits = 15 * 1024 Mbits
u
s
= 30 Mbps
d
min
= di = 2 Mbps
Note, 300Kbps = 300/1024 Mbps
23. Consider distributing a file of F bits to N peers using a client-server architecture. Assume a fluid
model where the server can simultaneously transmit to multiple peers, transmitting to each peer at
different rates, as long as the combined rate does not exceed us
a. Suppose that us/N <= dmin . Specify a distribution scheme that has a distribution time of NF/us.
b. Suppose that us/ N ~ dmin . Specify a distribution scheme that has a distribution time of F/dmin .
c. Conclude that the minimum distribution lime is in general given by max{NF/us, F/ dmin ).
u phi file ti tng client, song song, v mt t
t download ca t thit us/N <= dmin.
nhc file vi mt t i client nhn t us/N, th mi client
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 11
nht c u nhnh file trong thi gian NF/us,
ng thi gian u ph
a. Gi s bn m c khi m
c gng kt ni v=> kt ni li.
b. Bn chc khi chy UDP server?
go to kt ni ti server.
c. S d
c gng kt ni TCP vi 1 ti i
Chapter3: Transport Layer -Review Question
1. t kt ni TCP t n B.Gi s A -
y port ngu B -
Source Port: y, Dest Port: x
Question 2
Gin ng dng li ch
Solution :
n ng dng ch n ng dng ca h phi s d kic
ngh u tit t truyn d liu ca ng d tc ngh m tc
truy ng ti ng dng,nhng ng dng chat voice hay hi tho trc
tuyn).Nhng ng d tin cy ca d lii gian.
Question 3. Ling d kh n d liy ngay c
giao thc UDP?
Solution :
n ng d c truyn d lic ca lp ng
dng.T i m cho vin li.
Question 4 True or False
a. Gi s host A truyn mt tp tin ln t li gi
ti host A. Host B s i ACK t li
unlogical )
b. a ca s t ni.
c. Gi s host A truyn mt tp tin ln tc TCP,s byte d li t
nh m cn.
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 12
d. Gi s host A truyn mt tp tin ln tc TCP,S th t ca segment cho ln gi
th t cho segment tip theo ph l
phi gi l
e. cho ca s n.
f. Gi s thi gian RTT gn nht trong kt ny pht thi gian timeout >=1 cho ln
truyn sd nhi ch k sd RTT gn nht).
g. Gi s host A gi 1 segment t-bytes d liu.V
Solution : a. F b. F c.T d. F e.T f. F g. F
Question 5
Gi s A gn nhau ti B.Segment th nh segment th
b. Gi s mth 2 v Vy stt ci t B v A
Solution :
a. 110-90 = 20 bytes.
b.
Question 7: Hin tt ni TCP v C 2 kt nn
cn gng Vic truyn d liu bu t thm. Vy
t truy i kt n
ng ca giao thc TCP ta bi nu N kt n m
truyn tc nghi kt ni s nh (Tng nhau).
Solution :
Question 8
kic nghn trong TCP. Nu xy ra timeout t bng
mt na c
u xy ra mng threshold s t bng mt na ca Congwin (Congrestion
window)
Note : T truyn b gii hn bi ca s tc nghn Congwin. ng gia 2 pha
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 13
Question 9 (P1 trong sách) Giả sử Network Layercung cấp dịch vụ sau. Network layer ở host nguồn chấp
nhận gửi 1 segment có max size là 1200 bytes và địa chỉ đích từ transport layer.Network layer đảm bảo gửi
thành công segment tới transport layer tại host đích.
Giả sử có nhiều tiến trình cùng chạy tại host đích.
a.Thiết kế một giao thức đơn giản cho transport layer để nhận được dữ liệu phù hợp cho mỗi tiến trình tại
host đích.Giả sử HĐH ở host đích có thể cấp 4 bytes port number cho mỗi tiến trình đang chạy.
b.Điều chỉnh giao thức đó để nó có thể trả về địa chỉ (“return address”) cho host đích.
c.Trong giao thức của bạn liệu transport layer có phải làm j trong lõi của mạng máy tính?
Solution :
a. Gi giao thi,STP chp nhn cho tii 1
chunk liu ,ma ch t cng nh
a m a ti
layer s chuyi transport layer cSTP s gim tra
segment nhng vi tii gn nhn.
b. i segment s (header).Mt trg cho port ngu
gi chp nhn ga ch t port ngu
m
STP to mt segment bao gm d liu ca application,port ngu chuyn
a ch gi sang
segment,STP s chuyn ti ng dng d liu cn nh port ngun.
c. nt b u cui.
Question 10.(P2) Giả sử có 1 hành tinh có dịch vụ gửi thư.Mỗi gia đình có 1 địa chỉ(1 hòm thư riêng).Mỗi
thành viên trong gia đình đều có một tên riêng.Dịch vụ gửi thư có thể gửi từ nhà này sang nhà khác.Nó yêu
cầu phải cho bức thư và địa chỉ của nhà cần gửi vào trong phong bì.Mỗi gia đình đều có 1ng đại diện,ng
này sẽ nhận thư và phân phát thư cho các thành viên khác trong gia đình.
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 14
a.Sử dụng giao thức ở Question 9 để gửi thư.Mô tả cách ng đại diện nhận và phân phát thư.
b.Trong giao thức này,liệu mail server có phải mở phong bì để kiểm tra bức thư bên trong hay không?
Solution :
a) Ng gi s i din c ba ch c
i din s viu ba ch ca
ch v gc
i din nh ly b
(Gi s i di or m
b) Mail server k cn m kia ch
Question 11(P5) Tại sao bây h các ứng dụng chat voice hay video lại dùng TCP hơn UPD,trong khi TCP có
cơ chế kiểm soát tắc nghẽn gây trễ đường truyền?
firewall hay chng truyn ti data ca UDP.Tronth
Question 12.(P7) Giả sử một tiến trình ở host C có một UDP socket với port là 6789.Giả sử cả 2 host A và B
đều có thể gửi segment tới C với cùng một port đích là 6789.Liệu cả 2 segment đều cùng hướng đến cùng
một socket đích ở host C hay không?Nếu có thì làm sao để host C có thể biết đc sự khác nhau giữa 2
segment đó(nó có nguồn gốc từ đâu)?
i segment nh cung cp 1 tia ch nh
ngun gc c
Question 13.(P8) Giả sử Web server chạy trên host C tại port 80 và dùng kết nối kiên trì.Nó nhận đc 2 yêu
cầu từ host A và B.Liệu cả hai yêu cầu đc đc gửi trên cùng một socket của C.Nếu 2 yêu cầu đc trả lời qua 2
socket khác nhau thì liệu cả 2 socket đều có port là 80?
Solution : Trong kt n Web server to ra tng kt nt . Mi socket kt n
nh vi mt b ba ch IP ngun, port ngua ch c IP
m tra i truy
cu t c nhn
dia ch IP nguhi lp transport gi mt segment TCP
tng ng d a ch IP ngunh bnh danh
socket.
Question 14(P9) Trong giao thức rdt,tại sao chúng ta cần sử dụng STT(sequence number)?
Solution : d liu nh
Question 15(P10) Trong rdt protocol,tại sao phải sử dụng bộ đếm thời gian(timer)?
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 15
Solution : Ni ch nh ca b i
kt lu b m truyn l
Question 16 (P11) Giả sử roundtrip delay (độ trễ phản hồi) giữa bên nhận và bên gửi là hằng số,và bên gửi
bik độ trễ này.Vậy ta có cần timer cho rdt 3.0 nữa hay không?Giả sử gói tin có thể bị mất.
Solution : Timer vn cn thii gian t n
m duy nh b m
hung c th,nu ACK k m n tri vn c bi.
Chapter3: Transport Layer - Problem
1.
a.
b.
c.
d.
e.
f.
Answer:
source port numbers
destination port numbers
a)
467
23
b)
513
23
c)
23
467
d)
23
513
e) Yes
f) No
2.
i 1 bit s n? L
Answer:
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 16
0 1 0 1 0 0 1 1
+ 0 1 0 1 0 1 0 0
1 0 1 0 0 1 1 1
1 0 1 0 0 1 1 1
+ 0 1 1 1 0 1 0 0
0 0 0 1 1 1 0 0
-
-
-
3. n thy r
truyn ti nhc ch
x
Answer:
i nh c chn ly ra
1, 1
nhau
4.
Answer:
timeouts.
timeouts
5.
--
?
Answer:
-
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 17
6.
a.
b.
Answer:
a. =3.
-
-1].
--N, k-1]
-N, k]
b. --
7.
a. selective repeat
windows
b. windows
Answer:
a. g.
0
.
1
(t
1
>t
0
2
(t
2
> t
1
timeouts
3
4
1
5
3
. windows
b.
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 18
8.
a. T
b.
Answer:
32
= 4294967296 sequence number
a.
32 =
4.19 Gbytes
b.
segment
= 66 * 8012999 =
32
+
= 4,824*10
9
bytes
9.
back-to-back.
a.
b.
c.
d.
Answer:
a.
-
-
-
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 19
b.
- acknowledgement
-
-
c.
-
d.
10.
Answer:
RcvWindow = 0.
RcvWindow > 0.
11.
a. acknowledgments
EstimatedRTT
b. c cho n SampleRTTs
c.
Answer:
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 20
a.
(n)
EstimatedRTT
(1)
= SampleRTT
1
EstimatedRTT
(2)
.SampleRTT
1
+ (1-.SampleRTT
2
EstimatedRTT
(3)
.SampleRTT
1
+ (1-.SampleRTT
2
+ (1-.SampleRTT
3
]
= .SampleRTT
1
+ (1-..SampleRTT
2
+ (1-
2
.SampleRTT
3
EstimatedRTT
(4)
= .SampleRTT
1
+ (1-..SampleRTT
2
+ (1-
2
..SampleRTT
3
+ (1-
3
.SampleRTT
3
b. EstimatedRTT
(n)
.
.SampleRTT
j
+
c.
12.
Answer:
Trong v nhn t m nhn
gi ti tr c khi
timeout, TCP kia g c
chuyn d lim gi sm gi tr
chuyn d liu t l c R << S.
13.
a.
b.
Answer:
a.
cwnd
cwnd
cwnd
cwnd
cwnd
cwnd
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 21
b.
Trong RTT
14.
Answer
rdt3.0
15. Suppose an application uses rdt3.0 as its transport layer protocol. As the stop-and-wait protocol has very
low channel utilization (shown in the cross-country example), the designers of this application let the
receiver keep sending back a number (more than two) of alternating ACK 0 and ACK 1 even if the
corresponding data have not arrived at the receiver. Would this application design increase the channel
utilization? Why? Are there any potential problems with this approach? Explain
Answer
Yes. This actually causes the sender to send a number of pipelined data into the channel.
Yes. Here is one potential problem. If data segments are lost in the channel, then the sender of rdt
re-send those segments, unless there are some additional mechanism in the application to recover from loss
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 22
Chapter4: Network Layer Review Question
t ng c s dng trong cui packet ca tng transport l
i ca ta t c g
n c layer switches?
Tr li:
Packet tc gt router mun chuyn packet phi da ch IP ca packet
(tng 3). A link-layer switch mun chuyn packet phi da ch MAC (tng 2).
R2: Hai chng ca tng network trong chuyn mng ca
tng network trong mt chuyn mch o?
Tr li:
Hai chng ca tng network trong datagram network: chuynh tuyn.
Ba chng ca tng network trong virtual circuit: chuynh tuyt lp tuyng.
R3: S a routing
Tr li:
n mt packet t ma mt router, ra mu ra ca
p.
nh router ngu
R4: Routers trong chuyn mn mc s dng trong bnh tuyn? Nu vy,
bnh tuy
Tr li:
c s dng cho c hai.
R7: Ti sao mi c c cao
(Discuss why each input port in a high-speed router stores a shadow copy of the forwarding table)
With the shadow copy, the forwarding decision is made locally, at each input port, without invoking the
centralized routing processor. Such decentralized forwarding avoids creating a forwarding processing bottleneck at
a single point within the router
vic m xy ra ti c vic mi c
th b loi b. (tr ng hp s dng b nh m)
Tr li:
My ra n i ti c forwarding chm nh
router s b b loi tr nu t forwarding ti thin,
s c
vic m xy ra ti cng ra.
Tr li:
Vic m xy ra n i ti cng ra
router) trong khi t ra ca
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 23
R11: HOL blocking xy ra trong cc c
Tr li:
HOL blocking datagram xp hang ti c hang i cho chuyn tip
xy ra ti c
a ch
Tr li:
a ch IP cho mi interface.
R13: Chuyn sang h nh a ch 223.1.3.27
Tr li:
11011111 00000001 00000011 00011100
R15: Gi s a host ngu nh, mt IP datagram gi t host ngun
ng chuy ngu
Tr li:
8 interfaces; 3 forwarding tables
R16: Gi s mt ng dng to ra 40bytes d liu trong khong thi d li
ca mi datagram s l
d liu ng d
Tr li:
Overhead: 20 byte ca TCP header, 20 byte ca IP header = 40 byte
50% overhead
R17: Gi s host A gi host B mn
ng network trong host B s bit TCP t
UDP hay m
Tr li:
ng giao thc ca IP datagram bao g giao thc tng transport
nh rng ng qua IPv4, IPv6 nng t giao
thc t
Tr li:
a hai thu
Thun nht t ngun t dng nhng kin
thnh, tng.
nh tuyn theo distance vector: : Vic thc hin lp li
c. M bii chuyn tip m n theo
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 24
R22, Tho lum th ch i
dung?
c tng h thng t u khit c y
nh tuyn trong ni b c bic
nh tuy thng t u khing dnh tuyn gi
V cc gii quyt khi mt router trong AS ch cn bit v ter
trong AS c
cn thit vic mi h thng t tr (AS) s dnh tuyn intra- AS
n t ch trong qunh tuyn trong AS.
Rng sau: RIP advertisements typically announce the number of hops to various
destinations. BGP updates, on the other hand, announce the _____ to the various destinations.
- ng.
Rt ng
t phn ca mi la 1 router. Ranh gi cnh bi
giao din c
Pt phn ca ch c vii dng abcd/x. M gm 1 hay nhiu subnet.
Khi mt router qut prefix qua mm mt s thu
Trong thut ng BGP , mt tuyng BGP (hoc ch
mttuyng).
Computer Networking: A Top-Down Approach Featuring the Internet, 5th Edition – Translate by K55CC
Page 25
Chapter4: Network Layer Problem
m ca virtual-
a. Gi s ng chu ki l
vii cho kii sao
b. Gi s ru c n t
ng dn t nguc s dc quyn ca ngu
dng VC hay kii sao?
c. Gi s lnh tuyn gia tt c
nguu
khin lu? Ti sao
a. Vi 1 mi kt ni mng, mi router b li s n phnh tuyn ca kt n mc ti
thi router tht bng dn mn node
i tt c u hing dn ma, tt c
ng du t node sai phng kt ni sai, vi tt c du hin
Vi 1 mng ko kt nu hiu thit lp set up cho c ng dn mng
ng d thnh tuy cn update l
distance vector ho thy vs
tt distance vector, bnh tuy i thi thong bn
router tht b n thit k trong
s du kinc
la chn cho t
b. t c ng dn gia node ngu
cn bip t tt c u
i ko kt ny 1 kt
ni mng VC s
c.
n thi nh tuyt c
c thit l v
circuit netwok, gi s s ng 8 bits.
a. S t mang trong1 link?
b. Gi s node ging d thit lp kt ni. gi d
ging vc s dng trong m n
nh VC number thit l tnh?
c. Gi s s i link dng dn c
thit lp kt nng dn end to
chn VC number c ph thu
?
a. S t mang trong 1 link = 2^8 = 256