Code Analysis and Improvement of Onion Routing Anonymous Systems
With the development of Internet technology, network based activities such as e commerce, internet voting and e government, etc. have become increasingly frequent, People are increasingly concerned about the identity of network activity, content and other private information. In order to protect user privacy in network communications, governments, companies, universities and research institutes are pushing the research and development of the onion routing systems (TOR) Tor is the most popular anonymous communication system currently, which is based on technology of the second generation onion routing. Tor has a low latency, encrypted data transmission, secure channel, etc. which are widely used in anonymous Web browsing, instant messaging, Secure Shell Client (SSH) etc. However, the development of the onion routing systems is constrained by complicated code factors. According to this situation, this paper put forward an overall architecture of TOR code, which contains Application Needs, Code Analysis and Improvement. This paper summarizes the overall framework of tor code structure, in order to make the code structure clearer, the whole code module is divided into several sub modules, using the function call diagram and UML diagram illustrates the main function of each module and call relation between each module. This paper gives code analysis for anonymous architecture of TOR. Finally, this paper put forward the improvement of routing algorithms of TOR. Based on this paper, a method has been created which is used to understand the tor code easily. Furthermore, systematic analysis of the tor code provided in this paper aims to research the working principle and promote the further development of the onion routing.