In satellite, Data transferring is very important and must be reliable. This paper first introduced an on-board network based on Control Area Network (CAN). As a kind of field bus, CAN is simple and reliable, and has been tested by previous flights. In this paper, the CAN frame is redefined, including the identifier and message data, the addresses for source and destination as well as the frame types. On-board network provides datagram transmission and buffer transmission. Data gram transmission is used to carry out TTC functions, and buffer transmission is used to transfer mass data such as images. Inter-satellite network for satellite formation flying is not designed individually. It takes the advantage of TCP/IP model and inherits and extends on-board network protocols. The inter-satellite network includes a linkage layer, a network layer and a transport layer. There are 8 virtual channels for various space missions or requirements and 4 kinds of services to be selected. The network layer is designed to manage the whole net, calculate and select the route table and gather the network information, while the transport layer mainly routes data, which correspondingly makes it possible for communication between each two nodes. Structures of the linkage frame and transport layer data segment are similar, thus there is no complex packing and unpacking. At last, this paper gives the methods for data conversion between the on-board network and the inter-satellite network.