Chapter 3: Wireless Networks第三章:無線網絡

Follow the six-part guide from personal networks to Wi-Fi, cellular and satellites. Understand each problem first, then learn the terms and check your answer.本章沿着六個部分,由個人網絡講到 Wi-Fi、蜂窩網絡和衛星網絡。先理解每種技術要解決甚麼問題,再認識術語,最後用問題檢查自己是否明白。

每段英文下方都有完整中文對照。先理解主文,再展開參考資料或答案;左上方的目錄按鈕可隨時展開。

中英對照 · EN / 中文點按術語 · Terms講義頁碼 · SourcesTutorial 3.1–3.4

Find a term查找術語

Part 1 · Wireless Networks OverviewPart 1 · 無線網絡概覽

Slides / 講義 1–14
From a wireless link to a network從一條無線連線,走到整個網絡

Chapter 2 showed how devices send signals. Now ask how many links and devices work together. First learn how capacity is shared, then compare the different network scales.第二章說明裝置怎樣傳送訊號。現在要再走一步:多條連線、多部裝置如何一起工作?我們先看網絡容量怎樣分配,再比較不同覆蓋範圍的網絡。

先連起來,再處理如何共享。

Exam guide: what you are preparing for考試指引:你要準備甚麼

3 December 2026, 15:15–18:15, QR404. The exam counts for 70% of the assessment. It has 9 questions: one multiple-choice question and eight long questions, for 100 marks.考試時間為 2026 年 12 月 3 日,15:15–18:15,地點 QR404,佔總評分 70%。試卷共 9 題:1 題選擇題和 8 題長答題,合共 100 分。

The supplied guide calls it open book but permits one double-sided A4 reference sheet only, with your name and student number. No other materials are allowed; a calculator is needed. The sheet can be printed or handwritten and cannot be assembled from smaller pieces or shared during the exam.老師的指引雖稱為開卷考試,但只准攜帶一張雙面 A4 參考紙,並要寫上姓名和學號;其他資料不准帶入,另需準備計算機。參考紙可以列印或手寫,但不能由多張小紙拼成,也不能在考試期間與別人共用。

The exam covers all eight lecture topics. This page teaches Chapter 3 only. Use the questions here to practise explanations and calculations; they are not a predicted paper.考試範圍包括全部八個講課主題。本頁只處理第三章。這裏的題目用來練習解釋概念和計算,並不是預測試題。

Source: 00-Final.pdf, slides 2–5.來源:00-Final.pdf,第 2–5 頁。

1.1 Why Do We Need a Network? Slides / 講義 31.1 為甚麼需要網絡?

Chapter 2 explained how bits travel over a wireless link. A link connects nearby devices. A network joins links so a message can reach a device farther away. This chapter explains how real wireless networks organise those links.第二章解釋了位元怎樣沿着無線連線傳送。一條連線可以接通附近的裝置;網絡則把多條連線接起來,讓訊息送到更遠的裝置。本章要理解的是:真正的無線網絡怎樣組織這些連線?

Suppose ten devices each needed a separate direct connection to every other device. Each has nine partners. Counting from every device gives 90 connections, but A–B and B–A are the same pair, so divide by two: 45 links. With 100 devices, the count rises to 4,950.假設有 10 部裝置,每部都要與其餘每部裝置建立獨立的直接連線。每部有 9 個連接對象,初步會數到 90 條。但 A–B 與 B–A 其實是同一對,所以要除以 2,得到 45 條連線。如果有 100 部裝置,就要 4,950 條。

This is why we share links and use forwarding devices. A phone can send to a nearby access point, which connects it to the rest of a local network. Other network devices carry the message onwards. The phone does not need its own direct radio link to every server on the Internet.因此,我們會共用連線,並利用其他網絡裝置轉送訊息。例如,手機先連到附近的接入點,再經接入點接上區域網絡;後面的網絡裝置會繼續把訊息送往目的地。手機不需要與互聯網上的每一台伺服器直接建立無線連線。

That solves the connection problem, but creates a sharing problem: when many users need the same link, how is its capacity divided? Section 1.2 answers this next.這樣解決了「怎樣連起來」的問題,卻帶來另一個問題:很多人都要使用同一條連線時,容量應怎樣分配?接下來的 1.2 節就處理這件事。

先分清楚「一條無線連線」與「把多條連線接起來的網絡」。

Check your understanding. Your phone is connected to the café access point, but the café’s Internet connection is down. Can the local Wi-Fi link still work?檢查理解:手機已連上咖啡店的接入點,但店舖的互聯網連線中斷了。手機與接入點之間的本地 Wi-Fi 連線還能正常運作嗎?

Read the answer and reason查看答案及原因

Yes. The phone can still have a local wireless connection. Reaching a remote server also needs a working path beyond the access point. Wi-Fi connection and Internet access are different steps.可以。手機仍然可以維持本地無線連線。但要連到遠端伺服器,接入點後面的路徑也必須正常。因此,「連上 Wi-Fi」和「能夠上網」是兩個不同步驟。

Reference: the pairwise-link formula參考:兩兩連接的計算公式

For n devices, a fully connected arrangement has n(n − 1) / 2 pairwise links. This counts pairs, not required radio channels in every wireless network.如果 n 部裝置全部兩兩直接相連,就有 n(n − 1) / 2 對連線。這條公式數的是裝置之間的配對數目,並不是說每個無線網絡都必須準備這麼多條無線電頻道。

1.2 Circuit Switching vs. Packet Switching Slides / 講義 4–81.2 電路交換與封包交換

We now have a path through a network. The next question is how people share its capacity. Imagine a call that lasts ten minutes. The network could reserve resources for the whole call, including the moments when nobody speaks.現在,網絡已有一條可用路徑,下一步是決定使用者怎樣分享它的容量。想像一通持續 10 分鐘的電話:網絡可以在整段通話期間預留資源,連雙方都沒有說話的時候也照樣預留。

That is the idea of circuit switching. First the network sets up a connection and reserves resources along the route. The users then exchange information. When the call ends, the network releases the resources. A reserved circuit gives predictable capacity, but unused time cannot simply be given to another call.這就是電路交換(circuit switching)的想法。網絡先建立連線,沿路預留資源,使用者才開始交換資料;通話結束後,再釋放資源。好處是連線建立後可用容量較可預測,但通話中暫時沒有用到的時段,不能隨便拿去給另一通電話使用。

A web download behaves differently. You receive a burst of data, read for a while, then request more. Reserving a whole circuit during the reading time would waste capacity. Instead, the sender divides its message into small pieces called packets. Each packet carries data and a header containing information used to handle it.下載網頁的情況不同:你先收到一批資料,閱讀一會兒,才再要求更多內容。如果閱讀期間仍然獨佔整條電路,就會浪費容量。另一種做法是把訊息分成較小的封包(packets)。每個封包除了資料本身,還有標頭,記錄處理這個封包所需的資訊。

With packet switching, packets from different users share links. A router receives a packet, may hold it briefly in a buffer, and forwards it towards its destination. When a link is busy, a queue forms. Sharing improves use of the link, but the waiting time can change. If buffers fill, packets can also be lost.在封包交換(packet switching)中,不同使用者的封包輪流使用連線。路由器收到封包後,可能先把它放在緩衝區,再轉送往目的地。連線忙碌時,封包就要排隊。這樣可以提高連線的使用效率,但等候時間會有變化;緩衝區滿了,封包還可能被丟棄。

This difference will explain the cellular story later. Early mobile calls mainly used reserved circuits. Later systems added packet data, and 4G moved to an all-packet core. Voice can also travel in packets; “voice” does not always mean circuit switching.這個分別也能幫你理解後面的蜂窩網絡演進。早期流動電話主要為通話預留電路,後來加入封包數據服務,到了 4G,核心網絡全面採用封包方式。語音也可以放進封包傳送,所以「傳語音」不一定等於「用電路交換」。

先預留整段通話的資源,還是讓封包輪流使用同一條連線?

Check your understanding. Why is packet switching a good fit when you download a page and then spend a minute reading it?檢查理解:下載一個網頁後,你會花一分鐘閱讀。為甚麼封包交換適合這種使用方式?

Read the answer and reason查看答案及原因

During the reading time, other users can use the link. Your connection does not need a dedicated circuit sitting idle. The trade-off is that your next packets may have to wait behind other traffic.因為你閱讀時沒有持續傳送資料,其他人可以使用這條連線,而不必讓一條專用電路空着。代價是:下一批封包來到時,可能要等其他人的資料先傳完。

Reference: compare the two switching methods參考:兩種交換方式的比較
Circuit switching and packet switching電路交換與封包交換
Question比較問題Circuit switching電路交換Packet switching封包交換
How is capacity used?容量怎樣分配?Resources are reserved along a connection for its duration.在整段連線期間,沿路預留所需資源。Packets from different users share links over time.不同使用者的封包在不同時間共用連線。
What happens first?先做甚麼?Set up the circuit, transfer information, then release the circuit.先建立電路,再傳送資料,最後釋放電路。Forward packets using their control information. Some packet services also have connection setup; the contrast is with a reserved circuit.根據封包中的控制資訊轉送資料。有些封包服務也會先建立連線;這裏真正要比較的是,有沒有為整段使用期間預留一條電路。
What is inside the message?訊息內有甚麼?The established connection carries the stream.資料流沿着已建立的連線傳送。A packet has data plus a header used to handle and forward it.封包包含資料和標頭;標頭用來協助處理及轉送封包。
Why use it?為甚麼使用它?Reserved resources give predictable capacity once the connection is established.連線建立後已有預留資源,因此可用容量較可預測。Shared capacity suits bursts of data and can use links more efficiently.共用容量很適合間歇出現的資料流,也能提高連線的使用效率。
What is the cost?有甚麼代價?Setup takes time; resources may sit unused during silence.建立連線需要時間;通話靜默時,已預留的資源可能沒有被使用。Headers, processing and queues add overhead and variable delay. Full buffers can drop packets.標頭、處理和排隊都帶來額外開銷,而且延遲不固定。緩衝區滿時,封包可能被丟棄。
Lecture examples講義中的例子Traditional public telephone network and early cellular voice.傳統公共電話網絡,以及早期蜂窩網絡的語音通話。Internet data, traffic and all-packet mobile cores. Voice can also use packets.互聯網數據、無線區域網絡的資料,以及全封包流動核心網絡。語音也可以用封包傳送。

A reserved circuit does not remove radio interference or every form of delay. Packet switching does not mean unlimited capacity or zero blocking.預留了電路,不代表無線干擾或所有延遲都會消失。同樣地,採用封包交換也不代表容量無限,或永遠不會因資源不足而受阻。

Store and forward means receiving and temporarily storing a packet before forwarding it. Buffering can handle different link rates, but cannot solve a permanently overloaded link.儲存後轉送(store and forward)是指先接收並暫存封包,再往下一站傳送。緩衝區可協調不同連線速率造成的短暫差異,但不能解決長期超出負荷的問題。

Quality of service () describes properties such as delay, loss and data rate. Circuit reservation can make service predictable; packet networks can also use priorities, scheduling and admission control to manage service quality.服務品質(Quality of Service,QoS)包括延遲、資料遺失率和傳送速率等表現。預留電路可讓服務較可預測;封包網絡也可以透過優先次序、排程和接納控制來管理服務品質。

1.3 Two Ways to Classify Wireless Networks Slides / 講義 9–141.3 分類無線網絡的兩個角度

Your headphones, the café network and a mobile operator solve different problems. Headphones need a nearby link that fits in a small battery. The café needs to serve many devices in a building. The mobile operator needs to keep serving you across a city.耳機、咖啡店網絡和流動網絡供應商,要解決的問題並不相同。耳機需要在小電池的限制下連接附近裝置;咖啡店要服務建築物內的多部裝置;流動網絡供應商則要在你穿過城市時繼續提供服務。

A wireless personal area network connects things around a person. The lecture shortens this to . Bluetooth headphones are a familiar example. A wireless local area network, or , serves a local place such as a home, office or campus. Wi-Fi is the main example we study.無線個人區域網絡(WPAN)連接一個人身邊的裝置,藍牙耳機就是常見例子。無線區域網絡(WLAN)則服務某個本地範圍,例如住宅、辦公室或校園;本章主要以 Wi-Fi 作例子。

A wireless wide area network, or , serves a much larger area. In this lecture, the main example is the cellular network used by mobile operators. Finally, a satellite network can reach places where ground infrastructure is difficult to build.無線廣域網絡(WWAN)服務更大的範圍。本章的主要例子,是流動網絡供應商使用的蜂窩網絡。至於衛星網絡,則可把連線延伸到難以建設地面基建的地方。

These are choices for different needs, rather than a ranking from bad to good. A system with excellent coverage may need more infrastructure or a more demanding radio link. A very low-power sensor may accept a low data rate because it sends only a few bytes each minute.這些技術對應不同需要,並不是由差到好的排名。覆蓋很廣的系統可能需要更多基建,或要求更高的無線連線條件。反過來,一個每分鐘只傳幾個位元組的感測器,可以接受較低速率,以換取很低的耗電量。

As you read, compare five things: range, data rate, movement, battery use and cost. We will first stay close to the phone, then move out to the café, the city and the sky.閱讀時,試着比較五件事:覆蓋距離、資料速率、移動能力、耗電量和成本。我們會先看手機身邊的裝置,再移到咖啡店、城市,最後到天空中的衛星。

There is a second, separate question: who provides the connecting structure? In an infrastructure-based network, fixed equipment such as access points or base stations helps devices communicate. In an ad hoc network, devices organise communication without that fixed access point. They can communicate directly in one hop, or relay through other devices in several hops.還有另一個獨立的分類問題:連接裝置的結構由誰提供?有基建的網絡(infrastructure-based network)利用接入點或基地台等固定設備協助通訊。隨建即連網絡(ad hoc network)則由裝置自行組織通訊,不依靠這類固定接入點。裝置可以一跳直接通訊,也可以經其他裝置接力,形成多跳路徑。

A network can therefore have both a coverage label and an organisation label. “Local” tells you the scale; “ad hoc” tells you how it is organised. The two labels do not compete.因此,一個網絡可以同時有「覆蓋範圍」和「組織方式」兩種標籤。「Local」說明範圍;「ad hoc」說明怎樣組織。兩者回答不同問題,不是只能選其中一個。

Four wireless network scales from WPAN to Satellite
Read from left to right.由左至右看圖。

The picture moves from devices near one person, to a local place, to a wide ground area, then to a satellite link. These are coverage scales, not a packet route. A message does not have to pass through all four.圖中依次展示個人身邊的裝置、本地範圍、較廣的地面範圍,以及衛星連線。這是在比較覆蓋規模,不是在畫封包的必經路線。訊息不需要依次經過全部四種網絡。

The picture simplifies spectrum and cost. Licence-exempt equipment still follows local rules, and Internet access can still cost money. Satellite reach depends on the system, not just the word “global”.圖中的頻譜和成本說法是簡化版本。免牌照設備仍須遵守當地規則,上網服務也可能要付費。衛星能覆蓋哪裏,要看具體系統,不能只憑「全球」兩字判斷。

覆蓋範圍和有沒有固定基建,是兩個不同的分類角度。

Check your understanding. Can a local wireless network operate without a fixed access point?檢查理解:本地無線網絡能否在沒有固定接入點的情況下運作?

Read the answer and reason查看答案及原因

Yes. The lecture’s ad hoc local network does that. “Local” describes the area; “ad hoc” describes the organisation. It does not automatically provide an Internet connection.可以,講義中的 ad hoc 本地網絡就是例子。「本地」說的是範圍,「ad hoc」說的是組織方式。不過,裝置能互相通訊,不代表它們自動有互聯網連線。

Reference: coverage labels and spectrum參考:覆蓋範圍的名稱與頻譜

The lecture also names a wireless metropolitan area network (), covering a city-scale area. These coverage labels overlap in practice; they are not exact distance limits.講義還提到無線都會區域網絡(WMAN),覆蓋規模約為一個城市。實際上,這些分類的範圍會重疊,並沒有一條適用於所有系統的精確距離界線。

Many short-range systems use licence-exempt spectrum, especially the 2.4 GHz industrial, scientific and medical () band. Other bands appear later. “Licence-exempt” still comes with rules about equipment, power and permitted use. It does not mean that all listed bands are available everywhere, or that Internet service is free.很多短距離系統使用免牌照頻譜,尤其是 2.4 GHz 的工業、科學及醫療頻段(ISM band);其他頻段會在後文出現。「免牌照」仍須遵守設備、功率和用途等規定,並不表示列出的頻段在所有地方都可使用,也不表示互聯網服務免費。

The second classification is independent of distance: a network can use fixed infrastructure or organise itself as an ad hoc network. Ask “how far?” and “who provides the infrastructure?” as two separate questions.第二種分類與距離無關:網絡可以依賴固定基建,也可以由裝置自行組成 ad hoc 網絡。記住分開問兩個問題:「覆蓋多遠?」以及「連接所需的基建由誰提供?」

Part 2 · Wireless Personal Area Network (WPAN) & BluetoothPart 2 · 無線個人區域網絡與 Bluetooth

Slides / 講義 15–42
Start with the devices around you先從你身邊的裝置開始

A nearby sensor and a pair of headphones have different needs from a whole campus. We first use Bluetooth to learn the jobs of frequency, timing and coordination, then compare other personal-network choices.附近的一個感測器、一副耳機,與整個校園網絡的需要並不一樣。我們先用 Bluetooth 理解頻率、時間安排和協調各有甚麼作用,再比較其他個人網絡技術。

先由個人身邊的裝置開始。

2.1 Personal networks and the IEEE 802.15 family Slides / 講義 16–202.1 個人網絡與 IEEE 802.15 標準家族

Now start at the smallest scale: the devices around one person. A mouse may send only a small movement update; a temperature sensor may send a few bytes each minute. Their batteries and size can matter more than a very high data rate.先看最小的規模:一個人身邊的裝置。滑鼠可能只傳送一小段游標移動資訊;溫度感測器可能每分鐘只傳幾個位元組。對它們來說,電池續航和體積可能比極高的傳送速率更重要。

A wireless personal area network () is designed for this nearby-device setting. Examples include a phone and headphones, a laptop and keyboard, body sensors, home controls and contactless devices. These applications do not all need the same radio system.無線個人區域網絡(WPAN)就是為這類附近裝置而設。例子包括手機與耳機、手提電腦與鍵盤、人體感測器、家居控制設備,以及非接觸式裝置。這些用途不一定適合使用同一種無線電系統。

Different products must still agree on their rules. The Institute of Electrical and Electronics Engineers () publishes the 802.15 family of personal-network standards. The numbers below identify different jobs, such as low-power communication, mesh relaying or body-area use. They are not ten steps that one Bluetooth packet passes through.不同廠商的產品仍須遵守共同規則,才能合作。電機電子工程師學會(IEEE)制定了 802.15 個人網絡標準家族。以下編號代表不同工作,例如低功耗通訊、網狀接力或人體周邊通訊;它們不是一個藍牙封包要依次經過的十個步驟。

We will first understand Bluetooth in 2.2–2.4, then compare other personal technologies in 2.5. Read the names in the reference table when you need to match a standard to its purpose.我們先在 2.2–2.4 節理解 Bluetooth,再於 2.5 節比較其他個人網絡技術。需要把標準名稱與用途配對時,才展開參考表查看。

先看裝置需要甚麼,再看標準編號;編號不是傳送步驟。

Check your understanding. Why might a sensor choose a slower wireless design?檢查理解:為甚麼感測器可能會選擇速率較低的無線設計?

Read the answer and reason查看答案及原因

Its messages may already fit within the lower rate. A design using less energy, less hardware or lower cost can then meet its needs better than a faster one.因為它的訊息很小,較低速率可能已經足夠。若這個設計同時更省電、硬件更簡單或成本更低,就可能比高速方案更適合它。

Reference: IEEE 802.15 labels and their purposes參考:IEEE 802.15 各編號的用途
The lecture’s IEEE 802.15 family講義介紹的 IEEE 802.15 標準家族
Label標準名稱Main purpose主要用途How to read it怎樣理解
802.15.1Historical Bluetooth-based physical and access layers.早期以 Bluetooth 為基礎的實體層和媒介存取層。A standards label; Bluetooth also develops through the Bluetooth SIG.這是一個標準編號;Bluetooth 本身也由 Bluetooth SIG 持續制定和發展。
802.15.2Coexistence.共存:讓不同無線系統在同一環境中運作。Helps personal and local wireless networks share spectrum.協助個人網絡與區域網絡共用頻譜,減少彼此干擾。
802.15.3High-rate personal networks.高速率的個人網絡。The lecture gives at least 20 Mbit/s for portable multimedia.講義以至少 20 Mbit/s 作例子,用於可攜式多媒體設備。
802.15.4Low-rate, low-power personal networks.低速率、低功耗的個人網絡。The radio/access foundation used by Zigbee. Slide 19 says 200 kbit/s; the 2.4 GHz Zigbee example later uses 250 kbit/s.這是 Zigbee 使用的無線傳輸及媒介存取基礎。第 19 頁寫 200 kbit/s;後面的 2.4 GHz Zigbee 例子則採用 250 kbit/s。
802.15.5Mesh networking.網狀網絡:裝置之間可形成接力路徑。Devices can relay through other devices to extend reach.裝置可經其他裝置轉送訊息,延伸可達範圍。
802.15.6Body-area networks.人體區域網絡。Devices on or near the human body.服務位於人體上或人體附近的裝置。
802.15.7Visible-light communication.可見光通訊。Information carried using light.利用光來承載資訊。
P802.15.8P802.15.8:對等裝置通訊項目。Peer-aware communication.能發現附近對等裝置並與其通訊。The slide describes distributed peer discovery and communication below 11 GHz.講義描述的是分散式裝置探索與通訊,使用低於 11 GHz 的頻率。
P802.15.9P802.15.9:金鑰管理訊息傳送項目。Key-management message transport.傳送管理安全金鑰所需的訊息。Carries messages used to manage security keys.它處理的是金鑰管理訊息怎樣送達,而不是一般應用資料的用途。
P802.15.10P802.15.10:802.15.4 網絡路由項目。Routing for changing 802.15.4 networks.為會變動的 802.15.4 網絡提供路由功能。Helps packets find paths as a network grows or changes.當網絡擴大或結構改變時,協助封包找到可用路徑。

This is the lecture’s historical standards overview. Near-field communication and infrared do not all belong to 802.15.這張表是講義採用的歷史標準概覽。近場通訊和紅外線等技術,不能全部歸入 IEEE 802.15。

Personal networks are often small, inexpensive and self-organising, with device discovery. Slide 16 also names Wireless USB; treat this as another short-range peripheral example rather than a separate network scale.個人網絡通常規模小、成本較低,能自行組織並探索附近裝置。第 16 頁還提到 Wireless USB,可把它理解為另一種短距離周邊裝置連線例子,而不是新的覆蓋範圍分類。

2.2 How Bluetooth shares frequency and time Slides / 講義 21–232.2 Bluetooth 怎樣分配頻率和時間

Start with the headphones. Their radio shares the busy 2.4 GHz band with other devices, including nearby Wi-Fi networks. If another signal interferes with one frequency, staying on that frequency can keep causing trouble.先回到耳機。它與附近 Wi-Fi 等其他裝置共用繁忙的 2.4 GHz 頻段。如果某個頻率受到另一訊號干擾,一直留在那個頻率,就可能一直出問題。

In the Classic Bluetooth model used in these slides, the devices follow an agreed sequence of frequencies. They move together from one frequency to another. This is frequency hopping spread spectrum, shortened to . Interference on part of the band then affects only part of the transmission. Hopping reduces its impact; it cannot promise a perfectly clear link.講義採用的 Classic Bluetooth 模型,會讓裝置依照約定的頻率次序一起轉換頻率。這叫跳頻展頻(Frequency Hopping Spread Spectrum,FHSS)。這樣,即使頻段中的某一部分受干擾,也只會影響部分傳送。跳頻可以減輕影響,但不能保證連線完全沒有干擾。

There is another problem. The phone and headphones both need to send. They take turns in time so each can listen while the other sends. The name for separating the two directions in time is time division duplex, or .還有另一個問題:手機和耳機都需要傳送資料。它們把時間分開,輪流發送,讓一方說話時另一方可以接收。把兩個傳送方向安排在不同時間,叫分時雙工(Time Division Duplex,TDD)。

Now add a keyboard. The phone must also arrange turns between several connected devices. Giving different devices different time slots is time division multiple access, or . The phone coordinates those turns.現在再加入鍵盤,手機還要協調多部已連接裝置的發送次序。把不同時槽分給不同裝置,叫分時多重存取(Time Division Multiple Access,TDMA)。這些輪流使用的安排由手機協調。

These three names answer different questions. Hopping chooses which frequency to use. Duplexing separates the two directions. Multiple access decides which device gets a turn. They can work together in one system.三個名稱各自回答不同問題:跳頻決定用哪個頻率;雙工決定兩個方向怎樣分開;多重存取決定輪到哪部裝置。因此,它們可以同時存在於一個系統。

One connection, three different questions.同一條連線,要回答三個不同問題。

“Which frequency?” leads to hopping. “Which direction?” leads to duplexing. “Which device?” leads to multiple access. A phone can use all three ideas at once.「用哪個頻率?」對應跳頻;「資料往哪個方向走?」對應雙工;「現在輪到哪部裝置?」對應多重存取。手機可以同時運用這三種安排。

FHSS管頻率,TDD管來回方向,TDMA管多部裝置的時段。

Check your understanding. Would taking turns in time alone remove interference from a nearby network using the same frequency?檢查理解:只要讓裝置按時間輪流傳送,就能消除附近另一個同頻網絡造成的干擾嗎?

Read the answer and reason查看答案及原因

No. It coordinates the devices that follow that schedule. Another network can still transmit. Frequency hopping helps reduce how long Bluetooth remains exposed to interference on one part of the band.不能。這個時間表只協調遵守它的裝置,其他網絡仍可能同時發送。跳頻則可減少 Bluetooth 長時間停留在某個受干擾頻率的機會。

Reference: Bluetooth radio numbers參考:Bluetooth 的無線參數

The lecture’s Classic Bluetooth example uses the 2.4 GHz ISM band (83.5 MHz wide), with 79 channels of 1 MHz. A slot lasts 625 microseconds, giving a nominal rate of 1 / 0.000625 = 1,600 hops per second.講義中的 Classic Bluetooth 例子使用 2.4 GHz ISM 頻段,頻段寬度為 83.5 MHz,劃成 79 個各寬 1 MHz 的頻道。每個時槽長 625 微秒,所以標稱跳頻速率為 1 / 0.000625 = 每秒 1,600 次。

A packet occupying several slots remains on its selected frequency for that whole packet. The 1,600 figure therefore does not mean a mandatory change inside every multi-slot packet.如果一個封包佔用多個時槽,它會在整個封包期間維持同一頻率。因此,每秒 1,600 次這個數字,不代表多時槽封包內部也必須每個時槽換頻率。

The lecture gives range examples of 10–100 m. Radio does not need the direct optical alignment of infrared, but walls and other obstacles can still weaken it. “Licence-exempt” does not remove equipment or spectrum-use rules.講義給出的距離例子是 10–100 m。無線電不需要像紅外線般直接對準光路,但牆壁和障礙物仍會削弱訊號。「免牌照」也不代表可以忽略設備和頻譜使用規定。

2.3 Bluetooth groups, voice, data and sleep Slides / 講義 24–282.3 Bluetooth 的群組、語音、數據與睡眠

First organise the devices先組織好各部裝置

Frequency hopping works only if both devices know where and when to listen. The phone cannot move to one frequency while the headphones wait on another. They need a common sequence and a common sense of time.跳頻要有效,兩部裝置都必須知道何時、在哪個頻率接收。手機不能已經轉到另一頻率,耳機卻仍等在原處。因此,它們需要共同的頻率次序,也需要對齊時間。

A small Classic Bluetooth group is called a piconet. One device coordinates it. The lecture calls this device the master and the other active devices slaves. These are the terms used in its diagrams. The coordinator’s identity and clock determine the hopping sequence and its timing; the other devices synchronise to them.Classic Bluetooth 的小型群組叫微網(piconet),由一部裝置協調。講義把協調者稱為 master,其餘活躍裝置稱為 slaves,圖中也沿用這些名稱。協調者的裝置識別碼和時鐘,決定跳頻次序及時間;其他裝置要跟它同步。

In the lecture model, a piconet has one master and up to seven active slaves. The coordinator uses a short address to identify the active device it is talking to. Three address bits provide eight possible values, and the all-zero value is reserved for broadcast. Seven values remain for individual active devices.在講義模型中,一個 piconet 有 1 個 master,最多有 7 個活躍 slaves。協調者使用短位址,指出正在與哪部活躍裝置通訊。3 個位元共有 8 個可能值,但全零值留作廣播,所以只剩下 7 個值可分配給個別活躍裝置。

What if we need to connect two such groups? A device can participate in both by taking turns following each group’s timing. The connected groups form a scatternet. The shared device can be a slave in both, or a master in one and a slave in the other.如果要接通兩個群組怎麼辦?一部裝置可輪流跟隨兩個群組各自的時間安排,參與兩邊的通訊。這些互相連接的群組形成散射網(scatternet)。共享裝置可以在兩邊都當 slave,也可以在一邊當 master、另一邊當 slave。

It cannot act as two independent masters of two distinct piconets in this model. Both would use that same device’s identity and clock, giving the same hopping behaviour. The important idea is that a bridge between groups must manage two schedules; it does not listen to two unrelated frequencies with one radio at the same instant.但在這個模型裏,同一裝置不能作為兩個獨立 piconet 的 master,因為兩邊都會採用它相同的識別碼和時鐘,產生相同的跳頻行為。重點是:群組之間的橋接裝置要協調兩套時間表,而不是靠同一個無線電在同一瞬間接收兩個無關頻率。

Then organise voice, data and sleep再安排語音、數據和睡眠

We have a coordinated group. Now consider what it carries. In a live voice call, a steady flow of small pieces matters. A piece of speech that arrives much too late may be useless. A file transfer can usually wait longer, but every piece must eventually be correct.群組已能協調,接下來要看它傳甚麼。即時通話需要穩定送來一小段、一小段聲音;遲到太久的一段語音,可能已經沒有用。傳送檔案通常可以等久一點,但最後每一部分都必須正確。

The lecture’s synchronous connection-oriented link, or , reserves regular opportunities for voice. Its diagram shows repeated pairs of single slots: one for each direction. The regular schedule makes delivery time more predictable. Radio errors can still happen; a reservation is not a guarantee of perfect audio.講義中的同步連線導向鏈路(SCO)會定期為語音預留傳送機會。圖中重複出現一對一對的單時槽,兩個方向各佔一個。固定安排令到達時間較可預測,但無線傳輸仍會出錯,所以預留時槽不等於保證音質完美。

The asynchronous connection-less link, or , uses the available turns more flexibly for data. A packet may occupy one, three or five slots. A large download can therefore use more time in one direction than the small reply uses in the other. “Connection-less” in this link name does not mean the devices have never established a Bluetooth connection.非同步無連線鏈路(ACL)則較靈活地利用可用時段傳送數據。一個封包可佔 1、3 或 5 個時槽。因此,大量下載可以在一個方向佔較多時間,而另一方向只需傳較短的回覆。名稱中的「connection-less」並不表示裝置從來沒有建立 Bluetooth 連線。

Battery life creates another scheduling problem. A device that listens continuously uses energy even when nothing is being sent to it. Classic Bluetooth has low-power states that reduce how often it listens or pause some activity. The price is waiting for the next opportunity to communicate.電池續航又帶來另一個時間安排問題:裝置若一直保持接收,即使沒有資料傳給它,也會耗電。Classic Bluetooth 的低功耗狀態可以減少收聽次數,或暫停部分活動;代價是要等到下一次通訊機會,才可以收發資料。

Notice the shared idea: timing is used both to support the application and to save power. Later, Wi-Fi will also let a device sleep and arrange a time to check for waiting data.留意共同想法:時間安排既用來配合應用需要,也用來省電。後面的 Wi-Fi 同樣會讓裝置睡眠,再約定何時醒來查看是否有待收資料。

Bluetooth: regular voice turns and flexible data turns MASTER SLAVE 1 SLAVE 20 (f0)1 (f1)2 (f2)3 (f2)4 (f2)5 (f5)6 (f6)7 (f7)8 (f8)9 (f9)SCO to 1ACL: 3 slots on f2SCO to 1ACL to 2SCO replySCO replyACL replyACL replySame sender and frequency for the whole packet
Follow one row across time.沿着同一行,按時間由左至右看。

This example reserves voice at slots 0–1 and 6–7. The three-slot data packet fits between them, in slots 2–4, with its reply at slot 5. It stays on frequency f2 for all three slots. A shorter data exchange uses slots 8–9.這個例子在時槽 0–1 和 6–7 預留語音傳送。中間的時槽 2–4 容納一個三時槽數據封包,時槽 5 傳回覆;這個長封包在三個時槽內都使用 f2。時槽 8–9 則進行一次較短的數據交換。

Master packets start in even-numbered slots and slave packets start in odd-numbered slots in this timing model. A multi-slot packet keeps its sender and frequency through the whole packet; another sender does not interrupt it at an internal slot boundary.在這個時間模型中,master 的封包從偶數時槽開始,slave 的封包從奇數時槽開始。多時槽封包在整段傳送期間維持同一發送者和頻率,不會在內部每個時槽的交界讓別人插進來。

On a small screen, swipe the diagram sideways to read its labels.在小螢幕上,可左右滑動圖解查看標籤。

先建立同一套時間與跳頻規則,再安排誰說話、說多久、何時休息。

Check your understanding. Two Bluetooth devices are close together but follow different hopping sequences. Why is physical distance alone not enough for communication?檢查理解:兩部 Bluetooth 裝置距離很近,但採用不同的跳頻次序。為甚麼光是靠近仍不足以通訊?

Read the answer and reason查看答案及原因

The receiving device may be listening on a different frequency at the required time. They also need compatible timing and a shared communication procedure.因為接收裝置在需要收資料的時候,可能正在聽另一個頻率。除了距離,它們還需要配合時間,並遵守共同的通訊程序。

Check your understanding. Why can regular reserved slots help a live call, while flexible longer packets help a file download?檢查理解:為甚麼固定預留的時槽有助即時通話,而可靈活延長的封包有助下載檔案?

Read the answer and reason查看答案及原因

Regular slots provide predictable opportunities for delay-sensitive speech. Flexible longer packets can use spare airtime efficiently for larger amounts of data. The application’s needs determine the useful schedule.語音對延遲敏感,固定時槽可以提供較可預測的傳送機會。下載資料較多,較長而靈活的封包則能有效利用空餘的無線傳送時間。甚麼安排較好,要看應用需要。

Reference: roles, addresses and device states參考:角色、位址和裝置狀態
Classic Bluetooth roles and addressesClassic Bluetooth 的角色與位址
Role or state角色或狀態Address or timing位址或時間安排Meaning意思
MasterMaster:群組協調者。Device identity and clock coordinate the group.利用裝置識別碼和時鐘協調群組。One master supplies the timing and hopping behaviour for the piconet.一個 master 為整個 piconet 提供時間和跳頻安排。
Active slaveActive slave:活躍的成員裝置。Three-bit active member address, .使用 3 位元的活躍成員位址(AMA)。Eight values exist; zero is for broadcast, leaving seven individual active addresses.共有 8 個可能值,零留作廣播,所以有 7 個個別活躍位址。
Parked deviceParked device:暫時退出活躍狀態、但仍與群組保持同步的裝置。An eight-bit parked member address, , in the lecture model.講義模型使用 8 位元的暫停成員位址(PMA)。Gives up its active address but remains known and synchronised. The lecture lists up to 255 parked addresses.裝置交回活躍位址,但群組仍知道它的存在,而且它保持同步。講義列出最多 255 個這類位址。
StandbyStandby:待機狀態。Not an active member of the piconet.尚未成為 piconet 的活躍成員。An unconnected starting state; it is different from a connected device sleeping between listening times.這是尚未連線的起始狀態,有別於已連線裝置在兩次接收機會之間睡眠。

These limits and parked-device states belong to the Classic Bluetooth model in the slides. Do not apply the seven-active-slave rule to every Bluetooth Low Energy topology.這些數量限制和 parked 狀態,屬於講義的 Classic Bluetooth 模型。不要把「最多七個活躍 slaves」套用到所有 Bluetooth Low Energy 網絡結構。

To read slide 27, follow one sender’s row from left to right. The short regularly spaced pairs are the voice reservations. Longer blocks are data packets. A long packet occupies consecutive slots on one frequency; it does not stop after each slot to let another device interrupt it.看第 27 頁時,沿一個發送者的橫行由左至右看。短而定期出現的一對時槽代表語音預留;較長方塊代表數據封包。長封包會連續佔用多個時槽,並維持同一頻率,不會每個時槽都停下來讓另一裝置插入。

The legacy state diagram starts with standby, then inquire to discover devices, then page to contact a chosen device, then connected. These describe discovery and connection, rather than four types of radio.舊式狀態圖的順序是:standby(待機)→ inquire(探索裝置)→ page(聯絡選定裝置)→ connected(已連接)。這些名稱描述探索和建立連線的過程,不是四種無線電技術。

In sniff, a device listens at agreed intervals. In hold, normal ACL activity pauses while SCO traffic can remain possible in the lecture model. In park, it releases its active address and keeps a parked address. Sniff and hold retain the active address. These slides describe legacy Classic Bluetooth; do not apply every state to Bluetooth Low Energy.在 sniff 狀態,裝置按約定間隔收聽;在 hold 狀態,正常 ACL 活動暫停,但講義模型仍可能保留 SCO 通訊;在 park 狀態,裝置交回活躍位址,改用 parked 位址。Sniff 和 hold 仍保留活躍位址。這裏描述的是舊式 Classic Bluetooth,不要把所有狀態都套用到 BLE。

A 48-bit device identity and the coordinator’s clock determine the hopping behaviour in slide 25. This long-term identity has a different job from the three-bit local active address. If all seven active positions are occupied, one device must release an active position before a parked device becomes active.第 25 頁的跳頻行為,由 48 位元裝置識別碼和協調者時鐘決定。這個長期識別碼,與群組內 3 位元活躍位址的工作不同。如果七個活躍位置已滿,要先有裝置釋放位置,parked 裝置才可轉為活躍。

The zero-for-broadcast address explanation follows the Bluetooth SIG baseband specification, section 4.2. The coordinator is not an eighth addressed slave.「零值留作廣播」的說明,依據 Bluetooth SIG 基頻規格第 4.2 節。協調者並不是第八個獲分配 slave 位址的裝置。

2.4 Bluetooth software rules, profiles and Low Energy Slides / 講義 29–322.4 Bluetooth 的軟件規則、應用規範與低功耗設計

The phone and headphones can now exchange packets. But what do those packets mean? One manufacturer could put the audio controls in a different order from another. A working radio connection alone would not make them understand each other.手機和耳機現在能交換封包,但封包裏的內容代表甚麼?如果兩家廠商把音訊控制指令排成不同格式,光是無線連線成功,仍不代表雙方看得懂對方的訊息。

A protocol is an agreed set of communication rules. Bluetooth organises these rules into a protocol stack. Lower layers handle the radio and the link. Higher layers handle services needed by applications. Each layer has a job, so an audio application does not have to control every radio hop itself.協定(protocol)是雙方同意遵守的通訊規則。Bluetooth 把這些規則組成協定棧(protocol stack):較低層處理無線電和連線,較高層提供應用程式需要的服務。每層各有分工,所以音訊應用程式不必親自控制每次跳頻。

Follow the job upwards. The radio sends and receives signals. The baseband handles link timing, packets and hopping. Link management sets up and manages the link. Other layers combine data from different services and help a device discover what the other device can do.由下往上看各層的工作:radio 收發訊號;baseband 處理連線時間、封包和跳頻;link management 建立及管理連線。再往上,有些層負責整合不同服務的數據,有些則協助裝置查詢對方支援甚麼功能。

A profile specifies how selected protocols are used for a particular purpose, such as sending stereo audio. Two products need compatible profiles as well as compatible radio technology. This is why “both have Bluetooth” is not enough to prove that every feature will work between them.Profile(應用規範)說明某個特定用途應怎樣使用選定的協定,例如怎樣傳送立體聲。兩個產品除了無線電技術要相容,也需要支援相容的 profile。因此,「兩部都有 Bluetooth」還不足以證明所有功能都能互通。

Bluetooth also has different designs for different traffic. The lecture contrasts Classic Bluetooth with Bluetooth Low Energy, or . A tiny sensor may sleep most of the time and send short updates. Low Energy is designed to support this kind of economical operation. The lecture’s Classic-versus-Low-Energy comparison is a useful starting point, rather than a rule that all modern audio must use Classic.Bluetooth 也會按資料流的特性採用不同設計。講義比較 Classic Bluetooth 與 Bluetooth Low Energy(BLE,低功耗藍牙)。微型感測器可能大部分時間都睡眠,只偶爾送出短更新;BLE 就特別着重這類省電運作。這個比較有助入門,但不能推論所有現代音訊都一定要使用 Classic。

協定棧負責分工;profile說明某種用途要怎樣使用這些協定。

Check your understanding. A phone and a peripheral have compatible Bluetooth radios. Why might a particular service still fail to work?檢查理解:手機和周邊裝置的 Bluetooth 無線電相容,為甚麼某項服務仍可能無法使用?

Read the answer and reason查看答案及原因

They may not support a compatible profile for that service. Exchanging radio packets is only the transport step; they must also agree on the service’s messages and behaviour.因為兩者可能沒有支援該服務所需的相容 profile。交換無線封包只是傳送的一步;它們還要對服務訊息的格式和行為達成一致。

Reference: the protocol-stack names參考:協定棧中的各個名稱
Bluetooth protocol stackBluetooth 協定棧
Layer or protocol層次或協定Job in the connection在連線中的工作
RadioRadio:無線電層。Sends and receives the physical radio signal.收發實際的無線電訊號。
BasebandBaseband:基頻層。Handles link timing, packet format, addressing and frequency hopping.處理連線時間、封包格式、位址和跳頻。
Link Manager Protocol ()LMP:連線管理協定。Sets up and manages links, including authentication and encryption control.建立和管理連線,包括身分驗證和加密控制。
Host Controller Interface ()HCI:主機控制器介面。Connects the controller hardware to host software through a standard interface.透過標準介面,讓主機軟件與控制器硬件互相溝通。
Logical Link Control and Adaptation Protocol ()L2CAP:邏輯連線控制及適配協定。Combines higher-layer traffic and adapts packet sizes.整合較高層的資料流,並配合連線要求調整封包大小。
Service Discovery Protocol ()SDP:服務探索協定。Answers questions about services supported by another device.讓裝置查詢另一部裝置支援甚麼服務。
RFCOMM:模擬串列連線的協定。Emulates a serial connection for software using that interface.為原本使用串列介面的軟件,提供類似串列連線的通訊方式。
Bluetooth Network Encapsulation Protocol ()BNEP:Bluetooth 網絡封裝協定。Carries Ethernet-style network packets for Bluetooth networking.在 Bluetooth 網絡上承載類似 Ethernet 格式的網絡封包。
Object Exchange ()OBEX:物件交換協定。Transfers objects such as contacts, calendar entries and files.傳送通訊錄聯絡人、日曆項目和檔案等物件。
Telephony Control Specification Binary ()TCS BIN:二進位電話控制規範。Handles call-control signalling in the lecture’s telephony model.在講義的電話模型中,處理控制通話所需的信令。
AudioAudio:音訊。Uses the appropriate audio transport; not every application passes through every box in a stack diagram.使用合適的音訊傳送方式。協定棧圖中的每個方塊有不同用途,並非每個應用都要經過全部方塊。
Reference: profiles and Classic versus Low Energy參考:Profiles,以及 Classic 與 Low Energy 的比較
Classic Bluetooth and Bluetooth Low Energy: slide 32第 32 頁:Classic Bluetooth 與 Bluetooth Low Energy
Feature比較項目Classic Bluetooth傳統藍牙(Classic Bluetooth)Bluetooth Low Energy低功耗藍牙(Bluetooth Low Energy)
Lecture data-rate examples講義的資料速率例子1–3 Mbit/s.速率為 1–3 Mbit/s。125 kbit/s–2 Mbit/s, depending on the physical mode.速率為 125 kbit/s–2 Mbit/s,視乎使用哪種實體層模式。
Power emphasis省電設計的重點Low power for ongoing short-range connections.以低功耗維持持續的短距離連線。Efficient short exchanges and long sleep periods.提高短暫交換資料的效率,並容許較長睡眠時間。
Lecture latency examples講義的延遲例子About 100 ms.約 100 ms。About 6 ms.約 6 ms。
Lecture range examples講義的距離例子About 10–100 m.約 10–100 m。About 10–100 m.約 10–100 m。
Topology in the comparison表中比較的網絡結構Piconet and scatternet.微網(piconet)和散射網(scatternet)。Star arrangements and Bluetooth Mesh.星狀結構和 Bluetooth Mesh 網狀網絡。
Typical uses in the comparison表中列出的典型用途Audio streaming and file transfer.音訊串流和檔案傳送。Sensors, wearables and beacons.感測器、穿戴裝置和信標。

The range, delay and rate values are examples from the lecture, not guarantees for all devices. Modern audio can also use Low Energy; keep the historical comparison separate from a universal rule.距離、延遲和速率都只是講義例子,不是所有裝置的保證。現代音訊也能使用 Low Energy,所以要分清楚「歷史上的典型比較」與「任何情況都成立的規則」。

A profile is an agreed use of the stack, not an extra stack layer. Slide 31 lists generic access, service discovery, cordless telephony, intercom, serial port, headset, dial-up networking, fax, LAN access, generic object exchange, object push, file transfer and synchronisation.Profile 規定如何使用協定棧,本身不是額外的一層。第 31 頁列出一般存取、服務探索、無線電話、對講、串列埠、耳機、撥號網絡、傳真、區域網絡存取、一般物件交換、物件推送、檔案傳送,以及同步等用途。

Additional examples include Advanced Audio Distribution (A2DP), Personal Area Networking, Audio/Video Remote Control (AVRCP), printing, imaging, extended discovery, Generic Audio/Video Distribution, Hands-Free (HFP) and Hardcopy Cable Replacement.其他例子包括進階音訊分發(A2DP)、個人區域網絡、音訊/視訊遙控(AVRCP)、列印、影像處理、延伸探索、一般音訊/視訊分發、免提通話(HFP),以及以無線方式取代列印設備連接線。

The stack diagram also shows familiar networking protocols: Internet Protocol (IP), Transmission Control Protocol (TCP), User Datagram Protocol (UDP), and Point-to-Point Protocol (PPP). The application uses the relevant path, not every protocol in the picture.圖中也出現熟悉的網絡協定:互聯網協定(IP)、傳輸控制協定(TCP)、使用者資料報協定(UDP)和點對點協定(PPP)。應用會選用相關路徑,不會把圖中每個協定都走一遍。

2.5 Choosing other personal-area technologies Slides / 講義 33–422.5 怎樣選擇其他個人區域技術

Bluetooth is one answer to a nearby-device problem. Now change the problem: many sleeping sensors, a deliberate tap, or an accurate distance measurement. The design choice can change too.Bluetooth 是連接附近裝置的一種答案。但如果需要改成大量會睡眠的感測器、刻意靠近拍卡,或精確測量距離,合適的設計也可能跟着改變。

Many small messages around a home家裏分散着很多小訊息

Leave the headphones for a moment. A temperature sensor on a wall may send one small reading every minute. A high continuous data rate gives it little benefit. A battery that lasts much longer is more useful.暫時放下耳機,想想牆上的溫度感測器。它可能每分鐘只送出一個小讀數,持續高速傳送對它沒有太大幫助;能讓電池用得更久,反而更實用。

Zigbee is designed for low-rate monitoring and control, using the physical and access layers of IEEE 802.15.4. A low-power end device can communicate with a parent device, then sleep. The design separates the needs of small battery devices from the work of keeping the network connected.Zigbee適合低速率的監測和控制,使用 IEEE 802.15.4 的實體層與媒介存取層。低功耗終端裝置可以先與上層連接的父節點通訊,然後睡眠。這樣便把「小型電池裝置的省電需要」與「維持網絡連通的工作」分開處理。

One coordinator forms the network. Router devices can forward messages. End devices usually depend on a parent and do not act as routers. In a mesh, data may travel through several routers to reach its destination. This can extend coverage beyond one direct radio link.一個協調者負責建立網絡,路由裝置可以轉送訊息。終端裝置通常依靠父節點,不會自己擔任路由器。在網狀結構中,資料可以經過多個路由裝置到達目的地,因而超越一條直接無線連線的覆蓋範圍。

If a route fails and a suitable alternative exists, the network can find another route. That is the idea behind “self-healing.” It does not mean every device failure can be repaired automatically. A battery sensor cannot save power by sleeping all the time if the network also expects it to relay everyone else’s traffic.如果路徑失效,而又有合適的替代路徑,網絡可以改走另一條路,這就是自我修復(self-healing)的意思。但它不是說任何裝置壞掉都會自動修好。如果網絡要求某部感測器替別人轉送資料,它就不能同時一直睡眠來省電。

Z-Wave addresses a similar practical need: low-power building control, such as lights, locks and sensors. The reason for learning these alongside Bluetooth is to see the design choice. A steady audio stream and an occasional temperature reading place different demands on a network.Z-Wave處理相近的需要:以低功耗控制建築物內的燈、門鎖和感測器。把它們與 Bluetooth 一起學,是為了看懂不同需求帶來的設計選擇。持續音訊串流和偶爾傳送的溫度讀數,對網絡的要求不同。

A deliberate tap and a small tag刻意靠近拍卡,以及小型標籤

At the café counter, you hold a card or phone close to the payment reader. Here, the short distance is useful. It helps you choose the device you intend to interact with: the reader immediately in front of you.在咖啡店付款時,你把卡或手機靠近讀卡器。這時,距離短反而有用:它幫你清楚選定眼前那部讀卡器,作為這次互動的對象。

Radio frequency identification, or , uses a reader and a tag. The reader sends a radio signal. A passive tag takes energy from that signal, powers its chip and responds with stored information. An active tag has its own power source. Identification can therefore work without a battery in every tag.無線射頻識別(Radio Frequency Identification,RFID)由讀取器和標籤配合。讀取器發出無線電訊號;被動標籤從訊號取得能量,啟動晶片,再回傳儲存的資訊。主動標籤則有自己的電源。因此,不是每張標籤都要裝電池,才能完成識別。

Near-field communication, or , is a family of very short-range communication methods related to contactless identification. Nearby coils couple through a changing magnetic field. This explains both the short range and how a passive device can receive power.近場通訊(Near-Field Communication,NFC)是一組極短距離通訊方式,與非接觸式識別有關。兩個靠近的線圈透過變動磁場互相耦合。這同時解釋了為甚麼距離很短,以及被動裝置怎樣從中取得電力。

The role depends on the task. A phone can act like a contactless card when paying. It can act as a reader when reading a tag. The lecture also describes peer-to-peer exchange between two devices. These are different ways to use the same general near-field idea.裝置的角色會隨工作改變:手機付款時可以模擬非接觸式卡片,讀標籤時可以當讀取器;講義也提到兩部裝置之間的對等資料交換。它們是運用近場耦合概念的不同模式。

Being close makes intentional interaction easier and reduces some opportunities for unwanted reception. It does not make the whole payment system secure by itself. Authentication and the application’s security rules still matter.靠近操作有助表達使用者的意圖,也減少部分非預期接收的機會,但不能單靠短距離就保證付款系統安全。身分驗證和應用層的安全規則仍然重要。

An optical link, precise ranging, or a different short-range radio光學連線、精確測距與其他短距離無線電

We have seen several reasons to choose a short-range link: audio, battery life and intentional tapping. Two more useful properties are a clear direction and an accurate sense of distance.我們已看過音訊、省電和刻意拍卡等選擇短距離技術的理由。接下來再看兩個特性:清楚的傳送方向,以及精確掌握距離。

Infrared sends information using light outside the visible range. In the lecture’s infrared-link example, the devices must have a clear optical path and be roughly aligned. A wall blocks that path. This is less convenient than Bluetooth for a device in a pocket, but radio interference does not directly affect the infrared signal.紅外線(infrared)利用可見光範圍以外的光傳送資訊。講義的紅外線連線例子要求光路暢通,而且兩端大致對準;牆壁會把這條光路擋住。裝置放在口袋時,它就沒有 Bluetooth 那麼方便,但無線電干擾不會直接干擾紅外線訊號。

Ultra-wideband, or , uses a very wide span of radio frequencies. Its fine timing can help measure how long a signal takes to travel. Because travel time is related to distance, the technology is useful for locating or tracking nearby objects as well as for particular data links.超寬頻(Ultra-Wideband,UWB)使用很寬的無線電頻率範圍。它可以精細地分辨時間,從而協助測量訊號走完一段路需要多久。傳播時間與距離有關,因此除了某些數據連線,UWB 也適合用於附近物件的定位和追蹤。

Do not read “wideband” as “always long range.” Bandwidth describes a span of frequencies. Range depends on the whole link, including signal power and the receiver. The lecture’s older high-rate examples actually trade distance for data rate.不要把「寬頻」理解成「一定傳得遠」。頻寬描述的是頻率範圍有多寬;實際距離還要看訊號功率、接收器等整條連線的條件。講義較舊的高速率例子,實際上是以較短距離換取較高資料速率。

The lecture also introduces NearLink, also called SparkLink. It separates a low-energy mode from a mode aimed at higher-speed and higher-capacity tasks. This repeats the chapter’s central theme: the application’s needs drive the design. You do not need to memorise a new set of initials before understanding that choice.講義亦介紹 NearLink(又稱 SparkLink/星閃)。它把低功耗模式,與針對較高速率、較大容量的模式分開。這再次帶出本章主線:設計要跟着應用需要走。先看懂這個選擇,再記新縮寫會容易得多。

把每種技術對應到一個需要:省電組網、拍卡、光學連線或精準測距。

Check your understanding. Would a payment tap, a house of temperature sensors and a precise item finder automatically use the same technology?檢查理解:付款拍卡、全屋溫度感測器和精確尋物器,會理所當然地使用同一種技術嗎?

Read the answer and reason查看答案及原因

No. A tap values deliberate close contact; the sensors value low-energy small messages and coverage through the home; the finder values distance measurement. Start from those needs, then compare designs.不會。拍卡重視有意識的近距離接觸;感測器重視省電、小訊息和全屋覆蓋;尋物器重視距離測量。先列出這些需要,再比較哪種設計適合。

Reference: Zigbee, NFC/RFID, infrared, UWB, NearLink and Z-Wave參考:Zigbee、NFC/RFID、紅外線、UWB、NearLink 與 Z-Wave
Other personal-area technologies其他個人區域技術
Technology技術名稱Lecture numbers and standards講義的數值與標準Why a designer might choose it選用它的理由
ZigbeeZigbee:低功耗感測及控制網絡。 802.15.4 radio/access layers; 2.4 GHz: 16 channels and 250 kbit/s; 915 MHz: 40 kbit/s; 868 MHz: 20 kbit/s; range example 10–100 m.使用 IEEE 802.15.4 無線電/媒介存取層。2.4 GHz 的例子為 16 個頻道、250 kbit/s;915 MHz 為 40 kbit/s;868 MHz 為 20 kbit/s。距離例子為 10–100 m。Small sensor messages and home control. Star, tree or mesh; coordinator starts the network, routers relay, end devices can sleep. Uses , and . The lecture gives a network size of about 65,000 nodes.適合小型感測訊息和家居控制,可用星狀、樹狀或網狀結構。協調者建立網絡,路由裝置負責接力,終端裝置可睡眠。採用 DSSS、CSMA/CA 和 AES-128;講義列出的網絡規模約為 65,000 個節點。
Near Field Communication ()NFC:近場通訊。ISO/IEC 18092 and the ISO/IEC 14443 card context; a few centimetres. Slides list 106/212/424/848 kbit/s across their /card comparison.相關標準包括 ISO/IEC 18092,以及非接觸式卡片的 ISO/IEC 14443;距離通常為幾厘米。講義在 NFC/卡片比較中列出 106/212/424/848 kbit/s。Intentional tapping, reader/writer use, card emulation and peer communication. Rate support depends on the protocol and mode. Short range alone does not guarantee secure payment.用於刻意拍卡、讀寫標籤、模擬卡片和對等通訊。可用速率取決於協定和模式;單靠短距離不能保證付款安全。
Radio Frequency Identification ()RFID:無線射頻識別。Reader and tag; tags may be passive, semi-passive or active.由讀取器和標籤配合;標籤可分為被動、半被動或主動式。A passive tag gets energy from the reader and replies with information. is one short-range use of related coupling ideas; not all is .被動標籤從讀取器訊號取電,再回覆資訊。NFC 是相關耦合概念的一種短距離應用,但並非所有 RFID 都是 NFC。
Infrared ()紅外線通訊(IrDA)。Direct optical path, about 1 m in the lecture.需要直接、暢通的光路,講義的距離例子約為 1 m。A short bidirectional optical link unaffected by radio interference. Objects, sunlight and other optical conditions can disrupt it.可作短距離雙向光學連線,不受無線電干擾直接影響;但障礙物、陽光和其他光學環境因素可能破壞連線。
Ultra Wideband ()UWB:超寬頻。Very wide bandwidth, over 500 MHz in the slide; historical examples: 480 Mbit/s at up to 3 m and 11 Mbit/s at up to 10 m.使用很寬的頻寬,投影片寫超過 500 MHz。歷史例子包括:距離不超過 3 m 時達 480 Mbit/s,距離不超過 10 m 時達 11 Mbit/s。Short-range data and precise ranging or location. High-rate and ranging uses are different designs; not every tracker runs at the historical peak rate.可用於短距離數據傳輸,以及精確測距或定位。高速傳輸和測距是不同設計用途,不能把歷史最高速率套到每個追蹤器。
NearLink / SparkLinkNearLink/SparkLink:星閃。 focuses on low energy; on higher data capacity. Slide 41 lists examples up to 600 m, 20 microseconds and 10 mW; conditions differ.SLE 着重低功耗,SLB 着重較高資料容量。第 41 頁列出最遠 600 m、20 微秒和 10 mW 等例子,但各數值有不同條件,不能假設同時達成。Short-range links for peripherals, audio, vehicles and other devices. The slide’s 2.0 directions include native audio/video, host-controller interfaces and positioning.用於周邊裝置、音訊、車輛等的短距離連線。講義所述 2.0 發展方向包括原生音訊/視訊、主機控制器介面和定位。
Z-WaveZ-Wave:家居控制用的低功耗無線技術。Low-power mesh; slide range 50–200 m and rate up to 100 kbit/s.採用低功耗網狀網絡;講義的距離例子為 50–200 m,速率最高 100 kbit/s。Home automation: lights, locks, sensors, security and garage controls.用於家居自動化,例如燈、門鎖、感測器、保安和車庫門控制。

Zigbee’s layers above / include the network layer (routing), application support and the Zigbee device object (management). Do not read a technology’s range, lowest delay and highest rate as one guaranteed operating point.Zigbee 在 PHY/MAC 之上,還有負責路由的網絡層、應用支援,以及負責管理的 Zigbee 裝置物件。閱讀任何技術參數時,都不要把最遠距離、最低延遲和最高速率當成同一個可保證達成的運作狀態。

A semi-passive tag uses a battery for some internal work while still depending on the reader interaction for communication. examples also include transit or building access and exchanging information to help pair another wireless connection. Infrared can be affected by heat sources and atmospheric conditions as well as sunlight and physical blockage.半被動 RFID 標籤用電池支援部分內部工作,但通訊仍依賴與讀取器的互動。NFC 也可用於交通或門禁,以及交換資料來協助另一種無線連線配對。紅外線除了受陽光和實體遮擋影響,也可能受熱源及大氣條件影響。

Part 3 · Wireless Local Area Network (WLAN & IEEE 802.11)Part 3 · 無線區域網絡:WLAN 與 IEEE 802.11

Slides / 講義 43–73
Now connect a room, building or campus把範圍擴大到房間、建築物或校園

A local network needs more than a nearby device link. Follow this sequence: the network structure, the radio link, the rules for sharing it, then sleep and movement. Finally put the Wi-Fi generation names in context.本地網絡不能只靠一條附近裝置之間的連線。我們會依次看:網絡怎樣連接、無線電怎樣傳資料、大家怎樣共用頻道,以及裝置睡眠和移動時怎樣處理。最後,再把各代 Wi-Fi 的名稱放回這個脈絡。

架構 → 無線傳輸 → 共用頻道 → 省電與漫遊。

3.1 How a Wi-Fi network is connected Slides / 講義 44–523.1 Wi-Fi 網絡怎樣連接

You put the headphones away and open a lecture on your phone. The file is on a remote server. Your phone first needs a local path into the café network. This is where Wi-Fi enters the story.你收好耳機,在手機上打開講義,但檔案存放在遠端伺服器。手機首先要接入咖啡店的本地網絡,Wi-Fi 就在這一步派上用場。

The café’s access point provides the wireless connection. It bridges traffic between wireless devices and a distribution network. A router farther along the path forwards traffic between networks. A home “Wi-Fi router” often combines these functions in one box, but the jobs are different.咖啡店的接入點(access point,AP)提供無線連線,把無線裝置的資料接到分佈網絡。沿路後面的路由器則負責在不同網絡之間轉送資料。家用「Wi-Fi router」常把這些功能放在同一個盒子裏,但它們的工作不同。

One access point covers only a local area. A large campus uses several. Each serves a local group, and the access points connect through a distribution system. The combined arrangement can act as one logical local network while you move between coverage areas.一個接入點只能覆蓋附近範圍,大型校園便會使用多個接入點。每個接入點服務自己的本地群組,再透過分佈系統(distribution system)連起來。這些群組可以在邏輯上組成同一個區域網絡,讓你在不同覆蓋區之間移動。

Only now do the diagram labels become useful. A participating device is a station. One infrastructure group is a basic service set. Connected groups form an extended service set. These labels describe the pieces we have just built; they are not extra stages that every packet must pass through.理解了這個結構,圖中的名稱就有意思了:參與網絡的裝置叫 station;一個有接入點的基本群組叫 basic service set;多個相連群組形成 extended service set。它們是在命名剛才的裝置和群組,不是每個封包都要額外經過的傳送步驟。

Wi-Fi also needs two kinds of rule. The physical layer describes how bits become radio signals. Medium access control describes how devices use the shared channel. We will first look at the radio, then spend several short lessons on sharing it.Wi-Fi 還需要兩類規則。實體層(physical layer)說明位元怎樣變成無線電訊號;媒介存取控制(Medium Access Control,MAC)說明裝置怎樣使用共用頻道。我們先看無線電,再分幾個小步驟理解共用頻道。

The other organisation is the independent basic service set (): stations communicate without an access point. In the infrastructure arrangement, a portal connects the distribution system to another local network. Keep these jobs separate from the Internet router function.另一種組織方式是獨立基本服務集(IBSS):裝置直接通訊,沒有接入點。在有基建的安排中,portal則把分佈系統接到另一個區域網絡。不要把這些工作與互聯網路由器的功能混為一談。

Infrastructure Mode: ESS (Extended Service Set) Distribution System (DS) — Connects APs into 1 Logical LAN Portal → Wired LAN BSS 1 (AP 1 + STAs) AP 1 STA 1 STA 2 BSS 2 (AP 2 + STAs) AP 2 STA 3 Ad Hoc Mode: IBSS (No AP) Independent BSS (P2P) STA 4 STA 5 STA 6
Start with one phone and its access point.先看一部手機與它的接入點。

A station () is a participating device. One infrastructure basic service set () contains an access point () and its associated stations. The distribution system () links the access points. Connected groups form an extended service set ().STA是參與網絡的站點,也就是裝置。一個有基建的BSS包含一個AP和與它關聯的裝置。DS連接各接入點,這些相連群組組成ESS。

The portal connects to another LAN. On the right, the independent basic service set () has no access point. These labels name groups and connections; they are not a list of extra boxes every message visits.Portal 連接另一個 LAN。圖右的 IBSS 沒有接入點。這些標籤表示群組和連接關係,不是每個訊息都要依次拜訪的一串設備。

On a small screen, swipe the diagram sideways to read its labels.在小螢幕上,可左右滑動圖解查看標籤。

先順著一個封包的路線看,再把AP、BSS、DS、ESS等名稱放回圖中。

Check your understanding. Does adding a second access point automatically make a completely separate Internet?檢查理解:增加第二個接入點,是否自動產生另一個完全獨立的互聯網?

Read the answer and reason查看答案及原因

No. Several access points can connect to the same distribution network and provide different local coverage areas. They may share the same upstream Internet connection.不是。多個接入點可以連到同一個分佈網絡,分別覆蓋不同本地區域,也可以共用同一條往外的互聯網連線。

Reference: the physical, access and management layers參考:實體層、存取與管理功能
The jobs of Wi-Fi layersWi-Fi 各層的分工
Layer or function層次或功能Job工作
Physical Medium Dependent ()PMD:與實體傳輸媒介相關的部分。The physical signalling method, including modulation and coding.決定實際的訊號傳送方式,包括調變和編碼。
Physical Layer Convergence Protocol ()PLCP:實體層匯聚協定。Adapts frames to the physical transmission format and supports the physical-layer services used by .把 MAC 訊框轉成適合實體傳送的格式,並支援 MAC 所需的實體層服務。
Clear Channel Assessment ()CCA:空閒頻道評估。Assesses physical channel activity so can decide whether to defer.判斷實體頻道是否有活動,讓 MAC 決定是否需要延後發送。
managementPHY management:實體層管理。Manages physical settings such as channels and the physical Management Information Base ().管理頻道等實體層設定,以及實體層的管理資訊庫(MIB)。
Medium Access Control ()MAC:媒介存取控制。Controls access, framing-related procedures, fragmentation and protection in the lecture model.在講義模型中,負責存取控制、訊框相關程序、分段和保護機制。
managementMAC management:MAC 管理。Handles synchronisation, association/reassociation, roaming and power management.處理同步、關聯/重新關聯、漫遊和電源管理。
Station managementStation management:站點管理。Coordinates the station’s physical and management functions.協調裝置的實體層管理與 MAC 管理功能。
Logical Link Control ()LLC:邏輯連線控制。The sublayer above . An extended service set appears as one logical local network to it.位於 MAC 之上的子層。從這一層看,一個 ESS 就像一個邏輯上的區域網絡。

Slides 44–48 describe building-scale range around 100 m, high data rates, flexible installation without a cable to each device, and applications in homes, offices, campuses, public hotspots, connected devices and backhaul. Real range and throughput depend on conditions. The two standard families named are 802.11 and the separate HiperLAN family.第 44–48 頁描述約 100 m 的建築物範圍、高資料速率,以及不用為每部裝置拉線的靈活安裝方式。應用包括住宅、辦公室、校園、公共熱點、互聯裝置和回程連線。實際距離和吞吐量仍取決於環境。講義列出兩個分開的標準家族:IEEE 802.11 與 ETSI HiperLAN。

The access point organises network membership and connection to the distribution system, but it does not schedule every ordinary DCF transmission. Ad hoc stations also need shared-channel rules. The label data link control (DLC) in the layer diagram refers to the broader link-layer role.接入點管理裝置加入網絡,以及通往分佈系統的連接,但普通 DCF 傳送並非每次都由 AP 排程。Ad hoc 裝置也需要共用頻道的規則。層次圖中的資料鏈路控制(DLC),是在描述較廣義的鏈路層工作。

3.2 How Wi-Fi carries bits over the radio Slides / 講義 53–553.2 Wi-Fi 怎樣用無線電傳送位元

Inside the café, several access points may be within radio range. They need suitable channels: defined parts of the frequency band. Two channel numbers can be different while their occupied frequency ranges still overlap. Nearby transmissions can then interfere.咖啡店附近可能有多個接入點,彼此都在無線電範圍內,因此要選合適的頻道(channel),也就是頻段中劃定的一部分。即使兩個頻道編號不同,實際佔用的頻率範圍仍可能重疊,附近的傳送就可能互相干擾。

Think of the channel as the space available for radio transmission, not as a private line belonging to your phone. Choosing less-overlapping channels can help nearby networks coexist. Making a channel wider can carry more data, but uses more of the available spectrum.你可以把頻道理解為可用來無線傳輸的頻譜空間,而不是手機獨佔的一條線。選擇重疊較少的頻道,有助附近網絡共存。加寬頻道可以承載更多資料,但也會佔去更多可用頻譜。

The lecture revisits techniques from Chapter 2. Orthogonal frequency division multiplexing, or , divides a transmission across many narrow subcarriers. Their careful spacing lets them work together efficiently. This also helps the system cope with the fact that different frequencies may be affected differently by the environment.講義在這裏重用第二章的技術。正交分頻多工(OFDM)把一次傳送分散到很多較窄的子載波上。子載波之間經過仔細安排,能有效地一起工作。由於環境對不同頻率的影響可能不同,這種做法也有助系統應付這些差異。

Multiple-input multiple-output, or , uses multiple antennas. Depending on the arrangement, it can support separate data streams or improve reliability. Beamforming uses the antenna signals together to strengthen transmission in a chosen direction. A multi-user form can serve different devices with separate spatial streams.多輸入多輸出(MIMO)使用多支天線,視乎安排,可傳送不同資料流或提升可靠性。波束成形(beamforming)則協調各天線的訊號,強化某個方向的傳送。多使用者版本可以用不同空間資料流服務不同裝置。

Wider channels, more streams and modulation that carries more bits per symbol can raise the radio rate. Each has conditions or costs. For example, closely spaced modulation choices need a cleaner signal. None of these removes the need for rules about who may send. That is the next problem.更寬的頻道、更多資料流,以及每個符號可帶更多位元的調變,都能提高無線電速率,但各有條件和代價。例如,調變選項彼此越接近,就越需要清晰的訊號來分辨。這些改進仍未解決「誰可以現在發送」,所以下一節要處理存取規則。

For example, a wider channel is like having more space to carry signal changes, while higher-order modulation puts more bits into each signal choice. Those are different improvements. They help only when the radio conditions and the devices support them.具體來說,較寬的頻道就像有更多頻譜空間可以承載訊號變化;較高階的調變則讓每一種訊號選擇代表更多位元。兩者是不同的改進方式,而且都需要裝置和無線環境配合才有效。

頻道闊度、天線數和調變方式是不同工具;速度增加仍有條件和代價。

Check your understanding. If the radio rate doubles, must your actual download rate also double in a crowded café?檢查理解:在擠滿人的咖啡店,無線電速率加倍,實際下載速度就一定加倍嗎?

Read the answer and reason查看答案及原因

No. Other users share airtime. Interference, retries, protocol overhead and the upstream connection can also limit the download. A higher physical rate improves one part of the path.不一定。其他使用者也會佔用無線傳送時間,干擾、重傳、協定開銷,以及上游連線也可能限制下載。實體層速率提高,只改善整條路徑的其中一部分。

Reference: channels, frequency calculation and radio techniques參考:頻道、頻率計算與無線技術

At 2.4 GHz, slide 53 shows channel centres spaced 5 MHz apart. The channel signal can occupy much more than 5 MHz, explaining the overlap. The full 14-channel drawing is not a statement that all 14 channels are permitted or supported in every region.第 53 頁的 2.4 GHz 圖中,多數相鄰頻道中心相隔 5 MHz,但一個頻道的訊號可佔用遠多於 5 MHz,所以會重疊。圖中畫出全部 14 個頻道,不表示每個地區都准用、或每部設備都支援全部 14 個。

For the 5 GHz examples on slide 54, centre frequency in MHz = 5000 + 5 × channel number. Channel 36 gives 5000 + 180 = 5180 MHz. This is a centre frequency, not the channel bandwidth.第 54 頁的 5 GHz 例子使用:中心頻率(MHz)= 5000 + 5 × 頻道編號。例如頻道 36:5000 + 180 = 5180 MHz。算出來的是中心頻率,不是頻道寬度。

Channel bonding combines adjacent channels. Slide 55 lists 40, 80 and 160 MHz examples. Multi-user () serves multiple users through spatial separation.頻道綁定(channel bonding)把相鄰頻道合併;第 55 頁列出 40、80 和 160 MHz 的例子。MU-MIMO則利用空間上的分離,同時服務多個使用者。

The modulation list runs from binary phase shift keying () and quadrature phase shift keying () to quadrature amplitude modulation () with 16, 64, 256 or 1024 choices. More choices can encode more bits per symbol, but make correct detection harder at a given noise level. Frequency hopping and direct-sequence spreading also appear in the lecture’s discussion of older physical layers.調變方式由二進位相移鍵控(BPSK)、四相相移鍵控(QPSK),到有 16、64、256 或 1024 種選擇的正交振幅調變(QAM)。選擇越多,每個符號能表示的位元越多;但在相同雜訊水平下,也越難正確分辨。講義介紹較舊實體層時,也提到跳頻和直接序列展頻。

Most adjacent channel centres in the 2.4 GHz drawing are 5 MHz apart; channel 14 is a special case. A nominal 20 MHz channel and its occupied subcarrier width are also different measurements: slide 54’s roughly 16.6 MHz is not a universal channel spacing.2.4 GHz 圖中,多數相鄰頻道中心相隔 5 MHz,但頻道 14 是特例。另外,「標稱 20 MHz 頻道」與「子載波實際佔用的寬度」不是同一測量值:第 54 頁約 16.6 MHz 的數字,不是所有頻道之間通用的間距。

3.3 How Wi-Fi devices share a busy channel Slides / 講義 56–633.3 多部 Wi-Fi 裝置怎樣共用繁忙頻道

Section 3.2 explained how a radio link can carry more data. That still leaves a shared channel. Several devices may want to use it at once. The mechanisms below are successive answers to problems left by the previous answer.3.2 節解釋了無線連線怎樣傳更多資料,但頻道仍然是大家共用的,多部裝置可能同時想發送。下面的機制會逐個接上來:前一個方法還未解決的問題,就是下一個方法出現的原因。

1. Listen first, then separate the waiting devices1. 先聽,再把等待的裝置分開

Phone A and Phone B both have data for the café access point. If they transmit on the same channel at the same time, their signals may overlap at the receiver and make a frame unreadable. A frame is the link-layer unit sent across this local connection.手機 A 和 B 都有資料要傳給咖啡店的 AP。如果它們同時在同一頻道發送,訊號可能在接收端重疊,令訊框(frame)無法讀取。訊框是資料鏈路層在這條本地連線上傳送的單位。

The first rule is simple: listen before sending. This is carrier sense. If the channel is busy, wait. But listening alone is not enough. Both phones could hear the same transmission finish and immediately start together.第一條規則很簡單:發送前先聽,這叫載波感測(carrier sense)。頻道忙就等。但只是先聽仍然不足夠,因為兩部手機可能同時聽到別人傳完,然後同時起步。

To separate their attempts, each phone chooses a random number of idle time slots to wait. This is random backoff. Suppose A chooses 2 and B chooses 4. After two idle slots, A reaches zero and starts. B has 2 slots left.為了錯開起步時間,每部手機隨機選一個數字,表示還要等多少個空閒時槽,這叫隨機退避(random backoff)。假設 A 選 2、B 選 4;經過兩個空閒時槽後,A 倒數到零便發送,B 還剩 2。

B now hears A transmitting, so it freezes its counter. It does not count busy time as waiting slots and does not throw away the progress it has made. After the exchange finishes and the required idle gap passes, B continues from 2. This remaining value is its residual backoff.B 聽到 A 正在傳送,就把計數器停在 2。頻道忙碌的時間不算入空閒倒數,也不需要丟掉之前已等過的進度。A 的交換結束、再經過規定的空閒間隔後,B 從 2 繼續倒數。這個剩餘值就是 residual backoff(剩餘退避)。

The method is called carrier sense multiple access with collision avoidance, or . In the lecture, this distributed way of competing for airtime belongs to the Distributed Coordination Function (). Each device follows the rules; the access point does not allocate every ordinary transmission turn.整個方法叫具碰撞避免的載波感測多重存取(CSMA/CA)。講義把這種由各裝置分散競爭傳送時間的方式,放在分散式協調功能(DCF)之下。每部裝置自行遵守規則,並非每次普通傳送都由 AP 分配時段。

Two devices can still choose the same number, and some devices cannot hear one another. “Avoidance” means reducing collision risk, not proving that collisions are impossible. We will handle those two limits next.兩部裝置仍可能抽到同一個數字,有些裝置也可能互相聽不到。因此,「避免碰撞」表示降低風險,不是證明碰撞不可能發生。接下來便處理這兩個限制。

Walk through the counter.跟着計數器走一次。

A starts at 2; B starts at 4. After two idle slots, A reaches zero and transmits. B has 2 left and freezes there. Once A's exchange ends and the required idle gap passes, B continues from 2. Busy time does not count down the counter.A 從 2 開始,B 從 4 開始。兩個空閒時槽後,A 歸零並傳送,B 剩下 2,於是停在那裏。等 A 的交換結束,再等規定的空閒間隔,B 才從 2 繼續倒數。頻道忙碌時,計數器不會減少。

2. Confirm reception, then decide whether to retry2. 確認對方收妥,再決定是否重試

Phone A finally sends its frame. It still does not know whether the access point understood it. The signal could have been damaged by interference, weak reception or another transmission. Finishing a transmission proves only that A sent it.A 終於送出訊框,但仍不知道 AP 有沒有正確讀到。干擾、微弱訊號或別人的傳送都可能破壞資料。A 發送完畢,只能證明「我送了」,不能證明「對方收到了」。

For the basic one-to-one exchange in the lecture, the receiver sends a short acknowledgement, written , after receiving the frame correctly. It is a receipt. If A receives no acknowledgement before its timer expires, it treats the attempt as unsuccessful and may retry.在講義的基本一對一交換中,接收端正確收到訊框後,會送出一個很短的確認訊息(acknowledgement,ACK),就像收據。如果 A 的計時器到期仍收不到 ACK,就把這次嘗試視為失敗,之後可能重傳。

A missing receipt does not identify the exact cause. The data frame may have failed, or the acknowledgement itself may have been lost. For this reason, “no acknowledgement” and “a collision definitely happened” are not identical statements.沒有收到確認,仍不能判斷確切原因:可能資料訊框沒有送達,也可能資料已收妥,但回程 ACK 遺失。因此,「沒有 ACK」不等於「一定發生碰撞」。

After a failed attempt, the basic contention procedure increases its random waiting range, up to a limit. This dynamic contention window spreads repeated attempts over more possible slots. After success, it returns to the smaller starting range. It balances collision risk against unnecessary delay.一次嘗試失敗後,基本競爭程序會把隨機等候範圍加大,直到指定上限。這個動態競爭視窗(contention window)讓重試分散在更多可能時槽上,減少再次同時起步;成功後,則回到較小的初始範圍。它是在碰撞風險與過長等待之間取平衡。

One more detail makes the receipt work. The receiver waits a shorter gap before replying than a new sender must wait before starting an ordinary competing transmission. This gives the reply a chance to complete the current exchange. The different waiting gaps are called interframe spaces.還有一個細節令 ACK 能順利回來:接收端回覆前要等的間隔,比新的發送者開始普通競爭傳送前要等的間隔短。這樣,正在進行的交換較有機會先完成。這些不同長度的等待間隔叫訊框間隔(interframe spaces)。

The shortest gap in this lecture is Short Interframe Space (). Ordinary distributed contention uses the longer Interframe Space (). Learn the reason for the difference first: finish the exchange already in progress before inviting a new one.講義中最短的是短訊框間隔(SIFS);普通分散式競爭使用較長的DCF 訊框間隔(DIFS)。先記住原因:先讓現有交換做完,再讓新一輪傳送加入。

3. Handle a sender that you cannot hear3. 處理你聽不到的發送者

Carrier sense assumes listening tells a sender enough about nearby traffic. Now put Phone A and Phone C on opposite sides of a room, with the access point between them. Both can reach the access point, but a wall or distance prevents A and C from hearing one another clearly.載波感測的前提,是「先聽」足以了解附近的傳送。現在把 A 和 C 放在房間兩端,AP 在中間;兩部手機都能連到 AP,但因牆壁或距離,A 和 C 互相聽不清楚。

A listens and hears nothing from C. C also hears nothing from A. Each may decide the channel is free even while the other is sending. Their transmissions can then collide at the access point. This is the hidden terminal problem. “Hidden” describes the senders’ inability to hear each other, not the receiver’s ability to hear them.A 聽不到 C,C 也聽不到 A。即使對方正在傳送,它們仍可能判斷頻道空閒,結果兩個訊號在 AP 那裏碰撞。這叫隱藏終端問題(hidden terminal problem)。「隱藏」是指發送者互相聽不到,不是 AP 聽不到它們。

One protection method uses a short exchange before the long data frame. A sends a request to send, or . If the access point can receive, it replies with clear to send, or . C may not hear A’s request, but it can hear the access point’s reply and learn that the channel is being reserved.其中一種保護方法,是在長資料訊框之前先交換短訊息:A 送出請求發送(RTS);如果 AP 可以接收,就回覆准許發送(CTS)。C 即使聽不到 A 的請求,也可能聽到 AP 的回覆,從而知道頻道即將被預留。

The messages carry duration information. A neighbour that hears them sets a local countdown saying how long it should defer. This countdown is the Network Allocation Vector (). It is a timer inside the listening device, not another packet flying through the air.這些訊息帶有持續時間資訊。聽到的鄰近裝置會設定自己的倒數計時器,知道要暫緩發送多久。這個計時器叫網絡配置向量(NAV)。它存在於收聽裝置內,不是另一個在空中傳送的封包。

A then sends the data, and the receiver returns the acknowledgement. The short handshake reduces the risk and cost of hidden-terminal collisions, especially for long frames. The requests can still collide, and the extra exchange uses airtime. It is protection with a cost, not a universal cure.接着 A 傳資料,接收端回 ACK。這個短握手可以減低隱藏終端碰撞的風險和代價,尤其適合較長訊框。但 RTS 本身仍可能碰撞,額外交換也會佔用時間,所以它是有成本的保護機制,並非萬能解法。

IEEE 802.11 DCF with RTS/CTS & NAV Virtual Carrier Sense (Slide 62) Sender Receiver Other STAs DIFS RTS SIFS CTS SIFS DATA Frame SIFS ACK NAV after hearing RTS NAV after hearing CTS DIFS Contend
Read the exchange from left to right.由左至右閱讀這次交換。

After contention, the sender requests a turn with . The receiver replies with . Data and follow, separated by the short response gap. A neighbour hearing duration information sets its own countdown.競爭完成後,發送者用 RTS 請求傳送,接收者以 CTS 回覆,然後依次傳資料和 ACK,中間以較短回應間隔分開。聽到持續時間資訊的鄰近裝置,各自設定 NAV 倒數。

A neighbour near the sender may hear ; a hidden sender near the receiver may instead hear . Both can learn to defer. After the reservation and the required idle gap, ordinary contention resumes. is stored locally; the coloured bars are not additional packets.靠近發送者的鄰居可能聽到 RTS;靠近接收者、但對發送者隱藏的裝置,則可能聽到 CTS。兩者都因此知道要暫緩發送。預留時間結束、再等所需空閒間隔後,普通競爭才恢復。NAV 在本地儲存,圖中的彩色長條不是額外封包。

On a small screen, swipe the diagram sideways to read its labels.在小螢幕上,可左右滑動圖解查看標籤。

4. Compare competition with scheduled turns4. 比較自行競爭與統一安排輪次

Random contention is flexible because a device can try when it has something to send. But it cannot promise that every device will get a turn at a fixed time. A device might keep waiting or retrying while traffic is heavy.隨機競爭很靈活,裝置有資料時便可嘗試,但不能保證每部裝置都在固定時間輪到。流量大時,某部裝置可能不斷等候或重試。

An alternative is polling. The access point asks a particular station to send, then moves to another station. This is like a teacher calling on one student at a time. Because the coordinator controls the turns, it can organise periodic service.另一種方法是輪詢(polling):AP 先叫指定裝置傳送,再叫下一部,就像老師逐個點名讓同學發言。因為協調者掌握輪次,所以可以安排定期服務。

The lecture calls its optional polling mechanism the Point Coordination Function (). A polling period can alternate with a normal contention period. The controlled period is called contention-free because ordinary stations are not all competing for the next scheduled turn.講義把這個可選的輪詢機制叫點協調功能(PCF)。輪詢時段可以與普通競爭時段交替。受控時段稱為「無競爭」,是因為普通裝置不會全部一起爭搶下一個已安排好的傳送機會。

To start that controlled period, the coordinator uses a waiting gap shorter than the one used for ordinary distributed contention. That is the Interframe Space (). It sits between the short response gap and the normal distributed-contending gap.要開始受控時段,協調者會等一個比普通 DCF 競爭更短的空閒間隔,叫PCF 訊框間隔(PIFS)。它的長度介乎短回覆間隔 SIFS 與普通競爭間隔 DIFS 之間。

Polling also has costs. Asking stations takes time, even if some have little to send. It needs a coordinator and scheduling rules. The lecture presents this as an optional mechanism; do not assume every access point uses this legacy method in normal operation.輪詢也有成本:逐部詢問需要時間,即使某些裝置沒多少資料要傳;系統也需要協調者和排程規則。講義把它列作可選機制,不能假設所有現代 AP 平常都在使用這種舊式做法。

先聽不代表安全;隨機退避減少同步發送,ACK確認收妥,RTS/CTS通知另一邊的鄰居。

Check your understanding. B has two slots left when A starts sending. Does B keep counting, start again from its original value, or freeze at two?檢查理解:A 開始發送時,B 還剩兩個退避時槽。B 應繼續倒數、從原值重新開始,還是停在 2?

Read the answer and reason查看答案及原因

B freezes at two, then resumes after the medium becomes idle for the required gap. This preserves completed waiting. It supports fairer access but is not a strict first-come-first-served guarantee.B 停在 2,待媒介重新空閒達到規定間隔後才繼續。這樣保留了已經等過的進度,有助較公平地取得傳送機會,但並不保證嚴格先到先得。

Check your understanding. Why can the access point’s clear-to-send reply help C, even when C cannot hear A’s request?檢查理解:C 聽不到 A 的 RTS,為甚麼 AP 的 CTS 仍能幫助 C?

Read the answer and reason查看答案及原因

C is within range of the access point. The reply tells C that an exchange is about to use the channel and gives a duration to defer. The receiver’s message reaches a neighbour the sender’s message could not reach.因為 C 在 AP 的覆蓋範圍內。CTS 告訴 C 頻道即將用來完成一次交換,並提供要延後多久的資訊。也就是說,接收者的訊息到達了發送者訊息到不了的鄰居。

Reference: the gaps and the complete access sequence參考:各種間隔與完整存取次序
Why the waiting gaps have different lengths等待間隔為甚麼要有不同長度
Gap間隔名稱Who uses it in the lecture?講義中由誰使用?Reason原因
Short Interframe Space ()SIFS:短訊框間隔。Immediate parts of an existing exchange: , , and the protected data following ; also polling responses.用於現有交換的即時接續部分,例如 CTS、ACK、CTS 後受保護的資料傳送,以及輪詢回應。Give the current exchange a chance to finish before ordinary new contention.讓正在進行的交換有機會先完成,才開始普通的新一輪競爭。
Interframe Space ()PIFS:PCF 訊框間隔。The optional polling coordinator.由可選輪詢機制中的協調者使用。Start a controlled period ahead of stations waiting for .讓受控時段先於那些仍在等 DIFS 的裝置開始。
Interframe Space ()DIFS:DCF 訊框間隔。Ordinary distributed contention.用於普通的分散式競爭。A longer idle gap before competing for a new turn.在競爭新的傳送機會之前,先等較長的空閒間隔。

The ordering is < < . These gaps create an access advantage under the protocol; they are not an absolute promise that interference cannot occur.長度關係是 SIFS < PIFS < DIFS。這些間隔會在協定內建立先後優勢,但不保證外界干擾絕對不會發生。

For a protected basic exchange: contend using and the applicable backoff, send , wait , receive , wait , send data, wait , receive . Duration fields allow listening stations to set their . Physical carrier sensing and virtual reservation sensing both matter.一次受保護的基本交換:先按 DIFS 和所需退避程序競爭,再送 RTS → 等 SIFS → 收 CTS → 等 SIFS → 送資料 → 等 SIFS → 收 ACK。持續時間欄位讓旁聽裝置設定 NAV。因此,實際感測頻道與根據預留資訊作虛擬感測,兩者都重要。

The slide’s immediate-transmit case applies when the medium has already been idle long enough and no backoff is outstanding. It is not permission to skip a pending or required post-transmission backoff.投影片中「立即傳送」的情況,適用於媒介已空閒足夠久,而且沒有尚未完成的退避。它不是允許裝置跳過仍未完成、或傳送後規定要做的退避。

A basic binary backoff update is CWnew = min(2 × (CWold + 1) − 1, CWmax). “Double the window” refers to the number of available counter values. A successful attempt restores the starting contention window in this model.基本二進位退避的更新式為 CWnew = min(2 × (CWold + 1) − 1, CWmax)。「視窗加倍」是指可選計數值的數量加倍。這個模型中,成功傳送後會把競爭視窗恢復至起始大小。

In the optional PCF superframe, a Contention-Free Period () alternates with a Contention Period (). The coordinator polls stations and ends the controlled period with CF-End. This is a legacy teaching mechanism, not a statement that every current access point uses PCF.在可選的 PCF 超級訊框中,無競爭時段(CFP)與競爭時段(CP)交替。協調者輪詢各站點,並以 CF-End 結束受控時段。這是講義介紹的舊式機制,不表示每個現代接入點都使用 PCF。

Slide 60 writes boe for the elapsed backoff and bor for the remaining backoff. A contention window is the range from which the random counter is chosen. A larger range reduces matching choices but can also increase waiting.第 60 頁用 boe表示已經過的退避時間,用 bor表示剩餘退避。競爭視窗是隨機選擇倒數值的範圍;範圍越大,抽中相同數字的機會越低,但等待也可能更長。

Basic broadcast frames normally do not receive a separate immediate from every listener. Otherwise all those replies could compete. The individual sequence above describes the basic unicast case.基本廣播訊框通常不會要求每個接收者立即各回一個 ACK,否則這些回覆本身可能互相競爭。前面逐一確認的 ACK 次序,描述的是基本單播(unicast)情況。

3.4 How Wi-Fi handles sleeping and moving devices Slides / 講義 64–693.4 Wi-Fi 怎樣處理睡眠與移動中的裝置

We can now send a frame and share the channel. Two everyday events remain: the phone sleeps to save power, and the user walks away from the current access point.現在我們已懂得傳訊框和共用頻道,還有兩件日常情況要處理:手機為了省電而睡眠,以及使用者走離目前接入點。

Agree when to wake and check先約定何時醒來檢查資料

A radio consumes power while listening, even when nobody is sending useful data to it. Turning it off saves energy. But an off radio cannot hear a normal message saying “wake up.” A useful sleep scheme therefore needs an agreed time to check for data.無線電只要保持收聽就會耗電,即使沒有人傳有用資料給它。關掉無線電可以省電,但完全關掉的接收器,聽不到普通訊息叫它「醒來」。因此,實用的睡眠機制需要事先約定醒來查看資料的時間。

An access point regularly sends a beacon, a management frame announcing the network and timing information. Devices use these announcements to find the network and keep their timing aligned. A busy channel can delay the actual beacon transmission; the diagram’s intervals are a schedule, not a promise of perfect timing.AP 會定期發出信標(beacon),這是一種管理訊框,宣告網絡及時間資訊。裝置用它尋找網絡、維持時間同步。不過,頻道忙碌時,真正的發送時間可能延後;圖中的間隔是排程,不是每次都毫無誤差的保證。

In the lecture’s power-saving scheme, the phone tells the access point that it may sleep. The access point buffers frames for it. The phone wakes at agreed beacon-listening times and checks whether data is waiting. If it is, the phone stays awake and follows the procedure to receive it.在講義的省電方案中,手機先告訴 AP 自己可能睡眠,AP 便替它暫存訊框。手機按照約定的信標收聽時間醒來,檢查是否有資料等着;如果有,就保持清醒,按程序把資料收下。

The beacon contains a Traffic Indication Map (). Think of it as “these sleeping stations have individual traffic waiting.” A periodic Delivery Traffic Indication Map () also signals buffered group traffic. Devices that need that traffic stay awake for its delivery.信標內有流量指示圖(TIM),意思近似「以下睡眠中的裝置,各自有資料待收」。定期出現的傳遞流量指示圖(DTIM)還會通知有沒有暫存的群組資料;需要這些資料的裝置便繼續醒着,等候傳送。

An ad hoc network has no central access point to hold everybody’s mail. Instead, devices wake for an agreed announcement window. A sender with buffered data tells the intended receiver to remain awake. The lecture calls these announcements Ad hoc Traffic Indication Map () messages.Ad hoc 網絡沒有中央 AP 替大家收郵件,所以裝置會在約定的通告時窗醒來。有資料待送的發送者,會通知目標接收者繼續醒着。講義把這些通知叫ATIM(ad hoc 流量指示圖)訊息。

The same trade-off appears as in Bluetooth: sleep longer to save power, but accept that some data must wait. The arrangement works because sender and receiver agree when communication will be possible.這與 Bluetooth 有相同取捨:睡久一點更省電,但部分資料就要等久一點。方案之所以能運作,是因為發送者和接收者都知道甚麼時候可以通訊。

Tell the network when your attachment changes換了接入位置,就通知網絡

You leave the café and walk towards another building. The old access point’s signal becomes weak. The phone needs a better local connection, but it should not have to treat every step as joining a completely unrelated network.你離開咖啡店,走向另一棟建築物,原 AP 的訊號開始變弱。手機需要更好的本地連線,但不應把每走一步都當作加入一個毫無關係的新網絡。

First it scans. It can listen for beacons, or actively send a probe and listen for replies. Scanning finds candidates; it is not yet a successful connection to one of them.第一步是掃描(scan)。手機可以被動收聽信標,也可以主動發探測請求,再聽回覆。掃描只是找出候選 AP,還不代表已經成功連上其中一個。

The phone then requests association with an access point, or reassociation when changing its existing attachment. The new access point must accept it, and the network updates where traffic for that station should go. The old attachment can then release resources.之後,手機向 AP 要求關聯(association);如果是在更換現有連接,則要求重新關聯(reassociation)。新 AP 接納後,網絡會更新送往這部裝置的資料路徑,舊連接便可以釋放資源。

This is roaming within the wireless local network. It connects directly to the distribution system you met earlier: the network behind the access points must deliver frames to the station’s new attachment. A signal that looks strong is not enough if the network does not know where to forward the data.這就是無線區域網絡內的漫遊(roaming),也與前面學過的 DS 直接相關:AP 後方的網絡必須把訊框送到裝置的新接入位置。光是訊號看起來很強還不夠;網絡也要知道資料該送去哪裏。

Actual continuity depends on authentication, network design and timing. Changing access points can still cause delay. Later, cellular handover will address a related problem over a much larger service area.服務能否持續,還取決於身分驗證、網絡設計和時間安排。更換 AP 仍可能造成延遲。後面蜂窩網絡的 handover 會在更大的服務範圍內,處理相近的移動問題。

睡眠需要約定醒來時間;漫遊需要更新資料應送到哪個接入點。

Check your understanding. Can an access point deliver a normal radio frame to a phone whose radio is fully asleep at that moment?檢查理解:如果手機的無線電此刻完全睡眠,AP 能用普通無線訊框直接把資料送給它嗎?

Read the answer and reason查看答案及原因

No. In this scheme it buffers the frame until the phone wakes and checks for traffic. Saving energy requires coordination and can add delay.不能。在這個方案中,AP 會先暫存訊框,等手機醒來檢查待收資料。省電需要雙方協調,也可能增加延遲。

Reference: TIM, DTIM, ATIM and the roaming steps參考:TIM、DTIM、ATIM 與漫遊步驟
Wi-Fi announcements for sleeping devicesWi-Fi 怎樣通知睡眠中的裝置
Message訊息名稱Where?在哪裏使用?What the receiver does接收裝置怎樣做
Traffic Indication Map ()TIM:流量指示圖。Infrastructure Wi-Fi; carried in beacons.用於有基建的 Wi-Fi,放在信標中。A station wakes at an agreed time, checks whether individual frames are buffered for it, and requests them using the lecture’s power-save polling procedure.裝置在約定時間醒來,查看是否有為自己暫存的個別訊框,再按照講義的省電輪詢程序要求取回。
Delivery Traffic Indication Map ()DTIM:傳遞流量指示圖。Infrastructure Wi-Fi; periodic beacon indication.用於有基建的 Wi-Fi,定期在信標中提供指示。Stations needing buffered broadcast or multicast traffic stay awake for the group delivery after the .需要暫存廣播或多播資料的裝置,會在 DTIM 之後保持清醒,等候群組資料送出。
Ad hoc Traffic Indication Map ()ATIM:ad hoc 流量指示圖。Independent/ad hoc service set.用於獨立/ad hoc 服務集。Stations wake during the announcement window. A sender announces pending data; the recipient acknowledges and stays awake for the later data exchange.裝置在通告時窗醒來;發送者通知有待傳資料,接收者確認後繼續醒着,準備稍後的資料交換。

The access point cannot wake a radio that is completely off by sending an ordinary beacon at an arbitrary time. The device wakes by its schedule, then listens.AP 不能在任意時間送一個普通信標,就把完全關閉的無線電叫醒。裝置是先按自己的時間安排醒來,然後才收聽信標。

In infrastructure mode, the sends beacons with timing information. In the ad hoc mode, stations use a random-delay process to avoid all sending a beacon at once. Continuous Aware Mode keeps the transceiver awake; Power Saving Mode alternates sleep with listening opportunities.有基建模式中,AP 發信標提供時間資訊;ad hoc 模式中,各站點使用隨機延遲程序,避免全部同時發信標。持續清醒模式(Continuous Aware Mode)讓收發器一直醒着;省電模式(Power Saving Mode)則交替安排睡眠和收聽機會。

In the legacy ad hoc sequence, an announcement is acknowledged during the announcement window. The recipient then stays awake for the later data and its acknowledgement. Announcing data and sending that data are separate steps.舊式 ad hoc 次序中,接收端會在通告時窗內確認 ATIM,然後保持清醒,等待稍後的資料及確認交換。「先通知有資料」與「正式傳資料」是兩個步驟。

  1. Scan: listen for beacons or send probe requests.掃描:收聽信標,或送出探測請求。
  2. Request: ask an appropriate AP to associate or reassociate.提出要求:向合適的 AP 要求關聯或重新關聯。
  3. Accept: the AP replies if it can accept the station.接納:AP 如果能接納該裝置,就回覆。
  4. Update: the distribution system changes the delivery location and the old attachment releases resources.更新:DS 更新資料的送達位置,舊連接釋放資源。

PS-Poll means power-save polling: the awake station requests its buffered data in the lecture’s legacy infrastructure scheme. If a roaming request fails or is rejected, the station can continue scanning. The slide’s simplified “no reply” is not the only possible failure response.PS-Poll即省電輪詢:在講義的舊式基建方案中,由已醒來的裝置向 AP 索取暫存資料。漫遊要求若失敗或被拒絕,裝置可繼續掃描。投影片簡寫的「沒有回覆」並不是唯一失敗情況。

3.5 Wi-Fi generations and related standards Slides / 講義 70–733.5 Wi-Fi 各代與相關標準

You now know the jobs a Wi-Fi system must do: connect stations, send radio signals, share airtime, confirm reception, save power and support movement. The standard numbers describe versions and extensions of those jobs.現在你已知道 Wi-Fi 要做甚麼:連接裝置、發送無線訊號、共用傳送時間、確認接收、省電,以及支援移動。各種標準編號,就是這些工作的不同版本和擴展。

802.11 is the technical standards family. The Wi-Fi Alliance certifies product interoperability and uses simpler generation names. These are two related naming systems, not two different packets your phone sends.IEEE 802.11是技術標準家族;Wi-Fi Alliance負責產品互通認證,並使用較易懂的世代名稱。這是兩套相關命名方式,不是手機要傳送的兩種不同封包。

Wi-Fi 4 corresponds to 802.11n, associated with improvements including multiple antennas. Wi-Fi 5 corresponds to 802.11ac, with higher rates and multi-user improvements in the 5 GHz band. Wi-Fi 6 corresponds to 802.11ax, which pays more attention to serving many devices efficiently.Wi-Fi 4對應 802.11n,改進包括多天線;Wi-Fi 5對應 802.11ac,在 5 GHz 頻段提高速率並改善多使用者通訊;Wi-Fi 6對應 802.11ax,更着重有效地服務大量裝置。

A key Wi-Fi 6 idea is orthogonal frequency division multiple access, or . Recall that OFDM uses many narrow subcarriers for a transmission. OFDMA can allocate groups of those subcarriers to different users. The link to our story is sharing: serve multiple users in carefully assigned resources instead of giving every small transfer the whole channel in turn.Wi-Fi 6 的重要概念是正交分頻多重存取(OFDMA)。回想 OFDM 把一次傳送放在很多窄子載波上;OFDMA 則可把不同子載波群組分配給不同使用者。它與本節主線的連接是「分享」:把資源細分並協調使用,而不是每次少量傳送也輪流佔用整個頻道。

Wi-Fi 6E extends Wi-Fi 6 operation into 6 GHz. Wi-Fi 7 corresponds to 802.11be and further develops capacity and efficiency. Available features depend on the devices and local spectrum rules. A newer label alone does not determine the speed you experience.Wi-Fi 6E把 Wi-Fi 6 延伸到 6 GHz;Wi-Fi 7對應 802.11be,再改善容量和效率。實際能用甚麼功能,要看裝置支援及當地頻譜規則。名稱較新,本身不能決定你實際得到的速度。

先記每代改善哪一種問題;字母不是單純的速度排行榜。

Check your understanding. How does OFDMA connect to the problem of many devices sharing one channel?檢查理解:OFDMA 與「很多裝置共用一個頻道」的問題有甚麼關係?

Read the answer and reason查看答案及原因

It can assign different groups of subcarriers to different users, allowing coordinated sharing within a transmission opportunity. This can reduce waste when many users have small amounts of data.它可以把不同子載波群組分給不同使用者,讓同一次傳送機會內的資源有協調地共用。很多人各自只有少量資料時,這樣能減少浪費。

Reference: Wi-Fi generations and bands參考:Wi-Fi 各代與頻段
The Wi-Fi families in slides 70–73第 70–73 頁的 Wi-Fi 標準家族
Standard標準Name / year in the lecture講義的名稱/年份Band頻段What to remember要記住的重點
802.11Original / 1997最初版本/1997 年。2.4 GHz2.4 GHz 頻段。The original family, with 1–2 Mbit/s examples.最初的標準,講義速率例子為 1–2 Mbit/s。
802.11b802.11b 標準。19992.4 GHz2.4 GHz 頻段。Up to 11 Mbit/s.最高 11 Mbit/s。
802.11a802.11a 標準。19995 GHz5 GHz 頻段。Up to 54 Mbit/s.最高 54 Mbit/s。
802.11g802.11g 標準。20032.4 GHz2.4 GHz 頻段。Up to 54 Mbit/s; compatibility with b.最高 54 Mbit/s,並與 802.11b 相容。
802.11n802.11n 標準。Wi-Fi 4 / 2009Wi-Fi 4/2009 年。2.4 and 5 GHz2.4 GHz 和 5 GHz 頻段。; lecture peak up to 600 Mbit/s under suitable configurations.使用 MIMO;講義在合適設定下的峰值最高為 600 Mbit/s。
802.11ac802.11ac 標準。Wi-Fi 5 / 2013Wi-Fi 5/2013 年。5 GHz5 GHz 頻段。Wider channels and multi-user improvements; gigabit-class aggregate rates. A dual-band router can also use another standard at 2.4 GHz.加寬頻道並改善多使用者傳送,總合速率可達 gigabit 等級。雙頻路由器可以在 2.4 GHz 使用另一個標準,這不代表 ac 本身也在 2.4 GHz 運作。
802.11ad802.11ad 標準。WiGig / 2013WiGig/2013 年。60 GHz60 GHz 頻段。A separate short-range multi-gigabit branch, not the 2.4 GHz part of ac.這是另一條短距離、多 gigabit 速率的分支,不是 ac 的 2.4 GHz 部分。
802.11ax802.11ax 標準。Wi-Fi 6 / 2019; 6E extensionWi-Fi 6/2019 年,另有 6E 擴展。2.4 and 5 GHz; 6 GHz for 6E2.4 GHz 和 5 GHz;6E 加入 6 GHz。Efficient sharing, including , especially in busy networks.透過 OFDMA 等方式提高共用效率,尤其適合繁忙網絡。
802.11be802.11be 標準。Wi-Fi 7 / 2024 in the lecture講義列為 Wi-Fi 7/2024 年。2.4, 5 and 6 GHz where permitted在當地規則允許下,使用 2.4、5 和 6 GHz。Very high throughput; wide channels and multi-link operation are examples of its tools.着重極高吞吐量,工具包括較寬頻道和多連線運作。

Radio rates are not the same as file-download rates. Available bands depend on local rules, and both ends must support the selected features.無線電速率與檔案下載速度不同。可用頻段取決於當地規則,通訊兩端也都要支援所選功能。

Reference: specialised amendments and HiperLAN參考:特定用途修訂與 HiperLAN

The lecture’s other letters answer specialised needs: 802.11e for service-quality support; 802.11h for spectrum requirements; 802.11i for security; 802.11k for radio measurements; 802.11p for vehicular communication.其他字母對應特定需要:802.11e支援服務品質;802.11h處理頻譜要求;802.11i處理安全;802.11k提供無線電測量;802.11p用於車輛通訊。

The Wi-Fi Alliance certifies interoperability and uses consumer generation names. Its numerical names help identify a generation; an alliance name and an standard are different kinds of label.Wi-Fi Alliance 進行互通認證,並用數字世代名稱方便消費者辨認。聯盟的世代名稱與 IEEE 的技術標準,是不同類型的標籤。

HiperLAN (High Performance Radio LAN) is a separate historical ETSI family. Slide 73 gives 5.15/17.1 GHz and 50–100 m examples, with HiperLAN/1 around 20 Mbit/s and HiperLAN/2 around 50 Mbit/s. Do not put it inside the Wi-Fi 4–7 naming sequence.HiperLAN(高性能無線區域網絡)是另一個歷史上的 ETSI 標準家族。第 73 頁列出 5.15/17.1 GHz 和 50–100 m 的例子,HiperLAN/1 約 20 Mbit/s,HiperLAN/2 約 50 Mbit/s。不要把它放進 Wi-Fi 4–7 的世代次序。

The corrected 802.11ac and 6E band distinctions are checked against HPE Aruba’s Wi-Fi generation reference.802.11ac 與 6E 的頻段分別,已按 HPE Aruba 的 Wi-Fi 世代參考資料校正。

Part 4 · Wireless Wide Area Network (WWAN / Cellular 1G–6G)Part 4 · 無線廣域網絡:蜂窩系統 1G–6G

Slides / 講義 74–102
Keep service as the user moves across a city讓使用者穿過城市時仍可使用服務

A local access point covers only a small place. Cellular networks reuse radio resources across many cells. We will follow one call, then see why the architecture changed from early voice systems to packet data and 5G.本地 AP 只覆蓋小範圍,蜂窩網絡則在很多小區之間重用無線電資源。我們先跟着一通電話的流程,再看網絡為甚麼由早期語音系統,演變到封包數據和 5G。

先理解蜂窩與通話,再理解各代系統為何改變。

4.1 Cells, frequency reuse and network components Slides / 講義 75–784.1 小區、頻率重用與網絡元件

You leave the campus. A few access points cannot serve every street, moving bus and distant building. A mobile operator deploys many base stations and connects them through an operator network.離開校園後,幾個 AP 不足以服務每條街、移動中的巴士和遠處建築物。流動網絡供應商會部署很多基地台,再透過營運商網絡把它們連起來。

A cell is an area served by a base station’s radio coverage. Many cells together cover a wider area. Their boundaries are not perfect hexagons in real streets; the hexagons in the lecture are a useful planning model.小區(cell)是一個基地台無線電覆蓋所服務的區域。很多小區合起來,就能覆蓋更大的地方。真實街道中的邊界並不是完美六邊形;講義畫六邊形,是為了方便規劃和理解。

Why not use one very powerful station for the whole city? Covering the distance is only one problem. The station would also have to share its limited radio resources among many users. Smaller cells let the network use those resources again in other places.為甚麼不直接用一個超強基地台覆蓋全城?因為「傳得夠遠」只是其中一個問題:它還要把有限無線電資源分給大量使用者。把地方分成較小的小區,就能在其他位置再次使用同一批資源。

This is frequency reuse. In the lecture’s simple model, nearby cells use different groups of channels. Farther-away cells reuse a group when the interference is low enough. Reusing the same frequencies at separated locations increases total system capacity without requiring an equally large increase in spectrum.這叫頻率重用(frequency reuse)。在講義的簡單模型中,相鄰小區使用不同頻道組;相隔夠遠、干擾可以接受的小區,才重用同一組。在不同位置重複使用頻率,可增加整個系統容量,而不必按同樣比例增加頻譜。

A group containing one use of each channel group is called a cluster. The tutorial uses seven cells per cluster. A smaller reuse cluster gives each cell a larger share of the total channels, but brings cells using the same frequencies closer together. That raises the interference challenge.包含每一組頻道各一次的一組小區,叫小區群(cluster)。Tutorial 的例子每群有 7 個小區。重用群越小,每個小區可分到總頻道中的較大份額;但使用相同頻率的小區也更靠近,干擾便更難處理。

Another way to add capacity is to use more, smaller cells in a busy area. This requires more equipment and more handovers as users move. Coverage, capacity, interference and cost must be considered together.另一種增加容量的方法,是在繁忙區域增設更多、更小的小區。不過,這需要更多設備,而且使用者移動時會更頻繁地切換。因此,覆蓋、容量、干擾和成本要一起考慮。

Give the infrastructure a job before learning its name先理解設備的工作,再記名稱

A nearby base station provides the radio link. The core network organises service and connects it onwards. In the lecture’s older call model, a switching centre connects calls and location registers help find the subscriber.附近的基地台(base station)提供無線連線;核心網絡(core network)安排服務,並把資料接往其他地方。講義的舊式通話模型中,交換中心負責接通電話,位置登記資料則協助找到用戶。

A home register holds the main subscriber record; a visitor register keeps relevant local information. “Location” here means where the network can reach the phone, not necessarily its exact position on a map.歸屬位置登記器保存主要用戶紀錄,訪客位置登記器保存目前區域所需的相關資料。這裏的「位置」是指網絡應到哪裏聯絡手機,不一定是地圖上的精確座標。

There are also two kinds of channel job. A control channel carries messages that arrange service, such as a request to start a call. A traffic channel carries the conversation or user data. This distinction will make the call sequence in 4.2 easier to follow.頻道的工作也分兩類:控制頻道(control channel)傳送安排服務的訊息,例如發起通話要求;業務頻道(traffic channel)才承載對話或使用者資料。分清楚後,4.2 節的通話流程便容易理解。

重用頻率增加容量;控制訊息安排服務,traffic channel才承載通話內容。

Check your understanding. Why does frequency reuse increase city-wide capacity without increasing the total amount of licensed spectrum?檢查理解:沒有增加獲准使用的總頻譜,頻率重用為甚麼仍可提高全城容量?

Read the answer and reason查看答案及原因

The same channel can support different transmissions in sufficiently separated cells. The resource is reused in space. Those transmissions must still keep interference within acceptable limits.因為同一個頻道可以在相隔足夠遠的小區,支援不同的傳送,等於在空間上重用資源。但各次傳送仍須把干擾控制在可接受範圍內。

Reference: cell sizes, reuse and multiple access參考:小區大小、重用與多重存取

Slide 75 gives illustrative radii from 500 m to 40 km, then smaller microcells below about 2 km, picocells below 200 m and femtocells around 10 m. Actual coverage depends on frequency, power, buildings and design. Sectorisation uses directional antennas to divide a cell into sectors.第 75 頁列出示意半徑 500 m–40 km,再列較小的 microcell(約 2 km 以下)、picocell(200 m 以下)和 femtocell(約 10 m)。真正覆蓋取決於頻率、功率、建築物和設計。扇區化(sectorisation)則使用定向天線,把一個小區再分成不同方向的扇區。

The lecture names space-, frequency-, time- and code-division multiple access (, , and ). They separate users by location/direction, frequency, time or code. Frequency reuse is about using a resource again in another cell; it is not the same operation as separating users within one cell.講義列出空分、頻分、時分和碼分多重存取(SDMA、FDMA、TDMA、CDMA),分別利用位置/方向、頻率、時間或碼來分開使用者。頻率重用談的是在另一小區再次使用資源,與同一小區內怎樣分開使用者,不是同一個操作。

Traditional fixed reuse diagrams are teaching models. Modern cellular systems can use the same frequency band in neighbouring cells with interference-management techniques. Do not turn the seven-cell example into a universal rule for every mobile network.傳統固定頻率重用圖是教學模型。現代蜂窩系統可以配合干擾管理,讓相鄰小區使用相同頻段。不要把「七個小區一群」當成所有流動網絡的通則。

Reference: components in the older cellular network參考:舊式蜂窩網絡的元件
Components in the older cellular model舊式蜂窩模型中的元件
Component元件名稱Job工作Why it exists為甚麼需要它
Mobile Station () and Subscriber Identity Module ()MS:流動站;SIM:用戶身分模組。The mobile equipment plus subscriber identity and authentication-related information.包含流動設備,以及用戶身分和驗證相關資料。The network needs to recognise the user as the equipment moves.即使設備正在移動,網絡仍需要辨認這名用戶。
Base Transceiver Station ()BTS:基地收發站。Provides the radio transmission and reception.提供無線電發送和接收。The nearby radio endpoint for a cell.它是服務該小區、最接近手機的無線端點。
Base Station Controller ()BSC:基地台控制器。Controls several BTSs and their radio resources.控制多個 BTS 及它們的無線電資源。Coordinates local radio operation in the older architecture.在舊架構中,協調本地無線電運作。
Mobile Switching Center ()MSC:流動交換中心。Manages and connects calls across the serving area.管理並接通服務區內的電話。A call needs a path beyond one radio cell.電話要接通遠處的人,需要超越單一小區的通話路徑。
Gateway ()GMSC:閘道流動交換中心。Connects the mobile telephone system to other telephone networks.把流動電話系統接到其他電話網絡。The other caller may be outside the operator’s network. Packet Internet gateways are explained separately.另一位通話者可能不在同一營運商網絡。封包互聯網的閘道功能會另行解釋。
Home Location Register ()HLR:歸屬位置登記器。Stores lasting subscriber information and location-related service information.保存長期用戶資料,以及與位置有關的服務資訊。The operator needs a stable home record.營運商需要一份穩定的主要用戶紀錄。
Visitor Location Register ()VLR:訪客位置登記器。Keeps temporary service information for subscribers currently in an area.為目前位於某區域的用戶,保存暫時所需的服務資料。Local service can use a nearby record rather than repeatedly fetching everything from the home system.本地服務可以讀取附近的紀錄,不必每次都向歸屬系統重新取得全部資料。

These are the lecture’s older cellular components, useful for learning the jobs. Later generations use different components; do not assume every modern call passes through an .這些是講義的舊式蜂窩元件,適合用來理解分工。後來的世代採用不同元件,不要假設每通現代電話都必須經過 MSC。

4.2 Basic Operations of a Cellular Phone Call (6 Stages) Slides / 講義 79–814.2 一通蜂窩電話的六個基本階段

The components from 4.1 become easier to remember when they have something to do. Follow one call through the lecture’s six stages. At each stage, ask what the network still needs to know or allocate.讓 4.1 節的元件真正做一次工作,就會較容易記住。以下跟着一通電話走過六個階段,每一步都問:「網絡還要知道甚麼,或分配甚麼?」

1 · Find and register1 · 尋找網絡並登記

The phone scans the control channels and selects a suitable base station. It registers so the network knows where to reach it. Without this step, the network would not know which area to contact for an incoming call.手機掃描控制頻道,選擇合適基地台並登記,讓網絡知道去哪裏聯絡它。沒有這一步,有來電時網絡便不知道該在哪個區域找它。

2 · Request an outgoing call2 · 要求撥出電話

The phone sends the called number using a control channel. The base station passes the request towards the switching centre. This is a request for resources; the voice conversation has not yet started.手機透過控制頻道送出被叫號碼,基地台把要求交往交換中心。這時只是在要求資源,語音對話還未開始。

3 · Page the receiving phone3 · 呼叫接聽方手機

The network sends a paging message in the relevant area. The called phone recognises that it is being contacted and replies. Registration narrowed the search; paging finds the reachable phone for this call.網絡在相關區域發出尋呼(paging)訊息;被叫手機認出有人找自己,便回覆。登記先把搜尋範圍縮小,尋呼再為這通電話找到目前可聯絡的手機。

4 · Accept and allocate traffic channels4 · 接納通話並分配業務頻道

If the call can proceed and resources are available, the network assigns traffic channels and connects the path. If no suitable capacity is available, the call can be blocked.如果通話可以繼續,而且有可用資源,網絡就分配業務頻道並接通路徑。若沒有合適容量,這次通話可能被阻擋。

5 · Carry the call and hand over if needed5 · 進行通話,必要時切換

The conversation uses the allocated path. If the user moves into another cell, handover changes the serving radio connection. The aim is continuity, but a real handover can fail or cause interruption.對話沿已分配的路徑傳送。使用者進入另一小區時,切換(handover)會改變服務他的無線連線。目標是保持通話,但真實切換仍可能失敗或造成中斷。

6 · End and release6 · 結束並釋放資源

When a caller hangs up, the network releases the assigned resources. Other users can then use them. This is the circuit-disconnect phase introduced in 1.2.其中一方掛線後,網絡釋放分配給這通電話的資源,讓其他人使用。這就是 1.2 節介紹的電路斷開階段。

This is an older circuit-switched teaching model. The same service needs—find the user, arrange a path, maintain it, release resources—remain useful when the architecture changes.這是較舊的電路交換教學模型。但即使架構改變,「找到用戶、安排路徑、維持連線、釋放資源」這些服務需要仍然有用。

登記讓網絡知道去哪裏找你;paging找人;分配頻道後才開始傳通話內容。

Check your understanding. Why can a registered phone still fail to start a call?檢查理解:手機已登記成功,為甚麼仍可能無法打出電話?

Read the answer and reason查看答案及原因

Registration tells the network where the phone is reachable. It does not reserve a traffic channel for every possible future call. The required radio or network resources may be busy when the call is requested.登記只是讓網絡知道去哪裏聯絡手機,不代表已為所有未來通話預留業務頻道。當手機真正提出通話要求時,需要的無線電或網絡資源可能正在忙碌。

4.3 Evolution of Cellular Networks: 1G to 6G Slides / 講義 82–94, 1024.3 蜂窩網絡由 1G 到 6G 的演進

From voice to packet data從語音走向封包數據

The original mobile-phone problem was to carry a voice call while the user moved. First-generation systems, or 1G, used analogue voice. Capacity, security, voice quality and handover performance were limited.最初的流動電話問題,是怎樣在使用者移動時仍可通話。第一代(1G)使用類比語音,在容量、安全、音質和切換表現方面都有明顯限制。

2G changed the voice service to digital systems. Digital processing made improved capacity and new services practical, including short text messages. The network still mainly followed a circuit-switched call model for voice.2G把語音服務改為數碼系統。數碼處理令容量改善和新服務更可行,包括短訊。不過,語音主要仍沿用電路交換通話模型。

Then people wanted mobile Internet access. A circuit is wasteful for a device that sends a burst of data and then waits. The intermediate systems often called 2.5G and 2.75G added or improved packet-data service. This connects directly to our circuit-versus-packet lesson.後來,使用者開始需要流動上網。裝置若只傳一小批資料、然後等待,獨佔電路便很浪費。常稱為 2.5G 和 2.75G 的過渡系統,因此加入或改善封包數據服務。這正好接上前面電路與封包的比較。

3G developed mobile data further, supporting more demanding audio, video and Internet applications. In the lecture’s 3G architecture, a packet-data path exists alongside the traditional voice path. Follow the two exits in the diagram: one towards the telephone network, the other towards the Internet.3G進一步發展流動數據,支援要求較高的音訊、視訊和互聯網應用。講義的 3G 架構中,封包數據路徑與傳統語音路徑並存。看圖時跟着兩個出口走:一邊往電話網絡,另一邊往互聯網。

3.5G then improves packet access further. The decimal names describe steps in an evolution, not precise fractions of a radio. The useful story is analogue voice → digital voice and messaging → added packet data → better mobile data.3.5G再改善封包存取。這些小數世代名稱表示演進步驟,不是把一部無線電精確切成幾分之幾。主線是:類比語音 → 數碼語音與短訊 → 加入封包數據 → 改善流動數據。

This also explains why standards names multiply. Different regions and organisations developed different systems within the same broad generation. A generation is a family of goals and capabilities; it is not one universal protocol name.這也解釋了為甚麼會出現很多標準名稱:不同地區和組織,可以在同一大世代內發展不同系統。一個世代代表一組目標和能力,不是唯一、全球通用的協定名稱。

Why 4G changes the core4G 為甚麼要改變核心網絡

In the earlier architecture, voice and Internet data could leave through different core-network paths. 4G brings an all-packet core. Voice services can also be carried over Internet Protocol, so the core does not need a separate circuit-switched path for each voice call.在較早架構中,語音和互聯網數據可以經不同核心路徑送出。4G 使用全封包核心網絡,語音也可以透過 IP 傳送,所以核心不必再為每通語音保留一條獨立電路交換路徑。

The radio access network gets your phone’s traffic across the radio link and into the operator network. The core network manages service and carries it onwards. Keeping those two jobs separate makes the architecture easier to read.無線接入網絡(RAN)把手機資料送過無線連線,帶進營運商網絡;核心網絡則管理服務並繼續轉送。先分清這兩份工作,架構圖便較容易讀。

Follow a user packet in the lecture’s Long Term Evolution system, usually called . It travels from the phone to the radio base station, through a serving gateway, then through a packet-data gateway towards an external network. These devices form the data path.跟着講義中的 LTE(Long Term Evolution) 使用者封包走:手機 → 無線基地台 → 服務閘道 → 封包數據閘道 → 外部網絡。這些元件組成真正承載資料的路徑。

Other components manage the connection rather than carrying every user packet. A mobility-management component handles control procedures. A subscriber server holds the information needed to identify and authorise users. This distinction is the start of user plane versus control plane: carrying the content versus organising its delivery.其他元件負責管理連線,不是每個使用者封包都要經過它們。例如,移動管理元件處理控制程序,用戶伺服器保存辨認及授權用戶所需資料。這就是使用者平面與控制平面的基本分別:一邊運送內容,一邊安排內容怎樣送。

Higher radio rates also require better use of spectrum, antennas and modulation. Recall the same tools we met in Wi-Fi: divide resources carefully, use multiple antennas and adapt transmission to signal conditions. The brand name alone does not create capacity.提高無線速率還需要更好地利用頻譜、天線和調變。這些工具與 Wi-Fi 有相通之處:仔細分配資源、使用多支天線,並配合訊號條件調整傳送。單靠世代品牌名稱,不會憑空產生容量。

Cellular Architecture Evolution: 2G → 3G → 4G (All-IP) → 5G (Cloud-Native SBA) (Slides 85, 89, 92, 98) 2G (GSM) RAN: BTS + BSC Core: MSC + GMSC Ext: PSTN Circuit-switched voice 3G (UMTS / W-CDMA) RAN: NodeB + RNC Voice: MSC (unchanged) Data: SGSN + GGSN Voice core plus packet data 4G (LTE / EPC) RAN: eNodeB (E-UTRAN) Ctrl: MME + HSS Data: S-GW + P-GW All-packet core 5G (SA / 5GC) RAN: gNodeB (CU + DU) Control: AMF, SMF, UDM, PCF Data: UPF → Internet Control + packet forwarding
Follow the user-data path, then the control functions.先跟資料路徑,再看控制功能。

2G mainly supports circuit-switched voice. 3G adds a packet-data path alongside the voice path. 4G uses an all-packet core. In 5G, control functions arrange service while the user plane forwards the data.2G 主要支援電路交換語音;3G 在語音路徑旁加入封包數據路徑;4G 使用全封包核心;5G 則由控制功能安排服務,使用者平面負責轉送資料。

The short names change because components and their jobs change. The 5G split is not the first appearance of control and user planes: the 4G diagram already separates management functions from packet gateways. The sketch simplifies the networks.縮寫會改變,是因為元件和分工在演變。但控制/使用者平面分開,不是到了 5G 才首次出現:4G 圖中已把管理功能與封包閘道分開。這張圖仍是簡化示意。

On a small screen, swipe the diagram sideways to read its labels.在小螢幕上,可左右滑動圖解查看標籤。

演進主線是語音變數碼、加入封包數據、再走向全分組核心網。

Check your understanding. Does “all-IP core” mean a voice call no longer needs delay and reliability management?檢查理解:「全 IP 核心」是否表示語音通話不再需要管理延遲和可靠性?

Read the answer and reason查看答案及原因

No. Speech still needs timely delivery. Carrying it in packets changes the transport architecture, but the network still needs service-quality mechanisms and suitable radio resources.不是。語音仍然要及時送達。把它放進封包,只是改變傳送架構;網絡仍須有服務品質機制和合適的無線電資源。

Reference: 1G–6G names, targets and architecture參考:1G–6G 的名稱、目標與架構
Cellular evolution: names, targets and architecture蜂窩系統演進:名稱、目標與架構
Generation世代Examples in the lecture講義中的例子Main change主要改變
1G第一代:1G。AMPS: Advanced Mobile Phone Service; TACS: Total Access Communication System; NMT: Nordic Mobile Telephone. ; 800 MHz example.包括 AMPS(進階流動電話服務)、TACS(全接入通訊系統)和 NMT(北歐流動電話)。使用 FDMA;講義頻段例子為 800 MHz。Analogue, circuit-switched voice. Limited capacity, security, battery life and handover performance.使用類比、電路交換語音;容量、安全、電池續航和切換表現有限。
2G第二代:2G。: Global System for Mobile Communications; Digital AMPS; IS-95 ; PDC: Personal Digital Cellular. uses frequency and time divisions; bands vary.包括 GSM(全球流動通訊系統)、Digital AMPS、IS-95 CDMA 和 PDC(個人數碼蜂窩系統)。GSM 同時利用頻率和時間分隔使用者;頻段視系統而定。Digital voice and messaging. Circuit-switched voice remains; radio access uses and with an -based voice core.數碼語音與短訊。語音仍採電路交換;GSM 的無線接入使用 BTS 和 BSC,語音核心則以 MSC 為主。
2.5G / 2.75G過渡世代:2.5G/2.75G。General Packet Radio Service (); Enhanced Data rates for Evolution (); the lecture also places CDMA2000 1x in this transition.包括 GPRS(通用封包無線服務)和 EDGE(GSM 演進的增強資料速率);講義也把 CDMA2000 1x 放在這個過渡階段。Adds or improves packet data alongside the existing telephone service. The slide’s 144 kbit/s is an illustrative target, not a ceiling for every listed mode.在原有電話服務之外,加入或改善封包數據。投影片的 144 kbit/s 是示意目標,不是表中所有模式的共同速率上限。
3G第三代:3G。Universal Mobile Telecommunications System (), Wideband (), CDMA2000 variants, and Time Division Synchronous (TD-SCDMA).包括 UMTS(通用流動電訊系統)、W-CDMA(寬頻碼分多重存取)、CDMA2000 各版本,以及 TD-SCDMA(時分同步碼分多重存取)。Better mobile data. Slide targets: 144 kbit/s at high mobility, 384 kbit/s at lower mobility, 2 Mbit/s at very low mobility. and a Radio Network Controller form the radio network; packet service nodes run alongside the voice core.改善流動數據。講義目標:高速移動 144 kbit/s、較低速移動 384 kbit/s、極低速移動 2 Mbit/s。NodeB 和 RNC 組成無線接入網絡;封包服務節點與語音核心並存。
3.5G3G 的進一步演進:3.5G。High Speed Packet Access ().高速封包存取:HSPA/HSPA+。Improves packet-data rate and capacity in the 3G family. It does not by itself mean the whole legacy voice core disappears.在 3G 家族內提升封包數據速率和容量,本身不代表整個舊語音核心已被取消。
4G第四代:4G。-Advanced and 802.16m. uses downlink and uplink; and higher-order modulation help.包括 LTE-Advanced 和 IEEE 802.16m。LTE 下行用 OFDMA,上行用 SC-FDMA;MIMO 和較高階調變也有助提升表現。All-packet core. The lecture gives targets of 100 Mbit/s at high mobility and 1 Gbit/s at low mobility. The evolved connects to the Evolved Packet Core ().採用全封包核心。講義目標為高速移動 100 Mbit/s、低速移動 1 Gbit/s。演進型 NodeB 連接演進封包核心(EPC)。
5G第五代:5G。New Radio (NR); non-standalone () and standalone () deployment.使用新空中介面 NR,並有非獨立組網(NSA)與獨立組網(SA)部署方式。Different service goals plus an evolved radio and core. Peak, delay and density targets are conditional; see 4.4.服務目標更加多樣,無線電與核心網絡也有改進。峰值、延遲和裝置密度目標各有條件,詳見 4.4 節。
5G-Advanced / 6G directions5G-Advanced 與 6G 的發展方向。Release 18 in the lecture; AI-assisted radio, energy efficiency, extended-reality services, integrated access/backhaul, sensing and communication, digital twins.講義提到 Release 18、AI 協助無線電運作、節能、延展實境服務、整合接入與回程、感測與通訊整合,以及數碼分身。Development directions rather than a guarantee of present features. The lecture discusses very high-frequency research, including a broad 100 GHz–10 range.這些是發展方向,不是保證現在已具備的功能。講義也提到極高頻研究,涵蓋寬廣的 100 GHz–10 THz 範圍。

’s includes the Mobility Management Entity (), Home Subscriber Server (), Serving Gateway (), and Packet Data Network Gateway (). Control functions organise the service; gateways forward user packets. is not simply identical to “ plus .” The lecture also mentions IPv6, quality-of-service support, heterogeneous handover, open wireless architecture and software-defined radio as 4G design ideas.LTE 的 EPC 包括 MME(移動管理實體)、HSS(歸屬用戶伺服器)、S-GW(服務閘道)和 P-GW(封包數據網絡閘道)。控制功能安排服務,閘道轉送使用者封包。HSS 不能簡單當成「HLR 加 VLR」的同義詞。講義也把 IPv6、QoS、異質網絡切換、開放無線架構和軟件定義無線電列作 4G 設計概念。

Slide 84 gives 900/1800 MHz for and 800/1900 MHz for its examples. Slide 88 gives a 2 GHz example and historical data-rate goals of 144 kbit/s at at least 120 km/h, 384 kbit/s below 120 km/h, and 2 Mbit/s below 10 km/h. Slide 90 gives more than 2 Mbit/s for its 3.5G discussion. These are lecture examples, not current speed promises.第 84 頁的 GSM 頻段例子為 900/1800 MHz,CDMA 例子為 800/1900 MHz。第 88 頁列出 2 GHz 例子,以及歷史速率目標:移動速度至少 120 km/h 時為 144 kbit/s,低於 120 km/h 時為 384 kbit/s,低於 10 km/h 時為 2 Mbit/s。第 90 頁討論 3.5G 時寫超過 2 Mbit/s。這些都是講義例子,不是現時服務的速度承諾。

In 3G, plus the Radio Network Controller () form the Terrestrial Radio Access Network (). The Serving Support Node () and Gateway Support Node () handle the packet-service path alongside the voice path. The lecture’s other 3G names include Evolution–Data Optimized (EV-DO), Evolution–Data and Voice (EV-DV), and Time Division Synchronous (TD-SCDMA).在 3G 中,NodeB 與無線電網絡控制器 RNC 組成 UTRAN(UMTS 陸地無線接入網絡)。SGSN(服務 GPRS 支援節點)與 GGSN(閘道 GPRS 支援節點)處理封包服務路徑,與語音路徑並存。講義還列出 EV-DO(以數據最佳化的演進)、EV-DV(數據與語音演進)和 TD-SCDMA 等 3G 名稱。

In LTE, user equipment (UE) means the terminal. The radio network is Evolved UTRAN (E-UTRAN). Early LTE and Mobile WiMAX (802.16e) were marketed as 4G before the stronger formal targets; LTE-Advanced and WirelessMAN-Advanced (802.16m) address those higher targets. Slide 94 additionally surveys multi-carrier CDMA, 64/256-QAM and software-defined radio.在 LTE 中,UE(user equipment)就是使用者終端,無線網絡稱為 E-UTRAN。早期 LTE 和 Mobile WiMAX(802.16e)已被市場稱為 4G,但較高的正式目標由 LTE-Advanced 和 WirelessMAN-Advanced(802.16m)對應。第 94 頁也概述多載波 CDMA、64/256-QAM 和軟件定義無線電。

4.4 What 5G changes: services, core and radio tools Slides / 講義 95–1024.4 5G 改了甚麼:服務、核心與無線工具

Start with three different service needs先從三種不同服務需要出發

Consider three customers. One wants high-quality video on a phone. Another wants to control a machine with very short, dependable response times. A third wants to connect a huge number of tiny sensors that each send very little data.想像三位客戶:第一位想在手機看高質素影片;第二位要控制機器,要求反應很快而且可靠;第三位要連接大量微型感測器,每個只傳很少資料。

The first customer mainly needs capacity and high data rates. 5G calls this enhanced mobile broadband, or . The second cares strongly about delay and reliability: ultra-reliable low-latency communication, or . The third cares about the number of devices and efficient small-message service: massive machine-type communication, or .第一位主要需要容量和高速率,5G 稱為增強型流動寬頻(eMBB)。第二位重視延遲和可靠性,對應超可靠低延遲通訊(URLLC)。第三位重視裝置數量,以及有效處理小訊息,對應大規模機器類通訊(mMTC)。

These are different goals. A system that supports many sleeping sensors has not thereby proved it can give every sensor a very high continuous rate and a tiny delay at the same time. Each requirement has its own scenario and conditions.這三種目標不同。系統能支援很多睡眠中的感測器,不代表同時證明每個感測器都可持續高速傳送,而且延遲極低。每項要求都有自己的使用場景和條件。

Operators also need a practical upgrade path. In a non-standalone deployment, the new 5G radio works with existing 4G infrastructure and core functions in the common arrangement shown by the lecture. Reusing equipment helps an operator introduce the new radio sooner.營運商也需要實際可行的升級路線。在講義常見的非獨立組網(NSA)安排中,新的 5G 無線電與現有 4G 基建及核心功能合作。重用設備,能讓營運商較快引入新無線電技術。

A standalone deployment uses the new radio with a 5G core. This provides the architecture for the fuller 5G feature set. It still takes appropriate configuration, coverage, devices and capacity to deliver a particular service. A standalone label by itself is not a latency guarantee.獨立組網(SA)則把新無線電接到 5G 核心,提供較完整 5G 功能所需的架構。但要真正提供某項服務,仍須有合適設定、覆蓋、裝置和容量。單是 SA 名稱,不保證某個延遲數值。

Next we will look inside that core. We will give each component a job before attaching its abbreviation.接下來看核心內部。我們先說每個元件做甚麼,再把縮寫放上去。

Follow the control decisions and the data path跟着控制決定和資料路徑走

You turn on mobile data and open a video. Before the network carries the video, it needs to recognise you, set up a data session and apply the service rules for your subscription. These decisions are control work.你開啟流動數據,再打開影片。傳影片之前,網絡先要辨認你、建立數據連線,並套用你的訂閱服務規則。這些都是控制工作。

First, an access and mobility management function handles registration and connection-related mobility. Next, a session management function manages the data session, including address-related control. A data session is the arrangement through which your device exchanges packets with a data network.首先,存取與移動管理功能處理登記和連線相關的移動。接着,工作階段管理功能管理數據工作階段,包括位址相關控制。這裏的數據工作階段(data session),就是讓裝置與數據網絡交換封包的一套連接安排。

The network also needs subscriber information and rules. Unified data management and its repository support subscriber data. A policy control function provides rules, including service-quality policy. Together, these functions help decide what service should be established.網絡還需要用戶資料和規則。統一資料管理功能及其資料儲存庫支援用戶資料;政策控制功能則提供規則,包括服務品質政策。這些功能一起決定應建立甚麼服務。

Once the path is arranged, the video packets need forwarding. The user plane function carries packets between the radio access network and the external data network. The packets do not take a tour through every management box in the diagram.路徑安排好後,影片封包才需要真正被轉送。使用者平面功能(UPF)在無線接入網絡與外部數據網絡之間轉送封包。封包不需要把圖中每個管理方塊都走一遍。

Now attach the short names: handles access and mobility; handles sessions; / handles subscriber data; handles policy; forwards user packets. When you forget an abbreviation, recover its job in this story first.現在才配對縮寫:AMF管存取和移動,SMF管工作階段,UDM/UDR管用戶資料,PCF管政策,UPF轉送使用者封包。忘記縮寫時,先回想它在這個流程中的工作。

Match each technology to the problem it changes把每種技術連到它要改善的問題

We now have the goals and the architecture. The remaining technology names describe tools for meeting the goals. Link each tool to the part of the problem it changes.服務目標和架構已有了,餘下的技術名稱就是達成目標的工具。閱讀時,要把每個工具與它實際改變的那部分問題連起來。

More spectrum can provide room for more data. Lower bands can be useful for broader coverage, while higher bands can offer wide channels but create tougher propagation and coverage challenges. The network may combine bands instead of using one frequency for every situation.更多頻譜可以提供更多傳資料的空間。較低頻段常有利於廣泛覆蓋;較高頻段可能提供較寬頻道,但訊號傳播和覆蓋更具挑戰。網絡因此可能結合多個頻段,而不是所有情況都只用一種頻率。

Large antenna arrays, often called massive MIMO, help serve users with spatially separated signals. Beamforming directs signal energy usefully. Small cells bring radio access closer to users and create more places to reuse resources. The cost includes extra sites, coordination and backhaul.大型天線陣列,常稱為massive MIMO,可用空間上分離的訊號服務使用者;波束成形則把能量有效地送向所需方向。較小的小區讓接入設備更靠近使用者,也增加重用資源的位置。代價包括更多站點、協調和回程連線。

Edge computing moves suitable computing closer to the user. If a request does not have to travel to a distant server, part of its delay can fall. It does not remove radio waiting or make all applications equally fast.邊緣運算(edge computing)把合適的運算工作搬近使用者。如果請求不必走到遠端伺服器,部分延遲就可能降低。但它不會消除無線電等候時間,也不會令所有應用都同樣快。

Network slicing creates logically separated service arrangements on shared infrastructure. Different slices can have policies and resources suited to different services. This supports the earlier distinction between video, machine control and sensors. The physical capacity is still finite; creating more slice names does not create more spectrum.網絡切片(network slicing)在共用基建上建立邏輯上分開的服務安排。各切片可有適合不同服務的規則和資源,對應前面的影片、機器控制和感測器需要。不過,實體容量仍有限;增加切片名稱,不會憑空增加頻譜。

The lecture then introduces 5G-Advanced and 6G research. Read these as directions for improving systems: better energy use, new interaction services, sensing alongside communication and more intelligent management. Future targets are not evidence that every feature is already deployed.講義再引入 5G-Advanced 與 6G 研究,可理解為改善系統的方向:更省電、新互動服務、通訊兼感測,以及更智能的管理。未來目標不等於所有功能現在都已部署。

5G的不同目標不能混成「每部手機同時得到最高速度、最低延遲和最大連接數」。

Check your understanding. Which function in this simplified 5G diagram forwards the video packets, and which manages the data session?檢查理解:這張簡化 5G 圖中,哪個功能轉送影片封包?哪個管理數據工作階段?

Read the answer and reason查看答案及原因

The User Plane Function () forwards the packets. The Session Management Function () manages the session. Carrying user content and organising its delivery are separate jobs.UPF轉送封包,SMF管理工作階段。運送使用者內容,與安排內容怎樣送,是兩份不同工作。

Check your understanding. Which service goal best matches a large population of small sensors, and why is peak download speed not the main measure?檢查理解:大量小型感測器最符合哪個服務目標?為甚麼最高下載速度不是主要衡量指標?

Read the answer and reason查看答案及原因

Massive machine-type communication. The network must serve many devices economically and efficiently, often with small occasional messages. A huge rate for one device does not measure that ability.最符合mMTC。網絡要以合理成本和效率服務很多裝置,而它們通常只是偶爾送出小訊息。單一裝置能跑多高速,量度不到這種服務能力。

Reference: deployment labels, targets and latency limits參考:部署名稱、目標數值與延遲限制

Deployment labels. Non-standalone = ; standalone = ; the 5G air interface is New Radio (NR); 5G core = . The lecture’s NSA example uses the 4G Evolved Packet Core. Its SA example uses a cloud-native, service-based 5G core.部署名稱:NSA 是非獨立組網,SA 是獨立組網,NR 是 5G 的新空中介面,5GC 是 5G 核心。講義的 NSA 例子使用 4G EPC;SA 例子使用雲端原生、以服務為基礎的 5G 核心。

Keep the numbers with their meanings. Slide 96 lists 20 Gbit/s downlink and 10 Gbit/s uplink peak rates, user-experienced rates of 100/50 Mbit/s, peak spectral efficiencies of 30/15 bit/s/Hz, mobility around 500 km/h, connection density of 1 million devices/km² and indoor traffic capacity of 10 Mbit/s/m². These are different evaluation targets. They are not a package promised to every handset.記數字時,也要記它在量度甚麼。第 96 頁列出:下行/上行峰值速率 20/10 Gbit/s,使用者體驗速率 100/50 Mbit/s,峰值頻譜效率 30/15 bit/s/Hz,移動速度約 500 km/h,連接密度每 km² 一百萬部裝置,以及室內流量容量每 m² 10 Mbit/s。它們是不同的評估目標,不是每部手機同時獲得的一套保證。

Latency correction. Slides 96 and 101 use simplified and inconsistent end-to-end language. ITU-R M.2410 defines radio-interface user-plane latency requirements of 4 ms for enhanced broadband and 1 ms for the low-latency scenario under specified unloaded conditions. These are not a guaranteed round trip from your phone to any Internet server. ITU-R M.2410, section 4.7.延遲修正:第 96 和 101 頁對端到端延遲的說法過於簡化,也不一致。ITU-R M.2410 在指定的無負載條件下,定義無線介面使用者平面的延遲要求:增強寬頻為 4 ms,低延遲情境為 1 ms。它們不是手機到任意互聯網伺服器來回一次的保證時間。參見報告第 4.7 節。

The slides also quote 100-fold improvements in energy efficiency or capacity in particular comparisons. Keep these as the lecture’s headline aspirations, rather than universal outcomes or a numeric minimum guaranteed by the ITU report.講義在某些比較中也提出能源效率或容量提升 100 倍。應把它們視為講義的概括願景,不能當成所有情況都會達成的結果,或 ITU 報告保證的通用最低值。

For low-power wide-area devices, slide 97 names Narrowband Internet of Things () and enhanced machine-type communication (), also associated with LTE-M. They target economical machine connectivity rather than the fastest phone download.對低功耗廣域裝置,第 97 頁提到窄頻物聯網(NB-IoT)和增強型機器類通訊(eMTC),後者也與 LTE-M 有關。它們追求具成本效益的機器連線,而不是最快手機下載。

Reference: full 5G component names and radio functions參考:5G 元件全名與無線功能
Access and Mobility Management Function (AMF)
Access, registration, connection and mobility-related control.
Session Management Function (SMF)
Session control, including address allocation and control of the user-plane path.
Unified Data Management (UDM) and Unified Data Repository (UDR)
Subscriber-data functions and storage. They are related but are not simply two names for one identical box.
Policy Control Function (PCF)
Policy rules for service treatment.
User Plane Function (UPF)
Forwarding of user data between the access network and external data networks.

Slide 98 calls the base station a and the access network the Next Generation Radio Access Network (). A Central Unit () handles higher-layer functions; a Distributed Unit () handles lower-layer, time-sensitive work closer to the radio. These are functional splits, not a rule that every system must place them in two particular buildings.第 98 頁把基地台稱為 gNodeB,接入網絡稱為 NG-RAN(下一代無線接入網絡)。中央單元 CU處理較高層功能,分散單元 DU在較接近無線電的位置處理低層、時間敏感工作。這是功能分工,不是規定所有系統都要把兩者放在某兩棟建築物。

The Service-Based Architecture () organises control functions as services that can interact. It helps explain the software-oriented core. The lesson diagram is a simplified path; real networks can have several user-plane functions and additional service components.以服務為基礎的架構(SBA)把控制功能組織成可互相合作的服務,這有助理解核心為甚麼越來越以軟件方式運作。圖中只是簡化路徑;實際網絡可以有多個 UPF,以及額外服務元件。

Slide 100 uses Frequency Range 1 () and Frequency Range 2 () as shorthand for lower and higher New Radio frequency ranges. Its “below 6 GHz / above 24 GHz” wording is a rough teaching summary, not a complete frequency-allocation specification. For this chapter, retain the coverage-versus-capacity trade-off rather than treating those rounded boundaries as exhaustive.第 100 頁用 FR1和FR2簡稱 NR 的較低與較高頻率範圍。投影片「低於 6 GHz/高於 24 GHz」是粗略教學概括,不是完整頻率配置規格。本章應掌握覆蓋與容量的取捨,不要把這些四捨五入的界線當成完整定義。

Slide 101 discusses licensed, shared and licence-exempt spectrum, macro-cells and hotspots, plus device-to-device and multi-hop arrangements. Unified platform means the system aims to support different needs; it does not mean every device uses all of these access types simultaneously.第 101 頁討論有牌照、共用及免牌照頻譜,宏小區和熱點,以及裝置對裝置與多跳安排。「統一平台」表示系統希望支援不同需要,不表示每部裝置都同時使用全部存取方式。

Slide 102 links 5G-Advanced with Release 18, artificial intelligence/machine learning (AI/ML), extended reality (XR), energy savings, mobile integrated access and backhaul (IAB), and smart repeaters. Access connects users; backhaul connects the access equipment onwards. Sharing resources for both makes that relationship important.第 102 頁把 5G-Advanced 與 Release 18、人工智能/機器學習(AI/ML)、延展實境(XR)、節能、流動整合接入及回程(IAB),以及智能中繼器連起來。接入連接使用者,回程把接入設備接往後方網絡;兩者若共用資源,就要一併安排。

Its 6G research topics include integrated sensing and communication, AI-native operation, wider connectivity, very-high-frequency links and digital twins. The slide’s “expected 2030” is a projection in the lecture, not a confirmed completion date. Its 100 GHz–10 phrase groups broad research interests rather than defining one deployed radio band.6G 研究主題包括通訊與感測整合、AI 原生運作、更廣連接、極高頻連線和數碼分身。講義的「預期 2030」是推測,不是已確認的完成日期;100 GHz–10 THz 是把廣泛研究興趣放在一起,不是在定義一個已部署的無線頻段。

Part 5 · Satellite Networks, Master Comparison & Future TrendsPart 5 · 衛星網絡、整體比較與未來方向

Slides / 講義 103–113
Reach places without a usable ground network把連線帶到沒有可用地面網絡的地方

A ship far from shore cannot solve its coverage problem just by asking for faster Wi-Fi. A satellite offers another path. The main questions are where the relay sits, how far the signal travels, and how service continues as satellites move.一艘遠離海岸的船,不能單靠更快的 Wi-Fi 解決覆蓋問題;衛星則提供另一條路。重點變成:中繼站放在哪裏、訊號要走多遠,以及衛星移動時怎樣持續服務。

衛星補上地面覆蓋不足,但也帶來距離與切換問題。

5.1 Satellite routes, uses and frequency bands Slides / 講義 104–1065.1 衛星路徑、用途與頻段

A ship is far from land, or a disaster has damaged local base stations. Making the phone’s usual cellular connection faster will not help if no usable ground station is within reach. We need another path.船隻遠離陸地,或災難破壞了本地基地台時,如果根本找不到可用地面站,即使把平常蜂窩連線的速度提高也沒有幫助。我們需要另一條可走的路。

A satellite network places part of the communication system in space. In the lecture’s simple relay model, the satellite receives a signal, amplifies it and sends it onward on another frequency. This relay equipment is called a transponder.衛星網絡把部分通訊系統放到太空。在講義的簡單中繼模型中,衛星接收訊號、放大,再用另一頻率轉送。執行這個工作的設備叫轉頻器(transponder)。

Follow one message from a user terminal. It travels up to a satellite, then down to a ground gateway connected to other networks. Some systems can also pass data between satellites before bringing it down to a gateway. These are different links in a route, not three separate types of Internet.跟着使用者終端的一個訊息走:先向上到衛星,再向下到連接其他網絡的地面閘道。有些系統還會先在衛星之間傳資料,再送回地面。這是同一路徑中的不同連線,不是三種互不相干的互聯網。

Satellites are useful for remote communication, aircraft, ships, broadcasting and disaster response. They also support observation, weather monitoring and navigation. A navigation receiver using satellite timing signals is not doing the same job as a satellite phone sending a conversation in both directions.衛星可用於偏遠通訊、飛機、船隻、廣播和災難應變,也支援地球觀測、天氣監測和導航。但導航接收器讀取衛星時間訊號,與衛星電話雙向傳送對話,是不同的工作。

The next problem is distance. A higher satellite can see a larger area, but its signal has farther to travel. A lower satellite can shorten the path, but moves across the sky relative to the ground and covers less area at a time. That trade-off explains the orbit categories.接着要處理距離:衛星越高,看得到的地面範圍越大,但訊號路程也越長;較低衛星縮短路程,卻會相對地面快速移動,而且一次覆蓋的地方較小。不同軌道的分類,正是為了比較這個取捨。

Attach names to the three parts of that route: the Mobile User Link () connects the user and satellite; the Gateway Link () connects satellite and ground gateway; an Inter-Satellite Link () connects satellites. A system may use only some of these links.把路徑各段配上名稱:流動使用者連線(MUL)接通使用者和衛星;閘道連線(GWL)接通衛星和地面閘道;衛星間連線(ISL)接通不同衛星。某個系統不一定使用全部三種連線。

先追蹤使用者到衛星、再到地面閘道的路線;頻段名稱和軌道高度是不同分類。

Check your understanding. Why might a satellite connection be valuable even if it costs more than an ordinary cellular connection?檢查理解:即使衛星連線比普通蜂窩連線貴,為甚麼仍可能很有價值?

Read the answer and reason查看答案及原因

It can provide a path where ordinary ground infrastructure is absent or damaged. The comparison is then between having a usable link and having none, rather than only between two prices.因為它可在地面基建不存在或已損壞時提供通路。這時比較的不是單純哪個價錢較低,而是「有一條可用連線」與「完全沒有連線」。

Reference: satellite bands and uses參考:衛星頻段與用途
Satellite band names from slide 106第 106 頁的衛星頻段名稱
Band頻段Frequency range in the slide投影片列出的頻率範圍Typical use listed列出的典型用途
LL 頻段。1–2 GHz頻率範圍 1–2 GHz。Mobile satellite service and navigation.流動衛星服務與導航。
SS 頻段。2–4 GHz頻率範圍 2–4 GHz。Weather and some communication uses.天氣觀測及部分通訊用途。
CC 頻段。4–8 GHz頻率範圍 4–8 GHz。Fixed satellite communication and television.固定衛星通訊與電視。
XX 頻段。8–12 GHz頻率範圍 8–12 GHz。Government and military uses.政府與軍事用途。
KuKu 頻段。12–18 GHz頻率範圍 12–18 GHz。Television and Internet service.電視與互聯網服務。
KaKa 頻段。26.5–40 GHz頻率範圍 26.5–40 GHz。High-rate communication.高速率通訊。
VV 頻段。40–75 GHz頻率範圍 40–75 GHz。Higher-capacity development.較高容量系統的發展。

These are band-name ranges, not a claim that every frequency in a range is available for every satellite service.這裏列的是頻段名稱對應的範圍,不表示範圍內每個頻率都可供任何衛星服務使用。

Global Navigation Satellite Systems () provide positioning, navigation and timing (PNT). A navigation receiver listens to timing signals; that is different from a satellite terminal sending user traffic both ways.全球衛星導航系統(GNSS)提供定位、導航和授時(PNT)。導航接收器收聽時間訊號,與衛星終端雙向傳送使用者資料,是不同用途。

The lecture’s 2.4 kbit/s–2 Mbit/s service rates are older examples. They are not a limit on every satellite network. A wide coverage area also does not mean that handovers, service restrictions or changing gateways disappear.講義的 2.4 kbit/s–2 Mbit/s 是較舊服務的速率例子,不是所有衛星網絡的速度上限。覆蓋面積很大,也不表示不再需要切換、不受服務限制,或永遠不用更換閘道。

5.2 How orbit height changes the link Slides / 講義 107–1105.2 軌道高度怎樣影響連線

Imagine lifting a camera higher above a table. It sees more of the table, but is farther away. A communication satellite has a related coverage-distance trade-off, with orbital motion added to the problem.想像把相機升高到桌面上方:它看得到更多桌面,但也離桌面更遠。通訊衛星同樣要在覆蓋與距離之間取捨,另外還要處理軌道運動。

A satellite in low Earth orbit, or , is relatively close. A shorter radio path can reduce propagation delay and path loss. However, each satellite covers a smaller area and moves quickly relative to a person on the ground. Continuous service needs a constellation and coordination as the serving satellite changes.低地球軌道(LEO)衛星較接近地面。無線路徑較短,可降低傳播延遲和路徑損耗;但每顆衛星覆蓋較小範圍,而且相對地面的人移動得快。要持續服務,就需要多顆衛星組成星座,並協調服務衛星的更換。

Medium Earth orbit, or , lies higher. It offers an intermediate trade-off between footprint, delay and the number of satellites needed. Many navigation satellites use this region.中地球軌道(MEO)位置較高,在覆蓋範圍、延遲和所需衛星數量之間提供中間取捨。很多導航衛星使用這個區域。

A geostationary Earth orbit, or , is a special circular orbit over the equator with the Earth’s rotation period. The satellite appears to stay in one direction from the ground. A fixed dish can keep pointing at it, and it can continuously serve a broad region.地球靜止軌道(GEO)是一種特別的圓形軌道,位於赤道上方,繞行週期與地球自轉一致。從地面看,衛星好像一直停在同一方向,因此固定天線可以持續對準它,長時間服務一大片區域。

The price is a much longer signal path. At about 35,786 km altitude, a ground-to-satellite-to-ground journey covers at least roughly 71,572 km. Dividing by the speed of light, about 300,000 km/s, gives roughly 0.24 seconds for that one-way relay path, before other delays. A request and reply must make a longer overall trip.代價是訊號路程長很多。高度約 35,786 km,地面 → 衛星 → 地面的路徑至少約 71,572 km。除以約 300,000 km/s 的光速,單程中繼便約需 0.24 秒,還未計其他延遲。如果要送出請求再等回覆,總路程會更長。

This is why orbit choice depends on the service. A fixed-region broadcast values steady coverage. An interactive application values lower delay. A lower orbit does not automatically make the whole network simpler: it transfers work into the constellation and handovers.所以,軌道選擇要配合服務。對固定區域廣播,穩定覆蓋很重要;互動應用則重視較低延遲。軌道較低不代表整個網絡一定較簡單,只是把更多工作轉移到星座協調和切換。

較高軌道看得更廣,但路程更長;較低軌道延遲較低,卻要處理更多衛星切換。

Check your understanding. Why can a lower satellite reduce propagation delay while making continuous coverage more complicated?檢查理解:較低衛星為甚麼能減少傳播延遲,卻令持續覆蓋更複雜?

Read the answer and reason查看答案及原因

The signal travels a shorter distance. But one satellite covers less area and moves out of view sooner, so the system needs more satellites and must coordinate changes between them.因為訊號走的路較短,但單顆衛星覆蓋較小,也較快移出視野。因此,系統需要更多衛星,並協調它們之間的服務交接。

Reference: orbit heights, examples and the 48 / 10 / 3 figures參考:軌道高度、例子與 48/10/3 的含義
Orbit trade-offs and lecture examples軌道取捨與講義例子
Orbit軌道Height and movement高度與運動Trade-off取捨Examples例子
Low Earth Orbit ()LEO:低地球軌道。About 160–2,000 km in the lecture; a low-orbit period can be around 90 minutes.講義範圍約為 160–2,000 km;較低軌道的繞行週期可約為 90 分鐘。Shorter path and lower propagation delay, but a smaller footprint and frequent changes of serving satellite.路徑較短,傳播延遲較低,但覆蓋較小,而且需要較常更換服務衛星。Iridium, Globalstar and low-orbit broadband constellations. The lecture gives 48 satellites and about 0.05 s as illustrative figures.例子包括 Iridium、Globalstar 和低軌寬頻星座。講義用 48 顆衛星和約 0.05 秒作示意數字。
Medium Earth Orbit ()MEO:中地球軌道。Between low orbit and geostationary height; the slide gives periods of about 2–24 hours.位於低軌與地球靜止軌道高度之間;投影片列出的週期約為 2–24 小時。An intermediate footprint-delay trade-off; constellations are still needed.在覆蓋和延遲之間取中間位置,但仍需要星座配合。GPS, Galileo and GLONASS navigation satellites; BeiDou includes medium and higher orbit types. The lecture gives 10 satellites and about 0.1 s as examples.GPS、Galileo 和 GLONASS 導航衛星是例子;北斗包含中軌和更高軌道類型。講義用 10 顆衛星和約 0.1 秒作例子。
Geostationary Earth Orbit ()GEO:地球靜止軌道。About 35,786 km; circular and equatorial, matching Earth’s rotation (roughly 24 hours).高度約 35,786 km,圓形軌道位於赤道上方,週期與地球自轉一致,約為 24 小時。A fixed apparent direction and broad continuous footprint, but a long propagation path and poor polar coverage.從地面看方向固定,可連續覆蓋廣泛區域;代價是傳播路徑長,而且極地覆蓋差。Broadcast/weather and some communication services. The lecture’s three-satellite picture is a broad-coverage idealisation, not full polar coverage; roughly 0.5–0.6 s can illustrate a round trip.用於廣播、天氣觀測和部分通訊。講義的三衛星圖是廣泛覆蓋的理想化模型,不能完整覆蓋極地;約 0.5–0.6 秒可用作來回延遲的示意。

48 / 10 / 3 are lecture examples, not universal minimum constellation sizes. Delay depends on whether one-way or round-trip time is counted, the gateway path and other processing. Do not mix 0.05 s with 20–40 ms as if they were the same measurement. Iridium is a low-orbit system.48/10/3 是講義例子,不是所有星座的最低衛星數目。延遲還取決於計的是單程還是來回、閘道路徑及其他處理。不要把 0.05 秒和 20–40 ms 當成相同測量。Iridium 屬於低軌系統。

The lecture’s named examples include Starlink and Kuiper at low orbit, and SES, Eutelsat, Intelsat, Inmarsat and Thuraya in its geostationary discussion. Not every operator or navigation constellation uses only one orbit type. Iridium belongs with low-orbit systems, despite its placement in one slide’s list.講義的低軌例子包括 Starlink 和 Kuiper;地球靜止軌道討論則提到 SES、Eutelsat、Intelsat、Inmarsat 和 Thuraya。並非每個營運商或導航星座都只用一種軌道。雖然其中一張投影片把 Iridium 放在 GEO 清單,它實際應歸入低軌系統。

Orbit distinctions are supported by the Australian Bureau of Meteorology’s satellite explanation; Iridium’s low orbit is described by IEEE Communications Society.軌道分別參考澳洲氣象局的衛星說明;Iridium 的低軌性質則可見 IEEE Communications Society 的介紹。

5.3 Master Comparison & Future Wireless Trends Slides / 講義 111–1135.3 整體比較與未來無線網絡方向

Return to your day. Bluetooth connects the headphones close to your phone. Wi-Fi connects your phone inside the café. Cellular connects you as you travel through the city. A satellite link can extend communication into places where suitable ground access is missing.回到你的一天:Bluetooth 連接手機附近的耳機;Wi-Fi 在咖啡店內連接手機;蜂窩網絡在你穿過城市時提供服務;如果沒有合適地面接入,衛星連線可以把通訊延伸到那裏。

These systems can cooperate. A phone may select among available access networks. A cellular site may use a satellite link for backhaul. Different cell sizes and technologies can be combined in a heterogeneous network. The best route depends on coverage, service needs, cost and what the equipment actually supports.這些系統也可以合作。手機可以在可用接入網絡之間選擇;蜂窩站點可以用衛星作回程;不同小區大小和技術可以組成異質網絡(heterogeneous network)。最佳路徑取決於覆蓋、服務需要、成本,以及設備真正支援甚麼。

Satellite development follows the same logic. Larger constellations improve coverage and capacity. Laser links can carry traffic between satellites. Integration with mobile systems creates non-terrestrial networks, where a link is provided through a platform above the ground. Direct-to-device service aims to connect supported phones with suitable satellites. Capability depends on the service and device; an ordinary phone is not automatically a full satellite terminal.衛星發展也沿着這條邏輯:較大星座改善覆蓋和容量;雷射連線在衛星間轉送資料;與流動系統整合形成非地面網絡(NTN),由地面以上的平台提供連線。Direct-to-device服務希望讓支援的手機直接連到合適衛星,但能力取決於服務和裝置,普通手機不會因此自動變成完整衛星終端。

The lecture also discusses artificial intelligence and machine learning. Their possible jobs include choosing radio resources, adjusting beams, anticipating failures and detecting unusual traffic. They are management tools operating within the physical limits of spectrum, power and coverage.講義也討論人工智能與機器學習,可能的工作包括選擇無線資源、調整波束、預測故障和偵測異常流量。它們是管理工具,仍須在頻譜、功率和覆蓋的物理限制內運作。

For a comparison question, start with the application. Explain the requirement, choose a design that fits it, then state the cost or limitation. For a mechanism question, start with the failure it prevents. The names become easier to recall when each one has a reason to exist.答比較題時,先從應用出發:說明需要,選一個合適設計,再交代代價或限制。答機制題時,先說它防止甚麼問題。每個名稱都有存在理由,就會較容易記住。

When reading a future trend, separate the idea from a guaranteed result. For example, laser links can change the route between satellites, and reusable launches can change deployment cost. Neither fact alone proves a particular user will have continuous service at a particular speed.閱讀未來方向時,要分開「技術想法」與「保證結果」。例如,雷射連線可改變衛星間路徑,可重用火箭可改變部署成本,但單靠其中一點,不能證明某位使用者一定持續享有某個速度。

比較題先寫應用需要,再解釋技術為何適合,最後說明代價或限制。

Check your understanding. A remote sensor and a busy café both need wireless communication. Why is “use the system with the highest peak rate” an incomplete answer?檢查理解:偏遠感測器和繁忙咖啡店都需要無線通訊。為甚麼只答「用峰值速率最高的系統」還不完整?

Read the answer and reason查看答案及原因

The sensor may need years of battery life and a path from a remote location. The café needs efficient local sharing among many users. Range, movement, battery, cost and traffic pattern matter alongside rate. A peak rate alone does not answer those requirements.感測器可能要用電池運作數年,並在偏遠位置找到可用路徑;咖啡店則需要大量本地使用者有效共用網絡。除了速率,距離、移動、耗電、成本和資料流特性都重要。單一峰值數字回答不了這些需要。

Reference: compare the four network scales參考:四種網絡規模的比較
Compare the four scales: slide 112第 112 頁:比較四種規模
Question比較問題Personal network個人網絡。Local network區域網絡。Cellular network蜂窩網絡。Satellite network衛星網絡。
Main job主要工作Connect nearby devices.連接附近裝置。Connect devices within a local place.連接同一本地範圍內的裝置。Keep service over a wide ground area.在廣泛地面區域維持服務。Reach places through a space-based link.透過太空中的連線延伸可達範圍。
Typical range picture典型覆蓋概念Around a person; about 10 m in the summary.一個人身邊;總結表約寫 10 m。Room/building/campus; about 100 m per access area in the summary.房間、建築物或校園;總結表以每個接入區約 100 m 作例子。Many cells together; the service area can span a city or country.很多小區合起來,服務範圍可跨越城市或國家。Broad footprints; total coverage depends on the constellation and service.單顆衛星覆蓋廣泛;總覆蓋取決於星座和服務安排。
Rate emphasis速率方面的重點Often small messages or short-range media.常見的是小訊息,或短距離多媒體。High local capacity.提供較高本地容量。Capacity plus mobility across cells.兼顧容量和跨小區移動。Depends greatly on orbit, terminal and service.很受軌道、終端和服務設計影響。
Battery and cost電池與成本Often low-power and low-cost.通常着重低功耗、低成本。Local equipment and radio use.需要本地設備,以及裝置使用無線電的資源。Radio access plus an operator network.除了無線接入,還需要營運商網絡。Long links and specialised infrastructure; terminal requirements vary.涉及長距離連線和專門基建;終端要求因系統而異。
Names to place可對應的名稱Bluetooth, Zigbee and other personal technologies.Bluetooth、Zigbee 等個人網絡技術。Wi-Fi / 802.11.Wi-Fi/IEEE 802.11 無線區域網絡。Cellular 4G/5G / 3GPP systems.蜂窩 4G/5G,以及 3GPP 系統。Low, medium and geostationary orbit systems.低軌、中軌和地球靜止軌道系統。

Use the comparison as a starting point, not a ranking where one system always wins. Range, battery use, rate and cost depend on the actual design and task.把比較表當作分析起點,不要當成某系統永遠勝出的排名。距離、耗電、速率和成本都取決於實際設計及工作需要。

Slide 111 also mentions reusable launches and mass production as ways to lower deployment cost. Slide 113 names network optimisation, predictive maintenance, security anomaly detection, and management of power, spectrum and computing as possible AI/ML uses.第 111 頁也提到可重用發射與大量生產可降低部署成本。第 113 頁列出的 AI/ML 用途包括網絡最佳化、預測性維護、安全異常偵測,以及管理功率、頻譜和運算資源。

Part 6 · Tutorial 3.1–3.4 Worked SolutionsPart 6 · Tutorial 3.1–3.4 逐步解答

Tut-list.pdf
Use the ideas to explain and calculate運用概念來解釋和計算

These are the supplied Tutorial 3.1–3.4 questions with worked explanations. They are practice, not predictions of the exam. Try an answer before opening the explanation.以下依據提供的 Tutorial 3.1–3.4,加入解題說明。它們是練習,不是考試預測。先試着自己回答,再展開解答。

先自己作答,再核對原因和計算單位。

Tutorial 3.1 · Explain the Bluetooth choicesTutorial 3.1 · 解釋 Bluetooth 為甚麼這樣設計

Try these after Part 2. Answer each in one or two complete sentences before opening the worked answer.讀完 Part 2 後再試做。每題先用一至兩句完整句子回答,然後才打開解答。

  1. How does Bluetooth reduce interference, and why does it need to?Bluetooth 怎樣減少干擾?為甚麼需要這樣做?
  2. How many masters and active slaves can the lecture’s piconet contain? Why?講義的 piconet 最多有多少個 master 和活躍 slaves?原因是甚麼?
  3. Which two dual roles can a device have in a scatternet? Why not master/master?一部裝置在 scatternet 中可以擔任哪兩種雙重角色?為甚麼不能是 master/master?
  4. Does the hidden-terminal collision problem occur between two slaves within the lecture’s coordinated piconet?在講義這個有協調安排的單一 piconet 內,兩個 slaves 之間會出現隱藏終端的碰撞問題嗎?
  5. What major practical advantage does Bluetooth have over the infrared link in the lecture?與講義中的紅外線連線相比,Bluetooth 有甚麼重要實用優點?
Open the worked answer展開逐步解答

1. Interference. Classic Bluetooth uses frequency hopping spread spectrum. Nearby networks share the 2.4 GHz band, so changing frequencies reduces prolonged exposure to interference on one part of it. Hopping reduces interference effects; it does not guarantee that every packet succeeds.1. 干擾。Classic Bluetooth 使用跳頻展頻。附近網絡共用 2.4 GHz 頻段,轉換頻率可減少長時間留在受干擾部分的機會。它能減輕干擾影響,但不保證每個封包都成功。

2. Group size. One master coordinates up to seven active slaves. The three-bit active address space has eight values; zero is reserved for broadcast, leaving seven individual values. The master coordinates using its timing and is not an eighth addressed slave. The reference answer’s numerical limit is correct, but its explanation of those address values is oversimplified.2. 群組大小。1 個 master 最多協調 7 個活躍 slaves。3 位元活躍位址共有 8 個值,零留作廣播,只剩 7 個可分配給個別裝置。Master 提供時間協調,並不是第八個有 slave 位址的裝置。原參考答案的數量限制正確,但對位址值的解釋過於簡化。

3. Bridge roles. The shared device can be slave/slave or master/slave. It follows the appropriate group’s sequence when participating there. Two independent master roles using the same device identity and clock would give identical hopping behaviour, so they would not define two distinct piconets in the lecture model.3. 橋接角色。共享裝置可作 slave/slave,或 master/slave,參與哪一邊時就跟隨哪一邊的跳頻次序。如果同一裝置用相同識別碼和時鐘擔任兩個獨立 master,兩邊就會有相同跳頻行為,因此在講義模型中不能形成兩個不同 piconet。

4. Hidden senders. Under the tutorial’s single-piconet scheduling assumptions, the master controls turns and the selected slave replies. Two slaves do not independently decide to send simultaneously to the master. This avoids that hidden-terminal contention problem. Interference from another network can still occur.4. 隱藏發送者。在 tutorial 的單一 piconet 排程假設下,master 控制輪次,再由選中的 slave 回覆。兩個 slaves 不會各自決定同時向 master 發送,所以避免了這種隱藏終端競爭問題。但另一個網絡造成的干擾仍可能存在。

5. Optical path. Bluetooth does not require the direct optical line of sight required by the infrared link. Devices can communicate without precise optical alignment, though obstacles can still weaken a radio signal.5. 光路。Bluetooth 不需要像紅外線連線般保持直接光學視線。裝置不必精確對準也能通訊,但障礙物仍可能削弱無線電訊號。

Useful answer pattern. “The mechanism is ___ . It is needed because ___ . It works by ___ .” Write the cause and mechanism, rather than only an abbreviation.可用答題句式:「這個機制是___。需要它,是因為___。它透過___解決問題。」要把原因和運作方式寫出來,不能只寫縮寫。

Tut-list.pdf p. 4; Tut-list-Sol.pdf pp. 35–38; Bluetooth address clarification in section 2.3.來源:Tut-list.pdf 第 4 頁;Tut-list-Sol.pdf 第 35–38 頁。Bluetooth 位址的釐清見本頁 2.3 節。

Tutorial 3.2 · Explain why each Wi-Fi mechanism existsTutorial 3.2 · 解釋每個 Wi-Fi 機制為甚麼存在

Cover the answers. For each mechanism, name the problem that would exist without it.先不要看答案。對每個機制,想一想:「如果沒有它,會出現甚麼問題?」

  1. Carrier sense載波感測:先聽頻道是否忙碌。
  2. Randomised backoff隨機退避:隨機選擇等候時槽。
  3. Dynamic contention window動態競爭視窗:按成功或失敗調整隨機等候範圍。
  4. Residual backoff剩餘退避:保留尚未完成的倒數。
  5. Acknowledgement接收確認:ACK。
  6. Request to send / clear to send請求發送/准許發送:RTS/CTS。
  7. Different interframe spaces不同長度的訊框間隔。
  8. Network Allocation Vector網絡配置向量:NAV。

Use the explanation in section 3.3. An answer that only expands the initials does not yet explain the purpose.可用 3.3 節的說明作答。只把縮寫寫成全名,還未解釋它的用途。

Open the worked answer展開逐步解答

1. Carrier sense. Without listening first, a station could begin while a detectable transmission is already using the channel. Listening lets it defer when the medium is busy.1. 載波感測。如果不先聽,裝置可能在可偵測到的另一傳送仍佔用頻道時就開始發送。先聽讓它知道媒介忙碌,應該暫緩。

2. Randomised backoff. Several waiting stations may hear the same busy period end. Random waiting separates their next attempts and reduces the chance that they all start together.2. 隨機退避。多部等待中的裝置可能同時聽到頻道由忙轉閒。隨機等候把下一次嘗試錯開,減少全部一起起步的機會。

3. Dynamic contention window. Repeated attempts with a narrow waiting range can keep colliding. Increasing the range spreads retries out. Returning to a smaller range after success avoids unnecessary waiting when competition is lighter.3. 動態競爭視窗。若等待範圍很窄,重試可能反覆碰撞。把範圍加大可以分散重試;成功後縮回較小範圍,則避免競爭較少時還等得太久。

4. Residual backoff. A station freezes its remaining counter when the channel becomes busy and later continues it. Its earlier waiting is not repeatedly discarded. This supports fairer access, but does not guarantee an exact first-come-first-served order.4. 剩餘退避。頻道變忙時,裝置凍結剩餘計數,之後接着倒數。這樣之前等過的時間不會一再白費,有助較公平存取,但不保證嚴格先到先得。

5. Acknowledgement. The sender needs evidence of correct reception. The receiver’s acknowledgement confirms a successful basic unicast delivery. Missing confirmation triggers the failure/retry procedure.5. ACK。發送者需要證據確認對方正確收到。接收者的 ACK 確認基本單播傳送成功;若缺少確認,就進入失敗/重試程序。

6. /. Short reservation messages reach neighbours of both sender and receiver. A sender hidden from the other sender may hear the receiver’s reply and defer. The handshake costs airtime and does not eliminate every possible collision.6. RTS/CTS。短預留訊息可通知發送端和接收端兩邊的鄰居。互相隱藏的發送者,可能聽到接收端回覆而延後。握手會佔用時間,也不能消除所有碰撞。

7. //. Different gaps give different actions an access advantage. Short replies complete an existing exchange before a new ordinary contention attempt; the optional polling coordinator uses the intermediate gap.7. SIFS/PIFS/DIFS。不同間隔給不同動作先後優勢。短回覆先完成現有交換,再讓新的普通競爭開始;可選輪詢協調者則用中間長度的間隔。

8. . A local reservation countdown tells a station how long to defer after it decodes duration information. It can respect an announced exchange even during a moment when it does not physically hear the sender.8. NAV。裝置讀到持續時間資訊後,設定本地預留倒數,知道還要暫緩多久。即使某一刻實際聽不到發送者,也可以繼續尊重已通告的交換。

Example exam English. “Random backoff reduces the chance that several stations transmit together after the channel becomes idle. Each station chooses a random number of idle slots to wait.”上方英文答句的意思:隨機退避降低了多部裝置在頻道空閒後同時傳送的機會。每部裝置隨機選擇要等待的空閒時槽數。考試用英文作答時,可參考這個完整句式。

Tut-list.pdf p. 4; Tut-list-Sol.pdf pp. 39–43; lecture slides 56–63.來源:Tut-list.pdf 第 4 頁;Tut-list-Sol.pdf 第 39–43 頁;講義第 56–63 頁。

Tutorial 3.3 · Split the band before splitting between usersTutorial 3.3 · 先分上下行,再分給使用者

A frequency-division duplex system has the band 500–600 MHz, a 20 MHz guard band between uplink and downlink, and 200 users. Find the available bandwidth for each user.一個分頻雙工系統使用 500–600 MHz 頻段,上行和下行之間留有 20 MHz 保護頻帶,共有 200 名使用者。求每名使用者可分到的頻寬。

Before calculating, explain the jobs of the two directions and the guard band. Then give the result for each direction, not just one unexplained total.計算前,先說明上下行和保護頻帶各做甚麼。最後要分別寫出每個方向的結果,不要只給一個沒有解釋的總數。

Open the worked answer展開逐步解答

Understand the arrangement. Frequency division duplex (FDD) separates the two directions into different frequency bands. Uplink is the user sending to the network. Downlink is the network sending to the user. The guard band is a gap between them; it is not usable user bandwidth.先理解安排。分頻雙工(FDD)把兩個傳送方向放在不同頻段。上行是使用者傳給網絡,下行是網絡傳給使用者;保護頻帶是兩者之間的空隙,不能分給使用者傳資料。

Step 1: Find the whole width. 600 − 500 = 100 MHz. Do not use 600 MHz as the available width; it is the upper edge.第 1 步:求整段頻寬。600 − 500 = 100 MHz。不能直接用 600 MHz,因為它是頻段上邊界,不是寬度。

Step 2: Remove the guard band. 100 − 20 = 80 MHz for communication.第 2 步:扣除保護頻帶。100 − 20 = 80 MHz 可供通訊。

Step 3: Share it equally between directions. 80 / 2 = 40 MHz uplink and 40 MHz downlink. The reference solution places the guard at 540–560 MHz.第 3 步:平均分給兩個方向。80 / 2 = 上行 40 MHz、下行 40 MHz。參考答案把保護頻帶放在 540–560 MHz。

Step 4: Share each direction among 200 users. 40 / 200 = 0.2 MHz = 200 kHz per user per direction.第 4 步:每個方向再分給 200 人。40 / 200 = 0.2 MHz = 每人、每方向 200 kHz。

Answer. “Each user receives 200 kHz for uplink and 200 kHz for downlink, or 400 kHz of paired spectrum in total, under the equal-allocation assumption.”答案:在平均分配的假設下,每人獲得上行 200 kHz、下行 200 kHz;上下行配對合共 400 kHz。上方保留了可參考的英文答句。

The answer is bandwidth in hertz, not a bit rate. Turning that bandwidth into bits per second would require information about the transmission method and conditions.結果是以赫茲表示的頻寬,不是每秒多少位元的資料速率。若要換算 bit/s,還需要傳送方式和環境條件等資訊。

Tut-list.pdf p. 5; Tut-list-Sol.pdf pp. 44–45.來源:Tut-list.pdf 第 5 頁;Tut-list-Sol.pdf 第 44–45 頁。

Tutorial 3.4 · Count channels, then count peopleTutorial 3.4 · 先數頻道,再數人數

A city has area 700 km² and population 1,000,000. Each cell covers 1 km². Total channel bandwidth is 100 MHz. Each one-way channel uses 25 kHz, including its guard space. The diagram repeats seven channel groups across seven-cell clusters.一個城市面積 700 km²,人口 1,000,000。每個小區覆蓋 1 km²,總頻寬 100 MHz。每個單向頻道連同保護間隔佔 25 kHz。圖中以七個小區為一群,在各群重複使用七組頻道。

Can the system serve 15% of the population? What about 25%? Follow the supplied solution’s model in which each user needs one uplink and one downlink channel.系統能否同時服務人口的 15%?25% 又如何?這裏依照提供的參考解答,採用每人需要一個上行頻道和一個下行頻道的模型。

Open the worked answer展開逐步解答

Step 1: Count cells. 700 km² / 1 km² = 700 cells. This is a count of radio coverage areas, not users.第 1 步:數小區。700 km² / 1 km² = 700 個小區。這是在數無線覆蓋區,不是在數使用者。

Step 2: Count one-way frequency channels. Convert 100 MHz to 100,000 kHz. Then 100,000 / 25 = 4,000 one-way channels. The guard space is already included in the 25 kHz, so do not subtract another guard.第 2 步:數單向頻率頻道。先把 100 MHz 換成 100,000 kHz,再算 100,000 / 25 = 4,000 個單向頻道。25 kHz 已包含保護間隔,不要再扣一次。

Step 3: Apply spatial reuse. The whole set of 4,000 channels is distributed across seven cells and reused in every seven-cell cluster. There are 700 / 7 = 100 clusters. Across the city, the ideal model therefore gives 4,000 × 100 = 400,000 one-way channel uses.第 3 步:計入空間重用。整套 4,000 個頻道分配給一群七個小區,然後在每群重用。全城有 700 / 7 = 100 群,所以理想模型下共有 4,000 × 100 = 400,000 個單向頻道使用位置。同一頻率可以在不同小區群重複服務不同人。

Step 4: Turn channel uses into users. One user needs two directions. Therefore 400,000 / 2 = 200,000 simultaneous users. This division is essential: a channel count is not yet a user count.第 4 步:由頻道換成人數。每人需要兩個方向,所以 400,000 / 2 = 200,000 名同時使用者。這個除以 2 不能省略:頻道數還不是人數。

Step 5: Compare demand. At 15%, demand is 1,000,000 × 0.15 = 150,000, below 200,000. The system meets the tutorial’s requirement. At 25%, demand is 250,000, above 200,000. It does not meet that later requirement.第 5 步:比較需求。15% 人口為 1,000,000 × 0.15 = 150,000 人,少於 200,000,符合題目要求。25% 則為 250,000 人,超過 200,000,因此不能滿足後一個要求。

Why use clusters instead of rounding each cell? 4,000 is not evenly divisible by seven. An ideal cluster can distribute the remainder among cells. Rounding every cell down first unnecessarily discards some channels. The supplied solution calculates at cluster level.為甚麼先按群計算,而不先把每個小區的頻道向下取整?因為 4,000 不能被 7 整除,但同一群內可以把餘下頻道分給部分小區。如果每個小區都先向下取整,便會無故丟掉一些可用頻道。提供的解答因此按小區群計算。

How could capacity grow? The reference answer halves each cell’s coverage area, creating 1,400 cells and capacity of 400,000 users in the same model. Alternatively, reducing the reuse cluster to four gives (700 / 4) × 4,000 / 2 = 350,000 users. That second change needs adequate interference control; extra arithmetic capacity is not proof that the radio design will work.怎樣增加容量?參考答案把每個小區面積減半,形成 1,400 個小區,同一模型的容量變成 400,000 人。另一個方法是把重用群縮為 4 個小區,得到 (700 / 4) × 4,000 / 2 = 350,000 人。但第二種改法需要足夠的干擾控制;算式上的容量增加,不代表無線設計一定可行。

Answer. “The ideal capacity is 200,000 simultaneous users because each user requires two one-way channels. This supports 150,000 users but cannot support 250,000 without expansion.”答案:理想容量為 200,000 名同時使用者,因為每人需要兩個單向頻道。因此可支援 150,000 人,但若不擴充,就不能支援 250,000 人。

This is the tutorial’s simplified capacity model. Real network planning also considers activity probability, geographic demand, control overhead, interference and a target blocking probability. Subscriber count and simultaneous active users are not normally identical.這是 tutorial 的簡化容量模型。真實規劃還會考慮使用者同時活躍的機率、地理需求分佈、控制開銷、干擾和可接受的阻塞率。「已登記客戶人數」通常不等於「同時活躍人數」。

Tut-list.pdf p. 5; Tut-list-Sol.pdf pp. 46–50. The two-channel assumption appears explicitly on solution p. 48.來源:Tut-list.pdf 第 5 頁;Tut-list-Sol.pdf 第 46–50 頁。每人兩個頻道的假設,明確寫於解答第 48 頁。