| Since 2000,the upgrading of the ticketing program of the ticketing window hosts which belong to our company has been manually operated by the station Information staff.The manual upgrade method can no longer adapt to the current situation of rapid iterative about ticketing program upgrade.Especially in the new situation that the whole railway industry pays more and more attention to informatization and advocates "smart station",it is an inevitable trend to realize the automatic upgrading of station ticketing procedures by means of information technology.For PC desktop applications,automatic upgrade is often essential.In order to solve the problems(e.g.,long time of client program upgrade,Large workload of IT staff,and easy mistakes in upgrade operation)caused by manual upgrade of the client program of the ticket application system,The ticket management department of our company has put forward the demand for developing a set of software named " the automatic upgrade and management system of ticket selling program",which need realizes the functions of the automatic upgrade and upgrade management of the host client program for each ticket window.First,This paper analyzes the scale,network environment,characteristics of ticketing program,upgrading principle of ticketing program,and the needs of ticket management department and ticketing station.Secondly,the paper analyzes the system architecture design,technical architecture,technical scheme,data exchange process and the function of configuration files,and expounds in detail how to realize various functions of the system.It analyzed the two subsystem functions: ⑴the automatic upgrade function for the client application program of the ticket-selling-hosts.⑵the upgrade management for the client application program.The paper analyzes the reasons,technical feasibility,advantages and disadvantages of the hybrid technology architecture of B / s and P2 P.According to the system analysis,it is decided to use B / s technology architecture to realize the upgrade management function and P2 P technology architecture to realize the automatic upgrade function.Finally,the paper describes in detail the key technology of automatic upgrade,the algorithm principle and feasibility of automatic upgrade.This paper describes in detail how the automatic upgrade subsystem and upgrade management subsystem coordinate to ensure the smooth completion of ticketing program upgrade.This paper analyzes in detail how to apply the concept of file sharing system of P2 P network technology to the automatic upgrade function of the system.The automatic upgrade function includes the functions of automatic distribution of upgrade files,automatic rewriting of upgrade files and automatic backup of old version files of ticketing program.It’s essence is a P2 P file management system,and draws on the advantages of file distribution algorithms about Napster and Bit Torrent.Through theoretical analysis and experimental verification,it is proved that the P2 P network technology scheme is reasonable and efficient.The P2 P files downloading and scheduling algorithm is not only ensure the structure of P2 P network,but also ensure that a ticket selling computer can take over the central node when the central node(server)is disconnected in the middle and later stages of the files’ upgrading,and ensure the completion of the application upgrades of all hosts in the P2 P network.The upgrade management subsystem of the system has greatly facilitated the management of ticket upgrade by the ticket management department,and this software system has realized the functions of version control of ticket program,management of upgrade host,management of upgrade time,real-time query of host upgrade at each ticket window,etc.This paper aims to elaborate on the system design idea,demand analysis,technology,algorithm,implementation principle and how to implement in the implementation of "automatic upgrade and management system of ticketing program". |