Re: [6tisch] 6P and Sf0 issue: Token to identify transactions in 6P

"Pascal Thubert (pthubert)" <> Fri, 04 March 2016 13:26 UTC

Return-Path: <>
Received: from localhost ( []) by (Postfix) with ESMTP id 405F81B3831 for <>; Fri, 4 Mar 2016 05:26:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -12.701
X-Spam-Status: No, score=-12.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, J_CHICKENPOX_44=0.6, J_CHICKENPOX_64=0.6, J_CHICKENPOX_81=0.6, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id al4AaKmtELJa for <>; Fri, 4 Mar 2016 05:26:13 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 73EE21B3830 for <>; Fri, 4 Mar 2016 05:26:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;; l=14908; q=dns/txt; s=iport; t=1457097973; x=1458307573; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=1qQS+MfVqTs2MtBx6FCzVk7JcjjgbmknS7hWK+adMoY=; b=Zo8nb/9wp6Qxm8uNyocShWspzA2/AGUolzsoK5gqmOxWj0mIxYl8qHOI hDRe+MJFaB47uIKyuSztmxL0DsOKACWxnID935EWe3eYQndYT2BdCMFKo G+XJnPxPqz0tfYyBVbzQ8GbAg4J0GTSCb7/5C2sYOuvtTIdKy0IkTZPcj A=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.22,535,1449532800"; d="scan'208,217";a="245425609"
Received: from ([]) by with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Mar 2016 13:26:12 +0000
Received: from ( []) by (8.14.5/8.14.5) with ESMTP id u24DQCtj008533 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 4 Mar 2016 13:26:12 GMT
Received: from ( by ( with Microsoft SMTP Server (TLS) id 15.0.1104.5; Fri, 4 Mar 2016 07:26:11 -0600
Received: from ([]) by ([]) with mapi id 15.00.1104.009; Fri, 4 Mar 2016 07:26:11 -0600
From: "Pascal Thubert (pthubert)" <>
To: Tengfei Chang <>
Thread-Topic: [6tisch] 6P and Sf0 issue: Token to identify transactions in 6P
Thread-Index: AQHRdharXjQKnV8qLUijcPjy30pd9p9JRqgv
Date: Fri, 4 Mar 2016 13:26:11 +0000
Message-ID: <>
References: <> <> <>, <>
In-Reply-To: <>
Accept-Language: fr-FR, en-US
Content-Language: fr-FR
x-ms-exchange-transport-fromentityheader: Hosted
Content-Type: multipart/alternative; boundary="_000_EAC3A097E588454CB5326F028B016D33ciscocom_"
MIME-Version: 1.0
Archived-At: <>
Cc: "" <>, "Prof. Diego Dujovne" <>
Subject: Re: [6tisch] 6P and Sf0 issue: Token to identify transactions in 6P
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Discuss link layer model for Deterministic IPv6 over the TSCH mode of IEEE 802.15.4e, and impacts on RPL and 6LoWPAN such as resource allocation" <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 04 Mar 2016 13:26:16 -0000

Hello Tengfei

But if the ack is sent and not received then the parent does not allocate the cells and the child uses them...

And if a transaction hangs in the middle - say the child dies or is out of reach - then we'd have a deadlock.

No, as Xavi said we must plan for parallel transaction and roll back on error and time out.



Le 4 mars 2016 ? 14:06, Tengfei Chang <<>> a ?crit :

Hi Pascal,

The parent should allocate cells only when it received the ACK of the response. If no ACK received, no cell will be allocated. This can be handled by state machine, though it doesn't support concurrency.


On Fri, Mar 4, 2016 at 12:37 PM, Pascal Thubert (pthubert) <<>> wrote:
One issue with that, Tengfei, is if the 6p response is sent but not received.

The client will retry the request for the same need of bandwidth but will get a new set of cells.
The parent that allocates cells must correlate them with a request ID (token, sequence, whatever) in case that request is retried so as to respond with the same cells.

Take care,


From: 6tisch [<>] On Behalf Of Tengfei Chang
Sent: jeudi 3 mars 2016 18:48
To: Prof. Diego Dujovne <<>>
Subject: Re: [6tisch] 6P and Sf0 issue: Token to identify transactions in 6P

Hello Diego,

For the Token to identify the transaction, personally, if the idea is to identify a request and a response with a token,  it can be replaced by implementing a status machine, in which the status is able to identify the status of 6P transaction.

Here is a rough example which is able to explain how Status Machine works:

Initially the status of 6P can be set as 6P_IDLE.

For a mote sending 6p request:

  1.   after the 6p request is ready to be sent which contains the candidate cell, the status turns to 6P_REQUEST_INIT
  2.  after the request is sent, the status turns to 6P_REQUEST_WAITING_RESPONSE
  3.  after received the response from parent, mote sends ACK back and add/delete cell in schedule. The status turns to 6P_IDLE
For a mote received 6p request:

  1.  after receiving the 6p request, the mote turns status to 6P_RECEIVED_REQUEST
  2.  when cells are selected or no cell is available, set status to 6P_RESPONSE_TOBESENT
  3.  after sending the response and get the ACK, mote will add/delete cells in schedule and set status back to 6P_IDLE
If the mote will not process the next 6P request if the status is correct. Even if there are some issue that the mote stuck at one status, the timeout will reset the status to 6P_IDLE.

With this, one byte can be save, though it's not that much.
What do you think?


On Thu, Mar 3, 2016 at 4:30 PM, Prof. Diego Dujovne <<>> wrote:
Dear all,
            In order to continue the discussion we left
unfinished at the Interim meeting in March 26th, I
will open a number of threads to take action on several
pending issues for the drafts:

draft-wang-6tisch-6top-sublayer-04 (which will be renamed to 6top-protocol)
- Regarding the use of a Token to identify transactions on
the 6top protocol, there was a proposal on the call to add
an 8-bit field to the packet header.
Do you agree with this solution?
                              Diego Dujovne

Acad?mico Escuela de Ingenier?a en Inform?tica y Telecomunicaciones
Facultad de Ingenier?a UDP<>
(56 2) 676 8125

6tisch mailing list<>