COVESA / vsomeip

An implementation of Scalable service-Oriented MiddlewarE over IP
Mozilla Public License 2.0
1.01k stars 647 forks source link

[error] routing_manager_impl::add_routing_info: rejecting routing info. Remote: 192.168.1.188 is trying to offer [1234.5678.0.0] on port 30509 offered previously on this node: [1234.5678.0.0] #640

Closed CuriousFu closed 2 months ago

CuriousFu commented 2 months ago

vSomeip Version

v3.4.10

Boost Version

ubuntu :1.81.0, qnx:1.63.0

Environment

ubuntu 2004 ,qnx710

Describe the bug

[error] routing_manager_impl::add_routing_info: rejecting routing info. Remote: 192.168.1.188 is trying to offer [1234.5678.0.0] on port 30509 offered previously on this node: [1234.5678.0.0]

Reproduction Steps

ubuntu as server: env VSOMEIP_CONFIGURATION=./vsomeip-local.json VSOMEIP_APPLICATION_NAME=service-sample ./notify-sample qnx as client : VSOMEIP_CONFIGURATION=./vsomeip-local.json VSOMEIP_APPLICATION_NAME=client-sample ./response-sample ubuntu iptables:

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         _gateway        0.0.0.0         UG        0 0          0 enp0s31f6
10.168.60.0     0.0.0.0         255.255.255.0   U         0 0          0 enp0s31f6
link-local      0.0.0.0         255.255.0.0     U         0 0          0 enxf8e43b7d4170
172.17.0.0      0.0.0.0         255.255.0.0     U         0 0          0 docker0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 enxf8e43b7d4170
224.224.224.245 0.0.0.0         255.255.255.255 UH        0 0          0 enxf8e43b7d4170

qnx iptables:

Destination        Gateway            Flags    Refs      Use    Mtu  Interface
127.0.0.1          127.0.0.1          UH          0      320  33136  lo0
192.168.1/24       link#33            UC          3        0      -  emac0
192.168.1.1        00:55:7b:b5:7d:f9  UHLc        1        0      -  lo0
192.168.1.10       link#33            UHL1c       1      169      -  emac0
192.168.1.188      f8:e4:3b:7d:41:70  UHLc        1     1166      -  emac0
224.224.224.245    192.168.1.1        UGHS        0        0      -  emac0

Expected behaviour

No response

Logs and Screenshots

ubuntu logs:

   ~>env VSOMEIP_CONFIGURATION=./vsomeip-local.json VSOMEIP_APPLICATION_NAME=service-sample ./notify-sample
[ 2435.136260]~DLT~23596~INFO     ~FIFO /tmp/dlt cannot be opened. Retrying later...
2024-02-25 21:17:28.326005 [info] Using configuration file: "./vsomeip-local.json".
2024-02-25 21:17:28.328594 [info] Parsed vsomeip configuration in 1ms
2024-02-25 21:17:28.328698 [info] Configuration module loaded.
2024-02-25 21:17:28.328760 [info] Security disabled!
2024-02-25 21:17:28.328804 [info] Initializing vsomeip (3.4.10) application "service-sample".
2024-02-25 21:17:28.331138 [info] Instantiating routing manager [Host].
2024-02-25 21:17:28.332258 [info] create_routing_root: Routing root @ /tmp/vsomeip-0
2024-02-25 21:17:28.333106 [info] Service Discovery enabled. Trying to load module.
2024-02-25 21:17:28.339041 [info] Service Discovery module loaded.
2024-02-25 21:17:28.339360 [info] vsomeip tracing not enabled. . vsomeip service discovery tracing not enabled. 
2024-02-25 21:17:28.339504 [info] Application(service-sample, 1277) is initialized (11, 100).
2024-02-25 21:17:28.339691 [info] offer_event: Event [1234.5678.8778] uses configured cycle time 0ms
2024-02-25 21:17:28.339880 [info] REGISTER EVENT(1277): [1234.5678.8778:is_provider=true]
2024-02-25 21:17:28.340040 [info] Starting vsomeip application "service-sample" (1277) using 2 threads I/O nice 255
2024-02-25 21:17:28.340685 [info] Client [1277] routes unicast:192.168.1.188, netmask:255.255.255.0
2024-02-25 21:17:28.341935 [info] Watchdog is disabled!
2024-02-25 21:17:28.341989 [info] create_local_server: Listening @ /tmp/vsomeip-1277
2024-02-25 21:17:28.340560 [info] main dispatch thread id from application: 1277 (service-sample) is: 7f24e02ce700 TID: 23602
2024-02-25 21:17:28.342607 [info] OFFER(1277): [1234.5678:0.0] (true)
Application service-sample is registered.
Setting event (Length=1).
2024-02-25 21:17:28.343218 [info] io thread id from application: 1277 (service-sample) is: 7f24eb1bc740 TID: 23596
2024-02-25 21:17:28.343254 [info] io thread id from application: 1277 (service-sample) is: 7f24e2ffd700 TID: 23605
2024-02-25 21:17:28.344660 [info] vSomeIP 3.4.10 | (default)
2024-02-25 21:17:28.345100 [info] Network interface "enxf8e43b7d4170" state changed: up
2024-02-25 21:17:28.345968 [info] Route "224.224.224.245/32 if: enxf8e43b7d4170 gw: n/a" state changed: up
2024-02-25 21:17:28.346301 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992 (1703936) local port:30490
2024-02-25 21:17:28.346427 [debug] Joining to multicast group 224.224.224.245 from 192.168.1.188
2024-02-25 21:17:28.346818 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992 (1703936) local port:30509
2024-02-25 21:17:28.346949 [info] udp_server_endpoint_impl<multicast>: SO_RCVBUF is: 212992 (1703936) local port:30490
2024-02-25 21:17:28.346994 [info] SOME/IP routing ready.
2024-02-25 21:17:28.347039 [info] shutdown thread id from application: 1277 (service-sample) is: 7f24e3fff700 TID: 23603
Setting event (Length=2).
Setting event (Length=3).

qnx logs:

1970-01-01 00:23:07.872385 [warning] Reliability type for event [1234.5678.777] was not configured Using : RT_UNRELIABLE
1970-01-01 00:23:07.872385 [warning] Reliability type for event [1234.5678.778] was not configured Using : RT_UNRELIABLE
1970-01-01 00:23:07.872385 [warning] Reliability type for event [1234.5678.779] was not configured Using : RT_UNRELIABLE
1970-01-01 00:23:07.872395 [info] Using configuration file: "./vsomeip-local.json".
1970-01-01 00:23:07.872395 [info] Parsed vsomeip configuration in 506ms
1970-01-01 00:23:07.872395 [info] Configuration module loaded.
1970-01-01 00:23:07.872395 [info] Security disabled!
1970-01-01 00:23:07.872395 [info] Initializing vsomeip (3.4.10) application "client-sample".
1970-01-01 00:23:07.872405 [info] Instantiating routing manager [Host].
1970-01-01 00:23:07.872405 [info] create_routing_root: Routing root @ /var/vsomeip-0
1970-01-01 00:23:07.872415 [info] Service Discovery enabled. Trying to load module.
1970-01-01 00:23:07.872475 [info] Service Discovery module loaded.
1970-01-01 00:23:07.872475 [info] vsomeip tracing not enabled. . vsomeip service discovery tracing not enabled. 
1970-01-01 00:23:07.872475 [info] Application(client-sample, 1344) is initialized (11, 100).
Static routing OFF
1970-01-01 00:23:07.872475 [info] Starting vsomeip application "client-sample" (1344) using 2 threads I/O nice 255
1970-01-01 00:23:07.872485 [info] main dispatch thread id from application: 1344 (client-sample) is: 6
1970-01-01 00:23:07.872485 [info] shutdown thread id from application: 1344 (client-sample) is: 7
1970-01-01 00:23:07.872485 [info] udp_server_endpoint_impl: SO_RCVBUF is: 1703936 (1703936) local port:30490
1970-01-01 00:23:07.872485 [debug] Joining to multicast group 224.224.224.245 from 192.168.1.1
1970-01-01 00:23:07.872495 [info] SOME/IP routing ready.
1970-01-01 00:23:07.872495 [info] Watchdog is disabled!
1970-01-01 00:23:07.872495 [info] udp_server_endpoint_impl<multicast>: SO_RCVBUF is: 1703936 (1703936) local port:30490
Application client-sample is registered.
1970-01-01 00:23:07.872495 [info] io thread id from application: 1344 (client-sample) is: 9
1970-01-01 00:23:07.872495 [info] io thread id from application: 1344 (client-sample) is: 1
1970-01-01 00:23:07.872505 [info] vSomeIP 3.4.10 | (default)
1970-01-01 00:23:07.872505 [info] udp_server_endpoint_impl: SO_RCVBUF is: 1703936 (1703936) local port:30509
1970-01-01 00:23:07.872515 [info] create_local_server: Listening @ /var/vsomeip-1344
1970-01-01 00:23:07.872515 [info] OFFER(1344): [1234.5678:0.0] (true)
1970-01-01 00:23:07.872515 [info] Port configuration missing for [1235.5678]. Service is internal.
1970-01-01 00:23:07.872525 [info] OFFER(1344): [1235.5678:0.0] (true)
1970-01-01 00:23:07.877065 [error] routing_manager_impl::add_routing_info: rejecting routing info. Remote: 192.168.1.188 is trying to offer [1234.5678.0.0] on port 30509 offered previously on this node: [1234.5678.0.0]
1970-01-01 00:23:17.972507 [info] vSomeIP 3.4.10 | (default)
1970-01-01 00:23:17.972700 [info] STOP OFFER(1344): [1234.5678:0.0] (true)
1970-01-01 00:23:17.972700 [warning] stop_offer_service received STOP_OFFER(1344): [1234.5678:0.0] for remote service --> ignore
1970-01-01 00:23:17.972700 [info] STOP OFFER(1344): [1235.5678:0.0] (true)
1970-01-01 00:23:27.072508 [info] vSomeIP 3.4.10 | (default)
1970-01-01 00:23:27.072855 [warning] routing_manager_impl::handle_local_offer_service: Application: 1344 is offering: [1234.5678.0.0] offered previously by itself.
1970-01-01 00:23:27.072855 [info] offer_service (1344): [1234.5678:0.0] (true) not offering, returned from handle_local_offer_service!
1970-01-01 00:23:27.072855 [info] Port configuration missing for [1235.5678]. Service is internal.
1970-01-01 00:23:27.072855 [info] OFFER(1344): [1235.5678:0.0] (true)
1970-01-01 00:23:30.109352 [info] STOP OFFER(1344): [1234.5678:0.0] (true)
1970-01-01 00:23:30.109352 [warning] stop_offer_service received STOP_OFFER(1344): [1234.5678:0.0] for remote service --> ignore
1970-01-01 00:23:30.109352 [info] STOP OFFER(1344): [1235.5678:0.0] (true)