You are on page 1of 3

计算机网络第4次作业

方钧同 2021011783

Exercise 1 (R2)

No, the TCP reliable delivery will still not be redundant even if all the links were to do so. That's
because TCP provides end-to-end delivery, which allows data to be transferred form source to
destination across multiple links in the correct order.

Exercise 2 (R3)

Corresponding Service in Corresponding Service in


Link Layer Services
IP TCP

link access ip addressing /

framing packetization segmentation

reliable delivery reliable delivery reliable delivery

flow control / flow control

error detection checksum checksum

error correction / /

half-duplex and full-


/ full-duplex
duplex

Exercise 3 (R10)

C's adapter will process the frames, but it won't pass them to the upper layer.

If A sends MAC broadcast frames, then C's adapter will process the frames and pass them to the
upper layer.

Exercise 4 (R11)

Because the ARP table does not contain the corresponding MAC address initially.

Because the destination MAC address of the response message can be set to the source MAC
address present in the preceding frame received by the sender.

Exercise 5 (P1)

1 0 1 0 0

1 0 1 0 0

1 0 1 0 0

1 0 1 1 1

0 0 0 1 1
Exercise 6 (P14)

a.b.

The answers are as follows

c.

E creates IP datagram with source E, destination B

E uses ARP to get the second router's MAC address for 192.168.3.002

E creates link-layer frame with the second router's MAC address as dest, frame contains E-to-
B IP datagram

E's NIC sends frame

The second router's NIC receives frame

The second router extracts IP datagram form Ethernet frame, sees it's destined to B, uses
ARP to get the first router's MAC address for 192.168.2.002 and crates frame containing E-to-
B IP datagram, then sends the frame.

The first router extracts IP datagram form Ethernet frame, sees it's destined to B, uses ARP to
get B's MAC address for 192.168.1.003 and crates frame containing E-to-B IP datagram, then
sends the frame.

B's NIC receives the frame, extracts it and gets the IP datagram

d.

If the ARP table of the sending host, which is E, is empty and others are up to date, then the only
difference form the process in c. will be the datagram transition between E and the second router.

Although E's ARP table is empty, it's aware that the IP address of the second router should be
192.168.3.002. So it sends a broadcast frame with that IP address and the second route would
send an ARP response after receiving the frame, telling E its MAC address. E would record the map
in its ARP table and send the packet.

Exercise 7 (P18)

A begins transmit at t = 0 and finishes at t = 576. The worst case is that B begins transmit at t =
324, which is just before the time of A's frame reaching B. And then B's frame will reach A at t=679,
when A's transmit is already over. So for A, there's no collision during transmitting and it would
consider it successful.
Exercise 8 (P21)

The MAC address and IP address assigned in Exercise 6 will still be used.

source MAC destination MAC source IP destination IP


stage
address address address address

00-00-00-00-
i 11-11-11-11-11-11 192.168.1.001 192.168.1.002
00-00

44-44-44-44-
ii 55-55-55-55-55-55 198.168.2.002 192.168.2.003
44-44

88-88-88-88-
iii 99-99-99-99-99-99 192.168.3.002 192.168.3.003
88-88

Exercise 9(P28)

source MAC destination MAC source IP destination IP


stage
address address address address

00-00-00-00-
i 55-55-55-55-55-55 192.168.1.001 192.168.2.003
00-00

00-00-00-00-
ii 55-55-55-55-55-55 192.168.1.001 192.168.2.003
00-00

88-88-88-88-
iii 99-99-99-99-99-99 192.168.3.002 192.168.3.003
88-88

You might also like