Skip to contentSkip to conversation

updating unacked_frames counter during retransmission

DISCUSSION Suraj Sumangala 2 participants 3 messages Mar 3, 2011 – Mar 5, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi Gustavo,

I have a question regarding the ERTM implementation.

Should we be incrementing the "l2cap_pinfo.unacked_frames" variable if we are retransmitting a frame?

Won't this cause the same frame to be accounted twice?

If there are too many retransmissions, will there be a chance that "unacked_frames" could cross 0xFF and over flow.

Correct me if I have missed anything.

Regards
Suraj

#1 lore raw

Hi Suraj,

Quoted 6 lines · Suraj Sumangala

Hi Gustavo,

I have a question regarding the ERTM implementation.

Should we be incrementing the "l2cap_pinfo.unacked_frames" variable if we are retransmitting a frame?

No, if we are retransmitting a frame that means L2CAP didn't received an ack for it and we are already accounting it in unacked_frames and there is no need to increment unacked_frames in this case.

Quoted 5 lines

Won't this cause the same frame to be accounted twice?

If there are too many retransmissions, will there be a chance that "unacked_frames" could cross 0xFF and over flow.

No, unacked_frames number is limited by the remote transmission window size.

Signature · 2 lines
Gustavo F. Padovan
http://profusion.mobi
#2 lore raw

Hi Gustavo,

Quoted 6 lines · Gustavo F. Padovan

Hi Suraj,

Quoted 2 lines · Suraj Sumangala

Hi Gustavo,

Quoted 8 lines
Quoted 4 lines

I have a question regarding the ERTM implementation.

Should we be incrementing the "l2cap_pinfo.unacked_frames" variable if we are retransmitting a frame?

No, if we are retransmitting a frame that means L2CAP didn't received an ack for it and we are already accounting it in unacked_frames and there is no need to increment unacked_frames in this case.

I think right now we are incrementing the "l2cap_pinfo.unacked_frames" for retransmission also.

Quoted 9 lines
Quoted 6 lines

Won't this cause the same frame to be accounted twice?

If there are too many retransmissions, will there be a chance that "unacked_frames" could cross 0xFF and over flow.

No, unacked_frames number is limited by the remote transmission window size.

Actually, I am seeing an overflow (crossing the remote transmit window) issue, when there is retransmission. This was found in older kernel(2.6.35).

So not sure if this is valid in the latest kernel. Will anyway try to send a patch for the same.

Regards
Suraj