沒有對答案,不保證正確性
- Chapter 1 Introduction 第一章概述作業 100/100
- Chapter 2 Network Models 第二章網絡模型作業 90/100
- Chapter 3 Signals 第三章信號作業 100/100
- Chapter 4 Digital Transmission 第四章數字傳輸作業 100/100
- Chapter 7 Transmission Media 第七章傳輸介質作業 100/100
- Chapter 10 Error Detection and Correction 第十章錯誤檢測與糾正作業 100/100
- Chapter 11 Data Link Control and Protocol 第十一章數據鏈路控制與協議作業 95/100
- Chapter 14 Local Area Network 第十四章局域網作業 70/100
- Chapter 15 Wireless LAN 第十五章無線局域網作業 100/100
- Chapter 19 Internetworking 第十九章網絡互聯作業 90/100
- Chapter 20 Network Layer Protocol 第二十章網絡層協議作業 100/100
- Chapter 22 UDP and TCP 第二十二章UDP和TCP協議作業 90/100
- Chapter 27 HTTP and WWW 第二十七章HTTP和WWW協議作業 100/100
Chapter 1 Introduction 第一章概述作業 100/100
Page 22-25
Question 1
Identify the five components of a data communication system. 給出一個數據通信系統的五個組成部分
the sender, receiver, transmission medium, message, and protocol.
發送方,接收方,傳輸媒介,消息,通信協議
Question 18 Single Choice
Which topology requires a central controller or hub? 下列哪種拓撲結構需要一個中心控制器或集線器?
A. Mesh網狀網 B. Star星型 C. Bus總線型 D. Ring環型
B.Star星型
Question 28 Exercises
Assume six devices are arranged in a mesh topology. How many cables are needed? How many ports are needed for each device? 假設有六台設備按網狀網拓撲連接在一起。問需要多少根連接電纜?每台設備需要多少個端口?
6*5/2/1=15根
5個端口
Chapter 2 Network Models 第二章網絡模型作業 90/100
Question 1
List the layers of the Internet Model. 列舉因特網模型的分層名稱。
from bottom to top
physical, data link, network, transport, and application layers.
物理層,數據鏈路層,網絡層,傳輸層,應用層
Question 15 Single Choice
The Internet Model consists of _____ layers. 因特網模型是由____層組成的。
A. Three三 B. Five五 C. Seven七 D. Eight八
B.Five 五
Question 29 Exercises
Match the following to one of the five Internet layers. 將下列功能與因特網模型的某一層次對應起來
a. Route determination 確定路由
network layer 網絡層
b. Flow control 流量控制
data link layer數據鏈路層
c. Interface to physical world 與物理世界的接口
physical layer 物理層
d. Provides access to the network for the end user 給終端用戶提供網絡接入
application layer 應用層
e. Packet Switching 分組交換
transport layer 傳輸層
Chapter 3 Signals 第三章信號作業 100/100
Question 1
Describe the three characteriscs of a sine wave. 描述正弦波的三個特性。
幅度,頻率,初始相位
Question 20 Single-Choice
A periodic signal complete one cycle in 0.001 s. What is the frequency? 一個周期函數在0.001秒內完成一個周期。問它的頻率是多少?
A. 1 Hz B. 100 Hz C. 1 KHz D. 1 MHz
C. 1kHz
Question 79 Exercise
The attenuation of a signal is -10 dB. What is the final signal power if it was originally 5 W? 已知信號的衰減是-10分貝。如果信號原來是5瓦,求最后的信號功率。
10lg(x/5)=-10
x=0.5 W
最后的信號功率是0.5W
Chapter 4 Digital Transmission 第四章數字傳輸作業 100/100
Question 3
Can bit rate be less than the pulse rate? Why or why not? 比特率是否能小於脈沖速率?為什么能或不能?
Bit rate can be more or less than pulse rate. It depends on how you modulate the pulses. You can vary the pulse height, width and period. A very simple example of higher bit rate is quantized pulse position modulation. Lower bit rate is usually a coding scheme that adds redundancy to the message such as a Viterbi 2/3 code.
比特率和脈沖速率並沒有嚴格的大小關系,這主要看你采用何種(用脈沖編碼二進制串)的方式。
Question 23 Single-Choice
If the frequency spectrum of a signal has a bandwidth of 500 Hz with the highest frequency at 600 Hz, what should be the sampling rate, according to the Nyquist theorem? 如果一信號的頻譜具有500赫茲的帶寬,最高頻率是600赫茲,問根據奈奎斯特定理所得的采樣率是多少?
A. 200 samples/s 樣本/秒 B. 500 samples/s C. 1000 samples/s D. 1200 samples/s
D. 1200 samples/s 根據奈奎斯特定理,采樣率(單位取樣本/秒)應該是信號最高頻率(單位取Hz)的2倍。
Question 49 Exercise
Figure below is the Manchester encoding of a data stream. What is the data stream? 下圖是一數據流的曼徹斯特編碼,問數據流是什么?
曼徹斯特編碼中,位間隔中心的上跳變代表0,位間隔中心的下跳變代表1.
11100011
(Figure圖)
Chapter 7 Transmission Media 第七章傳輸介質作業 100/100
Question 5
What is the form of the signal in twisted-pair cable and coaxial cable? How does this differ from the signal in fiber-optic cable? 雙絞線和同軸電纜中的信號是什么形式?它與光纖中的信號有什么區別?
雙絞線和同軸電纜中的信號是電信號;光纖中的信號是光信號。
Question 27 Single-Choice
Which of the following primarily uses guided media? 以下系統主要采用導向介質?
A. Cellular telephone system 蜂窩電話系統
B. Local telephone system 本地電話系統
C. Satellite communications 衛星通信
D. Radio broadcasting 無線電廣播
B. 本地電話系統
Question 51 Exercise
If the speed of light in fiber is 2x10^8 m/sec, what is the bandwidth of a fiber that passes light from 1000 nm to 1500 nm without significant loss in magnitude? 如果光纖中的光速是2x10^8米/秒,問波長從1000納米到1500納米的光纖在幅度沒有出現明顯損耗條件下的帶寬是多少?
f=c/λ(頻率=波速/波長)
f1=2108/(1000*10-9)=210^14
f2=2108/(1500*10-9)=1.33310^14
故頻率范圍是(1.3331014Hz-2*1014Hz)
帶寬是0.666710^14 Hz
Chapter 10 Error Detection and Correction 第十章錯誤檢測與糾正作業 100/100
Question 4
How can the parity bit detect a damaged data unit? 奇偶校驗位是如何檢測出出錯的數據單元?
奇偶校驗碼是由n-1位信息元和1位校驗元組成,如果是奇校驗碼,在附加上一個校驗元以后,碼長為n的碼字中“1”的個數為奇數;如果是偶校驗碼,在附加上一個校驗元以后,碼長為n的碼字中“1”的個數為偶數。
接收端數“1”的個數,然后比對是否符合雙方通信前約定好的方案:
如果約定的方案是奇校驗,那么接受端數碼長n的碼字中"1"的個數,如果是奇數,檢測不出錯誤(因為可能會出錯),如果是偶數,那么肯定出現了錯誤;
約定的方案是偶校驗的情況同理。
Question 33 Single-Choice
If odd parity is used for ASCII error detection, the number of 0s per 8-bit symbol is . 如果ASCII碼采用奇校驗方式,則8比特的符號單元中的0的個數是_。
A. Even 偶數 B. Odd 奇數 C. Indeterminate 無法確定 D. 42
B. Odd 奇數
Question 49 Exercise
Given a remainder of 111, a data unit of 10110011, and a divisor of 1001, is there an error in the data unit? 給定余數是111,數據單元是10110011,除數是1001,問數據單元的傳輸是否出錯?
把數據單元和余數連接起來,然后除以除數,檢查計算結果是否0
10110011111
1001
——————
00100011111
1001
——————
00000111111
1001
——————
00000011011
1001
——————
00000001001
1001
——————
00000000000
結果是0,所以數據單元的傳輸沒有出錯
Chapter 11 Data Link Control and Protocol 第十一章數據鏈路控制與協議作業 95/100
Question 2
What are three popular ARQ mechanisms? 三種常用的ARQ機制分別是什么?
停等式(stop-and-wait) ARQ, 發送窗口大小=1 接收窗口大小=1
返回n幀(go-back-n)GBN ARQ, 發送窗口大小>1 接收窗口大小=1
以及選擇拒收式(selective repeat)SR ARQ。 發送窗口大小>1 接收窗口大小>1
Question 23 Single-Choice
A timer is set when ______ is (are) sent out. 當_____被發送出去時,需要啟動定時器。
A. A data frame 一個數據幀 B. An ACK 一個正確應答 C. A NAK 一個否定應答 D. All the above 以上全對
A.一個數據幀
Question 38 Exercise
A computer is using a slding window of size 7. Complete the following sequence numbers for 20 packets:
0,1,2,3,4,5,6,......
一台計算機使用窗長為7的滑動窗方式。寫出以下序列的前20包數據的序號。
如果是按照模m編號的序列,窗口大小定義為m-1,現在窗口大小為7,所以m=8
答案是
01234567012345670123
/*
這里是與答案無關的滑動窗口分析,來自ppt
這是按照模8編號的序列,窗口大小為7,合理
滑動窗口一次可發多幀
下面舉個例子,看發送端的滑動窗,(其實接收端的滑動窗變化情況也相同,只是變化時刻不同)
0123456|701234567...
發送端發送data 0后,變為
0|123456|701234567...
發送端發送data 1后,變為
01|23456|701234567...
發送端接收ack 2后,變為
01|2345670|1234567...
發送端發送data 2后,變為
012|345670|1234567...
發送端接收ack 3后,變為
012|3456701|234567...
發送端發送data 3后,變為
0123|456701|234567...
發送端發送data 4后,變為
01234|56701|234567...
發送端發送data 5后,變為
012345|6701|234567...
發送端接收ack 6后,變為
012345|6701234|567...
*/
Chapter 14 Local Area Network 第十四章局域網作業 70/100
Question 8
Compare the data rates for traditional Ethernet, Fast Ethernet, and Gigabit Ethernet.
比較傳統以太網、快速以太網和千兆以太網的數據速率。
10Base-T(傳統以太網)提供的數據速率高達10Mbps
快速以太網提供的數據速率高達100 Mbps。
千兆以太網提供高達1 Gbps的速度。
Question 22 Single-Choice
A 10-station Ethernet LAN uses a _____-port bridge if the effective average data rate for each station is 2 Mbps. 如果每台計算機的有效平均數據速率是 2 Mbps,則10台計算機的以太網需要使用_____端口的網橋。
A. 1 B. 2 C. 5 D. 10
C. 5端口的網橋
10Mbps /(2Mbps/口)=5端口
Question 36 Exercise
An Ethernet MAC sublayer receives 1510 bytes of data from the LLC layer. Can the data be encapsulated in one frame? If not, how many frames need to be sent? What is the size of the data in each frame?
假設以太網的MAC子層從LLC子層接收到1510個字節的數據。這些數據是否能夠在一幀中打包封裝?如果不能,需要發送多少幀?每一幀的數據長度是多少字節?
不能在一幀中打包封裝。
需要發送2幀,第一幀是1500字節,第2幀是10字節。
依據:
The Information field comes from the upper
sublayer of LLC. The minimum and maximum
length of 802.3 PDU are 46 to 1500 bytes.
本問題中,一幀的數據長度最小是46字節,最大是1500字節。
Chapter 15 Wireless LAN 第十五章無線局域網作業 100/100
Question 1
What is the difference between BSS and ESS? BSS 與 ESS之間的區別在哪里?
IEEE 802.11 無線局域網定義了兩種服務:基本服務集(BSS) 和擴展服務集(ESS)
BSS – Base Service Set 基本服務集
一個 BSS 由一組節點組成的網絡。
ESS——Extended Service Set 擴展服務集:
ESS中,接入點允許多個具有中心結構的網絡使用導線連接起來。此處的分布式系統可以是以太網。
BSS使用一個位於中心的無線設備(稱為無線接入點WAP)向所有無線設備提供信號。ESS使用兩個或多個BSS,因此ESS的覆蓋范圍要比BSS大。
Question 34 Single-Choice
The access method for wireless LANs as defined by IEEE 802.11 is based on . IEEE 802.11協議定義的無線局域網接入方式是基於。
A. CSMA B. CSMA/CD C. CSMA/CA D. Token passing 令牌傳送
C. CSMA/CA
Question 44 Exercise
Compare and contrast CSMA/CD with CSMA/CA.
對比CSMA/CD 和 CSMA/CA,找出異同點。
相同之處:
1.CSMA/CD和CSMA/CA都是CSMA協議的改進方案。
2.都是隨機訪問介質訪問控制協議的一種。
3.都采用二進制指數退避算法來解決碰撞問題。
不同之處:
1.CSMA/CD可以檢測沖突,但無法比避免;CSMA/CA發送包的同時不能檢測到信道上有無沖突,本結點處沒有沖突並不意味着在接收結點處就沒有沖突,只能盡量避免。
2.傳輸介質不同。CSMA/CD用於總線式以太網,而CSMA/CA則用於無線局域網802.11a/b/g/n等。
3.檢測方式不同。CSMA/CD通過電纜中電壓的變化來檢測;而CSMA/CA采用能量檢測、載波檢測和能量載波混合檢測三種檢測信道空閑的方式。
4.基本思想不同。CSMA/CD的基本思想就是發送前偵聽,邊發邊偵聽,一旦出現碰撞馬上停止發送。CSMA/CA的基本思想是在發送數據時先廣播告知其他結點,讓其他結點在某段時間內不要發送數據,以免出現碰撞。
Chapter 19 Internetworking 第十九章網絡互聯作業 90/100
Question 2
What are the two popular approaches to packet switching? 常用的分組交換方式是哪兩種?
數據包和虛電路
相同點:郁同屬於分組父現,郁要對分組進行存儲和轉轉發。
不同點:
1、虛電路在通信前必須建立虛電路通道,數據報則不需要。
2、虛電路中所有有分組都按同一路由到達,而數據包交換時每個分組都獨立選擇路由。
3、虛電路中搜友分組都按發送順序到達,而數據包交換時,分組到達的順序可能與發送順序不一致(先發的后到,后發的先到,在接受方可能需要重新排列分組順序。)。
4、虛電路適合報文長,數據量大的時候使用,而數據包適合報文短,分組少的情況,更快速可靠。
Question 32 Single-Choice
Given the IP address 201.14.78.65 and the subnet mask 255.255.255.224, what is the subnet address? 給定IP地址201.14.78.65和子網掩碼255.255.255.224,問對應的網絡地址是什么?
A. 201.14.78.32 B. 201.14.78.65 C. 201.14.78.64 D. 201.14.78.12
C.201.14.78.64
分析過程如下:
11111111.11111111.11111111.1110 0000
201.14.78.0100 0001
按位與就是
201.14.78. 0100 0000
201.14.78.64
Question 52 Exercise
In a class A subnet, we know the IP address of one of the hosts and the mask as given below:
IP address: 25.34.12.56
Mask: 255.255.0.0
What is the first address (network address)?
在A類子網中,我們知道其中一台主機的IP地址以及子網掩碼如下:
IP地址: 25.34.12.56
子網掩碼: 255.255.0.0
問第一個IP地址(即網絡地址)是多少?
25.34.12.56與255.255.0.0按位與是
25.34.0.0
25.34.0.0就是網絡地址
Chapter 20 Network Layer Protocol 第二十章網絡層協議作業 100/100
Question 3
Why is an ARP request broadcast? Why is an ARP reply unicast? 為什么ARP請求采用廣播方式?為什么ARP應答采用單播方式?
下面假設PC1想要跟PC2進行通信。
ARP 請求是一種廣播方式 – 這是必須的,因PC1還不知道PC2的MAC地址。PC1發送的請求廣播包同時被其他主機收到,然后PC3和PC4收到之后(發現不是問自己)則丟棄。而PC2收到之后,根據請求包里面的信息(有自己的IP地址),判斷是給自己的,所以不會做丟棄動作,而是返回ARP回應包。
ARP應答是單播的,因為發送者PC1發的請求里有“自我介紹”(發送者PC1的IP和MAC),此時回復者PC2已經知道了發送方PC1的MAC地址和IP地址,沒必要廣播。能不用廣播就用單播,以此讓帶寬變得更多讓網絡變得更快。
參考
https://www.cnblogs.com/csguo/p/7527303.html
Question 23 Single-Choice
An HLEN value of decimal 10 means _. HLEN的值是十進制10,意味着.
A. option字段的長度是10個字節 B. option字段的長度是40個字節
C. 報頭字段的長度是10個字節 D. 報頭字段的長度是40個字節
D.報頭字段的長度是40個字節
因為line是4
10*4=40
Question 47 Exercise
Calculate the HLEN value if the total length is 1200 bytes, 1176 of which is data from the upper layer.
如果總長度是1200字節,其中1176個字節是來自上層的數據,問HLEN字段的值是多少?
HLEN=6(十進制),HLEN=0110(二進制)
解釋:
總長度為1200個字節,其中1176個是上層的數據
標頭長度=總長度-數據長度
標頭長度=1200-176=24
HLEN=24/4=6(十進制)HLEN=0110(二進制)
Chapter 22 UDP and TCP 第二十二章UDP和TCP協議作業 90/100
Question 2
How is the well-known port different from an ephemeral port?
著名端口與臨時端口之間的區別是什么?
well-known port,系統端口(也稱為“著名端口”)是應用程序在其上偵聽流量的端口。例如,默認情況下,http服務器在tcp端口80上偵聽,smtp服務器在tcp端口25上偵聽,dns服務器在udp端口53上偵聽,等等。幾乎所有知名端口的編號都在1023以下(有例外)。
ephemeral port,臨時端口是高編號端口(> 1024),在將數據連接/發送到系統端口時,客戶端應用程序將其用作“源端口”,服務器應用程序將其用作返回數據。
Question 16 Single-Choice
Which of the following functions does UDP perform?
UDP完成以下哪種功能?
A. Process-to-process communication 進程間的通信
B. Host-to-host communication 主機間的通信
C. End-to-end reliable data delivery 端到端可靠數據傳送
D. All the above 以上全是
A. Process-to-process communication 進程間的通信
UDP是傳輸層協議,UDP是面向無連接的,UDP不保證可靠交付
Question 53 Exercise
If the value of HLEN is 0111, how many bytes of option are included in the segment?
如果HLEN的值是0111,問數據報文中包含的可選項具有多少個字節?
Binary 0111 = 8. This means that the header length is 8
- 4 = 32 bytes.
Since the minimum TCP Header Length (HLEN) is 20 Bytes,
then the options = 32-20 = 12 Bytes.
答案是12字節
這里當然寫錯了,Binary 0111=7,估計做的時候太困了
Chapter 27 HTTP and WWW 第二十七章HTTP和WWW協議作業 100/100
Question 4
What is a URL and what are its components? 什么是URL? 其組成成分包括哪些?
統一資源定位符 Uniform Resource Locator
格式是
scheme://host:port/path/?query-string=xxxx#anchor
scheme:代表的是訪問的協議,一般為http 或者https 以及ftp 等
host: 主機名,域名 比如www.baidu.com
port: 端口名.當你訪問一個網站的時候,瀏覽器默認使用http使用80 端口? https 443 端口
paht: 查找路徑 比如www.jianshu.com/trending/now,后面的trending/now就是
path
query-string:查詢字符串,比如:www.baidu,com/s?wd=Python,后面的wd=python 就是查詢字符串
anchor:錨點,后台一般不用管,前端來做頁面定位的
注意: url 中的所有字符串都是ASCII字符集,如果出現非ASCII字符,比如中文,瀏覽器會進行編碼進行傳輸 (變成%數字%數字...這樣的URL編碼)
Question 31 Single-Choice
Which type of Web document is run at the client side?
A. static B. dynamic C. active D. all the above
以下哪種Web文件在客戶端運行?
A. 靜態 B. 動態 C. active D. 以上全是
C.active
Question 56 Exercise
Do you think an HTTP client can monopolize an HTTP server?
你認為HTTP客戶端能夠獨占HTTP服務器嗎?
不行,
舉個例子:對於許多著名的HTTP服務器,不能獨占
舉北京理工大學官網的例子:如果HTTP客戶端能夠獨占HTTP服務器,那么一個用戶端
在瀏覽器訪問北京理工大學官網,其他的用戶端就不能訪問,這是低效率以及不符合我們正常認知的。