本章路線圖 / Learning path
- 1. Begin with the four basic ideas|先認識四個基本概念
- 2. Wireless is not the same as mobility|無線和流動不是同一概念
- 3. Follow a request through the system|追蹤一次請求
- 4. Why moving makes the problem harder|為何移動增加難度
- 5. Compare models step by step|逐步比較運算模式
- 6. Resource trade-offs|資源取捨
開啟補充筆記、計算與自測 / Open additional notes, calculations and quiz →
1. Begin with the four basic ideas|先認識四個基本概念
A device is a piece of equipment that performs computation. A network connects devices so they can exchange information. A communication link is the path used for one transfer. A service is useful work provided to a user, such as a map. Mobile computing combines computation with the ability for a user or device to change location.
裝置是執行運算的設備;網絡把裝置連接起來以交換資訊;通訊鏈路是一次傳送所經的通道;服務是提供給用戶的功能,例如地圖。流動運算結合運算與用戶或裝置改變位置的能力。
Example: a phone requests a map from a server through a cellular radio link. The phone is the client, the map provider is the server, and the map is the service. / 例子:手機經蜂窩無線鏈路向伺服器要求地圖。手機是客戶端,地圖供應端是伺服器,地圖是服務。
2. Wireless is not the same as mobility|無線和流動不是同一概念
Wireless refers to the medium: the signal travels without a physical cable for that link. Mobility refers to movement. A connection can be wireless but stationary; a device can be carried and perform offline computation without any wireless connection. In an exam, state the defining property and provide a counterexample.
無線描述媒介:該鏈路的訊號不經實體電纜傳送。流動性描述移動。連線可以無線但固定;裝置也可移動並離線運算,完全沒有無線連線。考試時應先寫定義,再給反例。
Fixed Wi-Fi camera: wireless, not mobile. Laptop editing a downloaded document while travelling: mobile computing, currently offline. / 固定 Wi-Fi 攝影機:無線但不流動;旅途中離線編輯文件的手提電腦:流動運算但當時沒有連線。
3. Follow a request through the system|追蹤一次請求
Step 1: the user interacts with the client app. Step 2: the device sends a request using an available access network. Step 3: a gateway or proxy may adapt or forward it. Step 4: a server processes it and returns a response. Step 5: the app displays or caches the result. Each stage may fail or introduce delay.
步驟 1:用戶操作客戶端應用程式。步驟 2:裝置經可用接入網絡發出請求。步驟 3:閘道或代理可調整及轉發請求。步驟 4:伺服器處理後回覆。步驟 5:應用程式顯示或快取結果。每個階段都可能失敗或產生延遲。
If the radio disconnects at step 2, a downloaded map may still work; live traffic updates may not. / 如果第二步無線連線中斷,已下載地圖可能仍可使用,但即時交通更新可能不能運作。
4. Why moving makes the problem harder|為何移動增加難度
As a device moves, signal strength, interference, access point, network address and available bandwidth can change. There is no guarantee that the next network provides identical service. Mobility management locates the device and supports handoff; applications can adapt quality or work offline.
裝置移動時,訊號強度、干擾、接入點、網絡地址及可用頻寬均可能改變。下一個網絡不保證提供相同服務。流動性管理負責尋找裝置及支援切換;應用程式可調整品質或離線工作。
Example: when walking out of Wi-Fi coverage, a phone may attach to cellular; if the app cannot preserve its session, an upload may need to resume. / 例如離開 Wi-Fi 範圍時手機可能轉到蜂窩網絡;若應用程式不能維持工作階段,上傳可能需要續傳。
5. Compare models step by step|逐步比較運算模式
Client-server: a client requests a service from a server. Central management is convenient, but the service depends on server availability and connectivity. In peer-to-peer (P2P), peers can both request and provide resources. Direct sharing can reduce central traffic, but locating peers, trust and churn become harder. A mobile agent moves code and state to execute at another host.
客戶端—伺服器:客戶端向伺服器請求服務。集中管理方便,但服務依賴伺服器可用性及連線。點對點 P2P:節點既可請求亦可提供資源。直接共享可減少中央流量,但尋找節點、建立信任及處理節點加入離開較困難。流動代理則把程式及狀態移至另一主機執行。
Exam method: for each advantage name the mechanism and consequence, e.g. direct peer exchange reduces traffic through a central server; do not merely write “P2P is better”. / 答題方法:每項優點須寫出機制和結果,例如直接交換減少中央伺服器流量,不能只寫「P2P 較好」。
6. Resource trade-offs|資源取捨
Battery energy, processing power, storage and network capacity are limited. Caching saves repeated downloads, but uses storage and risks stale data. Prefetching prepares for disconnection, but consumes energy and data if the prediction is wrong. Security and privacy controls also affect usability.
電池、運算能力、儲存空間及網絡容量均有限。快取減少重複下載,但佔空間且可能過時。預取有助應對斷線,但預測錯誤會浪費電量和流量。安全與私隱控制也會影響易用性。
When proposing a design, state both the benefit and its cost. / 提出設計時,同時說明好處和代價。