Realization of Time Synchronization Server Based on C/S

Similar documents
Research and Implementation of Software Used for the Remote Control for VM700T Video Measuring Instrument

CTI Short Learning Programme in IT Enigneering

Analysis of Computer Network and Communication System

Wireless Smart Home Security System Based on Android

Review of Topology and Access Techniques / Switching Concepts

Comparative analyses for the performance of Rational Rose and Visio in software engineering teaching

Analysis and Application of Frame Relay

Research on the Establishment and Analysis of Small Business Networks

Quick Reference Guide for Phon Users

Development of remote control software for multiformat test signal generator

Network Architecture I

City University of Hong Kong Course Syllabus. offered by Department of Computer Science with effect from Semester A 2017/18

Preliminary Research on Distributed Cluster Monitoring of G/S Model

Research on Computer Network Virtual Laboratory based on ASP.NET. JIA Xuebin 1, a

Research on Design Reuse System of Parallel Indexing Cam Mechanism Based on Knowledge

Research on function and design of virtual instrument based on LabVIEW Technology

The IEEE 1588 Standard

Open Access Design and Development of Network Application Layer Sniffer Analysis Software. Yujiao Wang and Haiyun Lin *

Temperature Measurement and Control System Based on Embedded WEB

The design and implementation of UML-based students information management system

Design of Smart Home System Based on ZigBee Technology and R&D for Application

Design of Temperature and Humidity Data Acquisition System. Based on ARM

Virtual private networks

Online Teaching Evaluation System Design and Implementation

Chapter 1 - Introduction

An Solution of Network Service Oriented Operator Network Intrusion Prevention

PLC Simulation Control of Assembly Line

Performance Comparison and Analysis of Power Quality Web Services Based on REST and SOAP

An intelligent LED landscape lighting system

Chapter 2 Research of Optical Fiber Communication in Relay Protection

CS4450. Computer Networks: Architecture and Protocols. Lecture 13 THE Internet Protocol. Spring 2018 Rachit Agarwal

Reference Models. 7.3 A Comparison of the OSI and TCP/IP Reference Models

Analysis on computer network viruses and preventive measures

Research on Approach of Equipment Status and Operation Information Acquisition Based on Equipment Control Bus

Intelligent Computer Room Management Platform Based on RF Card

Research on the Improvement of the RTLAB Simulation Efficiency in DG

Realization of IEC Protocol in DTU

Personalized Search for TV Programs Based on Software Man

UML Component Diagrams A.Y 2018/2019

SOFTWARE LIFE-CYCLE MODELS 2.1

Research on Programming and Debugging Technology of Computer C Language

L8: Packet Switching. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Network Defenses 21 JANUARY KAMI VANIEA 1

Open Access Apriori Algorithm Research Based on Map-Reduce in Cloud Computing Environments

Design of Tourism Information System with B/S and C/S Architecture based on Android and Web Platform

DO YOU UTILIZE WIRELESS TECHNOLOGY?

Design of Coal Mine Power Supply Monitoring System

A Passage to Penetration Testing!

Serial Communication Based on LabVIEW for the Development of an ECG Monitor

Tutorial 2 : Networking

Wireshark- Looking into the Packet. Henry A. McKelvey, MIS. Blacks in Technology

The Internet and World Wide Web. Chapter4

Greenhouse Equipment Data Acquisition and Display Platform Based on Socket Java

VOXOX. A Tell-All Guide EVERYTHING YOU NEED TO KNOW ABOUT HOSTED PBX. a VOXOX ebook VOXOX, Inc A Comprehensive Guide

Information Push Service of University Library in Network and Information Age

Research and Design of Education and Teaching Resource Management System based on ASP.NET Technology

Data Logical Structure Design on Teaching Material Management System based on Oracle Zhe Li1,a, Hui Ma2,b

CSCD 330 Network Programming Spring Lecture 1 - Course Details

An Improved DFSA Anti-collision Algorithm Based on the RFID-based Internet of Vehicles

Computer Information Systems

Porting mobile web application engine to the Android platform

Digital Life Analysis: Undergrad Single

1: Review Of Semester Provide an overview of encapsulation.

Student Name:.. Student ID... Course Code: CSC 227 Course Title: Semester: Fall Exercises Cover Sheet:

Network Intrusion Detection Systems. Beyond packet filtering

Style Guide. Lists, Numbered and Bulleted Lists are a great way to add visual interest and skimmers love them they make articles easier to read.

NETWORK-BASED CONTROLS: SECURING THE INTERNET OF THINGS

incloud Third Party Monitoring

Migration to 64-bit Platform Improves Performance of Growing Bank s Core

Networking and Internetworking 1

Research on Socket Communication System Based on Zigbee Wireless Sensor Network

CPSC 427: Object-Oriented Programming

: 20488B: Customized Developing Microsoft SharePoint Server

Jacquard Control System of Warp Knitting Machine Based on Embedded System

Comprehensive analysis and evaluation of big data for main transformer equipment based on PCA and Apriority

Seven Criteria for a Sound Investment in WAN Optimization

Academic Course Description

University of Waterloo. CS251 Final Examination. Spring 2008

We move from a general information system to a Computer Based Information System

RIS shading Series #2 Meet The Plugins

CSE 124: TIME SYNCHRONIZATION, CRISTIAN S ALGORITHM, BERKELEY ALGORITHM, NTP. George Porter October 27, 2017

Communication Stability Experiment of IOT Car Based on WIFI and Bluetooth

Network Defenses KAMI VANIEA 1

MODERNIZATION OF AUTOMATIC SURFACE WEATHER OBSERVING SYSTEMS AND NETWORKS TO UTILIZE TCP/IP TECHNOLOGY

Google technology for teachers

Product Description IEEE 1588 Stack (PTP Stack)

Welcome to the new BC Bid!

Design and Implementation of Instrument NA Based on WMN

CSCI Computer Networks

Network Simulator Project Guidelines Introduction

Research and Design of Key Technology of Vertical Search Engine for Educational Resources

Chapter Topics Part 1. Network Definitions. Behind the Scenes: Networking and Security

BioTechnology. An Indian Journal FULL PAPER. Trade Science Inc. Study on secure data storage based on cloud computing ABSTRACT KEYWORDS

Software Development 2

Introducing Frame Relay

CTI Server Overview. How CTI Server Works

CS 450 Introduction to Networking Spring 2014 Homework Assignment 1 File Transfer and Data Bandwidth Analysis Tool

Scope and Sequence: CCNA Discovery

LESSON 3 PORTS AND PROTOCOLS

Research of tooling test signal collection and analysis Guozhuang Liang 1, a, Xuan Chen 1,b,Yufeng Yao 2,c

Transcription:

Computer System Networking and Telecommunications Original Research Article Realization of Time Synchronization Server Based on C/S Jidong Zhou,Yanyan Zheng,Yonghui Guo School of Computer and Information, Hefei University of Technology, Anhui, China ABSTRACT Computer network refers to the multi-computer with independent functions and their external devices, which are connected by communication lines. The resources are realized under the management and coordination of network operating system, network management software and network communication protocol. Sharing and information transfer of computer systems. The topic of this computer network is based on the C / S time synchronization server implementation. Time server is in the LAN as a unified time to publish the server, which uses the computer network to pass the time information to the user. Refer to the existing time server principle and effect to achieve a time server and client. The server opens the specified port release time to the network, and the other client obtains the time from the network and synchronizes the local time. This design is based on Visual Studio 2010 as the development platform, to discuss the design of the view of the process from these 5 aspects: the topic background, program demonstration, process discussion, analysis of the results and conclusions. KEYWORDS: time synchronization; client; server; TCP / IPtime synchronization; client; server; TCP / IP 1. Background 1.1. Questions Raised For a computer system which composed of computers, each node of computer has its own amount of system time, consistency and accuracy of computer network control system in the sub-system time segment is one of the core issues in the network control system. The network control system has a significant impact on the real-time and accuracy. However, due to design defects, environmental temperature changes, electromagnetic interference, load and other factors, the computer clock is mostly inaccurate, with the passage of time, this error gradually accumulated, the time deviation will be greater the bigger. In some important applications (such as real-time data acquisition, monitoring, industrial control networks, and telecommunications), time accuracy is more stringent and demanding, so time synchronization becomes particularly important, and to achieve an accurate system time change. There are common hardware and software methods in time synchronization of the realization: hardware synchronization through the simulation nodes are connected to a dedicated clock signal line, its accuracy is relatively high, but the cost is high, the operation relative more complex; software synchronization method is to use the software to complete the distributed system in the clock synchronization. For the software synchronization method, the current time commonly used protocols are NTP protocol, SNTP protocol and PTP protocol. The general implementation of these time synchronization protocols is achieved through the computer network and other means of communication, but because of some of the potential threats to the computer network, such as accidental or malicious reasons have been broken, change, leak, the network system cannot be continuous and reliable. The normal operation resulting in time synchronization system cannot function properly. Due to limited resources and time, software is used in this synchronization server based on the C / S time. 1.2. Software Use Visual Studio 2010 is used based on the C / S time synchronization server implementation. Visual Studio 2010 is Microsoft's development environment, which is the most popular Windows platform application development environment. The C ++ compiler for Visual Studio 2010 now supports automatic types deduction for lambda expressions, rvalue references, compile-time assertions, expression type infusions, and C ++ 0X standards. Visual Studio 2010 C ++ Compiler has a model that can be backward compatible with Visual Studio 2008 tools and class Copyright 2017 -. This is an Open Access article distributed under the terms of the Creative Commons Attribution-NonCommercial 4.0 International License (http://creativecommons.org/licenses/by-nc/4.0/), permitting all non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited. 9

Realization of Time Synchronization Server Based on C/S libraries. This will give the developer a personal upgrade to provide great convenience even if there is someone in the team do not want to switch to Visual Studio 2010. You can create and use text templates in any version of Visual Studio without any other components. In Visual Studio 2010 that introduces preprocessing text templates, it becomes easier to generate any type of text file from an application. The generated source code will always be in the source model after any changes to keep updated through better integration with the build system and improved support for code integration. Visual Studio 2010 is a powerful visualization software development tool. Visual Studio 2010 has socket support for network programming, WinInet support, MAPI and ISAPI support. Among them, Windows Sockets API is TCP / IP network environment, but also on the Internet to develop the most common API. In the TCP / IP network communication environment, Socket data transmission is a special I / O, it is also equivalent to a file descriptor, with a function similar to open the file call Socket (). Socket is designed for the client / server model, for the client and server programs to provide different Socket system calls. The client randomly applies for a Socket (the equivalent of a person who wants to call can dial on any network phone call), the system assigned a Socket number; server has a globally recognized Socket, any customer can send a connection request to it and an information request (which corresponds to a called telephone having a caller's known telephone number). Socket uses the client / server model to intelligently solve the problem of establishing a communication connection between processes. The server socket semi-correlation is very important for the overall recognition. Readers may wish to know how two completely random user processes between the establishment of communication? If the communication does not have any side of the Socket fixed, like the two sides do not know each other's phone number, this call is impossible. 1.3. Expected Target Visual Studio 2010 is used based on the C / S time synchronization server implementation. Time server is in the LAN as a unified time to publish the server, which uses the computer network to pass the time information to the user. Refer to the existing time server principle and effect to achieve a time server between server and client. The server opens the specified port release time to the network, and the other client obtains the time from the network and synchronizes the local time. Give the relevant principles, design ideas and design process; draw time synchronization server and client algorithm flow chart; to achieve the server and client and give instructions; test server and client, write the test results. 2. Program Demonstration Client / Server structure of the relational database system has been widely used because of high performance, high efficiency, open, easy to expand, scalable and other superior features. In the relational database application system of Client / Server structure, a lot of application is used like: When the user inserts and modifies the data in the client, the data is inserted and modified in the corresponding table of the database for statistical analysis. In order to ensure the accuracy of future statistical analysis by time, each client must provide a unified time to the database server DBMS. Hardware synchronization is through the simulation nodes which connected to a dedicated clock signal line, its accuracy is relatively high, but the cost is high, the operation is relatively complex; software synchronization method is to use the software to complete the distributed synchronization of the clocks in the system. Software synchronization is relatively simple, fast, convenient, easy to use, and suitable for our student party to do the computer network research, the effect is better, so the test performed by using Visual Studio 2010 as a platform, based on the C / S time Synchronization server implementation. 3. Process Discussion 3.1. Relevant Principles The connection process between sockets can be divided into three steps: server listening, client request, and connection confirmation, depending on how the connection is started and the destination to which the local socket is to be connected. (1) Server monitoring: server-side socket does not locate the specific client socket, but in a state waiting for the connection, real-time monitoring of network status. (2) Client request: refers to the client's socket to make a connection request, to connect the target is the server-side socket. To do this, the client's socket must first describe the socket of the server to which it is connected, indicate the address and port number of the server-side socket, and then make a connection request to the server-side socket. (3) Connection confirmation: refers to the server-side socket to listen to or receive a client socket connection request, it responds to the client socket request, create a new thread, the server set the description of the word is sent to the client, and once the client confirms the description, the connection is established. While the server-side socket continues to be listening and continues to receive connection requests from other client sockets. 10

Jidong Zhou, et al The basic working principle of NTP is shown in the following figure. Device A and Device B are connected through the network, they have their own independent system clock, through the NTP to achieve their own system clock automatic synchronization. For the sake of understanding, make the following assumptions: Before the system clock synchronization of Device A and Device B, the clock of Device A is set to 10:00:00 am and the clock of Device B is set to 11:00:00 am. Device B as the NTP time server, that is, device A will synchronize its own clock with Device B's clock. The time required for one-way transmission between Device A and Device B is 1 second. Figure 1 NTP Protocol Working Principle Diagram Device A sends an NTP message to Device B with the timestamp when it leaves Device A, which is 10:00:00 am (T1). When the NTP packet arrives at Device B, Device B adds its own timestamp, which is 11:00:01 am (T2). When the NTP packet leaves Device B, Device B adds its own timestamp, which is 11:00:02 am (T3). When Device A receives the response, the local time of Device A is 10:00:03 am (T4). At this point, Device A already has enough information to calculate two important parameters: NNTP packet delay = (T4-T1) - (T3-T2) = 2 seconds. Time difference between Device A and Device B offset = ((T2-T1) + (T3-T4)) / 2 = 1 hour. 3.2. Design Process There are many applications in the LAN In order to work together. In order to correct the local time, you need to ensure that the time on the client is unified, and the client read the time from a time relatively correct server. According to the C / S model to establish a time synchronization server, the system is divided into server (Server) and client (Client), respectively, the server and client has algorithm design and software programming, so that they can compile. At the same time, the client (Server) is waiting for the server (Server) to send a time synchronization request to the client (Client) to send a time synchronization request. This time, the client (Client) is waiting for the server (Server). After the client (client) received the request, it respond according to the corresponding design of the algorithm for time synchronization. This is the purpose of time synchronization. 11

Realization of Time Synchronization Server Based on C/S 3.3. Algorithm Flow Chart 4. Result Analysis 1. Run the server-side program on Visual Studio 2010 to get the following results 2. Continue to run the client program on Visual Studio 2010 to get the following results 3. Continue clicking (1) to get the following result 12

Jidong Zhou, et al 4. Time synchronization results is display in panel below 5. Conclusions Whole process of synchronization can be observed from the fourth part of the image, and the server implementation based on the C / S time synchronization is very successful. This design is rich in content and involving a wide range of knowledge. I have learned a lot of professional knowledge through the search of information for the design in the early stages of the design. Many knowledge which previously very vague and very isolated has grasp more firmly through this design. In addition, I get know that I am still lack of skill for software programming through this design. By looking for reference materials gradually familiar with the previous C + + programming knowledge. In the previous computer examinations and the process of learning, it has some basic understanding. I further understand the computer network knowledge through this design, as well as C / S mode and time synchronization server to achieve the principle, and understand the VC 6.0 version of the upgraded version of Visual Studio 2010, which is a great harvest. But in the design process a lot of problems also appeared, such as programming logic problems, but ultimately problem is solved by analyzed each module carefully. Through this design, I not only deepen the understanding of the computer network theory and apply the theory to the actual environment, and also can program each part of program independently. I also own a serious independent thinking from this design: to understand every step of the programming process, has a better understanding for time synchronization server knowledge, need to focus on a lot of exercise to applied theory to actual practice. Learning is a process of understanding doubts and then solve the doubts. This design is to provide such an opportunity to find their own knowledge loopholes, and to explore the opportunity to solve doubts. References 1. Xie Xiren. Computer Network (6th Edition). Electronics Industry Press, 2013.6 2. Chen Ming, et al. Computer network experiment tutorial, from principle to practice. Machinery Industry Press, 2007 3. Tanenbaum, A.S. Computer Networks. Machinery Industry Press, 2011 4. Luo Junzhou. TCP / IP protocol and network programming technology. Tsinghua University Press, 2011 13