← 總目錄 / Contents

Chapter 04 · Mobile Ad Hoc Networks

流動自組網絡|English + 中文

根據第 04 章講義整理;英文概念後附中文解說。 / Based on lecture 04; English explanations are paired with Chinese.

重點筆記 / Core concepts

MANET and graph

A MANET is an infrastructureless network of moving nodes; each may forward traffic for others. Model nodes as vertices and radio links as edges. Mobility changes the graph, may disconnect paths and triggers route repair.

MANET 是沒有固定基建、由移動節點組成的網絡;各節點可為其他節點轉發。用頂點代表節點、邊代表無線鏈路;移動改變圖、可能切斷路徑並引發修復。

Flooding and broadcast storm

A node forwards a new broadcast once, tracked with source and sequence ID; duplicates are suppressed. Even so, simultaneous retransmissions cause redundancy, contention and collisions. Reduce relays using probability, counter-based methods or selected multipoint relays, accepting possible reachability trade-offs.

節點以來源及序號辨認新廣播,只轉發一次並抑制重複封包。即使如此,同時重傳仍可能造成冗餘、競爭及碰撞。可用機率、計數或選定中繼節點減少轉發,但可能影響覆蓋率。

Proactive vs reactive

Proactive protocols maintain routes before demand: low initial data delay but periodic control overhead and possibly stale routes. Reactive protocols discover routes on demand: less idle maintenance, but discovery latency and floods on cache misses.

主動式協定預先維護路徑:開始傳資料延遲較低,但有週期控制開銷及過期路徑問題。被動/按需式協定需要時才搜尋:閒置時維護較少,但找不到快取時要承受搜尋延遲及廣播。

DSDV, DSR and AODV

DSDV is proactive distance-vector with destination sequence numbers to prefer fresh information and avoid loops under its protocol rules. DSR is reactive source routing: the complete route is carried in data packets, with route caches. AODV is reactive and uses next-hop tables and destination sequence numbers. AODV usually has smaller data headers; DSR can learn multiple routes through caching.

DSDV 是主動式距離向量協定,以目的地序號選擇較新資訊,在協定規則下避免迴圈。DSR 是按需來源路由:資料封包攜帶完整路徑,並使用路由快取。AODV 亦為按需式,使用下一跳表及目的地序號。AODV 的資料標頭通常較小;DSR 可透過快取學習多條路徑。

Route discovery and maintenance

In DSR, source broadcasts RREQ; a destination or suitable cache can return RREP with a route. A link failure triggers RERR and invalidation; a new route may be discovered. AODV records reverse/forward next-hop state during RREQ/RREP; RERR reports broken routes.

DSR 的來源廣播 RREQ,目的地或適當快取可回覆包含路徑的 RREP。鏈路失效時透過 RERR 通知並使路徑失效,再按需要搜尋。AODV 在 RREQ/RREP 中建立反向/正向下一跳狀態,並以 RERR 報告斷線。

4.1 Model, connectivity and partition · Slides 3–10

Represent a MANET at a given instant by graph G=(V,E): V is the devices and an edge represents a usable link under the model. A path is a sequence of adjacent nodes; hop count is the number of links. Mobility may change E, and a partition means at least two groups have no path between them. Radio links need not be symmetric unless the question assumes symmetry.

在某一時刻以圖 G=(V,E) 表示 MANET:V 是裝置,邊代表模型中的可用鏈路。路徑由相鄰節點組成;跳數是鏈路數。移動會改變 E;網絡分割代表至少兩組之間沒有路徑。除非題目假設,無線鏈路不一定對稱。

4.2 Routing objectives and evaluation · Slides 12–18

A routing protocol must discover usable routes, forward data and react to breaks. Compare packet delivery ratio, path length, control overhead, discovery delay, scalability and energy use. No single protocol minimizes every metric: frequent updates improve freshness but consume bandwidth and power; on-demand discovery saves idle updates but delays the first packet.

路由協定要尋找可用路徑、轉發資料並處理斷鏈。可比較封包送達率、路徑長度、控制開銷、搜尋延遲、可擴展性及耗電。沒有一個協定可同時令所有指標最佳:頻密更新可提高資訊新鮮度但消耗頻寬及電量;按需搜尋節省閒置更新但延遲第一個封包。

4.3 Flooding step by step · Slides 19–30

The source broadcasts a packet with a unique source/sequence identifier. A node receiving it for the first time forwards it once; later copies are discarded. A connected static network can spread the packet widely without first discovering a route, but redundant transmissions cause a broadcast storm. Counter-based, probabilistic or relay-selection schemes reduce rebroadcasts with a possible coverage trade-off.

來源以唯一來源/序號廣播封包。節點首次收到時轉發一次,之後丟棄重複副本。在靜態且連通的網絡中,毋須預先找路也可廣泛傳播;但冗餘傳送可造成廣播風暴。計數式、機率式或選擇中繼方法可減少重播,但可能影響覆蓋。

4.4 DSDV route selection · Slides 32–43

Each table entry contains destination, next hop, hop count and a destination sequence number. Prefer a newer destination sequence number; for equally fresh routes, prefer a shorter metric under the protocol rules. Periodic and triggered advertisements propagate changes, including broken-link information. Sequence numbers help prevent loops but do not make control traffic free or ensure information is always current.

每個路由表項包括目的地、下一跳、跳數和目的地序號。先選較新的目的地序號;若新鮮程度相同,按協定規則選較短度量。週期性及觸發式通告傳播變化,包括斷鏈資訊。序號有助避免迴圈,但控制流量仍有成本,資訊也不可能永遠即時。

4.5 AODV discovery and reply · Slides 44–60

When S lacks a route, it broadcasts RREQ containing identifiers and sequence information. Nodes suppress duplicate requests and record a reverse next hop toward S. The destination, or an intermediate node with a sufficiently fresh route where allowed, returns RREP; each forwarding node creates or refreshes forward next-hop state. Data follows next-hop entries, rather than a full route in every packet.

當 S 沒有路徑時,廣播含識別及序號資訊的 RREQ。節點抑制重複請求,並記錄往 S 的反向下一跳。目的地或在規則允許下擁有足夠新路徑的中繼節點回覆 RREP;沿途節點建立或更新正向下一跳。資料依下一跳表轉發,毋須每個封包攜帶完整路徑。

4.6 DSR discovery and cache · Slides 62–76

A DSR RREQ accumulates the traversed path; the RREP returns an available route. The source places an ordered route in the data packet and intermediate nodes follow it. A route cache can satisfy a later request without a fresh network-wide discovery and nodes may learn overheard routes, but mobility can leave stale cached paths and long routes enlarge headers.

DSR 的 RREQ 累積所經路徑;RREP 返回可用路徑。來源把有序路徑放進資料封包,中繼節點依路徑轉發。路由快取可令後續請求免於重新全網搜尋,節點亦可學習旁聽到的路徑;但移動會令快取過期,長路徑亦會增大標頭。

4.7 Maintenance and loop reasoning · Slides 55–75

When an active next hop breaks, a node can report the failure using RERR and affected state is invalidated; the source may use another route or rediscover. DSR avoids loops in the recorded source path by rejecting repeated nodes in discovery; DSDV/AODV use sequence-number-based freshness rules. Explain the protocol mechanism and assumptions instead of claiming that stale information never exists.

當活動下一跳斷裂,節點可用 RERR 報告失效並使受影響狀態失效;來源可使用另一條路或重新搜尋。DSR 在搜尋時排除重複節點以避免記錄路徑出現迴圈;DSDV/AODV 使用基於序號的新鮮度規則。答題應說明機制和假設,不應聲稱資訊永遠不會過期。

4.8 OLSR, GPSR, ZRP and energy · Slides 31, 77–84

OLSR is proactive and selects multipoint relays to reduce redundant link-state flooding. GPSR greedily forwards toward the destination using positions and uses perimeter recovery at a local minimum. ZRP maintains routes proactively inside a zone and searches beyond it reactively. Energy-aware methods may use sleep schedules or power control, but must preserve connectivity and account for coordination.

OLSR 是主動式協定,以多點中繼減少鏈路狀態泛洪的冗餘。GPSR 利用位置貪婪地向目的地轉發,遇到局部最小值時使用周界恢復。ZRP 在區域內主動維護路徑,區域外按需搜尋。節能方法可採用睡眠排程或功率控制,但須維持連通並考慮協調。

逐頁講義原文 / Slide-by-slide source text

以下為講義英文文字的自動提取,讓你逐頁核對上方中英筆記及搜尋細節;它不是逐頁中文翻譯。圖表、公式排版及部分旋轉文字可能缺失,請以原 PDF 為準。
Automatically extracted English lecture text for checking the bilingual explanations. Figures, formula layout and some rotated text may be missing; consult the original PDF.
講義第 1 頁 / Lecture slide 1
                         Mobile Ad Hoc Networks
講義第 2 頁 / Lecture slide 2
Outline
     Mobile Ad Hoc Network (MANET) concept
           What is a MANET?
           Why do we need a MANET?
           Applications of MANETs
           Characteristics  of MANETs
           Graph model of MANET
     Routing in MANETs
講義第 3 頁 / Lecture slide 3
What Is a MANET?
    Infrastructure-  based wireless  networks                                                      AP
          Having infrastructure support to wired backbone                                wired network        AP
               Base stations (BS)  are the bridges
               A mobile host will communicate with the nearest BS
               E.g., Cellular networks / WLANs
          Reliable, but high setup costs and large set  up time
    Infrastructureless wireless networks
          Mobile ad hoc network (MANET) is formed by a group of mobile
          device without any BSs.
          Mobile devices support multi-hop communication
               Highly co-operative, each mobile device  is not only a
               transmitter/receiver, but also a router.
               A msg from a source to a destination may need the help of
               intermediate devices for relaying this msg.
講義第 4 頁 / Lecture slide 4
Why Do we Need a MANET?
     Infrastructure is unavailable, impractical, or expensive
          Remote areas (e.g., Amazon rainforest, Arctic Ocean) – deploying
          cables/towers costs millions and takes years
          Temporary high-density events (e.g., festivals, stadiums) – a cost-
          effective alternative to massive Wi-Fi/cellular deployment
     Infrastructure is destroyed in disaster areas or war zones
          Earthquakes, hurricanes, tsunamis – cell towers collapse, power
          lines and fibre cables are severely damaged
          Critical need for immediate communication for rescue coordination
          and military operations
          Ad hoc networks are self-forming – no reliance on fixed base
          stations
講義第 5 頁 / Lecture slide 5
MANET Applications
       Disaster recovery and rescue
       Ad hoc meetings
       Automated battlefields
       Wireless sensor networks
講義第 6 頁 / Lecture slide 6
Emerging MANETs
   VANET (Vehicular Ad Hoc Networks)
         High mobility, constrained by roads
         Uses DSRC / IEEE 802.11p
   FANET (Flying Ad Hoc Networks)
         UAVs as nodes, 3D mobility
         Frequent topology changes
   SAGIN (Space-Air-Ground Integrated
   Networks)
         In SAGIN, MANET acts as the ground segment.
         MANET is interconnected with UAV relays and
         satellites.
         SAGIN enables global seamless coverage, but
         introduces heterogeneous link challenges.
講義第 7 頁 / Lecture slide 7
MANET Characteristics
      No centralized entity
      Dynamic network topology
           Every node can be mobile
           Links are formed and broken with mobility
           Network topology changes frequently and unpredictably
           Lack of symmetrical links - possibly unidirectional links
      Energy-constrained operations powered by
      batteries
      Broadcast in nature - less reliable
               A                                         A                              B
                                   B
講義第 8 頁 / Lecture slide 8
Network Model
    Graph model of MANET
          Model the network as an undirected graph G(V, E)
               Vertex (V): mobile nodes
               Edge (E): wireless links (if two nodes are within
               transmission range)
          Unit Disk Graph (UDG) – Ideal theoretical model                                                      r
               Each node has a circular transmission range of radius r;
               If the Euclidean distance between two nodes is within r,
               there is an edge. If it's greater than r, there is no edge.
                                                                                                          N(A) = {H, I, J, K}
          Quasi-UDG – More realistic model that accounts for
          irregularities
               There is an inner disk where communication is
               guaranteed, and an outer disk where communication is
               unreliable. Between the two, the link exists with some
               probability.
講義第 9 頁 / Lecture slide 9
Network Model
    Graph model of MANET
         Metrics
               Node degree: the number of direct
               neighbors a node has / the number of
               edges incident to that vertex.
               Hop count: the number of edges a packet                                              Degree(A) = 4
                                                                                                 N1-hop(A) = {H, I, J, K}
               must traverse to go from a source node
                                                                                            N2-hop(A) = {L,M,N,O,P,Q,R,S,T,U}
               to a destination node.
               Neighbor set: the list of nodes that a
               given node can reach.
                    1-hop neighbor set
                    2-hop neighbor set
講義第 10 頁 / Lecture slide 10
Network Connectivity & Partitioning
    Random geometric graph theory
         For N nodes randomly scattered in a fixed area. If every node transmits with a
         short transmission range, the graph will be fragmented into many isolated
         islands. If nodes gradually increase the range, at a certain threshold, a giant
         connected component emerges that contains almost all nodes.
         This threshold is the critical transmission range for connectivity
    To keep a random ad hoc network connected with high probability, the
    average node degree needs to be roughly larger than 6.
         If the density drops below that, network connectivity becomes very difficult.
         That is, if the network is too sparse, no effective routing algorithm can create
         a path.
    Network partition occurs when
         Node density too low
         Mobility spreads nodes apart
         Detection mechanisms: hello-timeouts, no route replies
    Impact on routing
  Wei Lou @ Department ofPartitioned networks cannot deliver packets; route discovery fails Computing, Hong Kong Polytechnic Univ.                                                                                                                        Slide  10
講義第 11 頁 / Lecture slide 11
Outline
     Mobile Ad Hoc Network (MANET) concept
           What is a MANET?
           Why do we need a MANET?
           Applications of MANETs
           Characteristics  of MANETs
           Graph model of MANET
     Routing in MANETs
講義第 12 頁 / Lecture slide 12
Routing in MANETs
    The routing problem
         Route discovery: How to find a suitable path from source
         S to destination D?
         Packet forwarding: How to deliver a packet from S to D?
         Route maintenance: How to maintain the path?
                                                                                           Y
                                               S                                        Z
                                                         E
                                     B             C               F                  M        L
                              A                              G              J
                                          H                            K           D
                                                      I                                   N
講義第 13 頁 / Lecture slide 13
Routing in MANETs
     Routing in MANETs is challenging.
         Routing in MANETs needs multi-hop communications.
              Data traverses multiple hops from source to destination
              Nodes transmit and receive their own packets and also forward
              packets for other nodes.
                   In traditional wired networks, most nodes do not route packets.
         Routing in MANETs must consider both Layer 2 and 3 information
         (connectivity and interference).
              Traditional protocols rely on Layer 3 information only.
         Topologies are dynamic in MANETs due to mobile nodes.
              Topologies are relatively static in traditional networks.
              Topologies may change rapidly when nodes move fast.
         Periodic updates of routing tables in MANETs consume energy and
         bandwidth, but may be useless when no data is sent.
講義第 14 頁 / Lecture slide 14
MANET Routing
      Requirements
           Route computation should be distributed and localized.
           Nodes involved in route computation and state propagation should
           be as few as possible.
           Use short control messages to reduce control overhead.
           Routes should be loop-free.
           Flooding must be avoided as much as possible to reduce message
           overhead.
           Backup routes (multiple disjoint routes) should be available when
           the primary route becomes stale.
      Evaluation metrics
           Packet delivery ratio (PDR)
           End-to-end data throughput
           Route discovery latency
           Average end-to-end delay
           Control message overhead
   Wei Lou @ Department ofEnergy efficiency Computing, Hong Kong Polytechnic Univ.                                                                                                                        Slide  14
講義第 15 頁 / Lecture slide 15
Routing Protocols for MANET
                                                            MANET Routing Protocols
                       Proactive                                         Reactive                                             Hybrid
                    Table-driven                                       On-demand
                         OLSR                                              AODV
                         DSDV                                               DSR                                                 ZRP
                                                                           GPSR
講義第 16 頁 / Lecture slide 16
Routing Protocols for MANET
     Proactive Protocols                                        Reactive Protocols
          Table driven - continuously                                 On demand - maintain routes
          maintain consistent, up-to-                                 only when needed
          date routes                                                 Route discovery is usually
          When network topology                                       initiated by the source
          changes                                                     Long latency due to route
                Updating information will                             discovery
                be propagated throughout                              May not be appropriate for
                the network
          A lot of routing information                                real-time communication
          may never be used!                                          AODV, DSR, GPSR
          Low latency – routing
          information may be ready
          immediately when needed
          OLSR, DSDV
講義第 17 頁 / Lecture slide 17
Trade-Off
     Latency of route discovery
          Proactive protocols have lower latency since routes are
          maintained at all times.
          Reactive protocols have higher latency because a route
          from S to D needs to be found only when S attempts
          to send to D.
     Overhead of route discovery/maintenance
          Proactive protocols may have higher overhead due to
          continuous route updating.
          Reactive protocols may have lower overhead because
          routes are determined only when needed.
講義第 18 頁 / Lecture slide 18
MANET Routing Protocols
     Flooding
     Optimized Link State Routing (OLSR)
     Destination Sequenced Distance Vector
     (DSDV)
     Ad hoc On-demand Distance Vector (AODV)
     Dynamic Source Routing (DSR)
     Greedy Perimeter Stateless Routing (GPSR)
     Zone Routing Protocol (ZRP)
講義第 19 頁 / Lecture slide 19
Flooding
     A naive approach
          Sender S wants to send packet P to receiver D
               Sender S broadcasts P to all its neighbors
               Each neighbor receives P
                    If P is received for the first time, it forwards P to its neighbors
                    If P is a duplicated one, it will not forward P again
               If receiver D is reachable from S, then P can reach D
               D does not forward P any more
               Sequence numbers are used to avoid the possibility of forwarding
               the same packet more than once
     Flooding can be used to
          Send data packet directly
          Send control packet to find a path and then the path can
          be used to send data packet
講義第 20 頁 / Lecture slide 20
Flooding
                                                                                                                                  Y
                                                                                                                             Z
                                                 S                  E
                                B                                                     F
                                                        C                                             J                 M                 L
                 A                                                          G
                                        H                                                    K                      D
                                                             I                                                                   N
                                            Represents a node that has received packet P
                                            Represents that connected nodes are within  each
                                            other’s transmission range
講義第 21 頁 / Lecture slide 21
Flooding
Broadcast transmission                                                                                                                    Y
                                                                                                                                    Z
                                                          S                 E
                                         B                                                    F
                                                                 C                                            J                 M                L
                           A                                                        G
                                                 H                                                   K                      D
                                                                      I                                                                 N
                              Represents a node that receives packet P for
                              the first time
                              Represents transmission of packet P
講義第 22 頁 / Lecture slide 22
Flooding
                                                                                                                                                Y
                                                                                                                                          Z
                                                        S                   E
                                     B                                                          F
                                                                C                                                J                   M                  L
                      A                                                              G
                                               H                                                        K                        D
                                                                     I                                                                        N
                               Node H receives packet P from two neighbors
講義第 23 頁 / Lecture slide 23
Flooding
                                                                                                                               Y
                                                                                                                          Z
                                                S                 E
                               B                                                    F
                                                       C                                            J                M                L
                 A                                                        G
                                       H                                                   K                     D
                                                            I                                                                 N
           Node C receives packet P from G and H, but does not forward
           it again, because node C has already forwarded packet P once
講義第 24 頁 / Lecture slide 24
Flooding
                                                                                                                                                    Y
                                                                                                                                              Z
                                                            S                   E
                                          B                                                         F
                                                                    C                                                J                   M                 L
                          A                                                              G
                                                   H                                                        K                       D
                                                                          I                                                                       N
                          • Nodes J and K both broadcast packet P to node D
講義第 25 頁 / Lecture slide 25
Flooding
                                                                                                                                        Y
                                                                                                                                  Z
                                                     S                  E
                                   B                                                       F
                                                            C                                              J                 M                 L
                     A                                                          G
                                            H                                                     K                      D
                                                                 I                                                                    N
                     Node D does not forward packet P, because node D
                     is the intended destination of packet P
講義第 26 頁 / Lecture slide 26
Flooding
                                                                                                                                Y
                                                                                                                          Z
                                                    S                E
                                    B                                                  F
                                                           C                                         J                M               L
                       A                                                     G
                                            H                                                K                    D
                                                                I                                                             N
          •  Flooding completed
          • Nodes unreachable from S do not receive packet P (e.g. nodes   Z, Y)
          • Nodes for which all paths from S go through the destination D
            also do not receive packet P (e.g. node N)
講義第 27 頁 / Lecture slide 27
Flooding: Advantages
    Simplicity
    Efficient when information transmission frequency
    is low.
         The overhead of explicit route discovery/maintenance is
         relatively high.
               E.g., a node transmits small data packets infrequently while
               many topology changes occur between consecutive packet
               transmissions.
    High reliability for data delivery
         Packets may be delivered to the destination on multiple
         paths.
講義第 28 頁 / Lecture slide 28
Flooding: Disadvantages
     Very high overhead caused by duplicated packets.
          Packets may be delivered to too many nodes that do not
          need to receive them (in the worst case, all nodes
          reachable from sender may receive the packet).
          Nodes may receive too many redundant copies of the
          same packet.
     Contention problem
          Neighbors are likely to contend with each other for the
          medium when they try to retransmit the packet.
     Collision problem
          Retransmissions are likely to start at the same time and
          collide with each other.
講義第 29 頁 / Lecture slide 29
Flooding Problem in MANETs
      Flooding may cause broadcast storm problem.
          A packet transmission may trigger tremendous packet
          propagating throughout the network, which may result
          in high packet redundancy, high node contention and
          high packet collision that eventually lead to the collapse
          of the entire network functionality.
      How to solve this problem?
          To reduce the number of nodes that retransmit the
          packet.
               Probability-based scheme
               Counter-based scheme
               Distance-based scheme
               etc
講義第 30 頁 / Lecture slide 30
Solutions
     Probability-based scheme
           A node will retransmit the packet with a predefined probability p.
                When p = 1, this is flooding.
                A smaller p will reduce the storm effect.
     Counter-based scheme
           A node will retransmit the packet if the number of received copies
           is less than c   (a predefined counter).
           Otherwise, do not retransmit the packet.
           In practice, c = 3 is enough.
     Distance-based scheme
           A node may receive the same packet from several senders.
           The node calculates the distance to each sender.
                How to find distance? signal strength or GPS devices
           dmin = Min{the distance to each sender}
           If dmin > D (a threshold), then retransmit the packet.
           Otherwise, do not retransmit the packet.
講義第 31 頁 / Lecture slide 31
OLSR (Optimized Link State Routing)
        OLSR
             Proactive: It continuously maintains up-to-   date routing
             information by exchanging periodic control messages.
             Multipoint relays (MPRs)
                   Each node selects a minimal set of neighbors to retransmit
                   (broadcast) its messages, reducing flooding overhead.
             Topology control: Only designated MPR nodes flood link-
             state information across the network, keeping overhead low.
             Shortest path: Each node uses the gathered topology                                     Node A selects nodes H
             data to compute the next- hop route with the minimum                                    and K as MPR nodes. It
                                                                                                     suffices to reach all the
             hop count to destinations.                                                              two-hop neighbors of
                                                                                                     node A.
        Features
             Low overhead: MPR selection cuts down redundant
             retransmissions.
             Fast availability: Routing tables update proactively; no route
             discovery delay when sending data.
             Scalability: It performs well in large, dense wireless networks
             where regular flooding would fail.
   Wei Lou @ Department ofSuited for networks with low to moderate  Computing, Hong Kong Polytechnic Univ.                                                                                                                        Slide  31mobility.
講義第 32 頁 / Lecture slide 32
Destination Sequenced
Distance Vector (DSDV)
     DSDV
          Based on Bellman-Ford distance vector algorithm.
          Each node maintains a routing table to every destination.
          Each node periodically exchanges and updates routing information
          with neighbors upon topology change.
          Use sequence numbers to prevent routing loops and eliminate
          “count-to-infinity” problem.
     Advantages
          It offers rapid route setup (proactive).
          It successfully eliminates routing loops and requires very little
          modification to adapt.
     Disadvantages
          It generates significant control overhead due to constant periodic and
          triggered updates.
          It scales poorly in large networks or highly mobile environments,
          leading to increased end-to-end delays and packet drops.
講義第 33 頁 / Lecture slide 33
DSDV Protocol
     Every node maintains a routing table, including
           Destination – all possible destinations
           Next – the next hop to each destination
           Metric – the metric to each destination
           Sequence number – SN originated from destination ensures
           loop free
           Install Time – the time when the entry was last modified (used to
           delete stale entries from table)
           Stable Data – a pointer to a table holding information on how
           stable a route is  (used to damp fluctuations in network)
               Destination    Next     Metric       Seq. Nr      Install Time     Stable Data
                      A               A            0           A-550         001000             Ptr_A
                      B               B            1           B-102         001200             Ptr_B
                      C               B            3           C-588         001200             Ptr_C
                      D               B            4           D-312         001200             Ptr_D
講義第 34 頁 / Lecture slide 34
DSDV Protocol
    Each route is tagged with a destination sequence
    number.
         Each node performs periodic route updates, issuing a
         new sequence number.
         Sequence number continues increasing its value, which
         indicates the “freshness” of a route information.
              Routes with larger sequence numbers are more fresh.
              If same sequence number, one with smallest metric is used.
         The sequence number will be associated with the route
         entries destined to this node (so-called destination
         sequenced).
         Sequence numbers are used to avoid loops.
              Solve problems of DV routing (count-to-infinity, loops).
講義第 35 頁 / Lecture slide 35
DSDV Protocol: Route Advertisements
     Node advertises to each neighbor own routing
     information.
          Routing information includes
                Destination address
                Number of hops to destination
                Destination sequence number
          Rules to set the destination sequence number.
                On each advertisement, the node increases its own destination sequence
                number (use only even numbers).
                If a destination  node is no longer reachable (timeout), the node
                increases the sequence number of this node   by 1 (odd sequence number)
                and sets metric = ∞.
講義第 36 頁 / Lecture slide 36
DSDV Protocol: Route Selection
      Updated routing information is compared to own
      routing table.
           Select the route with the higher destination sequence
           number. (This ensures   that the newest information from
           the destination is always used.)
           Select the route with the better metric when sequence
           numbers are equal.
講義第 37 頁 / Lecture slide 37
DSDV Protocol
                          A                 1                                    2B                         C
            Dest. Next Metric   Seq                    Dest. Next Metric   Seq                  Dest.  Next  Metric  Seq.
               A      A       0    A-550                 A      A       1    A-550                 A      B       3     A-550
               B      B       1    B-100                 B      B       0    B-100                 B       B       2     B-100
               C      B       3    C-588                 C      C       2    C-588                 C       C       0     C-588
                                                                                          B  increases Seq.Nr from 100 -        > 102
                                                                                          B  broadcasts routing information
                                                                                          to Neighbors A, C including destination
                                                                                          sequence numbers
                                       (A, 1, A-550)                         (A, 1, A-550)
                                       (B, 0, B  -102)                       (B, 0, B  -102)
                                       (C, 1, C-588)                         (C, 1, C-588)
                         A                    1                                    1B                      C
           Dest. Next Metric   Seq                   Dest. Next Metric   Seq                  Dest.  Next  Metric  Seq.
              A      A       0    A-550                 A      A       1    A-550                A      B       2     A-550
              B      B       1    B-102                 B      B       0    B-102                B       B       1     B-102
              C      B       2    C-588                 C      C       1    C-588                C       C       0     C-588
講義第 38 頁 / Lecture slide 38
DSDV Protocol: Topology Changes
       When new routes are found
            Node sends a route advertisement message
            immediately.
            Route update information on new  routes is
            immediately propagated to neighbors.
            Full update / incremental update.
                Full update: route advertisement message includes
                all routing information from own table.
                Incremental update: route advertisement message
                includes only entries that have been changed.
講義第 39 頁 / Lecture slide 39
DSDV Protocol
  New Node
                                              2. Insert entry for D with
                                              sequence number D-000
                                              Then immediately broadcast own
                                              table                                                     1.  D broadcast for the first time
                                                                                                        Send Sequence  number D-000
                                                                                                                           (D, 0, D-000)
                     A                                                                                                      DBC
       Dest. Next Metric   Seq.                  Dest. Next Metric  Seq.                  Dest. Next Metric   Seq.
         A      A       0     A-550                 A      A       1    A-550                A      B       2     A-550
         B      B       1     B-102                 B      B       0    B-102                B      B       1     B-102
         C      B       2     C-590                 C      C       1    C-590                C      C       0     C-590
                                                                                             D      D       1     D-000
講義第 40 頁 / Lecture slide 40
DSDV Protocol
 New Node (cont’d)
                                                                                                      3. C increases its sequence
                                                                                                      number to C-592 then
                                  4. B gets this new information                                      broadcasts its new  table.
                                  and updates its table…….
                                                                              (A, 2, A-550)                 (A, 2, A-550)
                                              ………                             (B, 1, B-102)                 (B, 1, B-102)
                                              ………                             (C, 0, C-592)                 (C, 0, C-592)
                                                                              (D, 1, D-000)                 (D, 1, D-000)
                     A                                                                                                      DBC
        Dest. Next Metric   Seq.                 Dest. Next Metric  Seq.                 Dest. Next Metric   Seq.
           A      A       0     A-550               A      A       1    A-550              A      B       2     A-550
           B      B       1     B-102               B      B       0    B-104              B      B       1     B-102
           C      B       2     C-590               C      C       1    C-592              C      C       0     C-592
                                                    D      C       2    D-000              D      D       1     D-000
講義第 41 頁 / Lecture slide 41
DSDV Protocol: Topology Changes
    When links are found broken
        Node assigns broken links a metric value of ∞.
        Any route through the broken link is also
        assigned a value of ∞.
        “∞” routes are assigned with new odd sequence
        numbers and immediately triggers a route
        update message propagation.
        If a node has an equal/higher sequence number
        with a finite metric for an “∞” route, the node’s
        route table is updated and a route update
        message is sent immediately.
講義第 42 頁 / Lecture slide 42
DSDV Protocol
 Broken Links
                                               2. B does its broadcast                                       1.  Node C  detects broken Link:
                                               -> no affect on C  (C knows that B                            ->  Increase Seq. Nr.  by  1
                                               has stale information  because C has                          (only case where not the destination
                                               higher seq. number for destination D)                         sets the sequence number -> odd
                                                -> no loop -       > no count to infinity                    number)
                                          (D, 2, D-100)                  (D, 2, D-100)
                       A                                                                                                      DBC
         Dest.    Next    Metric     Seq.            Dest.    Next    Metric     Seq.            Dest.    Next   Metric      Seq.
            …       …        …                         …        …        …                         …       …         …
            D        B        3     D-100               D       C         2     D-100              D        D        ∞     D-101
講義第 43 頁 / Lecture slide 43
DSDV Protocol
Broken Links (cont’d)
                 3.  Immediate propagation                   2.  Immediate propagation                   1.  Node C  detects broken Link:
                 B  to A:                                    C to B:                                     ->  Increase Seq. Nr.  by  1
                 (update information has higher              (update information has higher              (only case where not the destination
                 Seq. Nr. -> replace table entry)            Seq. Nr. -> replace table entry)            sets the sequence number -> odd
                                                                                                         number)
                                       (D, ∞, D-101)                       (D, ∞, D-101)
                      A                                                                                                      DBC
         Dest.Dest.NextNextMetricMetricSeq.Seq.   Dest.Dest.Next  Metric     Seq.          Dest.Dest.NextNextMetricMetricSeq.Seq.
           ……      ……       ……       ...            …c     Next…  Metric…    Seq....          ……      ……      ……
           D        B       4     D-100             …       …        …                        D       B        1     D-100
           D        B       3     D-100              D       C       2      D-100             D       D        1     D-100
                                                     D       C        3     D-100
           D        B       ∞     D-101              D       C       ∞      D-101             D       D       ∞      D-101
講義第 44 頁 / Lecture slide 44
Ad hoc On-demand Distance Vector
(AODV)
   Pure on-demand routing protocol (reducing packet overhead)
        A node performs route discovery or maintenance only when it needs a
        route to another node or it offers its route services as an intermediate
        node.
        Nodes that are not on active paths do not maintain routing information
        and do not participate in routing table exchange.
   Use flooding for route discovery.
   Use hop-by-hop routing
        Routes are built based on dynamic table entries maintained at
        intermediate nodes.
講義第 45 頁 / Lecture slide 45
AODV Protocol
  Each node uses HELLO messages to determine local
  connectivity.
  Each node maintains a route table, including following route
  entries.
       Destination address, next-hop neighbor, hop count, destination
       sequence number, and expiration time for the route table entry.
  Source node runs route discovery via RREQ (Route Request),
  destination node or intermediate node replies RREP (Route
  Reply).
       To build route table entries
  Sequence numbers are assigned to routes and routing table
  entries to ensure loop-freeness and freshness.
講義第 46 頁 / Lecture slide 46
AODV Protocol: Route Discovery
   Route discovery procedure is initiated whenever nodes want
   to communicate.
   Source node broadcasts Route Request packets (RREQ) to
   neighboring nodes
   RREQ format:
   < source_addr, source_sequence_# , broadcast_id, dest_addr,
      dest_sequence_#, hop_cnt >
        RREQ is uniquely identified by <source_addr , broadcast_id>.
        broadcast_id  is incremented with every RREQ.
        Dest_sequence_# indicates freshness of route to the destination.
        Source _sequence _# indicates freshness of reverse route to the
        source.
講義第 47 頁 / Lecture slide 47
AODV Protocol: Route Discovery
    When a neighboring node receives RREQ
         If the neighbor itself is the target, or knows a more
         recent route, the node sends Route reply (RREP)
         RREP format:
         <source_addr, dest_addr, dest_sequence_#, hop_cnt, lifetime>
         Otherwise,   the node forwards RREQ after incrementing
         hop_cnt and sets up a pointer to the neighbor from
         whom RREQ was received  (reverse path).
講義第 48 頁 / Lecture slide 48
AODV Protocol
      Reverse path setup
            When a node forwards a RREQ, it sets up a reverse route
            entry for the source in its routing table.
            This reverse route entry contains                                                 Reverse route entry
                  source node ID
                                                                                              A  RREQ     B            C
                  source sequence number
                        used to maintain freshness                                  Source     Sequence      Number      Neighbor
                         about reverse route to source.                                ID        Number        of hops        ID
                                                                                       A                    A-1                     1                     A
                  number of hops                                                                       Node B
                  neighbor ID                                                                                  RREQ
                        from which the RREQ was                                              A           B            C
                         received.                                                   Source     Sequence      Number      Neighbor
                                                                                       ID        Number        of hops        ID
                                                                                       A                    A-1                     2                     B
講義第 49 頁 / Lecture slide 49
AODV Example: Route Discovery
                                                                                                                            Y
                                                                                                                       Z
                                                   S                E
                                   B                                                F
                                                         C                                         J               M               L
                       A                                                   G
                                           H                                               K                   D
                                                              I                                                            N
                     Represents a node that has received RREQ for D from S
講義第 50 頁 / Lecture slide 50
AODV Example: Route Discovery
     Broadcast transmission                                                                                                Y
                                                                                                                      Z
                                                  S                E
                                   B                                                F
                                                         C                                        J               M              L
                      A                                                   G
                                           H                                              K                   D
                                                             I                                                            N
                         Represents transmission of RREQ
講義第 51 頁 / Lecture slide 51
AODV Example: Route Discovery and
Reverse Path Setup
                                                                                                                    Y
                                                                                                               Z
                                                S               E
                                  B                                            F
                                                      C                                     J              M              L
                      A                                                G
                                         H                                           K                  D
                                                           I                                                       N
                                             Represents links on Reverse Path
講義第 52 頁 / Lecture slide 52
AODV Example: Route Discovery and
Reverse Path Setup
                                                                                                         Y
                                                                                                     Z
                                            S             E
                               B                                        F
                                                 C                                  J            M            L
                    A                                           G
                                     H                                       K                D
                                                     I                                                  N
        •  Node C receives RREQ from G and H, but does not forward
           it again, because node C has already forwarded RREQ once
           (i.e. same request ID)
講義第 53 頁 / Lecture slide 53
AODV Example: Route Discovery and
Reverse Path Setup
                                                                                                                          Y
                                                                                                                     Z
                                                   S               E
                                    B                                              F
                                                         C                                       J               M              L
                       A                                                  G
                                           H                                             K                   D
                                                             I                                                          N
講義第 54 頁 / Lecture slide 54
AODV Example: Route Discovery and
Reverse Path Setup
                                                                                                              Y
                                                                                                         Z
                                              S             E
                                B                                          F
                                                   C                                    J             M             L
                     A                                             G
                                       H                                         K                 D
                                                       I                                                     N
             • Node D does not forward RREQ, because node D
                 is the intended target of the RREQ
講義第 55 頁 / Lecture slide 55
AODV Protocol: Route Reply
     Destination node sends the RREP that contains
          Destination’s current sequence #, hop count = zero, length of valid
          time for the route to this destination.
     Intermediate node (not the destination) may also send a
     RREP if it knows a more recent path than the one previously
     known to the source.
          Destination sequence number  is used to determine whether a path is
          more recent.
               A path is more recent if the sequence # in the routing table is larger than
               the destination sequence # specified in RREQ.
     Intermediate node sends the RREP that contains
          Record of the destination sequence #, hop count from the
          destination, amount of valid time for the route to this destination.
講義第 56 頁 / Lecture slide 56
AODV Protocol
      Forward path setup
            Destination sends back RREP.
            Intermediate node forwards
            RREP back to source along the                                                      Forward route entry
            reverse path.                                                                                       RREP
                                                                                              A             B            C
            Forward links are setup                                             Destination      Sequence       Number       Neighbor
                                                                                     ID           Number         of hops         ID
            when RREP travels along                                                   C                         C-6                      1                       C
            the reverse path.                                                                           Node B
                                                                                                  RREP
            Updates information on                                                            A             B            C
                                                                                Destination      Sequence       Number       Neighbor
            reception of subsequent                                                  ID           Number         of hops         ID
                                                                                      C                         C-6                      2                       B
            RREPs.                                                                                      Node A
講義第 57 頁 / Lecture slide 57
AODV Example: Route Reply
                                                                                                                               Y
                                                                                                                          Z
                                                   S                E
                                  B                                                   F
                                                         C                                           J                M               L
                     A                                                      G
                                          H                                                 K                     D
                                                              I                                                               N
                                   Represents links on path taken by RREP
講義第 58 頁 / Lecture slide 58
AODV Example: Forward Path Setup
                                                                                                                           Y
                                                                                                                      Z
                                                 S                E
                                 B                                                 F
                                                       C                                         J                M               L
                    A                                                    G
                                         H                                               K                    D
                                                            I                                                             N
                                    Represents a link on the forward path
講義第 59 頁 / Lecture slide 59
AODV Protocol: Data Delivery
       Source node delivers the data packet to destination via
       the established forward path hop-by-hop.
                                                                                                           Y
                                                DATA                                                   Z
                                           S              E
                             B                                          F
                                                 C                                   J             M             L
                  A                                             G
                                    H                                         K                 D
                                                     I                                                    N
     Forward route entry in routing tables is used to forward data packet.
     Route is not included in packet header.
講義第 60 頁 / Lecture slide 60
AODV Protocol: Route Maintenance
  Route changes can be detected by…
       Failure of periodic HELLO packets
       Failure or disconnect indication from the link level
       Failure of transmission of a packet to the next hop (can detect by
       listening for the retransmission if it is not the final destination)
  The upstream (toward the source) node detecting a failure
  propagates an route error (RERR) packet to the source node
  with a new destination sequence number and a hop count of
  infinity (unreachable).
  The source (or another node on the path) can rebuild a path
  by sending a RREQ packet.
講義第 61 頁 / Lecture slide 61
AOMDV (Ad Hoc On-Demand
Multipath Distance Vector)
  AOMDV: Multipath routing for reliability
        Single path may break frequently.
        AOMDV maintains multiple loop-free paths.                                                link-disjoint path
        Two types: link-disjoint and node-  disjoint paths
  Benefits:
        Fast recovery without new route discovery.                                              node-disjoint path
        Load balancing potential.
講義第 62 頁 / Lecture slide 62
Dynamic Source Routing (DSR)
      DSR is a reactive (on-demand), loop- free source
      routing protocol.
            Source routing
                 Source determines the entire path to the destination.
            Distributed routing (for comparison)
                 Each node determines its next hop by itself.
                 The path to the destination is determined by all the nodes’ next
                 hop nodes step-by-step.
                                                                         Header
      Header                                                                D            packet
       B-C-D         packet                                               A              B              C               D
     A               B             C               D               Dest.         Next  Dest.         NextDest.         Next
    A sample source routing                                          D                B D                CD                D
                                                                  Routing table
                                                                    A sample distributed routing
講義第 63 頁 / Lecture slide 63
Dynamic Source Routing (DSR)
      There are no periodic routing advertisement messages.
            This reduces network bandwidth overhead.
      The source uses a route discovery                             procedure to find a
      path to the destination.
           Route discovery is triggered only if a path for sending packets to a
           destination is needed and no path is currently available.
      Route maintenance is needed only while the path is
      continuously in use.
           Route maintenance monitors the correct operation of a route in use.
      Each node also maintains a route cache that stores learned
      routes for future transmissions.
講義第 64 頁 / Lecture slide 64
DSR Protocol: Route Discovery
     Source S initiates a Route Request (RREQ) and broadcasts
     the RREQ to all its neighbors.
     On receiving the first RREQ
          A neighbor node (say E) forms a source route RTs2d  by appending
          itself to the source S (i.e.,[S,E]) in the RREQ.
          The neighbor node caches the route RTs2d stored in RREQ locally.
          The neighbor node then broadcasts the RREQ to all its neighbors.
     This process continues on each neighbor until the RREQ is
     received by the destination D. The RREQ contains the source
     route RTs2d.
講義第 65 頁 / Lecture slide 65
DSR Protocol: Route Discovery
                                                                                                                    Y
                                                    [S]                                                        Z
                                             S               E
                              B                                               F
                                                   C                                       J               M              L
                  A                                                  G
                                      H                                             K                   D
                                                        I                                                          N
                        Represents transmission of RREQ
            [X,Y]       Represents list of identifiers appended to RREQ
講義第 66 頁 / Lecture slide 66
DSR Protocol: Route Discovery
                                                                                                                                     Y
                                                                                                                                Z
                                                     S                 E        [S,E]
                                    B                                                     F
                                                            C                                            J                 M                L
                     A                                      [S,C]              G
                                            H                                                   K                      D
                                                                 I                                                                  N
講義第 67 頁 / Lecture slide 67
DSR Protocol: Route Discovery
                                                                                                                                      Y
                                                                                                                                Z
                                                      S                 E
                                     B                                                    F        [S,E,F]
                                                             C                                            J                M                 L
                       A                                                        G
                                             H                                                   K                     D
                                                                  I         [S,C,G]                                                 N
講義第 68 頁 / Lecture slide 68
DSR Protocol: Route Discovery
                                                                                                                                       Y
                                                                                                                                  Z
                                                        S                 E
                                       B                                                    F           [S,E,F,J]
                                                               C                                            J                M                L
                         A                                                        G
                                                H                                                  K                     D
                                                                    I                                     [S,C,G,K]                   N
講義第 69 頁 / Lecture slide 69
DSR Protocol: Route Discovery
                                                                                                                                        Y
                                                                                                                                  Z
                                                       S                  E
                                                                                            F                          [S,E,F,J,M]
                                      B                       C                                                               M                L
                                                                                                            J
                        A                                                         G
                                               H                                                   K                      D
                                                                    I                                                                 N
講義第 70 頁 / Lecture slide 70
DSR Protocol: Route Reply
     On receiving the first RREQ, destination D obtains a route
     RTd2s by reversing the route RTs2d appended to received
     RREQ.
          RREP includes the route RTs2d
     Node D sends a Route Reply (RREP) on route RTd2s.
          The RREP is routed to source S along the route RTd2s
          The neighbor node caches the route RTs2d  locally.
     This process continues until source S receives the RREP.
     On receiving RREP, node S caches the route RTs2d included
     in the RREP.
講義第 71 頁 / Lecture slide 71
DSR Protocol: Route Reply
                                                                                                                             Y
                                                                                                                        Z
                                                 S                 E        RREP [S,E,F,J,D]
                                 B                                                  F
                                                        C                                          J                M               L
                    A                                                     G
                                         H                                                K                     D
                                                             I                                                              N
                           Represents RREP control message
講義第 72 頁 / Lecture slide 72
DSR Protocol: Data Delivery
      When node S sends a data packet to D, the entire
      route is included in the packet header.
      Intermediate nodes use the source route included
      in a packet to determine to whom a packet should
      be forwarded.
講義第 73 頁 / Lecture slide 73
DSR Protocol: Data Delivery
                                                                                                                             Y
                                                         DATA [S,E,F,J,D]                                               Z
                                                  S                E
                                  B                                                 F
                                                         C                                         J                M               L
                     A                                                     G
                                          H                                                K                    D
                                                              I                                                             N
            Packet header size grows with route length
講義第 74 頁 / Lecture slide 74
DSR Optimization: Route Caching
    When node S finds route [S,E,F,J,D] to node D, node S also
    learns route [S,E,F] to node F
    When node K receives Route Request RREQ [S,C,G] destined
    for node D, node K learns route [K,G,C,S] to node S
    When node F forwards Route Reply RREP [S,E,F,J,D], node F
    learns route [F,J,D] to node D
    When node E forwards Data [S,E,F,J,D], node E learns route
    [E,F,J,D] to node D
    A node may also learn a route when it overhears data
    transmission
    Problem: stale caches may increase overheads
講義第 75 頁 / Lecture slide 75
DSR Advantages and Disadvantages
       Advantages
            No periodic updates.
            Intermediate nodes need not maintain state.
       Disadvantages
            Stale cache entries cause packet losses.
            Header overhead grows with path length.
講義第 76 頁 / Lecture slide 76
AODV vs DSR: Which One to Choose?
   Aspect                  AODV                                    DSR
   Routing strategy    Per-destination next-hop         Full source route
   Loop-free             Guaranteed by seq. #              Guaranteed by source route
   Overhead                 Lower for long path                Higher header overhead for
                                                                              long path
   Suitability               Dense, moderately dynamic                        Small networks, high mobility
                                 networks                                     networks
      No absolute winner – depends on scenario!
講義第 77 頁 / Lecture slide 77
Greedy Perimeter Stateless Routing
(GPSR)
  GPSR: Geographic routing protocol
        Use periodic beaconing only for one-hop neighbor discovery.
        Nodes use location information (e.g., via GPS) for routing.
              Greedy forwarding
                   Node forwards packets to its neighbor closest to
                     destination as the next- hop node step by step
                     until reaching the destination.
              Perimeter forwarding
                   If a packet reaches a local maximum (i.e., a spot
                     where no neighbor is closer to the destination
                     than the current node), greedy forwarding fails.
                   Node switches to perimeter mode to route the
                     packet around the edge (perimeter) of the void
                     using a planar subgraph until  it can resume
                     greedy forwarding.
講義第 78 頁 / Lecture slide 78
Greedy Perimeter Stateless Routing
(GPSR)
  GPSR key features
       Scalability: Nodes only store their neighbors’ state
       information. The protocol scales efficiently when network
       size increases.
       Mobility adaptability: GPSR dynamically adapts to
       frequent topology changes as  routing decisions rely
       entirely on geographic positions rather than fixed path
       histories.
講義第 79 頁 / Lecture slide 79
Zone Routing Protocol (ZRP)
   Hybrid of table-driven and on-demand routing
   Each node defines a routing zone with r hops
        Intra-zone routing
             Within each zone, using proactive routing (e.g., DSDV).
             A node keeps routing information within a zone.
             However, a node does not keep global routing information outside
             the zone.
        Inter-zone routing
             Reactive routing using bordercasting (send RREQ to border nodes).
   Choice of r is critical:
        large r → more proactive overhead
        small r → more reactive latency
講義第 80 頁 / Lecture slide 80
ZRP: Route Discovery
   Route discovery is done
   by an operation called
   boardercasting                                                                              Zone  of  Node Y
         send the route-  request                                                                 Border Node
         (RREQ) to boarder nodes
         The boarder nodes forward                                                       Zone  of  Node Y
         the RREQ within their
         zones                                                                                                     Zone Radius =
                                                                            Border Node                Node X         r Hops
                                                                                  Node Z
                                                                                                             Zone of Node X
                                                                             Zone of Node Z                       Bordercasting
講義第 81 頁 / Lecture slide 81
ZRP Example
講義第 82 頁 / Lecture slide 82
Energy Management in MANET
   Energy consumption model in MANET
        Battery is the most critical resource.
        Power states
             Transmit, receive, idle, sleep
             Different states have large power consumption
             differences (Tx > Rx > Idle >> Sleep).
   Energy management
        Objectives
             Minimize total energy per packet routing.
             Maximize residual energy to prolong network lifetime.
講義第 83 頁 / Lecture slide 83
Energy Management in MANET
   Energy-aware routing
       Choose path with nodes having highest remaining
       energy.
   Topology control
       Adjust transmission power dynamically to preserve
       connectivity while reducing interference.
   Sleep scheduling
       Turn off idle radios to save power consumption
       and wake-up when needed.
講義第 84 頁 / Lecture slide 84
Emerging Trend
    Cross-layer design
          Cross-layer design breaks the strict OSI model.
          Why needed?
                Physical, MAC, and routing are tightly coupled in wireless
                     Ex 1: Routing metric uses MAC-layer retry count to assess link quality
                       (rather than just hop count).
                     Ex 2: Physical SNR fed to routing to avoid weak links.
          Advantages
                Improved performance.
          Disadvantages
                Loss of modularity.
                Increased complexity.
講義第 85 頁 / Lecture slide 85
Emerging Trend
    Machine learning for MANET routing
          Reinforcement learning (RL): dynamically select best
          routing protocol or adjust hello intervals based on observed
          performance.
          Graph neural networks (GNN): predict link breakage
          probability from topology snapshots.
          Key concern
               ML inference adds significant computational overhead.
          May not be suitable for resource-  constrained nodes.
講義第 86 頁 / Lecture slide 86
Summary
     MANETs
            Applications
            Characteristics
            Routing in MANETs
                   Flooding, OLSR, DSDV, AODV, DSR, GPSR, ZRP
講義第 87 頁 / Lecture slide 87
References
     RFCs:
           RFC 2501 – MANET
           RFC 3561 – AODV
           RFC 4728 – DSR
           RFC 3626 – OLSR
           RFC 5449 – MPR Extension
     Survey papers:
           A. Boukerche, et al., “Routing protocols in ad hoc networks –  A survey”,
           Computer Networks, Vol. 55, Issue 13, 2011, pp. 3032–       3080.
           S.K. Das and S. Tripathi, “Intelligent energy-aware efficient routing  for
           MANET”, Wireless Networks, Vol. 24, 2018, pp.1139–       1159.
     Reference books:
           C.K. Toh, “Ad Hoc Mobile Wireless Networks: Protocols and Systems”, Prentice
           Hall PTR, 2002.
           W. Stallings,  “Wireless Communications  and Networks”, Prentice Hall PTR,
           2002.