我在我的两台机器上尝试过相同版本的lk-sctp:lksctp-tools-1.0.10-7.el6.x86_64。它现在工作正常。
使用sctp_test命令测试:
请查找上面命令的pcap文件作为附件。
No. Time Source Destination Protocol Length Info 1 2014-11-19 07:03:56.983504 172.16.150.73 172.16.150.69 SCTP 82 INIT Frame 1: 82 bytes on wire (656 bits), 82 bytes captured (656 bits) Ethernet II, Src: HewlettP_77:28:14 (ac:16:2d:77:28:14), Dst: Hewlett-_09:fa:f2 (3c:d9:2b:09:fa:f2) Internet Protocol Version 4, Src: 172.16.150.73 (172.16.150.73), Dst: 172.16.150.69 (172.16.150.69) Stream Control Transmission Protocol, Src Port: 8887 (8887), Dst Port: 8887 (8887) Source port: 8887 Destination port: 8887 Verification tag: 0x00000000 Checksum: 0xefbed4cf (not verified) INIT chunk (Outbound streams: 10, inbound streams: 65535) Chunk type: INIT (1) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x00 Chunk length: 36 Initiate tag: 0x1ae17fe2 Advertised receiver window credit (a_rwnd): 32768 Number of outbound streams: 10 Number of inbound streams: 65535 Initial TSN: 1274590198 Supported address types parameter (Supported types: IPv4) ECN parameter Forward TSN supported parameter No. Time Source Destination Protocol Length Info 2 2014-11-19 07:03:56.983692 172.16.150.69 172.16.150.73 SCTP 306 INIT_ACK Frame 2: 306 bytes on wire (2448 bits), 306 bytes captured (2448 bits) Ethernet II, Src: Hewlett-_09:fa:f2 (3c:d9:2b:09:fa:f2), Dst: HewlettP_77:28:14 (ac:16:2d:77:28:14) Internet Protocol Version 4, Src: 172.16.150.69 (172.16.150.69), Dst: 172.16.150.73 (172.16.150.73) Stream Control Transmission Protocol, Src Port: 8887 (8887), Dst Port: 8887 (8887) Source port: 8887 Destination port: 8887 Verification tag: 0x1ae17fe2 Checksum: 0x27d64e2f (not verified) INIT_ACK chunk (Outbound streams: 10, inbound streams: 10) Chunk type: INIT_ACK (2) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x00 Chunk length: 260 Initiate tag: 0xc66950f2 Advertised receiver window credit (a_rwnd): 131072 Number of outbound streams: 10 Number of inbound streams: 10 Initial TSN: 3426172645 State cookie parameter (Cookie length: 228 bytes) ECN parameter Forward TSN supported parameter No. Time Source Destination Protocol Length Info 3 2014-11-19 07:03:56.983715 172.16.150.73 172.16.150.69 SCTP 298 COOKIE_ECHO DATA Frame 3: 298 bytes on wire (2384 bits), 298 bytes captured (2384 bits) Ethernet II, Src: HewlettP_77:28:14 (ac:16:2d:77:28:14), Dst: Hewlett-_09:fa:f2 (3c:d9:2b:09:fa:f2) Internet Protocol Version 4, Src: 172.16.150.73 (172.16.150.73), Dst: 172.16.150.69 (172.16.150.69) Stream Control Transmission Protocol, Src Port: 8887 (8887), Dst Port: 8887 (8887) Source port: 8887 Destination port: 8887 Verification tag: 0xc66950f2 Checksum: 0xa62c78e1 (not verified) COOKIE_ECHO chunk (Cookie length: 228 bytes) Chunk type: COOKIE_ECHO (10) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x00 Chunk length: 232 Cookie: 0d369ab0b67060dd9669f00c8536f8830000000000000000... DATA chunk(unordered, complete segment, TSN: 1274590198, SID: 0, SSN: 0, PPID: 4060145250, payload length: 1 byte) Chunk type: DATA (0) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x07 Chunk length: 17 TSN: 1274590198 Stream Identifier: 0x0000 Stream sequence number: 0 Payload protocol identifier: Unknown (4060145250) Chunk padding: 000000 Data (1 byte) 0000 00 . No. Time Source Destination Protocol Length Info 4 2014-11-19 07:03:56.983893 172.16.150.69 172.16.150.73 SCTP 66 COOKIE_ACK SACK Frame 4: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) Ethernet II, Src: Hewlett-_09:fa:f2 (3c:d9:2b:09:fa:f2), Dst: HewlettP_77:28:14 (ac:16:2d:77:28:14) Internet Protocol Version 4, Src: 172.16.150.69 (172.16.150.69), Dst: 172.16.150.73 (172.16.150.73) Stream Control Transmission Protocol, Src Port: 8887 (8887), Dst Port: 8887 (8887) Source port: 8887 Destination port: 8887 Verification tag: 0x1ae17fe2 Checksum: 0xda3c636b (not verified) COOKIE_ACK chunk Chunk type: COOKIE_ACK (11) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x00 Chunk length: 4 SACK chunk (Cumulative TSN: 1274590198, a_rwnd: 131071, gaps: 0, duplicate TSNs: 0) Chunk type: SACK (3) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x00 Chunk length: 16 Cumulative TSN ACK: 1274590198 Advertised receiver window credit (a_rwnd): 131071 Number of gap acknowledgement blocks: 0 Number of duplicated TSNs: 0 No. Time Source Destination Protocol Length Info 5 2014-11-19 07:03:56.983925 172.16.150.73 172.16.150.69 SCTP 1286 DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA Frame 5: 1286 bytes on wire (10288 bits), 1286 bytes captured (10288 bits) Ethernet II, Src: HewlettP_77:28:14 (ac:16:2d:77:28:14), Dst: Hewlett-_09:fa:f2 (3c:d9:2b:09:fa:f2) Internet Protocol Version 4, Src: 172.16.150.73 (172.16.150.73), Dst: 172.16.150.69 (172.16.150.69) Stream Control Transmission Protocol, Src Port: 8887 (8887), Dst Port: 8887 (8887) Source port: 8887 Destination port: 8887 Verification tag: 0xc66950f2 Checksum: 0xeb2aa0d5 (not verified) DATA chunk(unordered, complete segment, TSN: 1274590199, SID: 0, SSN: 0, PPID: 1262220821, payload length: 1 byte) Chunk type: DATA (0) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x07 Chunk length: 17 TSN: 1274590199 Stream Identifier: 0x0000 Stream sequence number: 0 Payload protocol identifier: Unknown (1262220821) Chunk padding: 000000 Data (1 byte) 0000 00 . Stream Control Transmission Protocol DATA chunk(unordered, complete segment, TSN: 1274590200, SID: 0, SSN: 0, PPID: 562102819, payload length: 1 byte) Chunk type: DATA (0) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x07 Chunk length: 17 TSN: 1274590200 Stream Identifier: 0x0000 Stream sequence number: 0 Payload protocol identifier: Unknown (562102819) Chunk padding: 000000 Data (1 byte) 0000 00 . Stream Control Transmission Protocol DATA chunk(unordered, complete segment, TSN: 1274590201, SID: 0, SSN: 0, PPID: 1776526345, payload length: 1 byte) Chunk type: DATA (0) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x07 Chunk length: 17 TSN: 1274590201 Stream Identifier: 0x0000 Stream sequence number: 0 Payload protocol identifier: Unknown (1776526345) Chunk padding: 000000 Data (1 byte) 0000 00 . Stream Control Transmission Protocol DATA chunk(unordered, complete segment, TSN: 1274590202, SID: 0, SSN: 0, PPID: 471734626, payload length: 1 byte) Chunk type: DATA (0) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x07 Chunk length: 17 TSN: 1274590202 Stream Identifier: 0x0000 Stream sequence number: 0 Payload protocol identifier: Unknown (471734626) Chunk padding: 000000 Data (1 byte) 0000 00 . Stream Control Transmission Protocol DATA chunk(unordered, complete segment, TSN: 1274590203, SID: 0, SSN: 0, PPID: 328336388, payload length: 1 byte) Chunk type: DATA (0) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x07 Chunk length: 17 TSN: 1274590203 Stream Identifier: 0x0000 Stream sequence number: 0 Payload protocol identifier: Unknown (328336388) Chunk padding: 000000 Data (1 byte) 0000 00 . Stream Control Transmission Protocol DATA chunk(unordered, complete segment, TSN: 1274590204, SID: 0, SSN: 0, PPID: 385618481, payload length: 1 byte) Chunk type: DATA (0) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x07 Chunk length: 17 TSN: 1274590204 Stream Identifier: 0x0000 Stream sequence number: 0 Payload protocol identifier: Unknown (385618481) Chunk padding: 000000 Data (1 byte) 0000 00 No. Time Source Destination Protocol Length Info 8 2014-11-19 07:03:57.383288 172.16.150.69 172.16.150.73 SCTP 62 SACK Frame 8: 62 bytes on wire (496 bits), 62 bytes captured (496 bits) Ethernet II, Src: Hewlett-_09:fa:f2 (3c:d9:2b:09:fa:f2), Dst: HewlettP_77:28:14 (ac:16:2d:77:28:14) Internet Protocol Version 4, Src: 172.16.150.69 (172.16.150.69), Dst: 172.16.150.73 (172.16.150.73) Stream Control Transmission Protocol, Src Port: 8887 (8887), Dst Port: 8887 (8887) Source port: 8887 Destination port: 8887 Verification tag: 0x1ae17fe2 Checksum: 0xf8ec99a1 (not verified) SACK chunk (Cumulative TSN: 1274590297, a_rwnd: 131072, gaps: 0, duplicate TSNs: 0) Chunk type: SACK (3) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x00 Chunk length: 16 Cumulative TSN ACK: 1274590297 Advertised receiver window credit (a_rwnd): 131072 Number of gap acknowledgement blocks: 0 Number of duplicated TSNs: 0 No. Time Source Destination Protocol Length Info 9 2014-11-19 07:03:57.383352 172.16.150.73 172.16.150.69 SCTP 54 SHUTDOWN Frame 9: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) Ethernet II, Src: HewlettP_77:28:14 (ac:16:2d:77:28:14), Dst: Hewlett-_09:fa:f2 (3c:d9:2b:09:fa:f2) Internet Protocol Version 4, Src: 172.16.150.73 (172.16.150.73), Dst: 172.16.150.69 (172.16.150.69) Stream Control Transmission Protocol, Src Port: 8887 (8887), Dst Port: 8887 (8887) Source port: 8887 Destination port: 8887 Verification tag: 0xc66950f2 Checksum: 0xdaccdae0 (not verified) SHUTDOWN chunk (Cumulative TSN ack: 3426172644) Chunk type: SHUTDOWN (7) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x00 Chunk length: 8 Cumulative TSN Ack: 3426172644 No. Time Source Destination Protocol Length Info 10 2014-11-19 07:03:57.383479 172.16.150.69 172.16.150.73 SCTP 60 SHUTDOWN_ACK Frame 10: 60 bytes on wire (480 bits), 60 bytes captured (480 bits) Ethernet II, Src: Hewlett-_09:fa:f2 (3c:d9:2b:09:fa:f2), Dst: HewlettP_77:28:14 (ac:16:2d:77:28:14) Internet Protocol Version 4, Src: 172.16.150.69 (172.16.150.69), Dst: 172.16.150.73 (172.16.150.73) Stream Control Transmission Protocol, Src Port: 8887 (8887), Dst Port: 8887 (8887) Source port: 8887 Destination port: 8887 Verification tag: 0x1ae17fe2 Checksum: 0x28d88127 (not verified) SHUTDOWN_ACK chunk Chunk type: SHUTDOWN_ACK (8) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x00 Chunk length: 4 No. Time Source Destination Protocol Length Info 11 2014-11-19 07:03:57.383498 172.16.150.73 172.16.150.69 SCTP 50 SHUTDOWN_COMPLETE Frame 11: 50 bytes on wire (400 bits), 50 bytes captured (400 bits) Ethernet II, Src: HewlettP_77:28:14 (ac:16:2d:77:28:14), Dst: Hewlett-_09:fa:f2 (3c:d9:2b:09:fa:f2) Internet Protocol Version 4, Src: 172.16.150.73 (172.16.150.73), Dst: 172.16.150.69 (172.16.150.69) Stream Control Transmission Protocol, Src Port: 8887 (8887), Dst Port: 8887 (8887) Source port: 8887 Destination port: 8887 Verification tag: 0xc66950f2 Checksum: 0xcb7bef01 (not verified) SHUTDOWN_COMPLETE chunk Chunk type: SHUTDOWN_COMPLETE (14) 0... .... = Bit: Stop processing of the packet .0.. .... = Bit: Do not report Chunk flags: 0x00 Chunk length: 4
只有一个疑问,这是否可以与其他SCTP堆栈无缝地协同工作?