Re: [Sigtran] M3UA: Message Length
"David Laight" <David.Laight@ACULAB.COM> Mon, 14 October 2013 09:24 UTC
Return-Path: <David.Laight@ACULAB.COM>
X-Original-To: sigtran@ietfa.amsl.com
Delivered-To: sigtran@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix)
with ESMTP id EF79821E8161 for <sigtran@ietfa.amsl.com>;
Mon, 14 Oct 2013 02:24:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.156
X-Spam-Level:
X-Spam-Status: No, score=0.156 tagged_above=-999 required=5 tests=[AWL=-2.155,
BAYES_40=-0.185, HTML_MESSAGE=0.001, J_CHICKENPOX_12=0.6,
MIME_BAD_LINEBREAK=0.5, MIME_QP_LONG_LINE=1.396]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id og23WKBahHtA for
<sigtran@ietfa.amsl.com>; Mon, 14 Oct 2013 02:24:47 -0700 (PDT)
Received: from mx0.aculab.com (mx0.aculab.com [213.249.233.131]) by
ietfa.amsl.com (Postfix) with SMTP id 5513621E8155 for <sigtran@ietf.org>;
Mon, 14 Oct 2013 02:23:03 -0700 (PDT)
Received: (qmail 19183 invoked from network); 14 Oct 2013 09:22:28 -0000
Received: from localhost (127.0.0.1) by mx0.aculab.com with SMTP;
14 Oct 2013 09:22:28 -0000
Received: from mx0.aculab.com ([127.0.0.1]) by localhost (mx0.aculab.com
[127.0.0.1]) (amavisd-new, port 10024) with SMTP id 17451-02 for
<sigtran@ietf.org>; Mon, 14 Oct 2013 10:22:25 +0100 (BST)
Received: (qmail 19148 invoked by uid 599); 14 Oct 2013 09:22:24 -0000
Received: from unknown (HELO saturn3.Aculab.com) (10.202.163.5) by
mx0.aculab.com (qpsmtpd/0.28) with ESMTP; Mon, 14 Oct 2013 10:22:24 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01CEC8BE.9F9E5EA7"
Date: Mon, 14 Oct 2013 10:20:28 +0100
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6026B738A@saturn3.aculab.com>
In-Reply-To: <CAOwWmo3uoAd+0jODki3x0W-q1av0jt8BEkMZr8Y_4haLgi2KOA@mail.gmail.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [Sigtran] M3UA: Message Length
Thread-Index: Ac7ImDeKle/U8to2R864pzU+4LfuFQAJVniA
References: <CAOwWmo1iRu94iAakEGcFLMymaAmtMHTmE+pY5UQttoVHWaFNVQ@mail.gmail.com><1448C90C-907A-4DE1-8C0A-85C020E71DD2@lurchi.franken.de><AE90C24D6B3A694183C094C60CF0A2F6026B7388@saturn3.aculab.com>
<CAOwWmo3uoAd+0jODki3x0W-q1av0jt8BEkMZr8Y_4haLgi2KOA@mail.gmail.com>
From: "David Laight" <David.Laight@ACULAB.COM>
To: "santosh nayak" <santosh.nayak69@gmail.com>
X-Virus-Scanned: by iCritical at mx0.aculab.com
Cc: sigtran@ietf.org
Subject: Re: [Sigtran] M3UA: Message Length
X-BeenThere: sigtran@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Signaling Transport <sigtran.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sigtran>,
<mailto:sigtran-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sigtran>
List-Post: <mailto:sigtran@ietf.org>
List-Help: <mailto:sigtran-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sigtran>,
<mailto:sigtran-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Oct 2013 09:25:04 -0000
I’ve NFI what you used to take that trace – Wireshark will only give me a hexdump.
Anyway the packet decodes as:
Pad, MAC addresses, ethertype
0000 00 00 00 01 00 06 00 1a 30 2b 4b c0 00 00 08 00
IP header
0010 45 02 00 ac 13 31 00 00 fe 84 3f ca 0a 3a 70 c8
0020 0a 3a e3 94
SCTP
ports: 0f 53 0f 59
tag: 49 33 5f c5
cksum: 7f 3e b6 8d
0030 chunk type: 00
flags: 03
length: 00 8a
TSN: da 58 6c 93
Stream id: 00 01
Stream-seq: 00 08
Payload-id: 00 00 00 03
M3UA data, length 0x7c
0040 01 00 01 01 00 00 00 7c
02 00 00 08
00 00 00 02
0050 00 06 00 08
00 00 00 08
02 10 00 62
00 00 0b ba
0060 00 00 13 8b 03 03 01 00 11 01 03 04 08 0c 45 04
0070 43 8b 13 07 04 43 ba 0b 07 39 00 00 00 00 00 00
0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 04
0090 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04
00a0 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04
00b0 04 04 04 10 04 40 00 00 00 00
Inter-chunk pad: 00 00
The problem is that the length of the M3UA message (0x7c) is larger than the payload
part of the SCTP message (0x8a – 0x10 = 0x7a).
The RFC might let you send that if the M3UA length were 0x7a, but I know that
all implementations will not be able to receive such messages – so it is best not
to send them.
David
From: santosh nayak [mailto:santosh.nayak69@gmail.com]
Sent: 14 October 2013 05:47
To: David Laight
Subject: Re: [Sigtran] M3UA: Message Length
Hi,
Thanks for the response...
I am attaching the pcap... packet number 85
Could you explain what MUST is violated???
Thanks,
Santosh
On Thu, Oct 10, 2013 at 5:57 PM, David Laight <David.Laight@aculab.com> wrote:
> From: sigtran-bounces@ietf.org [mailto:sigtran-bounces@ietf.org] On Behalf Of Michael Tuexen
> On Oct 10, 2013, at 11:40 AM, santosh nayak <santosh.nayak69@gmail.com> wrote:
>
> > Hi,
> >
> > We have a situation where message is being rejected at M3UA layer due to
> > buffer length is not equal to message length.
> >
> > What is the significance of Message Length and its importance with padding...
> >
> > in the current issue M3UA peer is sending the data buffer of size 122 bytes
> > to KSCTP. But message length parameter of M3UA common header contains a value
> > of 124 and KSCTP is doing the padding at its level of 2 bytes which is
> > observed from the wireshark traces.
Are you sure that pad isn't just from SCTP aligning it's chunks?
> > Now at DUT message droped with reason (message length parameter is greater
> > than actual M3UA data buffer size)
> >
> > Is this expected??? Please comment on this...
>
> At least the behaviour of the sender is not expected, since the sender
> violates a MUST.
I'm not sure what the note in section 3.1.4 is trying to allow, but
I think the message you are describing is definitely illegal.
I believe that the overall length in the 'common' header should always
match that of the SCTP data chunk.
This allows M3UA data to be separated into messages when sent using (say)
TCP rather than SCTP.
I suspect the note allows an implementation to add the pad (following a
parameter) when it adds a new one, rather than when it adds a parameter
that isn't a multiple of 4 bytes.
In any case I'd change your sending end.
David
- [Sigtran] M3UA: Message Length santosh nayak
- Re: [Sigtran] M3UA: Message Length Michael Tuexen
- Re: [Sigtran] M3UA: Message Length David Laight
- Re: [Sigtran] M3UA: Message Length David Laight
- Re: [Sigtran] M3UA: Message Length Saxena, Ravi (CMS)