---
title: ClusterInfo和IpInfo
description: "数据类型ClusterInfo和IpInfo定义在“${INSTALL_DIR}/include/ge/llm_engine_types.h”。${INSTALL_DIR}请替换为CANN软件安装后文件存储路径。以root用户安装为例，安装后文件默认存储路径为：/usr/local/Ascend/cann。具体信息如下。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/llmdatadistdev/llmc_42_0040.html
sourcePath: /source/zh/canncommercial/900/others/llmdatadistdev/llmc_42_0040.html
indexId: 357565c96d61513f75367e2088630fa2b381dc9c99b65147b4e19ea13a195d6169
---
# ClusterInfo和IpInfo

数据类型ClusterInfo和IpInfo定义在“${INSTALL_DIR}/include/ge/llm_engine_types.h”。${INSTALL_DIR}请替换为CANN软件安装后文件存储路径。以root用户安装为例，安装后文件默认存储路径为：/usr/local/Ascend/cann。具体信息如下。

```
struct ClusterInfo {
  uint64_t remote_cluster_id = 0U;     // 对端的llm engine的cluster_id
  int32_t remote_role_type = 0;          // 对端的llm engine的role_type，0表示全量，1表示增量
  std::vector<IpInfo> local_ip_infos;   // 本地llm engine Device的IP信息
  std::vector<IpInfo> remote_ip_infos; // 对端llm engine Device的IP信息
}

struct IpInfo {
  uint32_t ip = 0U;   // 小端IP地址转换后的uint32_t的值
  uint16_t port = 0U; // 端口号，client侧不需要指定；server侧port需要指定(hccl指定一个固定port让用户填写)
}
```
