| Distributed technology has been improving with continuous development ofhardware and increasing requirements of big data analytics, which made the traditionalcalculation model and program design pattern changed. From single computing tomulti computers cooperation, and the process parallel to the multi computers parallel,communication and resource sharing among nodes are still the key point of theresearching in distributed technology.The bottom of distributed communication is the Socket, and this mechanism isestablished in the transport layer of network communications, using TCP or UDPprotocol and many kinds of programming languages supported. The C language, theC#language, and the Android language which are widely are used in the mobileterminal use the traditional communication model. Traditional communication modeluses the function way to communicate and connect. In this model, every code has theirown code and resources, which makes the migration of code and resources have a lotof trouble when the structure of distributed communication system changed. Therefore,a communication model is proposed, which can response the dynamic distributedcommunication system structure quickly and simplify the migration process of codeand resource, this has become one of the hot spot of research.The Pi calculus is an important method to solve these problems mentioned above.The Pi calculus could respond the transformation of distributed communication systemquickly. Its main mechanism is that make the channel as the transmission resource.Based on the summary of distributed structure and communication mode of Picalculus, combining with the results of previous studies, this paper proposes acommunication model based on Pi calculus PiDC (Pi Distributed Communication)which can response the dynamic distributed communication system structure quickly,extends the application field of Pi calculus. The work of this paper includes:1) Propose PiDC communication model, its core is IP/port and code binding.2) The Pi calculus expressions of the model are given to describe thecommunication mechanism of PiDC model, the Pict language is used which based on the Pi calculus to implement this model.3) The contrast in the "chat" program of PiDC communication model andtraditional communication model is given, which focus on communication efficiency,and illustrate advantages and disadvantages of PiDC communication model in the diskI/O, memory usage and the resource of process in this place.4) The calculation of matrix multiplication program based on distributed systemof the PiDC communication model and traditional communication model is given, andillustrate advantages and disadvantages of PiDC model in distributed systems in thedisk I/O, memory usage and the resource of process.PiDC communication model based on Pi calculus is proposed in this paper. Thecontrast in disk I/O, memory usage and the resource of process of three differentprogram languages(C,C#and Pict) is given. The conclusion is that PiDCcommunication model can response the dynamic distributed communication systemstructure quickly and has good performance. |