Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: is it possible to get warning message from UINT value mismatched? Pin
KarstenK21-Sep-09 2:56
mveKarstenK21-Sep-09 2:56 
QuestionDifferent results with debug and release version of simulation program Pin
mass8520-Sep-09 3:37
mass8520-Sep-09 3:37 
AnswerRe: Different results with debug and release version of simulation program Pin
Chris Losinger20-Sep-09 4:08
professionalChris Losinger20-Sep-09 4:08 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 4:23
mass8520-Sep-09 4:23 
GeneralRe: Different results with debug and release version of simulation program Pin
Richard MacCutchan20-Sep-09 4:33
mveRichard MacCutchan20-Sep-09 4:33 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 4:46
mass8520-Sep-09 4:46 
GeneralRe: Different results with debug and release version of simulation program Pin
Richard MacCutchan20-Sep-09 5:00
mveRichard MacCutchan20-Sep-09 5:00 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 5:24
mass8520-Sep-09 5:24 
There is just one version of code and I just change Solution configuration from debug to release, so temp is consistent.

Whole program simulates WLAN with EDCA (802.11e). BEload:execute() function generates packets MSDU for one single station, which means it generates offered traffic = offered load. It decides (draws) whether just arrived packet will be sent in UPLINK or DOWNLINK. upLinkRatio variable states what % of all packets generated by BEload:execute() function will be sent in UPLINK. When the random double temp that varies from 0 to 1 is smaller than upLinkRatio (let's say smaller than 0.2 - let's assume upLinkRatio = 0.2), generated packet will be sent in UPLINK. It means address of source and transmitter will be set to address of station, and destination address to 0 (which is the address of access point - AP):
if (temp < upLinkRatio){
     //packet will be sent from STA to AP
     msdu->DA = 0;
     msdu->TA = msdu->SA = staAddress;
 }

Otherwise source and transmitter addresses will be set to address of AP (0) and destination adress to address of station.
else{
		//packet will be sent from AP to STA
		msdu->SA = msdu->TA = 0;
		msdu->DA = staAddress;
	}


So the problem is that proportion of offered traffic in UPLINK and DOWNLINK for RELEASE version are inverted. 80% of packets are offered in UPLINK, instead of 20%.

After changing statement you quoted to:
if (temp > upLinkRatio){

20% of packets are offered in UPLINK instead of 80% (of course just inthis case, when conditional statement is "inverted").



GeneralRe: Different results with debug and release version of simulation program Pin
Richard MacCutchan20-Sep-09 7:20
mveRichard MacCutchan20-Sep-09 7:20 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 9:47
mass8520-Sep-09 9:47 
GeneralRe: Different results with debug and release version of simulation program Pin
CPallini20-Sep-09 10:01
mveCPallini20-Sep-09 10:01 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 10:12
mass8520-Sep-09 10:12 
GeneralRe: Different results with debug and release version of simulation program Pin
Richard MacCutchan20-Sep-09 10:08
mveRichard MacCutchan20-Sep-09 10:08 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 10:26
mass8520-Sep-09 10:26 
GeneralRe: Different results with debug and release version of simulation program Pin
Richard MacCutchan20-Sep-09 10:35
mveRichard MacCutchan20-Sep-09 10:35 
GeneralRe: Different results with debug and release version of simulation program Pin
mass8520-Sep-09 10:54
mass8520-Sep-09 10:54 
Question[SOLVED}How to activate a menu [modified] Pin
simion31420-Sep-09 0:31
simion31420-Sep-09 0:31 
AnswerRe: How to activate a menu Pin
GameZelda20-Sep-09 0:58
GameZelda20-Sep-09 0:58 
QuestionBinding a Memo Field Pin
Cal Brass19-Sep-09 14:48
Cal Brass19-Sep-09 14:48 
Question[Message Deleted] Pin
HighCloud19-Sep-09 8:42
HighCloud19-Sep-09 8:42 
AnswerRe: C# Programatic Font Install Pin
«_Superman_»19-Sep-09 20:20
professional«_Superman_»19-Sep-09 20:20 
AnswerRe: C# Programatic Font Install Pin
Code-o-mat19-Sep-09 23:16
Code-o-mat19-Sep-09 23:16 
Questioncan i compile the c programs using commands in coomand prompt undr windows,if possible plz post the procedure Pin
raghava.thummapudi19-Sep-09 7:28
raghava.thummapudi19-Sep-09 7:28 
AnswerRe: can i compile the c programs using commands in coomand prompt undr windows,if possible plz post the procedure Pin
Chris Losinger19-Sep-09 7:50
professionalChris Losinger19-Sep-09 7:50 
AnswerRe: can i compile the c programs using commands in coomand prompt undr windows,if possible plz post the procedure Pin
Saurabh.Garg19-Sep-09 12:58
Saurabh.Garg19-Sep-09 12:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.