Brian E Carpenter <[email protected]> wrote: > On 21/10/2016 02:02, Michael Richardson wrote: >> >> >> Brian E Carpenter <[email protected]> wrote: >> > Oops, there was a prettifying bug in the previous version... >> >> ... >> >> > OK, so now I'll make one with multiple steps [pause while I run my >> > example generator and prettify the results]
1> A to B: [M_REQ_NEG, 11146801, ['EX2', 1, 6, ['NZD', 393]]]
2> B to A: [M_NEGOTIATE, 11146801, ['EX2', 1, 6, ['NZD', 56.0]]]
3> A to B: [M_NEGOTIATE, 11146801, ['EX2', 1, 6, ['NZD', 294.75]]]
4> B to A: [M_WAIT, 11146801, 20899]
5> B to A: [M_NEGOTIATE, 11146801, ['EX2', 1, 6, ['NZD', 84.0]]]
6> A to B: [M_NEGOTIATE, 11146801, ['EX2', 1, 6, ['NZD', 235.8]]]
7> B to A: [M_END, 11146801, [O_DECLINE, 'Insufficient funds']]
>> Lines 2 and 5 look identical to me.
> Yes, except that B increased its offer from $56 to $84.
>> As do lines 3 and 6.
> Yes, except that A reduced its request from $294 to $235
Ah, so this is one negotiation then?
I thought the M_WAIT was the end of a negotiation and 5> was a second thing,
but of course, that makes no sense, it would start with M_REQ_NEG.
> There's a state machine at each end which is specific for this particular
> objective. I'm a little confused about what's confusing you. (Maybe the
> Appendix of examples needs explanatory text?)
Let me add some messages and interleave a second negotiation n2:
n1 1> A to B: [M_REQ_NEG, 11146801, ['EX2', 1, 6, ['NZD', 393]]]
n2 11> B to A: [M_REQ_NEG, 11146801, ['EX2', 1, 6, ['NZD', 392]]]
Yup, both ends picked the same session-id because cosmic ray hit, and started
negotiation.
n1 2> B to A: [M_NEGOTIATE, 11146801, ['EX2', 1, 6, ['NZD', 56.0]]]
n2 21> A to B: [M_NEGOTIATE, 11146801, ['EX2', 1, 6, ['NZD', 55.0]]]
n1 3> A to B: [M_NEGOTIATE, 11146801, ['EX2', 1, 6, ['NZD', 294.75]]]
n1 4> B to A: [M_WAIT, 11146801, 20899]
n2 31> B to A: [M_NEGOTIATE, 11146801, ['EX2', 1, 6, ['NZD', 292]]]
..
So, is message 31 (which looks the same as (5) above part of n1 or n2?
--
Michael Richardson <[email protected]>, Sandelman Software Works
-= IPv6 IoT consulting =-
signature.asc
Description: PGP signature
_______________________________________________ Anima mailing list [email protected] https://www.ietf.org/mailman/listinfo/anima
