| Wireless sensor networks, as an information collection platform, is developing rapidly in recent years, which can monitor and collect various data about the test object in real time in the region where the net achieve, and send them to the network gateway node, to realize the target detection and tracking within the specified range. Container wharf is a major distribution center for domestic and international transport. In order to improve the efficiency and ensure the safety of the wharf and cargo, containers require dynamic real-time management about the total information after entering the wharf. However, large-scale specialized container wharfs usually to address more than 1 million containers, which need effective wireless monitoring and control system to support the efficient operation of the wharf. Since wireless sensor networks have fast start and strong survivability features, it is suitable for container wharfs.This paper analyzes the requirement and characteristics of wireless communication in container wharf. As in traditional wireless sensor networks, the routing algorithm is hard to reset, the power is limited and blind spots are existed, we design an improved clustering multi-hop wireless routing algorithm. Before the cluster formation stage, we divided the monitoring region into many small regions, and choose the cluster head node taking the residual work time as the primary indicator, then achieve the design goals through the using of multi-hop communication between clusters after data fusion. The simulation conclude that the algorithm performs monitoring well in term of improving the effective rate of data, extending the network life cycle and eliminating blind sports.In order to improve the security of routing protocols for container wharf, we analyze the various security key encryption algorithm, especially the key pre-distribution algorithm. According to the environment of wharf and function need of the system, we advanced an improved cluster-based key management protocol. In this paper, the structure of base stations, cluster heads, cluster members are researched. First, by adopting the Hash function, we optimize the basic probability key pre-distribution algorithm between base station and cluster head. Then we distribute the key to cluster members through similar method. Comparing with existing method, the proposed method can improve the security and scalability with only a little cost of calculation. By improving the routing algorithm and key pre-distribution algorithm, the proposed safe routing algorithm can secure the application of container wharfs. |