- From: Michael Tüxen <Michael.Tuexen AT micmac.franken.de>
- To: Mohd Arif <mohd.arif AT nechclst.in>
- Cc: sctp-discussion AT sctp.de
- Subject: Re: [SCTP-Discussion] how to use stt tool? Please help...
- Date: Mon, 20 Dec 2010 08:36:24 +0100
- List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
- List-id: SCTP Discussions <sctp-discussion.sctp.de>
Hi Arif,
have a look at the following test from the ETSI SCTP test suite:
(define (sctp-d-v-8-1-help peer-server? peer-addr local-port peer-port mtu)
(sctp-cleanup)
;; set up a asscociation first.
(let* ((tcb (if peer-server?
(associate-from-port peer-addr local-port peer-port
tester-os tester-mis)
(accept-association tester-os tester-mis)))
(header (get-header tcb))
(local-port (get-source-port header))
(local-tsn (get-local-tsn tcb))
(peer-addr (get-peer-addr tcb))
(peer-tsn (get-remote-tsn tcb)))
(sctp-send header
(vector (make-data-chunk local-tsn 1 0 0 (make-random-bytes (-
mtu (+ 20 12 16)))))
peer-addr)
;; Wait for the DATA chunk to receive.
(sctp-receive-chunk data-chunk?)
;; Acknowledge it.
(sctp-send header
(vector (make-sack-chunk peer-tsn 0 #() #()))
peer-addr)
(sctp-send header
(vector (make-abort-chunk #f))
peer-addr)
stt-test-result-passed))
In combination with the setting in sctp-param-testtool.scm you
can control if the above test acts as a server or client:
(define sut-is-server #f)
Best regards
Michael
On Dec 20, 2010, at 5:17 AM, Mohd Arif wrote:
>
Hi Machael,
>
>
Thanks a lot for your responses!!!
>
It's helping me a lot.
>
>
Can you please clarify one more point to me?
>
>
The SCTP association is a server-client connection.
>
If one endpoint is SUT and other endpoint is test tool based.
>
Then how will I configure my SUT to be a server or client so that it will
>
establish a connection with the other endpoint (test tool based endpoint)?
>
>
Thanks for your continous support.
>
>
Regards,
>
Arif
>
>
-----Original Message-----
>
From: Michael Tüxen
>
[mailto:Michael.Tuexen AT micmac.franken.de]
>
>
Sent: Sunday, December 19, 2010 7:49 PM
>
To: Mohd Arif
>
Cc:
>
sctp-discussion AT sctp.de
>
Subject: Re: [SCTP-Discussion] how to use stt tool? Please help...
>
>
On Dec 19, 2010, at 2:41 PM, Mohd Arif wrote:
>
>
>
> Hi All,
>
> Hey Michael, Thanks for the reply. But here is a small twist.
>
>
>
> The link http://sctp.fh-muenster.de/sctp-testtool.html/ states
>
> that in order to use the stt tool "the operating system must NOT provide
>
> kernel SCTP support."
>
> I have to use a tool to verify the changes that will be
>
> done in kernel SCTP code. So I think the stt tool can't be used in my
>
> case. Kindly confirm.
>
You need two systems: One being the system under test (SUT) which runs your
>
modified
>
kernel stack, and the other one, which runs the test tool and does not have
>
an
>
SCTP kernel implementation.
>
>
>
> Further I found one more tool at
>
> http://sctp.fh-muenster.de/m3ua-testtool.html/ which states that "the
>
> operation system must provide kernel SCTP support."
>
> But again the tool is guile based and I am clueless about
>
> its usage. Kindly help.
>
This is for M3UA tests, not for SCTP tests.
>
>
>
> My sole purpose is to get an application or tool which can
>
> create or generate SCTP data packets (duplicate packets, very low and very
>
> high TSN packets etc)
>
So you need two systems as indicated above...
>
>
Best regards
>
Michael
>
>
>
> Time is running out for me. It is very urgent and I will be really
>
> grateful if anybody can suggest.
>
>
>
> Thanks,
>
> Arif
>
>
>
> -----Original Message-----
>
> From: Michael Tüxen
>
> [mailto:Michael.Tuexen AT micmac.franken.de]
>
>
>
> Sent: Saturday, December 18, 2010 4:35 PM
>
> To: Mohd Arif
>
> Cc:
>
> sctp-discussion AT sctp.de
>
> Subject: Re: [SCTP-Discussion] how to use stt tool? Please help...
>
>
>
> On Dec 18, 2010, at 10:06 AM, Mohd Arif wrote:
>
>
>
>> Hi All,
>
>>
>
>> Please help!!!
>
>>
>
>> I want to verify the SCTP implementation by generating and configuring
>
>> different SCTP packets like high TSN data chunks, duplicate data chunks
>
>> or duplicate INIT chunks.
>
>>
>
>> To achieve the same, I have installed stt-0.9.9b and download sctp-tests
>
>> from following location:
>
>> http://sctp.fh-muenster.de/sctp-testtool.html/
>
>>
>
>> I am new to guile based tools and don't know how they work.
>
>> Please help me out and give me steps to generate the packets using stt
>
>> tool.
>
>>
>
>> In the meantime i am trying to get the usage of the software.
>
> Hi Arif,
>
>
>
> you might want to take a look at the implementation of the ETSI conformance
>
> tests to figure out how to write simple tests.
>
>
>
> Best regards
>
> Michael
>
>>
>
>> Thanks,
>
>> Arif
>
>>
>
>>
>
>> DISCLAIMER:
>
>> -----------------------------------------------------------------------------------------------------------------------
>
>> The contents of this e-mail and any attachment(s) are confidential and
>
>> intended
>
>> for the named recipient(s) only.
>
>> It shall not attach any liability on the originator or NECHCL or its
>
>> affiliates. Any views or opinions presented in
>
>> this email are solely those of the author and may not necessarily reflect
>
>> the
>
>> opinions of NECHCL or its affiliates.
>
>> Any form of reproduction, dissemination, copying, disclosure,
>
>> modification,
>
>> distribution and / or publication of
>
>> this message without the prior written consent of the author of this
>
>> e-mail is
>
>> strictly prohibited. If you have
>
>> received this email in error please delete it and notify the sender
>
>> immediately. .
>
>> -----------------------------------------------------------------------------------------------------------------------
>
>>
>
>> _______________________________________________
>
>> sctp-discussion mailing list
>
>> sctp-discussion AT sctp.de
>
>> http://www.sctp.de/mailman/listinfo/sctp-discussion
>
>
>
>
>
> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
>
>
>
> The contents of this e-mail and any attachment(s) are confidential and
>
> intended
>
> for the named recipient(s) only.
>
> It shall not attach any liability on the originator or NECHCL or its
>
> affiliates. Any views or opinions presented in
>
> this email are solely those of the author and may not necessarily reflect
>
> the
>
> opinions of NECHCL or its affiliates.
>
> Any form of reproduction, dissemination, copying, disclosure,
>
> modification,
>
> distribution and / or publication of
>
> this message without the prior written consent of the author of this
>
> e-mail is
>
> strictly prohibited. If you have
>
> received this email in error please delete it and notify the sender
>
> immediately. .
>
> -----------------------------------------------------------------------------------------------------------------------
>
>
>
>
>
>
>
DISCLAIMER:
>
-----------------------------------------------------------------------------------------------------------------------
>
>
The contents of this e-mail and any attachment(s) are confidential and
>
intended
>
for the named recipient(s) only.
>
It shall not attach any liability on the originator or NECHCL or its
>
affiliates. Any views or opinions presented in
>
this email are solely those of the author and may not necessarily reflect
>
the
>
opinions of NECHCL or its affiliates.
>
Any form of reproduction, dissemination, copying, disclosure, modification,
>
distribution and / or publication of
>
this message without the prior written consent of the author of this e-mail
>
is
>
strictly prohibited. If you have
>
received this email in error please delete it and notify the sender
>
immediately. .
>
-----------------------------------------------------------------------------------------------------------------------
>
Archive powered by MHonArc 2.6.19+.