zmq code checks and impovements #276

Closed
opened 2022-02-11 16:29:33 +00:00 by pavel.baykov · 7 comments
pavel.baykov commented 2022-02-11 16:29:33 +00:00 (Migrated from gitlab.com)

Check ZMQ ports and traffic, it happened that we lost ZMQ or send to wrong port
Need to check if ZMQ, bitcoin provides a way to control if we actually established connection
We don't parse all from ZMQ, check if we need it

Check ZMQ ports and traffic, it happened that we lost ZMQ or send to wrong port Need to check if ZMQ, bitcoin provides a way to control if we actually established connection We don't parse all from ZMQ, check if we need it
pavel.baykov commented 2022-02-11 16:29:33 +00:00 (Migrated from gitlab.com)

assigned to @pavel.baykov

assigned to @pavel.baykov
pavel.baykov commented 2022-02-14 15:24:58 +00:00 (Migrated from gitlab.com)

using lsof, netstat verified that zmq use port 11111

using lsof, netstat verified that zmq use port 11111
pavel.baykov commented 2022-02-14 15:26:22 +00:00 (Migrated from gitlab.com)

using https://github.com/whitequark/zmtp-wireshark Wireshark ZMQ plugin and pcap captured with tcpdump
checked validity of the stream, each message have 3 Data Frames

using https://github.com/whitequark/zmtp-wireshark Wireshark ZMQ plugin and pcap captured with tcpdump checked validity of the stream, each message have 3 Data Frames
pavel.baykov commented 2022-02-15 13:13:27 +00:00 (Migrated from gitlab.com)

based on
https://github.com/bitcoin/bitcoin/pull/14687
and https://github.com/bitcoin/bitcoin/issues/12754
we need to check Bitcoin node with
sudo sysctl -w net.ipv4.tcp_keepalive_time=600 or lower
by default it’s 7200

capture pcap and check with Wireshark with plugin posted above

based on https://github.com/bitcoin/bitcoin/pull/14687 and https://github.com/bitcoin/bitcoin/issues/12754 we need to check Bitcoin node with sudo sysctl -w net.ipv4.tcp_keepalive_time=600 or lower by default it’s 7200 capture pcap and check with Wireshark with plugin posted above
pavel.baykov commented 2022-02-15 13:14:46 +00:00 (Migrated from gitlab.com)

as a reference from Bitcoin code the same functionality:
37a7fe9e44/contrib/zmq/zmq_sub.py

as a reference from Bitcoin code the same functionality: https://github.com/bitcoin/bitcoin/blob/37a7fe9e440b83e2364d5498931253937abe9294/contrib/zmq/zmq_sub.py
Hiltos1 commented 2022-02-15 14:52:34 +00:00 (Migrated from gitlab.com)

Not sure if this might be useful to you, but I've created a ZMQ Utility for our BTC-SONs: https://gitlab.com/PBSA/tools-libs/zmq-for-btc-sons

Not sure if this might be useful to you, but I've created a ZMQ Utility for our BTC-SONs: https://gitlab.com/PBSA/tools-libs/zmq-for-btc-sons
serkixenos commented 2022-02-15 18:45:03 +00:00 (Migrated from gitlab.com)

@Hiltos1 Siva will dockerize your tool and make it ready for QA env. Related ticket: https://gitlab.com/PBSA/tools-libs/zmq-for-btc-sons/-/issues/1

@Hiltos1 Siva will dockerize your tool and make it ready for QA env. Related ticket: https://gitlab.com/PBSA/tools-libs/zmq-for-btc-sons/-/issues/1
serkixenos (Migrated from gitlab.com) closed this issue 2022-02-15 18:45:04 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#276
No description provided.