Message ID | d9613918-2e12-e5ae-2232-5b011182fd61@pengutronix.de (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Hi, On 08/20/2016 11:36 PM, Alexander Aring wrote: > > Hi, > > On 08/19/2016 03:10 PM, Xue, Wenqian wrote: >> Hi, Alexander, >> >> Sorry for so late reply, as I have some other business at hand. >> >>> -----邮件原件----- >>> 发件人: Alexander Aring [mailto:aar@pengutronix.de] >>> 发送时间: 2016年8月13日 0:29 >>> 收件人: Xue, Wenqian/薛 文倩 <xuewenqian@cn.fujitsu.com> >>> 抄送: linux-wpan@vger.kernel.org >>> 主题: Re: 答复: Problems about handling duplicate packets when frame retry is >>> enabled >>> >>> > ... >>> >>> Your modification handles in duplicates in a form which is not acceptable. It will >>> simple drop duplicates but how frame retries works is the following: >> >> If your meaning for my modification is that the result will be the same whether retry is enabled or not? Initially, my motivation is to prevent the received retry packet from being transmitted up to the wpan-ping level, then to avoid the error "Sequence number did not match". >> > > I looked deeper for that handling in 802.15.4-2011 (which is the version > which is currently free available): > > 5.1.6.6 Transmission scenarios > > Your scenario is "Lost acknowledgment frame.", I don't see anything > which let me accept your patch to drop multiple received frames with the > same sequence number. The receiving node mac802154 stack is "recipient > next layer". > > Or did I miss something? > I see currently 802.11 has some handling which you like to get in. See [0]. But I don't see that such handling is described in 802.15.4 :-/ For me it's clean that it can be that duplicate frames can reach the next layer and the next layer need to care about that. That's what "Transmission scenario" - "Lost acknowledgment frame" shows me. - Alex [0] http://lxr.free-electrons.com/source/net/mac80211/rx.c#L1143 -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 09/04/2016 05:07 PM, Xue, Wenqian wrote: > Hi, Alexander > >> -----邮件原件----- >> 发件人: Alexander Aring [mailto:aar@pengutronix.de] >> 发送时间: 2016年9月1日 23:05 >> 收件人: Xue, Wenqian/薛 文倩 <xuewenqian@cn.fujitsu.com> >> 抄送: linux-wpan@vger.kernel.org >> 主题: Re: 答复: 答复: Problems about handling duplicate packets when frame >> retry is enabled >> >> >> Hi, >> >> On 08/20/2016 11:36 PM, Alexander Aring wrote: >>> >>> Hi, >>> >>> On 08/19/2016 03:10 PM, Xue, Wenqian wrote: >>>> Hi, Alexander, >>>> >>>> Sorry for so late reply, as I have some other business at hand. >>>> >>>>> -----邮件原件----- >>>>> 发件人: Alexander Aring [mailto:aar@pengutronix.de] >>>>> 发送时间: 2016年8月13日 0:29 >>>>> 收件人: Xue, Wenqian/薛 文倩 <xuewenqian@cn.fujitsu.com> >>>>> 抄送: linux-wpan@vger.kernel.org >>>>> 主题: Re: 答复: Problems about handling duplicate packets when frame >>>>> retry is enabled >>>>> >>>>> >>> ... >>>>> >>>>> Your modification handles in duplicates in a form which is not >>>>> acceptable. It will simple drop duplicates but how frame retries works is the >> following: >>>> >>>> If your meaning for my modification is that the result will be the same >> whether retry is enabled or not? Initially, my motivation is to prevent the >> received retry packet from being transmitted up to the wpan-ping level, then to >> avoid the error "Sequence number did not match". >>>> >>> >>> I looked deeper for that handling in 802.15.4-2011 (which is the >>> version which is currently free available): >>> >>> 5.1.6.6 Transmission scenarios >>> >>> Your scenario is "Lost acknowledgment frame.", I don't see anything >>> which let me accept your patch to drop multiple received frames with >>> the same sequence number. The receiving node mac802154 stack is >>> "recipient next layer". >>> >>> Or did I miss something? >>> >> >> I see currently 802.11 has some handling which you like to get in. >> See [0]. But I don't see that such handling is described in 802.15.4 :-/ >> >> For me it's clean that it can be that duplicate frames can reach the next layer >> and the next layer need to care about that. That's what "Transmission scenario" >> - "Lost acknowledgment frame" shows me. >> > I also checked the spec when I met the problem first, the spec really does not mention the handling for the duplicates. I thought it could be implemented in reality and should prevent the duplicates to the next layer. If according to your opinion " the next layer need to care about that ", the wpan-ping.c should care about the duplicates, right? Thank you! > I think yes, some upper layers need to care about that or not. Here you have like in "ping6" also a duplicate warning which indicates that you received duplicates and _maybe_ there exists an issue in the lower layers and I think you really should try to detect why you have an lost acknowledgment frame. - Alex -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 9f10da6..97f75b5 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c @@ -64,7 +64,7 @@ struct at86rf2xx_chip_data { * * We assume the max_frame_retries (7) value of 802.15.4 here. */ -#define AT86RF2XX_MAX_TX_RETRIES 7 +#define AT86RF2XX_MAX_TX_RETRIES 20 /* We use the recommended 5 minutes timeout to recalibrate */ #define AT86RF2XX_CAL_LOOP_TIMEOUT (5 * 60 * HZ)