LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2013, 01:29 PM   #1
dt1706
LQ Newbie
 
Registered: May 2013
Posts: 6

Rep: Reputation: Disabled
how to manage sack message in sctp


Hello Group Members,

i have two problems...

1. how can we bundle Sack with data chunk in sctp....?
example- sack-data_ack-data
2. how can we bundle different data chunk of different data size.?
example- sctp-data1(20 bytes)-sctp-data(16 bytes)-sctp-data(8 bytes)

please give me a solution.....
thanks in advance.............
 
Old 06-03-2013, 07:49 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,802

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
duplicate of https://www.linuxquestions.org/quest...tp-4175463346/
actually it will not help you further, please give us more detail, language, environment, sample code, whatever you have.
 
Old 06-03-2013, 11:54 AM   #3
dt1706
LQ Newbie
 
Registered: May 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
hello Pan,


I have to write a simulation code to generate packet with sctp .
i am giving flow of code...

i am using C-language with linux.
after session stablishment i want to send data in a stream...

ret = connect( connSock, (struct sockaddr *)&servaddr, sizeof(servaddr) );
for(i=0; i< 3; i++) {
ret = sctp_sendmsg( connSock,(void *) NTFY_ASPUP, sizeof(NTFY_ASPUP),
NULL, 0, htonl(3), 0,i, 0, 0 );
}
and data formet at wireshark like that: SACK ASPUP_ACK NTFY ASPUP
frame
linux cooked capture
IPV4
SCTP
MTP3UA
SCTP
MTP3UA
SCTP
MTP3UA


0000 00 00 00 01 00 06 00 01 6c 10 4e 33 00 00 08 00 ........ l.N3....
0010 45 00 00 a0 00 00 40 00 ff 84 b0 ea c0 a8 a4 7b E.....@. .......{
0020 c0 a8 a4 22 00 01 0b 59 38 ff 87 cf b1 5e b5 3c ..."...Y 8....^.<
0030 03 00 00 10 5f e8 57 86 00 20 0b 20 00 00 00 00 ...._.W. . . ....
0040 00 03 00 28 30 a4 45 d2 00 00 00 01 00 00 00 03 ...(0.E. ........
0050 01 00 04 01 00 00 00 18 00 0b 00 08 00 00 00 01 ........ ........
0060 00 06 00 08 00 00 00 65 00 03 00 20 30 a4 45 d3 .......e ... 0.E.
0070 00 00 00 02 00 00 00 03 01 00 03 04 00 00 00 10 ........ ........
0080 00 11 00 08 00 00 00 01 00 03 00 28 30 a4 45 d4 ........ ...(0.E.
0090 00 00 00 03 00 00 00 03 01 00 00 01 00 00 00 18 ........ ........
00a0 00 0d 00 08 00 01 00 02 00 06 00 08 00 00 00 c9 ........ ........

I have no idea how to gwt this packet using streaming......... help me if you can.....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to manage sack message in sctp dt1706 Programming 0 05-25-2013 09:44 PM
Inputs needed on SACK sahil.jammu Linux - Networking 3 12-12-2011 05:16 PM
kernel version for "sctp: make sctp over IPv6 work with IPsec" patch yhclqo Linux - Kernel 2 08-27-2010 01:00 AM
Can kernel SCTP co-exist with different SCTP in user space? JohnJLewis Linux - Kernel 0 07-19-2010 01:29 PM
can I sack windows xp for good tourbike Linux - Newbie 10 12-17-2005 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration