You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Network level configurations : Host :
sudo ip route add 224.0.0.0/4 dev enp0s3
sudo route add -host 224.244.224.245 dev enp0s3
Container :
ip route add 224.0.0.0/4 dev eth0
route add -host 224.244.224.245 dev eth0
Approaches tried :
Tried to ping host IP (192.168.226.193) from the container, and it worked.
Tried to send UDP multicast packet from the host to the container and it worked :
Container : tcpdump -i eth0 port 30490
Host : echo -n “Hello SOME/IP” | nc -u -w1 172.17.0.2 30490
Worked, UDP packet reaches container from the host.
Tried with --network host, Macvlan, normal Bridge network & ipvlan networks, still didn’t work.
Seems the issue is not with network route, but with the someIP configuration that doesn't allow consumer to discover the service or may be an issue from producer end while offering the service.
Any help will be useful.
I am attaching the producer and consumer contents as separate zip files.
P.S : enrty_script_local.sh will do some network configuration on the host, fetch the host IP and assign to the unicast field of the someIP config for the producer, then export the env variables for someIP, and run the executable.
Run the consumer code :
Extract the consumer.zip
Build the docker image : docker build -t cons-someip-img .
run the container : docker run --rm -it -d --cap-add=NET_ADMIN --name consumer-cont cons-someip-img
Once the above two are up and running ideally, consumer should be able to request and subscribe to the service offered by producer, but the same is not happening.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
vSomeip Version
v3.5.4
Boost Version
1.74
Environment
Ubuntu 20.04
Describe the bug
Hi Covesa group,
Stuck in a weird situation.
We have two applications - one running inside a container and another outside the container directly on the Ubuntu Host.
Both the apps are using someIP for communication.
Agenda : The application inside the container should be able to discover the service outside the container and able to communicate with it via someIP.
Issue : Containerized application is not able discover & communicate with service running outside in the host.
Network level configurations :
Host :
sudo ip route add 224.0.0.0/4 dev enp0s3
sudo route add -host 224.244.224.245 dev enp0s3
Container :
ip route add 224.0.0.0/4 dev eth0
route add -host 224.244.224.245 dev eth0
Approaches tried :
Container : tcpdump -i eth0 port 30490
Host : echo -n “Hello SOME/IP” | nc -u -w1 172.17.0.2 30490
Worked, UDP packet reaches container from the host.
Seems the issue is not with network route, but with the someIP configuration that doesn't allow consumer to discover the service or may be an issue from producer end while offering the service.
Any help will be useful.
I am attaching the producer and consumer contents as separate zip files.
consumer.zip
producer.zip
Reproduction Steps
Run the producer code :
Prerequisite : Install vsomeip 3.5.4.
compile the producer_someip.cpp :
P.S : enrty_script_local.sh will do some network configuration on the host, fetch the host IP and assign to the unicast field of the someIP config for the producer, then export the env variables for someIP, and run the executable.
Run the consumer code :
Extract the consumer.zip
Build the docker image : docker build -t cons-someip-img .
run the container : docker run --rm -it -d --cap-add=NET_ADMIN --name consumer-cont cons-someip-img
Once the above two are up and running ideally, consumer should be able to request and subscribe to the service offered by producer, but the same is not happening.
Beta Was this translation helpful? Give feedback.
All reactions