# routing **Repository Path**: rippleos/routing ## Basic Information - **Project Name**: routing - **Description**: MOSS 路由模块 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-11 - **Last Updated**: 2026-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MOSS Routing Layer (mrouting) SOME/IP message routing daemon that bridges services across different hosts and domains. ## Features - **SOME/IP Message Routing**: Routes SOME/IP messages between services - **Service Discovery Proxy**:代理服务发现请求 - **Shared Memory Interface**: Fast local communication via mshm - **IPv4 Support**: UDP/TCP transport over IPv4 ## Architecture ``` routing/ ├── include/routing/ │ ├── mrouting.h # Main include │ ├── route_manager.h # Route management │ ├── route_table.h # Routing table │ ├── sd_handler.h # Service discovery handler │ ├── endpoint_manager.h # Endpoint management │ ├── shm_interface.h # Shared memory interface │ └── message.h # Message types ├── src/ # Implementation files └── test/ # Unit tests ``` ## Dependencies - msomeip (SOME/IP protocol stack) - mshm (Shared Memory) ## Building ```bash cd mrouting mkdir -p build && cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON make -j4 ``` ## Running Tests ```bash ctest ``` ## Configuration The routing daemon reads configuration from the `config/` directory: - `routing.yaml` - Routing rules and policies ## Usage ```bash # Start the routing daemon ./mrouting # It will: # 1. Load routing configuration # 2. Initialize SOME/IP stack # 3. Start service discovery proxy # 4. Begin routing messages ``` ## Key Components - **RouteManager**: Manages routing rules and table updates - **SDHandler**: Handles service discovery messages - **EndpointManager**: Manages UDP/TCP endpoints - **ShmInterface**: Interface to shared memory for local services ## Architecture ``` +-------------+ | Service A | +------+------+ | [Shared Memory] | +------------+------------+ | | +-------v-------+ +--------v--------+ | mshm agent | | mrouting | +---------------+ | | | +-----------+ | | |RouteTable | | | +-----------+ | | |SDHandler | | | +-----------+ | +-------+---------+ | [UDP/TCP Network] | +---------v---------+ | Service B | +-------------------+ ``` ## License MIT License