With the increasingly obvious trend of satellite communication and network integration, especially the emergence of inter satellite links, the interconnection between space nodes has become the development trend and inevitable requirement of future space communication. However, problems, such as long communication distance, large transmission delay and loss, limited network resources and frequent switching of transmission links, limit the ability of spatial information transmission. Firstly, based on the idea of ring planning and design, this paper uses the joint design of beamforming between nodes to design the physical layer network coding in the relay to realize the reliable transmission of information. Secondly, according to the diversity of relay signal space resources and network node information exchange, a joint design method of relay compression matrix and node precoding vector is studied, which breaks through the existing configuration constraints. In this scheme, the computational complexity is reduced by compressing and precoding the matrix to ensure reliable decoding while obtaining spatial alignment gain and degrees of freedom. Simulated and real data results demonstrate the superiority and effectiveness of the proposed method.