摘 要: 时间服务是最基本的网络服务的一个重要组成部分,无论是在分布式运行环境还是在实时式运行环境中,时间同步模块对于系统的运行都贡献着极为重要的作用。时间服务器的主要功能是向网络内其他客户机提供权威实时时间并提供相应参数以供客户机修改本机时间与权威时间相同步。Linux操作系统具有开源、低成本、易实现以及优良的权限控制等优点,有利于快捷简便的部署与管理一个网络服务器。本文研究了在架构在Linux运行模式下网络类型服务器的规划与创构。在Linux系统采用Linux Socket编程接口,基于TCP协议的服务器端的访问和数据传输方案的实现,服务器和客户端之间的工作过程进行了详细的分析。在同一网络中,当服务器被上载运行,存在有客户端发起同步请求,服务器和客户端使用TCP协议操作。时间服务器的编写选取了Linux操作环境下的C语言程序开发这一方式。基于C语言天然的优势,这一编写策略可大幅度提升系统运行速度,并为系统的安全性和可靠性提供保障。31574 毕业论文关键词: Linux操作系统Socket套接字;服务器模式策略;TCP协议分析
Linux time server Design and implementation
Abstract: Time service is an important part of network basic service, whether in the distribution of the operating system or in a real-time operating system, time system plays an extremely important role. Time server's main function is to provide other client network authority real time and provide the corresponding parameters for the client to modify the machine time and authority phase synchronization. Linux operating system with open source, low cost, easy implementation and excellent advantages of access control, is helpful for quick and easy deployment and management of a network server. This paper studies the design and implementation of a web server in a Linux environment. In the Linux system adopts the way Linux socket programming interface, realize the server access and data transmission scheme based on TCP protocol, detailed analysis of the process between server and client work. Within the same network, when run time server in it, the client ask the launch time synchronization, the client and server using TCP protocol operation.Time server implementation code used by the C language programming under Linux, can greatly improve the system operation speed, and enhance the safety and reliability of the system.
Keywords: Linux system;Socket socket;Server mode strategy;TCP protocol analysis