Find the frame length with derivative

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
12 replies · 2K views · last reply
DODGEVIPER13
Messages
668
Reaction score
0
Find the optimum frame length nf that maximizes transmission efficiency for a channel with random bit erros by taking the derivative and setting it to zero for the following protocols:
(a) Stop-and-Wait ARQ
(b) Go-Back-N ARQ
(c) Selective Repeat ARQ

My work has been uploaded I am a bit rusty on derivative, so I am pretty sure I made a mistake just unsure of where.
 
Attachments
  • Handwritten derivation of Stop-and-Wait ARQ efficiency eta_sw with respect to frame length n_f, using a = 1 - p_f and B = n_o + 2(t_prop + t_proc)R, ending in a step labelled 'What have I done wrong?'
    EPSON008.JPG
    22.1 KB · Views: 483
Physics news on Phys.org
The last factor with nf is wrong I think. I used the duv = u*dv + v*du rule with v= (nf+B)^-1 and got a different factor from yours so check it again and post your result.
 
What did you use for u? I guess you did a u substitution to do this then so if I find u I can do the derivative.
 
My apologies, I must have done something wrong. Yours looks correct. How is the book answer different? That might tell you where the real error is.
 
Okay I think I see your error. You differentiated the a^nf and multiplied it to the differentiated version of the second factor. Don't you have to apply the duv product rule here too?

With u=a^nf and v= the rest.
 
Sorry if the post is a bit confusing and my slow responses.
Handwritten derivative working using the quotient rule: u = a^(n_f), v = (n_0 + B)/(n_f + B)^2, with du and dv expanded, followed by crossed-out steps and a simplified expression with terms like -2n_0 a^(n_f)/(n_f + B)^3.
 
Yes, it looks right but you can do more by extracting out the a^nf factor and by finding a common denominator so you can combine numerator terms ie multiply the second term by (nf+B)/(nf+B).
 
Posted this with my phone sorry if it is hard to read
Handwritten derivation on lined paper: top line shows A → B111 1100, followed by d(cur) = a^(nf) [ln(a)((no+B)(nf+B)/(nf+B)^3) − 2((no+B)/(nf+B)^3)], and below it = a^(nf) [ln(a)(no+B)(nf+B) − 2(no+B)] / (nf+B)^3.