[ovs-discuss] Need help to verify SCTP traffic using openvswitch
soumya kumar
soumya03081986 at gmail.com
Thu Jul 23 05:36:26 UTC 2015
Hi Dave,
Thanks for your reply.
I have attached the configuration detail in the email, Please let me know
if you need more information on the same.
Joe, I just want to check sctp traffic communication between two ovs
bridge, i was expecting that i should see sctp traffic, able to see tcp and
udp traffic between two bridge but sctp traffic is not seen.
Please check the attached configuration detail .
Regard,
Soumya
On 23 July 2015 at 04:26, Dave Waters <davewaters1970 at gmail.com> wrote:
> On the source and the destination where you're sending this sctp traffic,
> can you send the output of ovs-dpctl dump-flows and ovs-ofctl dump-flows?
> If there is a tunnel between the two hosts, then the packets could be
> getting dropped because of the additional header that you have slapped on.
>
> Dave
>
> On Thu, Jul 23, 2015 at 3:19 AM, Joe Stringer <joestringer at nicira.com>
> wrote:
>
>> What do you mean by verify?
>>
>> You'll need to be more specific on your configuration, what openflow
>> flows you have, etc. Specifically what is the difference between the
>> behaviour you expect and the behaviour you see?
>>
>> On 22 July 2015 at 06:45, soumya kumar <soumya03081986 at gmail.com> wrote:
>> > Hi,
>> >
>> > I want to verify SCTP traffic between two Hosts.
>> > I was trying to verify using two ways
>> > 1> using iperf3 ( as it support sctp traffic)
>> > 2> using sctp_test command
>> >
>> >
>> > I am not able to see sctp traffic while checking with openvswitch
>> 2.3.1. The
>> > same command works and able to see sctp traffic when i am not using
>> > openvswitch and checked with back-back connected port.
>> >
>> >
>> > Is there a way to verify sctp traffic support for openvswitch.Any simple
>> > test to verify this.
>> >
>> >
>> >
>> >
>> > Regards,
>> > Soumya
>> >
>> > _______________________________________________
>> > discuss mailing list
>> > discuss at openvswitch.org
>> > http://openvswitch.org/mailman/listinfo/discuss
>> >
>> _______________________________________________
>> discuss mailing list
>> discuss at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150723/4cc2a27e/attachment-0002.html>
-------------- next part --------------
Host-1 configuration:
====================
[root at localhost openvswitch-2.3.1]# ovs-vsctl show
0b49e9b6-4b37-46d1-9e92-f9d5f995af8a
Bridge "br0"
Port "br0"
Interface "br0"
type: internal
Port "vxlan0"
Interface "vxlan0"
type: vxlan
options: {remote_ip="192.168.1.10"}
[root at localhost openvswitch-2.3.1]# ifconfig p2p1
p2p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::21b:21ff:fe47:6af8 prefixlen 64 scopeid 0x20<link>
ether 00:1b:21:47:6a:f8 txqueuelen 1000 (Ethernet)
RX packets 71 bytes 10567 (10.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 147 bytes 28491 (27.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root at localhost openvswitch-2.3.1]# ifconfig br0
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1450
inet 10.10.10.2 netmask 255.255.255.0 broadcast 10.10.10.255
inet6 fe80::34d3:f2ff:fe2e:394d prefixlen 64 scopeid 0x20<link>
ether 36:d3:f2:2e:39:4d txqueuelen 0 (Ethernet)
RX packets 3 bytes 182 (182.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30 bytes 4252 (4.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root at localhost openvswitch-2.3.1]#
Host-2 configuration:
====================
[root at localhost openvswitch-2.3.1]# ovs-vsctl show
88f2bd6b-abdb-42c5-9762-be193883b363
Bridge "br0"
Port "br0"
Interface "br0"
type: internal
Port "vxlan0"
Interface "vxlan0"
type: vxlan
options: {remote_ip="192.168.1.11"}
[root at localhost openvswitch-2.3.1]# ifconfig p1p1
p1p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::21b:21ff:febb:3104 prefixlen 64 scopeid 0x20<link>
ether 00:1b:21:bb:31:04 txqueuelen 1000 (Ethernet)
RX packets 139 bytes 29443 (28.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 217 bytes 25247 (24.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root at localhost openvswitch-2.3.1]# ifconfig br0
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1450
inet 10.10.10.3 netmask 255.255.255.0 broadcast 10.10.10.255
inet6 fe80::1495:cff:fe48:5847 prefixlen 64 scopeid 0x20<link>
ether 16:95:0c:48:58:47 txqueuelen 0 (Ethernet)
RX packets 30 bytes 4252 (4.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 29 bytes 4897 (4.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root at localhost openvswitch-2.3.1]#
SCTP TEST:
=========
Host-2:
[root at localhost openvswitch-2.3.1]# sctp_test -H 10.10.10.3 -P 19000 -h 10.10.10.2 -p 19001 -l
remote:addr=10.10.10.2, port=19001, family=2
local:addr=10.10.10.3, port=igrid, family=2
seed = 1437629180
Starting tests...
socket(SOCK_SEQPACKET, IPPROTO_SCTP) -> sk=3
bind(sk=3, [a:10.10.10.3,p:igrid]) -- attempt 1/10
listen(sk=3,backlog=100)
Server: Receiving packets.
recvmsg(sk=3) Notification: SCTP_ASSOC_CHANGE(COMMUNICATION_UP)
(assoc_change: state=0, error=0, instr=10 outstr=10)
recvmsg(sk=3) Data 1 bytes. First 1 bytes: <empty> text[0]=0
recvmsg(sk=3) Notification: SCTP_ASSOC_CHANGE(COMMUNICATION_LOST)
(assoc_change: state=1, error=0, instr=0 outstr=0)
recvmsg(sk=3)
=============
Host-1:
[root at localhost openvswitch-2.3.1]# sctp_test -H 10.10.10.2 -P 19001 -h 10.10.10.3 -p 19000 -s
remote:addr=10.10.10.3, port=igrid, family=2
local:addr=10.10.10.2, port=19001, family=2
seed = 1437627548
Starting tests...
socket(SOCK_SEQPACKET, IPPROTO_SCTP) -> sk=3
bind(sk=3, [a:10.10.10.2,p:19001]) -- attempt 1/10
Client: Sending packets.(1/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2082906182
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1491096876
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1422135459
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1321169211
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=223500771
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1439362218
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=546555122
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=664489249
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1284111518
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2109450025
Client: Sending packets.(2/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1756070314
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=129647013
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1840072735
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=459604053
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1912473904
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1560941021
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=879714667
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1394742665
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=791413906
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1667658877
Client: Sending packets.(3/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1739004425
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1750090747
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1997851308
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1045391409
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1510755697
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1700671588
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1165511316
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=702361361
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=870604023
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1885747051
Client: Sending packets.(4/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=143644437
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=806026557
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1229360279
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1565779897
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2127195769
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1452861050
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=857658467
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=526267243
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2117350300
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2141769985
Client: Sending packets.(5/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=488233620
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1725936966
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=123933350
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=180822708
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=38057371
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2036407254
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1741763729
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=917772039
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1283666271
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=385693987
Client: Sending packets.(6/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=437947268
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=875187048
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2135784734
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=288314928
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1920578457
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1499056784
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1988986517
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=938606125
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=53934497
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=712106892
Client: Sending packets.(7/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=676869529
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=197578934
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1518133450
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1906229808
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1763358831
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1497845571
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1211607211
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=473533650
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2024112814
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1181473863
Client: Sending packets.(8/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=467819987
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=364862786
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=759927181
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=591753337
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=545685494
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=797984552
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=480676943
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=139965575
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1715756591
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1764343214
Client: Sending packets.(9/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=525659563
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=6220212
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=492046614
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=513960649
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=294535140
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=265141423
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2013017433
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=136038009
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1203747549
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=2066951930
Client: Sending packets.(10/10)
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=848144902
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1880617078
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=117047217
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=218794704
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1639363238
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1880406048
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1716640275
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=703486801
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=206456051
sendmsg(sk=3, assoc=0) 1 bytes.
SNDRCV(stream=0 flags=0x1 ppid=1593269441
close(sk=3)
[root at localhost openvswitch-2.3.1]#
dpclt aoutput while running above test:
======================================
Host-1:
[root at localhost ~]# ovs-dpctl dump-flows
recirc_id(0),skb_priority(0),in_port(1),eth(src=36:d3:f2:2e:39:4d,dst=16:95:0c:48:58:47),eth_type(0x0800),ipv4(src=10.10.10.2/0.0.0.0,dst=10.10.10.3/0.0.0.0,proto=132/0,tos=0x2/0x3,ttl=64/0,frag=no/0xff), packets:2, bytes:348, used:0.482s, actions:set(tunnel(tun_id=0x0,src=0.0.0.0,dst=192.168.1.10,tos=0x2,ttl=64,flags(df))),2
recirc_id(0),skb_priority(0),tunnel(tun_id=0x0,src=192.168.1.10,dst=192.168.1.11,tos=0x2,ttl=64,flags(key)),in_port(2),skb_mark(0),eth(src=16:95:0c:48:58:47,dst=36:d3:f2:2e:39:4d),eth_type(0x0800),ipv4(src=10.10.10.3/0.0.0.0,dst=10.10.10.2/0.0.0.0,proto=132/0,tos=0x2/0,ttl=64/0,frag=no/0xff), packets:1, bytes:66, used:0.482s, actions:1
[root at localhost ~]#
[root at localhost ~]# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=520.150s, table=0, n_packets=96, n_bytes=11120, idle_age=0, priority=0 actions=NORMAL
[root at localhost ~]#
TCP and UDP traffic:
[root at localhost openvswitch-2.3.1]# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 10.10.10.2 port 5001 connected with 10.10.10.3 port 50307
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-11.2 sec 640 KBytes 469 Kbits/sec
^C[root at localhost openvswitch-2.3.1]# iperf -s -u
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 3] local 10.10.10.2 port 5001 connected with 10.10.10.3 port 36930
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.004 ms 0/ 893 (0%)
^C[root at localhost openvswitch-2.3.1]#
More information about the discuss
mailing list