-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot connect to gateway on a host with many network interfaces by setting EPICS_PVA_ADDR_LIST #162
Comments
@goetzpf As you describe it, your configuration seems correct. Which makes me think that something more is going on.
If none of these give any hints, could you repeat your test while running a packet capture on the gateway host? eg. |
Hello Michael, thank you for your quick response. On 12/10/24 01:12, mdavidsaver wrote:
I have added the output of "ip -4 route" for the client host and the gateway host as attachment.
No, this doesn't work either.
pvxinfo gives this:
--> This works !
I have added a capture "raw-blc.pcapng.gz" here: https://e.pcloud.link/publink/show?code=XZrVHwZyTeMnXkRSs04l29KeBlks8CJlmW7 The attached screenshot from wireshark where I have opened the file above shows in the last line that the source IP of the reply UDP package is wrong.
I must admit that our routing table on the gateway host is a bit strange regarding the default route. However, I tested everything today on a different system where the default route is via 192.168.16.1 and this still doesn't work, I there see a similar problem. The source IP in the reply UDP packet is not the IP of the interface where the server part of the gateway is attached. Thanks, |
Something I should have asked earlier. What all PVA peers (clients and servers) are running on the gateway host? Which module version(s) are involved? If you are using P4P older than 4.0.0, please re-test with a newer version.
hmmm... The unicast search packets being re-send as local multicast (packets 62481 and 63761) do not look correct in a way which I don't think that PVXS is capable of. The "ORIGIN" address is fyi. The local mulicast "hack" which lets PVA avoid the need for separate UDP ports like CA. It does depends on all peers on a system cooperating. |
I have the following setup:
When I use EPICS_PVA_ADDR_LIST to connect directly to the gateway, the repsonse to the channel discovery request contains the wrong source interface address, not the one that was selected with EPICS_PVA_ADDR_LIST.
Here is the concrete example:
The gateway host has (among others) these interfaces;
This is the gateway configuration file:
I run this command on the client host (ip 193.149.12.42):
The relevant information is this:
EPICS_PVA_ADDR_LIST is set to connect directly to 192.168.16.7. The response UDP package has a source address of 172.30.134.57, not 192.168.16.7 as it should be. In our network setup, the client host has a route to 192.168.16.7 but not to 172.30.134.57 so it cannot connect.
I have verified that the same command line works when I connect to a soft-IOC on a host with many interfaces with was started by setting EPICS_PVAS_INTF_ADDR_LIST only on one of the network interfaces.
So this must be a problem of the pva gateway and not the pv access implementation in EPICS base.
The text was updated successfully, but these errors were encountered: