Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
483 views
in Technique[技术] by (71.8m points)

networking - 如何找到从A到B发送文件所花费的时间?(How to find time taken to send a file from A to B?)

I've been attempting this question online about computer networking.

(我一直在尝试有关计算机网络的在线问题。)

So there are 2 hosts A and B that are connected by a router (A----Router-----B)

(因此,有2台主机A和B通过路由器连接(A ----路由器----- B))

The link rate is 1Mbps and the propagation delay is 40ms per link.

(链路速率为1Mbps,每条链路的传播延迟为40ms。)

Also, the maximum size of a packet is 1Kb and packet header is 80bits.

(此外,数据包的最大大小为1Kb,数据包头为80位。)

Also, it is stated that the sender sends as much data as possible in the packet and packets are sent continuously, there is no corruption or packet loss during transmission.

(而且,据指出,发送方在分组中发送了尽可能多的数据,并且分组被连续发送,在传输期间没有损坏或分组丢失。)

If the file to send is 400kb, how long does it take to send the entire file?

(如果要发送的文件为400kb,则发送整个文件需要多长时间?)

What I've got so far,

(我到目前为止所拥有的)

The Maximum data in each packet: 920b

(每个数据包中的最大数据量:920b)

First 434 packets: 1000bits( 920bits + 80bits packet header) 435th packet: 800bits (720bits + 80bits packet header)

(前434个数据包:1000位(920位+ 80位数据包头)第435个数据包:800位(720位+ 80位数据包头))

At this point I'm stuck and I'm not exactly sure how to make use of the propagation delay and transmission delay to calculate the time taken?

(在这一点上,我陷入了困境,我不确定如何利用传播延迟和传输延迟来计算所需的时间吗?)

ps the answer given is 515.8ms but i'm not sure how to arrive at this answer.

(ps给出的答案是515.8ms,但是我不确定如何得出这个答案。)

Would appreciate if anyone could help.

(如果有人可以帮助,将不胜感激。)

Thanks:)

(谢谢:))

  ask by Shaun Goh translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...