Docsity

Practice Assignment 5 - Topics Computer Science | COSC 6397, Assignments of Computer Science

Toggle sidebar
bg1
COSC6397 Homework Assignment 5 (TCP in
MANET)
November 17, 2004
Due date: Nov. 3, 2004; Maximum group size = 2 In this mini-project,
we experiment with TCP performance in MANET.
1 Capacity of Grids
In the class, we analyze the capacity of a chain topology using back-of-
envelop computation. The main idea is to find out how many simultaneous
transmissions are allowed. For this project, you are required to first conduct
a similar analysis on the lattice topology shown in Figure 1 and then verify
it using NS-2 simulations. The setup of the simulations are described in
Table 1, where interference range is defined as, a receiver cannot successfully
receive any packet if there is another transmission within the interference
range.
Capacity Analysis (10pt) Consider NxN lattice (N = 2, 4, 6, 8) and
horizontal flows shown in Figure 1 (a). Suppose that each flow is transmit-
ted at the same rate. What is the maximum rate of a flow that the network
can accommodate? In Figure 1 (b), besides the horizontal flows, there are
Table 1: Simulation Setup
Grid size 200m
Transmission range 250m
Interference range 550m
Packet size 64B, 500B, 1500B
Maximum rate of wireless link 2Mbps
1
pf3
pf4
pf5

Partial preview of the text

Download Practice Assignment 5 - Topics Computer Science | COSC 6397 and more Assignments Computer Science in PDF only on Docsity!

COSC6397 Homework Assignment 5 (TCP in

MANET)

November 17, 2004

Due date: Nov. 3, 2004; Maximum group size = 2 In this mini-project,

we experiment with TCP performance in MANET.

1 Capacity of Grids

In the class, we analyze the capacity of a chain topology using back-of-

envelop computation. The main idea is to find out how many simultaneous

transmissions are allowed. For this project, you are required to first conduct

a similar analysis on the lattice topology shown in Figure 1 and then verify

it using NS-2 simulations. The setup of the simulations are described in

Table 1, where interference range is defined as, a receiver cannot successfully

receive any packet if there is another transmission within the interference

range.

Capacity Analysis (10pt) Consider NxN lattice (N = 2, 4, 6, 8) and

horizontal flows shown in Figure 1 (a). Suppose that each flow is transmit-

ted at the same rate. What is the maximum rate of a flow that the network

can accommodate? In Figure 1 (b), besides the horizontal flows, there are

Table 1: Simulation Setup

Grid size 200m

Transmission range 250m

Interference range 550m

Packet size 64B, 500B, 1500B

Maximum rate of wireless link 2Mbps

(a) (b)

Figure 1: Graph for Problem 1

Table 2: Estimated Rate of Each Flow in Lattice Graph

size horizontal flow only horizontal and vertail flow

2x2 1 / 2 · T 1 / 4 · T

4x4 1 / 3 · 1 / 3 · T 1 / 2 · 1 / 3 · 1 / 3 · T

6x6 1 / 3 · 1 / 4 · T 1 / 2 · 1 / 3 · 1 / 4 · T

8x8 1 / 3 · 1 / 4 · T 1 / 2 · 1 / 3 · 1 / 4 · T

vertical ones. What is the maximum rate of a flow in this case that the net-

work can accommodate? Assume the capacity of the link is T , the per flow

throughput of the lattice graph is given as follows (Table 2). Explaination

of the results can be found in the paper attached.

0

1

2

0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.

Chain Throughput (Mbps)

Offered Load (Mbps)

Figure 4: Throughput delivered by an 8-node chain with differ- ent send rates, using 1500-byte packets. The fact the peak rate of 0.41 Mbps is not maintained shows the 802.11 MAC does not schedule greedy senders optimally for ad hoc forwarding.

Node

Send rate 0.48 0.35 0.27 0.26 0.26 0. Wasted time (%) 5.4 3.3 3.1 1.5 0 0

Figure 5: Individual node send rates in Mbps, and percent of total time spent in wasted backoff for a 7-node chain, with 1500- byte packets. Note that the 802.11 MAC allows node 1 to send much faster than nodes 2 or 3 can forward, resulting in lost packets.

all transmission attempts from node 1 will fail, causing a dramatic increase in its backoff window under 802.11’s binary exponential backoff scheme. Therefore when node 4 is done with its transmis- sion and has nothing more to send, node 1 may remain backed off during a time in which it could be transmitting. Figure 5 shows the percent of time spent in wasted backoff for each node along a 7-node chain. We consider a certain period of backoff to be wasted when no node that might cause interference is transmitting. As we can see, even though node 3 is receiving packets from node 2 at a rate (0.35 Mbps) already much less than the optimum rate that can be supported (0.425 Mbps), node 3 is unable to maintain the same rate as node 2, while at the same time wasting time backing off.

To summarize, an ideal ad hoc forwarding chain should be able to achieve 14 of the throughput that a single-hop transmission can achieve. Simulation shows that the 802.11 MAC protocol manages 1 7 of the single-hop throughput.

3.3 Verification of Chain Results

As a rough check on the simulations presented above for ad hoc chains, Figure 6 shows results measured on real hardware. The hardware was configured to mimic the simulation parameters used

0

1

2

2 4 6 8 10

Chain Throughput (Mbps)

Chain Length (Number of Nodes)

64 byte packets 500 byte packets 1500 byte packets

Figure 6: Real hardware throughput achieved along a chain of nodes, as a function of the chain length. Each node was placed at the maximum distance from the previous that allowed low- loss communications. Hardware parameters were set to mimic the simulation parameters as much as possible.

Figure 7: Lattice network topologies, showing just horizontal traffic on the left, and both horizontal and vertical on the right.

in Figure 3 as closely as possible. The radios involved are Cisco 340 (Aironet PC4800) cards operated in ad hoc mode at 2 Mbps. Each node was placed as far from its predecessor as possible with- out sacrificing low-loss communication. Only 6 nodes were avail- able. The fact that Figure 6 matches Figure 3 fairly closely suggests that the simulations do not contain major errors; for example, the average difference for the 1500-byte packet throughput is only 6

.

3.4 Capacity of a Regular Lattice Network

The previous analysis showed how the successive nodes in a single forwarding chain interfere with each other. To gauge the effective- ness of 802.11 channel allocation, we consider a lattice network. Two types of traffic pattern will be discussed: horizontal traffic flows moving from the left edge to the right edge and crossed hor- izontal and vertical flows (see Figure 7). The regularity of the net- work and traffic patterns allows estimation of nearly optimal global scheduling schemes to compare with 802.11’s actual performance.

Consider the scenario in the left-hand half of Figure 7. Here a lattice of nodes has parallel traffic flows moving from the left edge to the right edge. Assume each node is 200 meters from its east,

0

0 20 40 60 80 100

Per Flow Throughput (Mbps)

Number of Nodes

64 byte packets 500 byte packets 1500 byte packets

Figure 8: Average per flow throughput in square lattice net- works with horizontal data streams only, as a function of net- work size. There are as many parallel chains as there are nodes per chain. The X axis value is the total number of nodes. Each node is separated from its four neighbors by 200 meters.

west, north, and south radio neighbors. To account for inter-flow interference, when only every third chain is active, the active chains are separated vertically by more than the 550 meter interference limit. This implies that every third chain can operate without inter- chain interference, potentially delivering the 14 of channel capacity derived in Section 3.2. Thus each flow in the lattice network may be expected to achieve a throughput of 121 of the channel capacity. For 1500-byte packets, this is 121  1 7 Mbps, or 0.14 Mbps.

Figure 8 shows the per flow throughput for a variety of lattice sizes. The number of chains is the same as the number of nodes in each chain, producing square lattices. The total number of nodes is shown on the X axis. As the network grows large, the per flow throughput for 1500-byte packets settles at about 0.1 Mbps, some- what less than our estimated value. The inefficiencies of 802. we have found in the chain scenarios are still present: nodes in the beginning of the chain experience less contention and hence send more packets that could handled by nodes in the later part of the chain. There are also wasted backoff periods for the same reason as explained in the chain scenario.

3.5 Cross Traffic in a Lattice

Now consider a slightly more general situation, in which both ver- tical and horizontal flows are present, as in the right-hand diagram in Figure 7. All traffic originates at the top and left edges of the network, and is forwarded downward or rightward to the opposite edges; the middle nodes do not originate any traffic.

In this case, we should not expect the overall capacity of the net- work to decrease significantly. In theory we could impose a sched- ule on the entire network in which all the vertical flows operate in one time cycle, and all the horizontal flows in the next. This would cause each flow to see half as much throughput as in the previous section, but since there are twice as many flows, the overall network throughput is the same. Of course, 802.11 may not schedule pack-

0

0 20 40 60 80 100

Per Flow Throughput (Mbps)

Number of Nodes

64 byte packets 500 byte packets 1500 byte packets

Figure 9: Average per flow throughput in square lattice net- works with both horizontal and vertical data streams. This configuration has twice as many chains of traffic sharing the same network as Figure 8, which explains most of the differ- ence between the two results.

ets this efficiently in practice. For example, the fact that each node has a single queue means that a node may lose a chance to send a packet vertically while the packet at the head of the queue is waiting for contention in the horizontal direction. Figure 9 shows the aver- age per flow throughput obtained by simulation, which is slightly less than the predicted value of half of the per flow throughput for lattice networks without cross traffic. We find that the average per- centage of time spent in wasted backoff is 2  23

as opposed to 0  75

in the 8 by 8 lattice network without cross traffic. We con- sider a backoff period to be wasteful if any packet in the queue (not necessarily at the head) might be transmitted successfully dur- ing that time. The increased wasted backoff reflects head-of-queue blocking.

As an alternate analysis, the efficiency of the 802.11 MAC under different topologies and traffic patterns can be evaluated by mea- suring total one-hop network throughput. Figure 10 illustrates the simulated total throughput obtained in various 2-dimensional net- work configurations. The X axis indicates the physical area of the network; the number of nodes is proportional to the area.

The axis indicates the one-hop throughput of the network with 1500-byte packets. One-hop throughput measurements count all ra- dio transmissions for data packets that successfully arrive at their fi- nal destinations, including packets forwarded by intermediate nodes. One-hop throughput is similiar in concept to the bit-meter/second unit proposed in [8]. Figure 10 shows that one-hop throughput scales roughly linearly with the area of network. The actual slope of the curve depends on how effectively 802.11 schedules packet transmissions. The points marked “horizontal” reflect the network and traffic configuration described in the previous sub-section. The points marked “horizontal and vertical” show that the addition of vertical traffic decreases the total one-hop capacity. However, the fact that it is just a slight constant factor decrease implies that 802.11 does find a reasonably efficient schedule for interleaving the two directions.