[zeromq-dev] a zeromq client in openwrt connecting to the server in a PC faild,
郝峰波
fengbo.hao at acknetworks.com
Tue Apr 29 04:51:38 CEST 2014
I compiled a libzmq.so for openqrt, and use it.1) I make a zmq server running on openwrt, and bind at a tcp://*:5002. It an receive messages from outting zmq client.
2) I compile the same client code for openwrt, and run it and send message to the outting zmq server(which has the same code as the openwrt zmq server), but it send message faild.
3) openwrt : server ; bind at : tcp://*:5002
pc : client , connect to 192.168.23.56:5002
root at AX:/usr/bin# tcpdump -nn -i eth0 -s0 port 5002
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
18:46:57.302798 IP 192.168.23.234.48798 > 192.168.23.56.5002: Flags [S], seq 2966132975, win 5840, options [mss 1460,sackOK,TS val 297715975 ecr 0,nop,wscale 7], length 0
18:46:57.302859 IP 192.168.23.56.5002 > 192.168.23.234.48798: Flags [S.], seq 214494057, ack 2966132976, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:57.303114 IP 192.168.23.234.48798 > 192.168.23.56.5002: Flags [.], ack 1, win 46, length 0
18:46:57.303144 IP 192.168.23.234.48798 > 192.168.23.56.5002: Flags [P.], ack 1, win 46, length 10
18:46:57.303159 IP 192.168.23.56.5002 > 192.168.23.234.48798: Flags [.], ack 11, win 92, length 0
18:46:57.303313 IP 192.168.23.56.5002 > 192.168.23.234.48798: Flags [P.], ack 11, win 92, length 12
18:46:57.303666 IP 192.168.23.234.48798 > 192.168.23.56.5002: Flags [.], ack 13, win 46, length 0
18:46:57.303678 IP 192.168.23.234.48798 > 192.168.23.56.5002: Flags [P.], ack 13, win 46, length 2
18:46:57.303684 IP 192.168.23.234.48798 > 192.168.23.56.5002: Flags [P.], ack 13, win 46, length 26
18:46:57.303713 IP 192.168.23.56.5002 > 192.168.23.234.48798: Flags [.], ack 39, win 92, length 0
18:46:57.303733 IP 192.168.23.56.5002 > 192.168.23.234.48798: Flags [P.], ack 39, win 92, length 2
18:46:57.303839 IP 192.168.23.56.5002 > 192.168.23.234.48798: Flags [P.], ack 39, win 92, length 36
18:46:57.304212 IP 192.168.23.234.48798 > 192.168.23.56.5002: Flags [.], ack 51, win 46, length 0
4) pc : server ; bint at : tcp://*:5002
openwrt : client ,connect to 192.168.23.234:5002
I run the “tcpdump -nn -i eth0 -s0 port 5002”and get some message, like below:
root at AX:/usr/bin# tcpdump -nn -i eth0 -s0 port 5002
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
18:46:01.561251 IP 192.168.23.56.57222 > 192.168.23.234.5002: Flags [S], seq 3649749439, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:01.561512 IP 192.168.23.234.5002 > 192.168.23.56.57222: Flags [S.], seq 2897863510, ack 3649749440, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:01.561534 IP 192.168.23.56.57222 > 192.168.23.234.5002: Flags [R], seq 3649749440, win 0, length 0
18:46:01.747995 IP 192.168.23.56.57223 > 192.168.23.234.5002: Flags [S], seq 3644941890, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:01.748242 IP 192.168.23.234.5002 > 192.168.23.56.57223: Flags [S.], seq 2899177700, ack 3644941891, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:01.748251 IP 192.168.23.56.57223 > 192.168.23.234.5002: Flags [R], seq 3644941891, win 0, length 0
18:46:01.877988 IP 192.168.23.56.57224 > 192.168.23.234.5002: Flags [S], seq 3642709054, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:01.878233 IP 192.168.23.234.5002 > 192.168.23.56.57224: Flags [S.], seq 2912356670, ack 3642709055, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:01.878242 IP 192.168.23.56.57224 > 192.168.23.234.5002: Flags [R], seq 3642709055, win 0, length 0
18:46:02.027976 IP 192.168.23.56.57225 > 192.168.23.234.5002: Flags [S], seq 3650634385, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:02.028223 IP 192.168.23.234.5002 > 192.168.23.56.57225: Flags [S.], seq 2912512354, ack 3650634386, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:02.028231 IP 192.168.23.56.57225 > 192.168.23.234.5002: Flags [R], seq 3650634386, win 0, length 0
18:46:02.217965 IP 192.168.23.56.57226 > 192.168.23.234.5002: Flags [S], seq 3661735285, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:02.218209 IP 192.168.23.234.5002 > 192.168.23.56.57226: Flags [S.], seq 2901013963, ack 3661735286, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:02.218217 IP 192.168.23.56.57226 > 192.168.23.234.5002: Flags [R], seq 3661735286, win 0, length 0
18:46:02.417953 IP 192.168.23.56.57227 > 192.168.23.234.5002: Flags [S], seq 3660050906, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:02.418200 IP 192.168.23.234.5002 > 192.168.23.56.57227: Flags [S.], seq 2914782516, ack 3660050907, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:02.418208 IP 192.168.23.56.57227 > 192.168.23.234.5002: Flags [R], seq 3660050907, win 0, length 0
18:46:02.527946 IP 192.168.23.56.57228 > 192.168.23.234.5002: Flags [S], seq 3652686253, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:02.528190 IP 192.168.23.234.5002 > 192.168.23.56.57228: Flags [S.], seq 2903175110, ack 3652686254, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:02.528198 IP 192.168.23.56.57228 > 192.168.23.234.5002: Flags [R], seq 3652686254, win 0, length 0
18:46:02.667938 IP 192.168.23.56.57229 > 192.168.23.234.5002: Flags [S], seq 3664133390, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:02.668186 IP 192.168.23.234.5002 > 192.168.23.56.57229: Flags [S.], seq 2901699228, ack 3664133391, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:02.668195 IP 192.168.23.56.57229 > 192.168.23.234.5002: Flags [R], seq 3664133391, win 0, length 0
18:46:02.837931 IP 192.168.23.56.57230 > 192.168.23.234.5002: Flags [S], seq 3671816666, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:02.838175 IP 192.168.23.234.5002 > 192.168.23.56.57230: Flags [S.], seq 2914731770, ack 3671816667, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:02.838185 IP 192.168.23.56.57230 > 192.168.23.234.5002: Flags [R], seq 3671816667, win 0, length 0
18:46:02.977920 IP 192.168.23.56.57231 > 192.168.23.234.5002: Flags [S], seq 3662093067, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
18:46:02.978167 IP 192.168.23.234.5002 > 192.168.23.56.57231: Flags [S.], seq 2914404292, ack 3662093068, win 5840, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
18:46:02.978175 IP 192.168.23.56.57231 > 192.168.23.234.5002: Flags [R], seq 3662093068, win 0, length 0
^C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140429/4b3e0789/attachment.htm>
More information about the zeromq-dev
mailing list