Hi, That script has not been recently maintained. Can’t you use instead vcl/ldp?
From the logs, probably the server is not binding correctly. Florin > On May 31, 2019, at 6:28 PM, nataraj.bat...@gmail.com wrote: > > Update on sock_test_client/sock_test_server: > > After running with LD_PRELOAD variable set, still see same issue. But the > problem is on server side. Its getting SYN packet sent by client but is > sending RST. Am I missing any config? > > root@host2:~/vpp/build-root/build-vpp-native/vpp/bin# > LD_PRELOAD=/root/vpp/build-root/build-vpp-native/vpp/lib/libvcl_ldpreload.so > ./sock_test_server 1.1.0.2 10011 > > SERVER: Waiting for a client to connect on port 1... > > SERVER: epoll_wait() timeout! > > SERVER: epoll_wait() timeout! > > SERVER: epoll_wait() timeout! > > SERVER: epoll_wait() timeout! > > > root@host1:~/vpp/build-root/build-vpp-native/vpp/bin# > LD_PRELOAD=/root/vpp/build-root/build-vpp-native/vpp/lib/libvcl_ldpreload.so > ./sock_test_client 1.1.0.2 10011 > > CLIENT: Connecting to server... > ERROR in main(): Connection refused > CLIENT: ERROR: connect failed (errno = 111)! > vl_client_disconnect:331: queue drain: 585 > > show trace o/p on server: > =================== > Packet 1 > > 03:52:39:089787: dpdk-input > TenGigabitEthernet3b/0/1 rx queue 0 > buffer 0x9b381: current data 0, length 74, buffer-pool 0, ref-count 1, > totlen-nifb 0, trace 0x0 > ext-hdr-valid > l4-cksum-computed l4-cksum-correct > PKT MBUF: port 0, nb_segs 1, pkt_len 74 > buf_len 2176, data_len 74, ol_flags 0x180, data_off 128, phys_addr > 0xab2ce0c0 > packet_type 0x111 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0 > rss 0x0 fdir.hi 0x0 fdir.lo 0x0 > Packet Offload Flags > PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid > PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid > Packet Types > RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet > RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers > RTE_PTYPE_L4_TCP (0x0100) TCP packet > IP4: 70:69:5a:48:08:b3 -> 00:be:75:72:3d:5f > TCP: 1.1.0.1 -> 1.1.0.2 > tos 0x00, ttl 255, length 60, checksum 0xfdca > fragment id 0x7bec, flags DONT_FRAGMENT > TCP: 44839 -> 10011 > seq. 0xf06c93e7 ack 0x00000000 > flags 0x02 SYN, tcp header: 40 bytes > window 4096, checksum 0xa241 > 03:52:39:089798: ethernet-input > frame: flags 0x3, hw-if-index 1, sw-if-index 1 > IP4: 70:69:5a:48:08:b3 -> 00:be:75:72:3d:5f > 03:52:39:089805: ip4-input-no-checksum > TCP: 1.1.0.1 -> 1.1.0.2 > tos 0x00, ttl 255, length 60, checksum 0xfdca > fragment id 0x7bec, flags DONT_FRAGMENT > TCP: 44839 -> 10011 > seq. 0xf06c93e7 ack 0x00000000 > flags 0x02 SYN, tcp header: 40 bytes > window 4096, checksum 0xa241 > 03:52:39:089811: ip4-lookup > fib 0 dpo-idx 5 flow hash: 0x00000000 > TCP: 1.1.0.1 -> 1.1.0.2 > tos 0x00, ttl 255, length 60, checksum 0xfdca > fragment id 0x7bec, flags DONT_FRAGMENT > TCP: 44839 -> 10011 > seq. 0xf06c93e7 ack 0x00000000 > flags 0x02 SYN, tcp header: 40 bytes > window 4096, checksum 0xa241 > 03:52:39:089819: ip4-local > TCP: 1.1.0.1 -> 1.1.0.2 > tos 0x00, ttl 255, length 60, checksum 0xfdca > fragment id 0x7bec, flags DONT_FRAGMENT > TCP: 44839 -> 10011 > seq. 0xf06c93e7 ack 0x00000000 > flags 0x02 SYN, tcp header: 40 bytes > window 4096, checksum 0xa241 > 03:52:39:089821: tcp4-input > TCP: 44839 -> 10011 > seq. 0xf06c93e7 ack 0x00000000 > flags 0x02 SYN, tcp header: 40 bytes > window 4096, checksum 0xa241 > [0:0][T] :::0->:::0 CLOSED > 03:52:39:089828: tcp4-reset > TCP: 10011 -> 44839 > seq. 0x00000000 ack 0xf06c93e8 > flags 0x14 RST ACK, tcp header: 20 bytes > window 0, checksum 0x5334 > [0:0][T] :::0->:::0 CLOSED > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#13192): https://lists.fd.io/g/vpp-dev/message/13192 > Mute This Topic: https://lists.fd.io/mt/31874159/675152 > Mute #vnet: https://lists.fd.io/mk?hashtag=vnet&subid=1480544 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [fcoras.li...@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13193): https://lists.fd.io/g/vpp-dev/message/13193 Mute This Topic: https://lists.fd.io/mt/31874159/21656 Mute #vnet: https://lists.fd.io/mk?hashtag=vnet&subid=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-