Thanks for your help.
But I didnot take overhead into account, and both my model and simulations
used the same packet payload with 1000 bytes and DSSS settings. I used
Bianchi's model but did not use his system parameters.
Here is the awk script. Every station starts sending at 1.0 and stops at
600.0, and I set channel bit rate to 1Mbps.
======================
BEGIN {
recv_size=0
first=0
hdr_size=0
startTime = 1.0
stopTime = 600.0
}
{
if ($2 == "-t") {
event = $1
time = $3
node_id = $5
flow_id = $39
pkt_id = $41
pkt_size = $37
flow_t = $45
level = $19
}
if (level == "MAC" && event == "r" && pkt_size >= pkt) {
hdr_size = pkt_size % pkt
pkt_size -= hdr_size
recv_size += pkt_size
}
}
}
END{
printf("average throughput:%f kbps\n", (float)recv_size/(stopTime -
startTime)*(8/1000))
printf("start time %f stop time %f\n", startTime, stopTime)
}
======================
>From: "Eduard GV" <[EMAIL PROTECTED]>
>To: [email protected]
>Subject: Re: [ns] validation of saturation throughput in 802.11
>Date: Thu, 21 Dec 2006 20:07:59 +0100
>
>
>Have you takein into account IP/UDP overhead? Note that Bianchi
>usually provides throughput at MAC layer and uses 1024Byte frames to
>show his results.
>
>That's all I can say with the details you provided.
>
>2006/12/21, ? ? <[EMAIL PROTECTED]>:
> >
> > Hi all,
> >
> > I am validating the saturation throughput of bianchi's model , however ,
>I
> > found my results do not match the model well. Both model and
>simulations
> > are with DSSS parameters and the packet size is 8000 bits. Stations are
> > identical , locate in 200mx200m square. CBR traffic is adopted and the
>date
> > rate is high enough to assure saturation. The results are as belows.
> >
> > nodes 10 20 30 40
> >
> > Model 0.76 0.70 0.66 0.64
> >
> > Sim 0.77 0.72 0.69 0.68
> >
> > The ns-2 version is 2.28. Simulation time is 600 seconds.
> > Could anyone helps me? Thanks in advance.
> >
> > Sincerely,
> > joshua
> >
> > _________________________________________________________________
> > Don't just search. Find. Check out the new MSN Search!
> > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> >
>
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/