COVESA / COVESA/vsomeip

[BUG]: SD multicast in windows

Open
#979 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
1.4k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

### vSomeip Version

v3.5.11

### Boost Version

1.66

### Environment

Windows 11

### Describe the bug

can't view the offer mutlicast message in wireshark.

# config
```json
{
"unicast": "192.168.6.63",
"logging": {
"level": "debug",
"console": "true"
},
"shutdown_timeout": 0,
"tracing": {
"enable": "true",
"sd_enable": "true"
},
"applications": [
{
"name": "SomeIP_0",
"id": "0x6301"
}
],
"routing": "SomeIP_0",
"services": [
{
"service": "0x1111",
"instance": "0x2222",
"unreliable": "30509"
}
],
"service-discovery": {
"enable": true,
"multicast": "224.224.224.245",
"port": 30490,
"protocol": "udp",
"initial_delay_min": 10,
"initial_delay_max": 100,
"repetitions_base_delay": 200,
"repetitions_max": 3,
"ttl": "128",
"cyclic_offer_delay": 1000,
"request_response_delay": 2000
}
}
```

### Reproduction Steps

use the config and run .\hello_world_service.exe

### Expected behaviour

see the SD in wireshark

### Logs and Screenshots

```txt
2025-11-24 00:01:00.628833 SomeIP_0 [info] Using configuration file: "D:\code\vsomeip\build\Debug\SomeIP_0.json".
2025-11-24 00:01:00.629322 SomeIP_0 [info] Parsed vsomeip configuration in 15ms
2025-11-24 00:01:00.629494 SomeIP_0 [info] Configuration module loaded.
2025-11-24 00:01:00.629590 SomeIP_0 [info] Security disabled!
2025-11-24 00:01:00.629836 SomeIP_0 [info] Initializing vsomeip (3.5.11) application "SomeIP_0".
2025-11-24 00:01:00.631100 SomeIP_0 [info] Instantiating routing manager [Host].
2025-11-24 00:01:00.634810 SomeIP_0 [info] vsomeip_v3::endpoint_manager_impl::endpoint_manager_impl: Connecting to other clients from 127.0.0.1:31491
2025-11-24 00:01:00.637717 SomeIP_0 [info] vsomeip_v3::endpoint_manager_impl::create_routing_root: Routing root @ 127.0.0.1:31490
2025-11-24 00:01:00.644898 SomeIP_0 [info] Service Discovery enabled. Trying to load module.
2025-11-24 00:01:00.688156 SomeIP_0 [info] Service Discovery module loaded.
2025-11-24 00:01:00.689722 SomeIP_0 [info] sdi::vsomeip_v3::sd::service_discovery_impl::init stop offer watchdog enabled.
2025-11-24 00:01:00.689877 SomeIP_0 [info] Application(SomeIP_0, 6301) is initialized (11, 100).
2025-11-24 00:01:00.691500 SomeIP_0 [info] Starting vsomeip application "SomeIP_0" (6301) using 2 threads boost event loop period 0
2025-11-24 00:01:00.692021 SomeIP_0 [info] Started thread 6301_m_dispatch, application 'SomeIP_0', id e988
2025-11-24 00:01:00.692265 SomeIP_0 [debug] Thread created. Number of active threads for SomeIP_0 : 1
2025-11-24 00:01:00.692460 SomeIP_0 [info] Started thread 6301_shutdown, application 'SomeIP_0', id fe94
2025-11-24 00:01:00.695162 SomeIP_0 [info] usei#1::vsomeip_v3::udp_server_endpoint_impl::udp_server_endpoint_impl
2025-11-24 00:01:00.695302 SomeIP_0 [info] usei#1::vsomeip_v3::udp_server_endpoint_impl::init: 192.168.6.63:30490, lifecycle_idx=0
2025-11-24 00:01:00.695740 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::init: lifecycle_idx=0, 操作成功完成。
2025-11-24 00:01:00.696194 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::start: lifecycle_idx=0
2025-11-24 00:01:00.696269 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::start_unlocked: start unicast data handler, lifecycle_idx=1
2025-11-24 00:01:00.696466 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::start_unlocked: join 0 groups
2025-11-24 00:01:00.696539 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::start: done, lifecycle_idx=1
2025-11-24 00:01:00.697244 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::join: 224.224.224.245
2025-11-24 00:01:00.697386 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: join 224.224.224.245, lifecycle_idx=1, stopped=0
2025-11-24 00:01:00.697744 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: start multicast data handler, lifecycle_idx=1
2025-11-24 00:01:00.697871 SomeIP_0 [info] SOME/IP routing ready.
2025-11-24 00:01:00.698427 SomeIP_0 [info] Watchdog is disabled!
2025-11-24 00:01:00.698593 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: join successful
2025-11-24 00:01:00.698779 SomeIP_0 [info] Started thread 6301_io00, application 'SomeIP_0', id 14150
2025-11-24 00:01:00.698843 SomeIP_0 [info] Started thread 6301_io01, application 'SomeIP_0', id 14840
2025-11-24 00:01:00.699209 SomeIP_0 [info] vSomeIP 3.5.11 | (default)
2025-11-24 00:01:00.700003 SomeIP_0 [info] rmi::vsomeip_v3::routing_manager_impl::offer_service added service: 1111 to pending_sd_offers_.size = 1
2025-11-24 00:01:00.700661 SomeIP_0 [debug] ON_OFFER_SERVICE(6301): [1111.2222:0.0]
2025-11-24 00:01:00.701337 SomeIP_0 [info] vsomeip_v3::endpoint_manager_base::create_local_server: Listening @ 127.0.0.1:31492
2025-11-24 00:01:00.701433 SomeIP_0 [info] vsomeip_v3::endpoint_manager_base::create_local_server: Connecting to other clients from 127.0.0.1:31491
2025-11-24 00:01:00.702720 SomeIP_0 [info] OFFER(6301): [1111.2222:0.0] (true)
2025-11-24 00:01:01.798832 SomeIP_0 [warning] Didn't receive a multicast SD message for 1100ms.
2025-11-24 00:01:01.799005 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::leave: 224.224.224.245
2025-11-24 00:01:01.799114 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::join: 224.224.224.245
2025-11-24 00:01:01.799131 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: leave 224.224.224.245, lifecycle_idx=1, stopped=0
2025-11-24 00:01:01.799279 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: leave successful
2025-11-24 00:01:01.799367 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: join 224.224.224.245, lifecycle_idx=1, stopped=0
2025-11-24 00:01:01.799451 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: join successful
2025-11-24 00:01:02.900020 SomeIP_0 [warning] Didn't receive a multicast SD message for 1100ms.
2025-11-24 00:01:02.900252 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::leave: 224.224.224.245
2025-11-24 00:01:02.900416 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::join: 224.224.224.245
2025-11-24 00:01:02.900441 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: leave 224.224.224.245, lifecycle_idx=1, stopped=0
2025-11-24 00:01:02.900631 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: leave successful
2025-11-24 00:01:02.900734 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: join 224.224.224.245, lifecycle_idx=1, stopped=0
2025-11-24 00:01:02.900853 SomeIP_0 [info] usei#1::192.168.6.63:30490::vsomeip_v3::udp_server_endpoint_impl::set_multicast_option: join successful
2025-11-24 00:01:04.001521 SomeIP_0 [warning] Didn't receive a multicast SD message for 1100ms.
```

Contributor guide

Open the contributing guide

Research direction

Reproduce on Windows 11 with the supplied configuration by running .\hello_world_service.exe and capturing traffic in Wireshark. Start at the logged udp_server_endpoint_impl multicast join and SD offer path; done means the service-discovery offer is visible as multicast traffic at 224.224.224.245:30490.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.