Computer Network Homework2’s hard question

2. What is the signal which is used to modulate the original signal?

A. analog signal

B. digital signal

C. carrier signal

D. base signal

(2 points)

Answer:

C

Explanation:

original signal指最原始的想要被传给别人的信号

5.In which of the following fibers,light rays follow sinusoidal paths along the fibers?

A.Single-mode fiber

B.step-index multimode fiber

C.graded-index multimode fiber

Answer:

C

7.Which of the following UTP(unshielded twisted pair) is most suitable for 1000Mbps network?

A.cat3

B.cat 4

C.cat 5

D.cat6

Answer:

D

8. Which of the following is the function of data link layer?

A.transfering original bit stream

B.transfering data between processes

C.routing

D.transfer data in a physical network

Answer:

D

11. If the selective repeat protocol (sliding window) is used, how much is the timeout set to at least?

A. somewhat more than 4 times RTT

B. somewhat more than 2 times RTT

C. somewhat more than RTT

D. somewhat less than RTT

Answer:

B

Explanation:

收到错序帧返回NAK,发送要重传的帧返回确认帧,超时时间要大于这两个来回的时间以防止超时重传。

13. For the PPP protocol, what protocol is applied to get IP address?

A. LCP

B. IPCP

C. IPXCP

D. CHAP

(2 points)

Answer:

B

Suppose the sequence numbers can be reused in a Seletive Repeat protocol, the sending window size is SWS and the receiving window size is RWS, how many sequence numbers are required at least? Please explain it.

Answer:

SWS+RWS  (未批改)

Explanation:

因为如果发送方发送了新的(未收到确认)SWS帧,接收方收到后依次上传给上层协议并发送确认帧,此时接收窗口必须移到新的RWS个序号,否则,发送方重新发送的帧会落在接收窗口内被错误接收。这样的话重发的SWS个帧的序号与接收窗口的序号必须不同,因为至少需要SWS+RWS个序号。

4. If a stop-and-wait protocol is used on a 10Mbps point-to-point link,the maximum length of a frame is 4000 bytes, the link length is 2000km (propagation speed is 200000km/s),how much is the maximum utilization of bandwidth(maximum throughput/bandwidth)?

Answer:
13.8%

Explanation:
throughput=包长/(发送时间+RTT)
= 4000bytes/(4000bytes/10Mbps
+ 2*2000km/200000km/s)
=4000*8bits/(3.2ms+20ms)
=32/23.2Mbps
=1.38Mbps
(因为ACK很短,这里忽略了ACK的发送时间)
util=1.38/10=13.8%

5. If the sliding window protocol is applied to the above question and the sending window size is equal to 5, how much is the maximum utilization of bandwidth?

Answer:
69%

Explanation:
throughput=包长/(发送时间+RTT)
= 5*4000bytes/(5*4000bytes/10Mbps
+ 2*2000km/200000km/s)
=5*4000*8bits/(5*3.2ms+20ms)
=5*32/36 Mbps
=4.44Mbps
(因为ACK很短,这里忽略了ACK的发送时间)
util=4.44/10=44.4%
=======
上面有错。因为流水方式,当发送窗口满了时收到每帧的确认都会立即发出一个新的帧,所以,每个回合应该只考虑一帧的发送时间。5*4000*8bits/(3.2ms+20ms)=6.9
util=6.9/10=69%

8. In PPP protocol, which protocol will be used to determine whether the authentication step is needed?

Answer:
LCP

1. For a stop-and-wait protocol, how many sequence numbers are required at least? Please explain it.

Answer:
2个或者1比特。(未批改)

Explanation:
正常情况是不需要序号的。出错的情况有三种:(1)数据帧丢失(2)确认帧丢失(3)确认帧在超时时间之后返回。如果没有序号,(2)(3)会出现重复接收,(3)还会出现错误确认。用2个序号就可以防止这些错误出现。

5. With the Selective Repeat (SR) protocol, the receiver must send an ACK (it can delay some time or combine serveral ACKs) when receiveing an Data Frame any time, true or false?  Please explain it.

Answer:
TRUE (未批改)

Explanation:
一个帧落在接收窗口之内当然要发送确认帧,以防止前面的确认丢失。即使一个帧落在接收窗口之外也必须发送确认帧,因为会出现RWS的确认帧全部丢失的情况,以后重发的帧都会落在接收窗口之外。

Computer Network Homework2’s hard question的更多相关文章

  1. Computer Network Homework3’ s hard question

    Computer Network Homework3’ s hard question 1. Which kind of protocol does CSMA belong to? A. Random ...

  2. codeforces GYM 100114 J. Computer Network 无相图缩点+树的直径

    题目链接: http://codeforces.com/gym/100114 Description The computer network of “Plunder & Flee Inc.” ...

  3. codeforces GYM 100114 J. Computer Network tarjan 树的直径 缩点

    J. Computer Network Time Limit: 1 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/gym/100114 Des ...

  4. SGU 149. Computer Network( 树形dp )

    题目大意:给N个点,求每个点的与其他点距离最大值 很经典的树形dp...很久前就想写来着...看了陈老师的code才会的...mx[x][0], mx[x][1]分别表示x点子树里最长的2个距离, d ...

  5. (中等) CF 555E Case of Computer Network,双连通+树。

    Andrewid the Android is a galaxy-known detective. Now he is preparing a defense against a possible a ...

  6. [J]computer network tarjan边双联通分量+树的直径

    https://odzkskevi.qnssl.com/b660f16d70db1969261cd8b11235ec99?v=1537580031 [2012-2013 ACM Central Reg ...

  7. [Codeforces 555E]Case of Computer Network(Tarjan求边-双连通分量+树上差分)

    [Codeforces 555E]Case of Computer Network(Tarjan求边-双连通分量+树上差分) 题面 给出一个无向图,以及q条有向路径.问是否存在一种给边定向的方案,使得 ...

  8. Sgu149 Computer Network

    Sgu149 Computer Network 题目描述 给你一棵N(N<=10000)个节点的树,求每个点到其他点的最大距离. 不难想到一个节点到其他点的最大距离为:max(以它为根的子树的最 ...

  9. computer network layers architecture (TCP/IP)

    computer network layers architecture (TCP/IP) 计算机网络分层架构 TCP/IP 协议簇 OSI 模型(7 层) TCP/IP (4 层) Applicat ...

随机推荐

  1. Java定义队结构,实现入队、出队操作

    package com.example.demo; import java.util.ArrayList; public class Queue { ArrayList<Object> l ...

  2. dedecms 调用所属栏目的二级栏目列表

    include\taglib\channel.lib.php 在 else if($type=='self') { if($reid==0) return ''; $sql = "SELEC ...

  3. 20199319《Linux内核原理与分析》第十二周作业

    SET-UID程序漏洞实验 一.实验简介 Set-UID是Unix系统中的一个重要的安全机制.当一个Set-UID程序运行的时候,它被假设为具有拥有者的权限.例如,如果程序的拥有者是root,那么任何 ...

  4. 最完美ThinkPHP Nginx 配置文件

    一个配置文件,完美支持普通,兼容,pathinfo,rewrite4种url模式,别怪我没提醒你收藏哦. 常见的静态文件404时也不会再去跑一遍fastcgi浪费资源. server { listen ...

  5. nfs服务的配置

    nfs服务 nfs简介 Network file system 网络文件系统.NFS server可以看作是一个 file server.它可以让你的pc通过网络将远端的nfs server共享出来的 ...

  6. Vue自行封装常用组件-倒计时

    倒计时组件,比较复杂一点,大神勿调侃,精确到毫秒,因为项目中多次出现倒计时,所以拿出来分享下 使用方法:1.在父组件中引入"uni-countdown" //import uniC ...

  7. HDU - 6704 K-th occurrence (后缀数组+主席树/后缀自动机+线段树合并+倍增)

    题意:给你一个长度为n的字符串和m组询问,每组询问给出l,r,k,求s[l,r]的第k次出现的左端点. 解法一: 求出后缀数组,按照排名建主席树,对于每组询问二分或倍增找出主席树上所对应的的左右端点, ...

  8. noi.ac NA537 【Graph】

    本来以为过了...然后FST了... 吐槽:nmdGraph为什么不连通... 这题想法其实非常\(na\ddot{\imath}ve\),就是对于一个连通块先钦点一个点为根,颜色是\(1\),考虑到 ...

  9. h5css3_01

    一.什么是 HTML5 HTML5 的概念与定义 定义:HTML5 定义了 HTML 标准的最新版本,是对 HTML 的第五次重大修改,号称下一代的 HTML 两个概念: 是一个新版本的 HTML 语 ...

  10. Spring整合MongoDB(转)

    1.认识Spring Data MongoDB 之前还的确不知道Spring连集成Nosql的东西都实现了,还以为自己又要手动封装一个操作MongoDB的API呢,结果就发现了Spring Data ...