Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
LIGHTWEIGHT PACKET-DROP DETECTION FOR AD HOC NETWORKS
Document Type and Number:
WIPO Patent Application WO/2007/044038
Kind Code:
A3
Abstract:
In packet-drop attacks in ad hoc networks, a malicious network node choose to selectively drop packets that are suppose to be forwarded, wich results in adverse impact on application good-put and network stability. A method and system for detection of packet-drop attacks in ad hoc networks requires network nodes to report statistics on IP flow packets originated, received, or forwarded to neighbors. These statistics are analyzed and correlated to determine nodes suspected of dropping packets.

Inventors:
TALPADE RAJESH R (US)
ANJUM FAROOQ (US)
Application Number:
PCT/US2005/044895
Publication Date:
December 13, 2007
Filing Date:
December 12, 2005
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
TELCORDIA TECH INC (US)
TALPADE RAJESH R (US)
ANJUM FAROOQ (US)
International Classes:
H04J1/16; H04L12/28
Foreign References:
US20040123142A12004-06-24
US20040199664A12004-10-07
US20040103282A12004-05-27
Other References:
See also references of EP 1844562A4
Attorney, Agent or Firm:
FEIG, Philip, J. et al. (INC.One Telcordia Drive 5g11, Piscataway NJ, US)
Download PDF:
Claims:

CLAIMS

What is claimed is:

1. A method of determining nodes suspected of dropping packets in an ad hoc network comprising the steps of: creating statistics at network nodes in the ad hoc network regarding IP flow packets originated, received, or forwarded to neighbors; and analyzing the statistics to determine network nodes suspected of dropping packets.

2. A method as set forth in Claim 1, where said creating statistics comprises: initiating flow database at node to null; for each IP packet originated at or transiting node; check if source and destination IP address pair exists in flow database if flow does not exist; create new entry for flow (defined by unique source and destination IP address pair); set Sampling-Start-Time to current time; increment Received-Packet-Count; increment Forwarded-Packet-Count for current Next-Hop-IP; if current Next-Hop-IP does not exist in Next-Hop-Structure, create entry and update;. else, update existing entry; reset Liveness for flow; and go to check if source and destination IP address pair exists in flow database for next flow step.

3. A method as set forth in Claim 2, further comprising forwarding the statistics to a coordinator node.

4. A method as set forth in Claim 1, where said creating statistics comprises:

initiate Reporting-Time-Slot; when current Reporting-Time-Slot ends for all flows in database send report to coordinator node that includes following information obtained from the flow's database entry: source and destination IP, Sampling-Start-Time, Received-Packet-Count, and Next-Hop-Structure; reduce Liveness in flow's database entry by Reporting-Time-Slot; if Liveness < zero, delete flow from database; else, in the flow's database entry, reset Sampling-Start-Time to the current time, Received-Packet-Count to zero, and Forwarded-Packet-Count for all Next-Hop-IP in Next-Hop-Structure to zero; and

• Go to initiate Reporting-Time-Slot step.

5. A method as set forth in Claim 4, further comprising forwarding the statistics to a coordinator node.

6. A method as set forth in Claim 1, where said analyzing the statistics comprises: for each received message from a network node separate out reports for individual flows within message; for each individual flow report in message if no entry exists for that flow in Flow-List maintained at coordinator node create new entry for flow (Each Flow-List entry includes a list of nodes (Flow-Node-List) that have sent reports about flow); start Flow-Timer for flow 704; if no entry exists for node in Flow-Node-List of Flow-List create new entry for node (Each entry in Flow-Node-List has Report- Duration = (current time - Sampling-Start-Time), Received-Packet-Count, and Next- Hop-Structure);

else if entry for node exists in Flow-Node-List, then ignore report since it is duplicate (each node sends one report per flow during each Reporting-Time-Slot); and go to separate out reports for individual flows within message step.

7. A method as set forth in Claim 6, further comprising: when a Flow-Timer expires, for each node entry X in Flow-Node-List belonging to flow; if Received-Packet-Count is not equal to the sum of Forwarded-Packet- Count for all Next-Hop-IP in Next-Hop-Structure, increment Suspect-Counter for node X by difference/Received-Packet-Count; for each node entry X in Flow -Node-List belonging to flow for each Next-Hop-IP in Next-Hop-Structure, decrement Received- Packet-Count in Next-Hop-IP's Flow-Node-List entry, by Forwarded-Packet- Count in Next-Hop-Structure of X; for each node entry X in Flow-Node-List belonging to flow if abs(Received-Packet-Count)/(sum of Forwarded-Packet-Count) > Permissible-Packet-Loss increment Suspect-Counter in Network-Node-List entry for node X, by abs(Received-Packet-Count)/(sum of Forwarded-Packet-Count) and increment Suspect-Counter in Network-Node-List entry for all nodes that list X as Next-Hop-IP in their Flow-Node-List entry, by abs(Received-Packet- Count)/(sum of Forwarded-Packet-Count) 806. else decrement Suspect-Counter in Network -Node -List entry for node X, by Credit-Value and decrement Suspect-Counter in Network-Node-List entry for all nodes that list X as Next-Hop-IP in their Flow-Node-List entry, by Credit- Value; and delete flow entry from unique flow list.

8. A method as set forth in Claim 7, further comprising: set LiPaD-Timer; when LiPaD-Timer expires, generate ordered list of "suspect" nodes by Suspect- Counter values; and go to set LiPaD Timer step.

9. A method as set forth in Claim 8, further comprising said analyzing the statistics penalizing and rewarding network nodes for identifying lying nodes.

10. An ad hoc network including lightweight packet-drop detection comprising: a plurality of network nodes reporting statistics regarding IP flow packets originated, received, or forwarded to neighbor network nodes; and at least one coordinator node associated with one or more network nodes for receiving the reports and analyzing the statistics for determining network nodes suspected of dropping packets.

11. An ad hoc network as set forth in Claim 10, where each network node reports statistics by: initiating flow database at node to null; for each IP packet originated at or transiting node; check if source and destination IP address pair exists in flow database if flow does not exist; create new entry for flow (defined by unique source and destination IP address pair); set Sampling-Start-Time to current time; increment Received-Packet-Count; increment Forwarded-Packet-Count for current Next-Hop-EP; if current Next-Hop-IP does not exist in Next-Hop-Structure, create entry and update;. else, update existing entry; reset Liveness for flow; and go to check if source and destination IP address pair exists in flow database for next flow step.

12. An ad hoc network as set forth in Claim 10, where each network node reports statistics by: initiate Reporting-Time-Slot;

when current Reporting-Time-Slot ends for all flows in database send report to coordinator node that includes following information obtained from the flow's database entry: source and destination IP, Sampling-Start-Time, Received-Packet-Count, and Next-Hop-Structure; reduce Liveness in flow's database entry by Reporting-Time-Slot; if Liveness < zero, delete flow from database; else, in the flow's database entry, reset Sampling-Start-Time to the current time, Received-Packet-Count to zero, and Forwarded-Packet-Count for all Next-Hop-EP in Next-Hop-Structure to zero; and go to initiate Reporting-Time-Slot step.

13. An ad hoc network as set forth in Claim 10, where said coordinator node analyzes the statistics by: for each received message from a network node separate out reports for individual flows within message; for each individual flow report in message if no entry exists for that flow in Flow-List maintained at coordinator node create new entry for flow (Each Flow-List entry includes a list of nodes (Flow-Node-List) that have sent reports about flow); start Flow-Timer for flow 704; if no entry exists for node in Flow-Node-List of Flow-List create new entry for node (Each entry in Flow-Node-List has Report- Duration = (current time - Sampling-Start-Time), Received-Packet-Count, and Next- Hop-Structure); else if entry for node exists in Flow-Node-List, then ignore report since it is duplicate (each node sends one report per flow during each Reporting-Time-Slot); go to separate out reports for individual flows within message step; when a Flow-Timer expires, for each node entry X in Flow-Node-List belonging to flow;

if Received-Packet-Count is not equal to the sum of Forwarded-Packet- Count for all Next-Hop-IP in Next-Hop-Structure, increment Suspect-Counter for node X by difference/Received-Packet-Count; for each node entry X in Flow-Node-List belonging to flow for each Next-Hop-IP in Next-Hop-Structure, decrement Received- Packet-Count in Next-Hop-IP's Flow-Node-List entry, by Forwarded-Packet- Count in Next-Hop-Structure of X; for each node entry X in Flow-Node-List belonging to flow if abs(Received-Packet-Count)/(sum of Forwarded-Packet-Count) > Permissible-Packet-Loss increment Suspect-Counter in Network-Node-List entry for node X, by abs(Received-Packet-Count)/(sum of Forwarded-Packet-Count) and increment Suspect-Counter in Network-Node-List entry for all nodes that list X as Next-Hop-IP in their Flow-Node-List entry, by abs(Received-Packet- Count)/(sum of Forwarded-Packet-Count) 806. else decrement Suspect-Counter in Network-Node-List entry for node X, by Credit-Value and decrement Suspect-Counter in Network-Node-List entry for all nodes that list X as Next-Hop-IP in their Flow-Node-List entry, by Credit-Value; delete flow entry from unique flow list; a plurality of network nodes reporting statistics regarding IP flow packets originated, received, or forwarded to neighbor network nodes; and at least one coordinator node associated with one or more network nodes for receiving the reports and determining network nodes suspected of dropping packets.

14. A program storage device, readable by machine, tangibly embodying a program of instructions executable by the machine to cause the machine to perform a method for reporting statistics regarding IP flow packets, comprising the steps of: initiating flow database at node to null; for each IP packet originated at or transiting node; check if source and destination IP address pair exists in flow database if flow does not exist;

create new entry for flow (defined by unique source and destination IP address pair); set Sampling-Start-Time to current time; increment Received-Packet-Count; increment Forwarded-Packet L Count for current Next-Hop-IP; if current Next-Hop-IP does not exist in Next-Hop-Structure, create entry and update;. else, update existing entry; reset Liveness for flow; go to check if source and destination IP address pair exists in flow database for next flow step; and initiate Reporting-Time-Slot; when current Reporting-Time-Slot ends for all flows in database send report to coordinator node that includes following information obtained from the flow's database entry: source and destination IP, Sampling-Start-Time, Received-Packet-Count, and Next-Hop-Structure; reduce Liveness in flow's database entry by Reporting-Time-Slot; if Liveness < zero, delete flow from database; else, in the flow's database entry, reset Sampling-Start-Time to the current time, Received-Packet-Count to zero, and Forwarded-Packet-Count for all Next-Hop-IP in Next-Hop-Structure to zero; and go to initiate Reporting-Time-Slot step.

15. A program storage device, readable by machine, tangibly embodying a program of instructions executable by the machine to cause the machine to perform a method for analyzing statistics for determining network nodes suspected of dropping packets in an ad hoc network, comprising the steps of : for each received message from a network node separate out reports for individual flows within message; for each individual flow report in message

if no entry exists for that flow in Flow-List maintained at coordinator node create new entry for flow (Each Flow-List entry includes a list of nodes (Flow-Node-List) that have sent reports about flow); start Fl ow -Timer for flow 704; if no entry exists for node in Flow-Node-List of Flow-List create new entry for node (Each entry in Flow -Node-List has Report- Duration = (current time - Sampling-Start-Time), Received-Packet-Count, and Next- Hop-Structure); else if entry for node exists in Flow-Node-List, then ignore report since it is duplicate (each node sends one report per flow during each Reporting-Time-Slot); go to separate out reports for individual flows within message step; when a Flow-Timer expires, for each node entry X in Flow-Node-List belonging to flow; if Received-Packet-Count is not equal to the sum of Forwarded-Packet- Count for all Next-Hop-IP in Next-Hop-Structure, increment Suspect-Counter for node X by difference/Received-Packet-Count; for each node entry X in Flow-Node-List belonging to flow for each Next-Hop-IP in Next-Hop-Structure, decrement Received- Packet-Count in Next-Hop-IP's Flow-Node-List entry, by Forwarded-Packet- Count in Next-Hop-Structure of X; for each node entry X in Flow-Node-List belonging to flow if abs(Received-Packet-Count)/(sum of Forwarded-Packet-Count) > Permissible-Packet-Loss increment Suspect-Counter in Network-Node-List entry for node X, by abs(Received-Packet-Count)/(sum of Forwarded-Packet-Count) and increment Suspect-Counter in Network-Node-List entry for all nodes that list X as Next-Hop-IP in their Flow -Node-List entry, by abs(Received-Packet- Count)/(sum of Forwarded-Packet-Count) 806. else decrement Suspect-Counter in Network-Node-List entry for node X, by Credit- Value and decrement Suspect-Counter in Network-Node-List entry for all nodes that list X as Next-Hop-IP in their Flow-Node-List entry, by Credit- Value;

delete flow entry from unique flow list; a plurality of network nodes reporting statistics regarding IP flow packets originated, received, or forwarded to neighbor network nodes; and at least one coordinator node associated with one or more network nodes for receiving the reports and determining network nodes suspected of dropping packets.

16. A program storage device, readable by machine, tangibly embodying a program of instructions executable by the machine to cause the machine to perform a method for analyzing statistics for determining network nodes suspected of dropping packets in an ad hoc network as set forth in Claim 15, further comprising penalizing and rewarding network nodes in the ad hoc network.

Description:

LIGHTWEIGHT PACKET-DROP DETECTION FOR AD HOC NETWORKS

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the benefit of the filing date of United States Provisional Patent Application No. 60/635,451, filed December 13, 2004, the disclosure of which is hereby incorporated herein by reference.

GOVERNMENT LICENSE RIGHTS

[0002] This invention was made with Government support under contract DAAD 19-01 - C-0062 awarded by the U.S. Army Research Laboratory. The Government may have certain ri 1 gOh 1 ts in this invention.

FIELD OF THE INVENTION

[0003] The present invention relates to detection of packet-drop attacks in ad hoc networks. Specifically, network nodes report statistics regarding IP flow packets oπginated, received, or forwarded to neighbors and then the statistics are analyzed and correlated to determine nodes suspected of dropping packets.

BACKGROUND OF THE INVENTION

[0004] Ad hoc networks are generally described as those comprised of mobile, wireless nodes, where any node is capable of forwarding IP packets. Such networks have been extensively studied over the last few years, and multiple routing and other protocols have been proposed for enabling configuration and communication. The mobile and wireless nature of ad hoc networks, coupled with the possibility of any node potentially having visibility to all network traffic, has implied that they are more susceptible to malicious attacks than wire-line networks. Significant effort has been expended over the last few years on approaches for detecting, preventing, and recovering from attacks on ad hoc networks. A large proportion of this work has focused on attacks on routing protocols, since routing is a critical component of the ad hoc network infrastructure. An attack that

has been studied, but not definitively addressed, and can be as damaging as routing attacks, is when malicious ad hoc network nodes selectively drop packets that are supposed to be forwarded. The presence of such a malicious packet dropping node can be detrimental to the network "good-put" even when using reliable transport protocols such as TCP. This is because the throughput of TCP flows is affected significantly when faced with packet loss rates of 5% or beyond. A malicious node could also drop critical control packets, resulting in adverse effects on the ad hoc network's stability. The problem of detecting such malicious nodes is complicated due to the wireless, and hence "lossy" nature of the network links as this blurs the distinction between malicious and accidental dropping.

[0005] Prior solutions have been designed for specific types of network traffic, and have made assumptions that are not reasonable for practical usage. Previous attempts to solve this problem have relied upon promiscuous monitoring of network links, which is not a practical assumption. This is because promiscuous monitoring suffers from various problems such as being resource intensive, being specific to a link layer technology, susceptible to evasion and insertion techniques and it is also not scalable.

[0006] In promiscuous mode, packets do not flow through the internet protocol suite (IPS). A sensor analyzes a copy of the monitored traffic rather than the actual forwarded packet. The advantage of operating in promiscuous mode is that the IPS does not affect the packet flow with the forwarded traffic. The disadvantage of operating in promiscuous mode, however, is the IPS cannot stop malicious traffic from reaching its intended target for certain types of attacks, such as atomic attacks (single-packet attacks). The response actions implemented by promiscuous IPS devices are post-event responses and often require assistance from other networking devices, for example, routers and firewalls, to respond to an attack. While such response actions can prevent some classes of attacks, for atomic attacks, however, the single packet has the chance of reaching the target system before the promiscuous-based sensor can apply an access control list (ACL) modification on a managed device (such as a firewall, switch, or router).

[0007] The present invention provides a scalable, effective and practical approach for detection of packet-drop attacks in ad hoc networks. The invention relies upon network nodes reporting statistics regarding IP flow packets originated, received, or forwarded to neighbors. These statistics are analyzed and correlated to determine nodes suspected of dropping packets.

SUMMARY OF THE INVENTION

[0008] The lightweight packet-drop (LiPaD) algorithm of the present invention requires ad hoc network nodes to track the number of IP packets received from and transmitted to their neighbors, for each IP flow transiting the node. A flow is defined by the source IP address and destination IP address tuple in the IP packet header. Flow statistics are periodically reported by network nodes to a coordinator node, which analyses the statistics in order to identify network nodes that are dropping packets. "Natural" packet losses due to link-layer issues are accounted for by the algorithm, since network nodes get ranked periodically according to their "badness" level. The algorithm can detect malicious nodes that do not report statistics accurately, and lie intentionally to the coordinator. Furthermore, the algorithm is effective even in case of dynamic ad hoc networks, when nodes move and traffic flows get re-routed as the routing protocol determines new paths. The algorithm can detect multiple packet-dropping nodes, and can operate even with encrypted traffic since it needs access to IP-level packet header information. There is no requirement for promiscuous link monitoring imposed by the algorithm.

The algorithm relies upon the following assumptions:

[0009] The threat is posed by one or more network nodes that have been taken over by an attacker, either physically or logically. The malicious node can selectively drop IP packets that are supposed to be forwarded by it. The malicious node can also provide incorrect information about the number of packets received and/or forwarded by it.

[0010] No promiscuous link-level monitoring is required by the algorithm. The capability to perform promiscuous monitoring depends on the link-layer characteristics

and the link-layer encryption approach. Hence, promiscuous monitoring cannot be relied upon to provide the information necessary for the packet drop detection algorithm.

[0011] Nodes can view IP packet headers and collect statistics about traffic flows that pass through them. This assumption does not pose a problem for end-to-end encryption of traffic flows, since at the very least the IP packet headers have to be visible to intermediate nodes to permit proper forwarding.

[0012] IDS messages are end-to-end encrypted, and hence cannot be differentiated from general network traffic by intermediate nodes. This assumption prevents a malicious node from specifically dropping IDS messages.

[0013] Nodes use some guaranteed delivery mechanism (such as Reliable UDP, or application-level reliability) to transmit IDS messages to the coordinator node.

[0014] Nodes are loosely time-synchronized, and vary at most by a few seconds.

[0015] A principal object of the present invention is therefore, the provision of a method of detecting packet-drop attacks in ad hoc networks.

[0016] Another object of the present invention is the provision of a method of network nodes reporting statistics regarding IP flow packets originated, received, or forwarded to neighbors and then the statistics are analyzed and correlated to determine nodes suspected of dropping packets.

[0017] Further objects of the present invention will become more clearly apparent when the following description is read in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a schematic diagram of an ad hoc network showing system nodes and coordinators.

[0019] Figure 2 is a schematic diagram of traffic flows in an ad hoc Network.

[0020] Figure 3 shows the flow database structure at each network node.

[0021] Figure 4 is a flow diagram of a first portion of an algorithm at ad hoc network nodes.

[0022] Figure 5 is a schematic diagram of a route change handled by lightweight packet-drop.

[0023] Figure 6 is a flow diagram of a second portion of an algorithm at ad hoc network nodes.

[0024] Figure 7 is a flow diagram of a first part of an algorithm at a coordinator node for processing flow reports as they are received from network nodes.

[0025] Figure 8 is a flow diagram of a second part of an algorithm at a coordinator node that is triggered by the expiry of a Flow-Timer, which was started when the first report was received about the flow in the current.

[0026] Figure 9 is a flow diagram of a third part of an algorithm at a coordinator node which is triggered by a LiPaD-Timer.

[0027] Figure 10 is a schematic diagram of traffic flow in an ad hoc network with a malicious node and a table of actions that can be taken by a malicious node.

DETAILED DESCRIPTION

[0028] Network nodes execute the LiPaD algorithm and report on traffic flows passing through them. Referring to Figure 1, every network node 102 on a path of flow in an ad hoc network 100 sends summarized information about the flow periodically to associated

coordinator nodes 104. The coordinator node correlates the received information in order to determine any network nodes dropping packets.

[0029] The following terms are used in the LiPaD algorithm description.

[0030] Coordinator node: Node receiving reports from network nodes periodically, and analyzing the reports to determine malicious packet-dropping nodes.

[0031] Reporting-Time-Slot: Configurable period for nodes to send reports on flows to coordinator. Set to same value at all nodes in network.

[0032] Unique-Flow-ID: Each flow in the network is uniquely identified by concatenation of the source and destination TP addresses for the flow.

[0033] Sampling-Start-Time: The time when a node starts tracking a flow passing through it, during the current Reporting-Time-Slot.

[0034] Liveness: Timer used at network nodes to track non-active flows, and delete the non-active flows from the database. Set to same value at all nodes in the network.

[0035] Received-Packet-Count: Count of number of packets received by a node for a flow during current Reporting-Time-Slot.

[0036] Forwarded-Packet-Count: Count of number of packets forwarded by a node to a neighbor for a flow during current Reporting-Time-Slot.

[0037] Next-Hop-Structure: List of 2-tuples, with each 2-tuple indicating a next-hop neighbor's IP address (Next-Hop-IP) and the number of flow packets forwarded to it (Forwarded-Packet-Count) during the current Reporting-Time-Slot.

[0038] Suspect-Counter: Value used at coordinator to represent "maliciousness" of network node; the higher the value, the more malicious the node is considered to be.

[0039] Network-Node-List: List of network nodes maintained by coordinator node that includes Suspect-Counter for node.

[0040] Flow-List: List of flows and their statistics maintained by coordinator node, as reported by network nodes.

[0041] Flow -Node-Li st: List of network nodes reporting about a flow, in Flow-List at coordinator node. Each entry for network node comprises of Report-Duration, Received- Packet-Count, Next-Hop-Structure.

[0042] Report-Duration: Time during current Reporting-Time-Slot that flow was tracked by a node.

[0043] Flow-Timer: Timer used at coordinator node to allow for all network nodes to report about a specific flow, prior to processing the information received.

[0044] Permissible-Packet-Loss: Configurable threshold at coordinator to accommodate "natural" link-layer losses and thus reduce false-positives.

[0045] LiPaD-Timer: Timer used at coordinator node to periodically rank all network nodes in Network-Node-List by decreasing Suspect-Counter values.

[0046] Credit- Value: Value used at coordinator to reward nodes that forward packets correctly. Set to last value used to punish the node in case of bad forwarding behavior.

[0047] The basic concept can be described with reference to Figure 2, which illustrates 6 nodes A, B, C, D, E, and X that are part of an ad hoc network 200. Flow 1 transits through nodes A, X and B, while flow 2 transits through nodes C, X, and D. For flow 1, nodes A, X, and B generate reports on IP packets received and forwarded to their respective IP-level next hop (next-hop for A is X; for X is B); similarly for flow 2 and nodes C, X, and D (next-hop for C is X; for X is D). The reports are sent periodically (Reporting-Time-Slot) to a coordinator node, which currently is assumed to be a single

node. However, it is possible that there are multiple active coordinator nodes in the network, each coordinator node being associated with a predetermined network node or network nodes. Based on the information in the received reports, the coordinator node rewards well-behaved nodes, and punishes misbehaving nodes. The coordinator periodically generates an ordered list of all network nodes based on their "suspect" value. Details of the algorithm at the network nodes and at the coordinator node are described below.

Algorithm at Ad Hoc Network Nodes

[0048] Each network node maintains a database of flows (defined by source and destination IP address) that transit or originate from the node. The database includes the information indicated in Figure 3 for each flow. The Unique-Flow-E) (8 bytes) is derived from the source and destination IP address of the flow. The Sampling-Start-Time (4 bytes) indicates the time when the node started collecting data on the flow during the current Reporting-Time-Slot. Liveness (4 bytes) indicates the amount of time left to delete a flow from the database, and is reset every time a new packet is received for the flow. Received-Packct-Count (4 bytes) indicates the number of packets received for the flow by the node during the current Reporting-Time-Slot. Next-Hop-Structure (8 bytes per tuple) is a list of 2-tuples, with each 2-tuple indicating a next-hop neighbor's IP address (Next-Hop-IP) and the number of flow packets forwarded to it (Forwarded- Packet-Count) during the current Reporting-Time-Slot.

Flow Database Structure at each Network Node

[0049] The algorithm at each network node comprises two parts that execute in parallel. The first part of the algorithm, shown in Figure 4, acts on each IP packet that is originated or transited through the node according to the following steps.

1. Initiate flow database at node to null 400.

2. For each IP packet originated at or transiting node

• Check if source and destination IP address pair exists in flow database 402.

• If flow does not exist

o Create new entry for flow (defined by unique source and destination IP address pair); set Sampling-Start-Time to current time 404.

• Increment Received-Packet-Count 406.

• Increment Forwarded-Packet-Count for current Next-Hop-IP 408. o If current Next-Hop-IP does not exist in Next-Hop-Structure, create entry and update 412. o Else, update existing entry 414.

• Reset Liveness for flow 416.

• Go to step 402.

[0050] The concept of the Next-Hop-Structure above is that network routing tables may change during a Reporting-Time-Slot, causing a node to forward packets of a flow to a different next-hop neighbors. In Figure 5, Flow 1 is depicted as initially flowing through nodes F-C-X, and then changes to flow through nodes F-C-B. The Next-Hop-Structure ensures that a node tracks the number of packets forwarded to each next-hop neighbor during a Reporting-Time-Slot, and identifies the current next-hop neighbor using information in the local routing/forwarding table. Node C would track the Forwarded- Packet-Count in Next-Hop-Structure for X, and then continue to do the same for B after the route change. The Next-Hop-Structure also handles the case of a next-hop neighbor receiving packets for the same flow from different previous hops during the same Reporting-Time-Slot.

[0051] The second part of the algorithm, shown in Figure 6, is triggered at the end of each Reporting-Time-Slot, which has a uniform preconfigured value across all network nodes.

1. Initiate Reporting-Time-Slot 600.

2. When current Reporting-Time-Slot ends

• For all flows in database o Send report to coordinator node that includes following information obtained from the flow's database entry 602: source and destination IP, Sampling-Start-Time, Received-Packet-Count, Next-Hop-Structure. o Reduce Liveness in flow's database entry by Reporting-Time-Slot 604. o If Liveness < zero 606, delete flow from database 608.

o Else,

• In the flow's database entry, reset Sampling-Start-Time to the current time, Received-Packet-Count to zero, Forwarded-Packet-Count for all Next-Hop-IP in Next- Hop-Structure to zero 610.

• Go to step 600.

[0052] Reports for multiple flows can be aggregated and sent in as few IP packets as possible in order to avoid the per-packet header overhead if individual flow reports are sent in separate packets. Network bandwidth consumption due to flow reports can be further reduced by compressing the reports prior to its transmission. The coordinator node can decompress such a received report prior to further processing.

Algorithm at Coordinator Node

[0053] A coordinator node receives reports from every network node periodically. It maintains information about nodes (Network-Node-List) in the network, with each node identified by a unique IP address. Each Network-Node-List entry includes the Suspect- Counter for the node, which is initially set to zero. In addition, the coordinator also maintains information on each flow (Flow-List) reported by the network nodes. The coordinator algorithm comprises three parts. The first part, shown in Figure 7, processes flow reports as they are received from network nodes.

1. For each received message from a network node o Separate out reports for individual flows within message 700.

• For each individual flow report in message o If no entry exists for that flow in Flow-List maintained at coordinator node

• Create new entry for flow 702 (Each Flow-List entry includes a list of nodes (Flow-Node-List) that have sent reports about flow).

• Start Flow-Timer for flow 704. o If no entry exists 706 for node in Flow-Node-List of Flow-List

• Create new entry for node 708 (Each entry in Flow-Node-List has Report- Duration = (current time - Sampling-Start-Time), Received-Packet-Count, Next-Hop- Structure)

o else if entry for node exists in Flow-Node-List, then ignore report since it is duplicate 710 (each node sends one report per flow during each Reporting-Time-Slot) o Go to step 700

[0054] The second part of the coordinator node algorithm, shown in Figure 8, is triggered by the expiry of a Flow-Timer, which was started when the first report was received about the flow in the current Reporting-Time-Slot, as described above. The concept of having the Flow-Timer is to wait until all nodes have had a chance to report about that specific flow, and hence the Flow-Timer value can be influenced by the maximum message latency across the ad hoc network. Based on information available in the Flow-Node-List for the flow in the first part above, the coordinator compares the number of packets received and transmitted by a node to those indicated by its next-hop neighbors. Step 1 below handles the "truthful" node case, when a node does not forward all the flow packets that it receives and reports correctly about the number of packets received and forwarded. Thus, there is a mismatch between the number of packets received and number of packets forwarded to all next-hop neighbors, as reported by the node. The Suspect-Counter for the node in the Network-Node-List is incremented to reflect this behavior.

[0055] Step 2 below handles the case where there is a mismatch between the number of flow packets reported as transmitted by a node and the number of flow packets reported as received by its next-hop neighbors. This mismatch can be attributed to "natural" packet-loss, which is taken into account using a configurable threshold (Permissible- Packet-Loss). The other possibility is that either the node or one of its next-hop neighbors is lying by not reporting the actual number of flow packets forwarded or received respectively. This possibility will now be described along with steps 2 and 3 below.

[0056] When a Flow -Timer expires:

1. For each node entry X in Flow -Node-List belonging to flow

• If Received-Packet-Count is not equal to the sum of Forwarded-Packet- Count for all Next-Hop-IP in Next-Hop-Structure, increment Suspect-Counter for node X by difference/Received-Packet-Count 800.

2. For each node entry X in Flow-Node-List belonging to flow

• For each Next-Hop-IP in Next-Hop-Structure, decrement Received- Packet-Count in Next-Hop-IP's Flow-Node-List entry, by Forwarded-Packet-Count in Next-Hop-Structure of X 802.

3. For each node entry X in Flow -Node-List belonging to flow

• If abs(Received-Packet-Count)/(sum of Forwarded-Packet-Count) > Permissible-Packet-Loss 804

- Increment Suspect-Counter in Network-Node-List entry for node X, by abs(Received-Packet-Count)/(sum of Forwarded-Packet-Count)

- Increment Suspect-Counter in Network-Node-List entry for all nodes that list X as Next-Hop-IP in their Flow-Node-List entry, by abs (Received-Packet-Count)/(sum of Forwarded-Packet-Count) 806.

Else

- Decrement Suspect-Counter in Network-Node-List entry for node X, by Credit-Value

- Decrement Suspect-Counter in Network-Node-List entry for all nodes that list X as Next-Hop-IP in their Flow-Node-List entry, by Credit-Value 808.

4. Delete flow entry from unique flow list 810.

[0057] The third part of the coordinator node algorithm, shown in Figure 9, is triggered by a LiPaD-Timer, which periodically goes through the Network-Node -List and ranks nodes by their Suspect-Counter values. The higher the Suspect-Counter, the more the node is likely to have dropped packets. 1. Set LiPaD-Timer 900.

• When LiPaD-Timer expires, generate ordered list of "suspect" nodes by Suspect-Counter values 902.

- Go to step 900.

Lying Nodes

[0058] A sophisticated attacker that has taken over a network node may manage to manipulate the information reported to the coordinator node, in addition to dropping packets. The LiPaD algorithm can handle all cases of lying nodes, which are illustrated in Figure 10. Node X is the malicious node that is dropping packets from Flow 1. It can lie in 9 distinct combinations about the number of packets received from A and forwarded to B. The symbol S indicates that X is reporting the statistic accurately, the symbol ψ indicates that X is reporting fewer packets than are actually received/forwarded, the symbol φ indicates that X is reporting more packets than are actually received/forwarded, and the symbol O represents that X is reporting exactly the same number of packets to be forwarded as have been received. Case 9 is shown in Figure 10.

[0059] In case 9, node X is the malicious node and is dropping packets of all flows passing through it. Node X is reporting correctly about the number of Flow 1 packets it receives from node A, but is reporting that the same number of Flow 1 packets is being forwarded by it to node B. This is incorrect since X is actually dropping some Flow 1 packets; i.e. X is lying. When the coordinator node analyzes the data from X and B, it will note the difference between number of packets reported as forwarded by X and number of packets reported as received by B. In this case, it is not possible to determine whether X is lying by reporting more packets than actually forwarded, or whether B is lying by reporting fewer packets than actually received. The LiPaD algorithm handles such cases by penalizing both X and B. This approach will adversely affect B if only one flow is considered. However, since there are other flows that pass through X or B, and since B can be expected to correctly forward packets belonging to those flows, B does not get penalized for flows that do not have X as their previous hop. Hence B's overall Suspect-Counter improves, while X's Suspect-Counter gets degraded for all flows passing through it. In fact, the LiPaD algorithm proactively rewards well-behaved nodes, which further improves the Suspect-Counter value for B as compared to that for X.

[0060] The LiPaD algorithm is a scalable, effective and practical algorithm for detection of packet-drop attacks in ad hoc networks. The approach requires nodes to report statistics on IP flow packets originated, received, or forwarded to neighbors. These statistics are analyzed and correlated to determine nodes suspected of dropping packets. The LiPaD algorithm is accurate in detecting multiple malicious packet-dropping nodes even in the presence of non-malicious "natural" link-loss that is comparable to malicious packet-drop rate, and when malicious nodes are lying by reporting incorrect statistics. The LiPaD algorithm maintains good detection accuracy with larger networks and node mobility.

[0061] While there has been described and illustrated lightweight packet-drop detection for Ad Hoc networks, it will be apparent to those skilled in the art that variations and modifications are possible without deviating from the broad principles and teachings of the present invention which shall be limited solely by the scope of the claims appended hereto.