计算机网络习题篇

计算机网络习题篇

参考:

  1. CCNA选择题一
  2. CCNA选择题二
  3. CCNA选择题三
  4. CCNA(200-120)803题库V2.0-IP Address 36题
  5. CCNAtest 640-801 题库翻译第2部分

客观题

1.拓扑成本与可靠问题

问哪一种拓扑结构提供一些冗余以提高所有站点可靠性,但成本要低于完全冗余的拓扑。

计算机网络习题篇

[解析]

选B,任意一条连接故障依旧能保持通信稳定,且不是全连接的拓扑。

2.网络体系结构题

下列选项中,不属于网络体系结构中所描述的内容是(C)
A:网络的层次
B:每一层使用的协议
C:协议的内部实现细节
D:每一层必须完成的功能

[解析]

体系结构的描述不涉及细节实现。

3.介质访问控制题

下列介质访问控制方法中,可能发生冲突的是(B)

A. CDMA

B. CSMA

C. TDMA

D. FDMA

[解析]

在CSMA中,由于信道传播时延的存在,即使通信双方的站点都没有侦听到载波信号,在发送数据时仍可能会发生冲突,因为他们可能会在检测到介质空闲时同时发送数据,致使冲突发生。尽管CSMA可以发现冲突,但它并没有先知的冲突检测和阻止功能,致使冲突发生频繁。

CSMA/CD是其改进方案,CD指冲突检测Collision Detection,广泛应用于局域网。

TDMA、FDMA、CDMA分别是时分多址、频分多址、码分多址,它们都属于信道划分协议,不在同一信道通信就不会产生冲突。

4.冲突时长计算问题

某局域网采用CSMA/CD协议实现介质访问控制,数据传输速率为10Mb/s,主机甲和主机乙之间的距离为2Km,信号传播速度是200000Km/s。

如若主机甲和主机乙发送数据时发生冲突,则从开始发送数据时刻起,到两台主机均检测到冲突时间止,最短需经多长时间?最长需经多次时间?(假设主机甲、乙发送数据过程中,其他主机不发送数据)。

[解析]

=12W=DV=2Km200000Km/s=1105s 最短时间 = \frac{1}{2}W = \frac{D}{V} = \frac{2Km}{200000Km/s} = 1*10^{-5} s

=W=2DV=2105s 最长时间 = W = \frac{2D}{V} = 2*10^{-5} s

5. 以太网最小帧长度问题

在一个采用CSMA/CD协议的网络中,传输介质是一根完整的电缆,传输速率为1Gbps,电缆中的信号传播速度是200000km/s,若最小数据帧长度减少800比特,则最远的两个站点之间的距离至少需要(D)

A. 增加160m B. 增加80m C. 减少160m D. 减少80m

[解析]

依据:以太网最小帧长度问题,解决该问题的方案是保证在帧的传输过程中,检测到冲突,即:

t>=2Tt=F/RT=D/V t >= 2*T \\ 帧的传输时长t = 数据帧长度F / 数据传输速率R \\ 信号传播时延T = 两站点的距离D / 信号传播速度V

已知:t1=F1RT1=D1Vt2=F2RT2=D2V t_1 = \frac{F_1}{R} \\ T_1 = \frac{D_1}{V} \\ t_2 = \frac{F_2}{R} \\ T_2 = \frac{D_2}{V}

R=1GbpsV=200000km/sΔF=800byte R = 1Gbps \\ V=200000km/s \\ \Delta F = 800byte

可得:t1T1=t2T2 \frac{t_1}{T_1} = \frac{t_2}{T_2}

F1D1=F2D2=ΔFΔD>=2RV=2109byte/s2105km/s=104byte/km \frac{F_1}{D_1} = \frac{F_2}{D_2} = \frac{\Delta F}{\Delta D} >= 2*\frac{R}{V} = 2*\frac{10^9byte/s}{2*10^5km/s} = 10^4 byte/km

计算结果:ΔD=800byte104byte/km=8102km=80m \Delta D = \frac{800byte}{10^4byte/km} = 8*10^{-2} km = 80m

6. 网桥与交换机比较问题

Which of the following statements are true regarding bridges and switches? (B、D、F)
A. Switches are primarily software based while bridges are hardware based.
B. Both bridges and switches forward Layer 2 broadcasts.
C. Bridges are frequently faster than switches.
D. Switches have a higher number of ports than most bridges.
E. Bridges define broadcast domains while switches define collision domains.
F. Both bridges and switches make forwarding decisions based on Layer 2 addresses

[解析]

网桥与交换机的比较

  • 网桥基于软件,交换机基于硬件
  • 网桥与交换机都会转发二层广播帧
  • 交换机比网桥快
  • 交换机端口比网桥多
  • 网桥与交换机都能定义广播域与冲突域的范围
  • 网桥域交换机都基于二层地址(MAC地址)转发数据

Layer 2我觉得应该是指 数据链路层。

7. VLAN划分问题

Which two statements are true about interVLAN routing in the topology that is shown in the exhibit? (DF)

计算机网络习题篇

A. Host E and host F use the same IP gateway address.
B. Router1 and Switch2 should be connected via a crossover cable.
C. Router1 will not play a role in communications between host A and host D.
D. The FastEthernet 0/0 interface on Router1 must be configured with subinterfaces.
E. Router1 needs more LAN interfaces to accommodate the VLANs that are shown in the exhibit.
F. The FastEthernet 0/0 interface on Router1 and Switch2 trunk ports must be configured using the same encapsulation type.

[解析]

  • E、F在不同的VLAN下,网关地址不同。
  • 路由器与交换机之间用直通线连接。
  • A、D在不同的VLAN下,通信需要借助路由器1。
  • 路由器1的Fa0/0端口必须配置子端口(如Fa0/0.2、Fa0/0.3),各子端口的IP地址作为各VLAN的网关。
  • 路由器1只需要1个端口即可,在此端口下配置多个子端口与封装协议。
  • 路由器1的Fa0/0端口与交换机2的中继端口必须配置相同的封装协议。

8. 集线器安全性问题

Which set of commands is recommended to prevent the use of a hub in the access layer? ©
A. switch(config-if)#switchport mode trunk
switch(config-if)#switchport port-security maximum 1
B. switch(config-if)#switchport mode trunk
switch(config-if)#switchport port-security mac-address 1
C. switch(config-if)#switchport mode access
switch(config-if)#switchport port-security maximum 1
D. switch(config-if)#switchport mode access
switch(config-if)#switchport port-security mac-address 1

[解析]

建议使用哪组命令来防止其他主机在访问层中使用集线器。

通过限制 访问端口access的最大接入数来提高安全性,防止其他主机再接入。

9. 子网与VLAN划分问题

Refer to the diagram. All hosts have connectivity with one another. Which statements describe the addressing scheme that is in use in the network? (B、C、F)

计算机网络习题篇

A. The subnet mask in use is 255.255.255.192.
B. The subnet mask in use is 255.255.255.128.
C. The IP address 172.16.1.25 can be assigned to hosts in VLAN1
D. The IP address 172.16.1.205 can be assigned to hosts in VLAN1
E. The LAN interface of the router is configured with one IP address.
F. The LAN interface of the router is configured with multiple IP addresses.

[解析]

VLAN与子网划分的区别

VLAN与子网划分的区别

子网划分与VLAN划分通常做成一样的,例如一个子网划分一个VLAN。

从图中能看出VLAN划分,这里假设子网划分同VLAN划分。

  • 如果子网掩码使用255.255.255.192,每个子网最多可有$ 2^6-2=62 $ 个主机。若使用255.255.255.128,每个子网最多可有272=1262^7-2=126个主机。就合理性而言,B更合适。
  • 通过上一条的分析可得,172.16.1.25被分到VLAN1中,172.16.1.205被分到VLAN2中。
  • 图示路由器需要对VLAN间进行路由配置,对中继端口配置多个子端口,每个子端口对应一个IP。

10. VLAN划分与VLAN间路由问题

Refer to the diagram. Which three statements describe the router prot configuration and the switch port configuration as shown in the topology? (BDE)

A. The Router1 WAN port is configured as a trunking port.

B. The Router1 port connected to Switch1 is configured using subinterfaces.

C. The Router1 port connected to Switch1 is configured as 10Mbps.

D. The Switch1 port connected to Router1 is configured as a trunking port.

E. The Switch1 port connected to host B is configured as an access port.

F. The Switch1 port connected to Hub1 is configured as full duplex(全双工).

计算机网络习题篇

[解析]

  • 路由器1的WAN口不应配置为中继端口trunk,与交换机连接的LAN口可以配置。
  • 路由器1与交换机端口连接使用一个端口配置多个子端口的形式。
  • 图示看不出配置了速率。
  • 交换机1与路由器1之间的端口是中继端口trunk。
  • 交换机1与主机B之间的端口是访问端口access。
  • 交换机1与集线器1的端口是半双工的,因为集线器的工作方式是半双工的。

11. OSI七层模型问题

A host computer has been correctly configured with a static IP address, but the default gateway is incorrect. Which layer of the OSI model will be first affected by this misconfiguration? ©

A. Layer1 B. Layer2 C. Layer3 D. Layer4 E. Layer7

[解析]

IP协议和地址工作在第三层——网络层。(层数从下至上,从1到7)

计算机网络习题篇

12. 路由器远程访问安全问题

What can be done to secure the virtual terminal interfaces on a router? (DE)

A. Administratively shut down the interface.

B. Physically secure the interface.

C. Create an access list and apply it to the virtual terminal interfaces with the access-group command.

D. Configure a virtual terminal password and login process.

E. Enter an access list and apply it to the virtual terminal interface using the access-class command.

[解析]

如何保护路由器接口虚拟终端的安全性。

A. 关闭接口,不是解决办法。

B. 从物理上保证接口安全,虚拟终端是远程会话,物理上能保护么。

C. 创建一个访问列表,并将其应用到使用access-group命令终端接口。

D. 配置终端密码与登录访问,可行。

E. 输入一个访问列表,并将其应用到使用access-class命令终端接口。

access-class是控制路由器发起的telnet会话。

access-group是控制接口上进出的数据包流量。

显然,我们想要控制的是对路由器的远程会话,access-class是正确的。

13. ICMP协议应用问题

若路由器R因为拥塞丢弃IP分组,则此时R可以向发出该IP分组的源主机发送的ICMP报文类型是 源抑制

[解析]

ICMP差错报告报文有5种:终点不可达、源点抑制、时间超过、参数问题、改变路由(重定向)。
其中源点抑制是当路由器或主机由于拥塞而丢弃数据报时,就向源点发送源点抑制报文,使源点知道应当把数据报的发送速率放慢。因此答案为源抑制。

主观题