[go: up one dir, main page]

CN109510682B - A pooled server system BMC clock synchronization method, device, terminal and storage medium - Google Patents

A pooled server system BMC clock synchronization method, device, terminal and storage medium Download PDF

Info

Publication number
CN109510682B
CN109510682B CN201811603552.6A CN201811603552A CN109510682B CN 109510682 B CN109510682 B CN 109510682B CN 201811603552 A CN201811603552 A CN 201811603552A CN 109510682 B CN109510682 B CN 109510682B
Authority
CN
China
Prior art keywords
server
host server
clock
current
calibration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811603552.6A
Other languages
Chinese (zh)
Other versions
CN109510682A (en
Inventor
曲勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201811603552.6A priority Critical patent/CN109510682B/en
Publication of CN109510682A publication Critical patent/CN109510682A/en
Application granted granted Critical
Publication of CN109510682B publication Critical patent/CN109510682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a BMC clock synchronization method of a pooling server system, which comprises the following steps: a first-level Box server cascaded below a Host server receives a clock synchronization request sent by the Host server and starts timing; setting a calibration time length T and a calibration time error T, and when the timing time length exceeds T, carrying out system clock calibration on the first-level Box server and the Host server; when the calibration time error is larger than t, judging whether the current Host server is a clock source Host server or not; if the current Host server is the clock source Host server, the primary Box server acquires a system clock of the current Host server, performs clock synchronization and clears the timer, and if the current Host server is not the clock source Host server, the current Host server acquires the system clock of the primary Box server, updates the system time of the primary Box server and clears the timer; the method and the device can synchronize the multiple Host servers and the lower cascade Box server by determining the system clock of the Host server as the only clock source, and ensure the unification of the system time of the whole pooling server.

Description

一种池化服务器系统BMC时钟同步方法、装置、终端及存储 介质A pooled server system BMC clock synchronization method, device, terminal and storage medium

技术领域technical field

本发明涉及服务器技术领域,具体涉及一种池化服务器系统BMC时钟同步方法、装置、终端及存储介质。The invention relates to the technical field of servers, in particular to a method, device, terminal and storage medium for BMC clock synchronization of a pooled server system.

背景技术Background technique

随着云计算技术及大数据技术的发展,服务器计算资源、存储资源成本投入不断攀升,如何提高服务器节点资源的有效利用率是数据中心迫切需要解决的问题。服务器系统资源的动态池化设计成是系统高效运行的一个关键因素。PCIE Switch池化服务器系统通过PCI-E互联实现计算及存储资源的智能动态分配和组合,可以有效提高计算机存储资源的利用率。其整个池化系统由Host服务器和Box服务器组成,Host服务器的计算及存储资源通过Box服务器整合成池,通过对池化资源的调度和管理提升系统的资源利用率。With the development of cloud computing technology and big data technology, the cost of server computing resources and storage resources continues to rise. How to improve the effective utilization of server node resources is an urgent problem that data centers need to solve. The dynamic pooling of server system resources is designed to be a key factor in the efficient operation of the system. The PCIE Switch pooled server system realizes intelligent and dynamic allocation and combination of computing and storage resources through PCI-E interconnection, which can effectively improve the utilization rate of computer storage resources. The entire pooling system consists of the Host server and the Box server. The computing and storage resources of the Host server are integrated into a pool through the Box server, and the resource utilization rate of the system is improved through the scheduling and management of the pooled resources.

池化服务器系统中Host服务器BMC从BIOS及ME获取时间,Box服务器BMC从主板RTC芯片获取时间,整个池化服务器系统中BMC时间不统一。In the pooled server system, the BMC of the Host server obtains the time from the BIOS and ME, and the BMC of the Box server obtains the time from the RTC chip of the motherboard. The BMC time of the entire pooled server system is not uniform.

因此,亟需一种池化服务器系统BMC时钟同步方法,实现整个池化服务器系统中BMC时间的自动同步。Therefore, there is an urgent need for a BMC clock synchronization method in a pooled server system to realize automatic synchronization of BMC time in the entire pooled server system.

发明内容SUMMARY OF THE INVENTION

针对现有技术的不足,本发明提供一种池化服务器系统BMC时钟同步方法、装置、终端及存储介质,以解决上述技术问题。In view of the deficiencies of the prior art, the present invention provides a BMC clock synchronization method, device, terminal and storage medium of a pooled server system to solve the above technical problems.

第一方面,本申请实施例提供一种池化服务器系统BMC时钟同步方法,所述方法包括:In a first aspect, an embodiment of the present application provides a method for synchronizing a BMC clock of a pooled server system, the method comprising:

Host服务器下级联的一级Box服务器接收到Host服务器发送的时钟同步请求并开始计时;The first-level Box server cascaded under the Host server receives the clock synchronization request sent by the Host server and starts timing;

设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准;Set the calibration duration T and calibration time error t, when the timing duration exceeds T, the system clock calibration is performed between the first-level Box server and the Host server;

当校准时间误差大于t,判断当前Host服务器是否为时钟源Host服务器;When the calibration time error is greater than t, determine whether the current Host server is the clock source Host server;

若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零。If the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer. If the current Host server is not the clock source Host server, the current Host server obtains the first-level host server. The system clock of the Box server, updates its own system time and clears the timer.

结合第一方面,在第一方面的第一种实施方式中,所述设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准,包括:In combination with the first aspect, in the first embodiment of the first aspect, the calibration duration T and calibration time error t are set, and when the timing duration exceeds T, the system clock calibration is performed between the first-level Box server and the Host server, including :

设定校准时长T=1h,校准时间误差t=1s;Set the calibration duration T=1h, and the calibration time error t=1s;

当计时时长超过1小时,一级Box服务器获取Host服务器的系统时钟与自身系统时钟进行比较。When the timing exceeds 1 hour, the first-level Box server obtains the system clock of the Host server and compares it with its own system clock.

结合第一方面,在第一方面的第二种实施方式中,所述当校准时间误差大于t,判断当前Host服务器是否为时钟源Host服务器,包括:With reference to the first aspect, in the second implementation manner of the first aspect, when the calibration time error is greater than t, determining whether the current Host server is the clock source Host server includes:

若池化服务器的系统拓扑结构为单台Host连接多台Box的拓扑结构,则确定当前Host服务器为时钟源Host服务器;If the system topology of the pooled server is a topology in which a single Host is connected to multiple Boxes, it is determined that the current Host server is the clock source Host server;

若池化服务器的系统拓扑结构为多台Host连接单台Box的拓扑结构,获取当前链路的Channel number,判断一级Box服务器系统时间是否已同步,是则根据Channel number确定时钟源Host服务器,否则确定当前Host服务器为时钟源Host服务器。If the system topology of the pooled server is a topology in which multiple Hosts are connected to a single Box, obtain the Channel number of the current link, and determine whether the system time of the first-level Box server has been synchronized. If yes, determine the clock source Host server according to the Channel number. Otherwise, determine that the current host server is the clock source host server.

结合第一方面,在第一方面的第三种实施方式中,所述若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零,包括:In combination with the first aspect, in the third embodiment of the first aspect, if the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer , if the current Host server is not the clock source Host server, the current Host server obtains the system clock of the first-level Box server, updates its own system time and clears the timer, including:

若当前Host服务器为时钟源Host服务器,则一级Box服务器BMC获取当前Host服务器的系统时钟,更新自身系统时间及RTC芯片时间,且计时器清零;If the current Host server is the clock source Host server, the first-level Box server BMC obtains the system clock of the current Host server, updates its own system time and RTC chip time, and clears the timer;

若当前Host服务器不为时钟源Host服务器,则当前Host服务器BMC获取一级Box服务器的系统时钟,更新自身系统时间,且计时器清零。If the current host server is not the clock source host server, the current host server BMC obtains the system clock of the first-level Box server, updates its own system time, and clears the timer.

结合第一方面,在第一方面的第四种实施方式中,所述方法还包括:In conjunction with the first aspect, in a fourth implementation manner of the first aspect, the method further includes:

若池化服务器的系统拓扑结构中Host服务器存在下级联二级Box服务器,则二级Box服务器获取一级Box服务器的系统时钟,进行时钟同步,一级Box服务器BMC将时间同步至二级Box服务器BMC。If the Host server in the system topology of the pooled server has a cascaded second-level Box server, the second-level Box server obtains the system clock of the first-level Box server and synchronizes the clock, and the first-level Box server BMC synchronizes the time to the second-level Box server. Server BMC.

第二方面,本申请实施例提供一种池化服务器系统BMC时钟同步装置,所述装置包括:In a second aspect, an embodiment of the present application provides a BMC clock synchronization device for a pooled server system, the device comprising:

接收单元,所述接收单元用于Host服务器下级联的一级Box服务器接收到Host服务器发送的时钟同步请求并开始计时;A receiving unit, the receiving unit is used for the first-level Box server cascaded under the Host server to receive the clock synchronization request sent by the Host server and start timing;

时钟校准单元,所述时钟校准单元用于设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准;A clock calibration unit, the clock calibration unit is used to set the calibration duration T and the calibration time error t, and when the timing duration exceeds T, the system clock calibration is performed between the first-level Box server and the Host server;

判断单元,所述判断单元用于当校准时间误差大于t,判断当前Host服务器是否为时钟源Host服务器;a judgment unit, which is used to judge whether the current Host server is a clock source Host server when the calibration time error is greater than t;

时钟同步单元,所述时钟同步单元用于若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零。The clock synchronization unit is used for if the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer, if the current Host server is not the clock The source Host server, the current Host server obtains the system clock of the first-level Box server, updates its own system time, and clears the timer.

结合第二方面,在第二方面的第一种实施方式中,所述时钟校准单元具体用于:With reference to the second aspect, in a first implementation manner of the second aspect, the clock calibration unit is specifically configured to:

设定校准时长T=1h,校准时间误差t=1s;Set the calibration duration T=1h, and the calibration time error t=1s;

当计时时长超过1小时,一级Box服务器获取Host服务器的系统时钟与自身系统时钟进行比较。When the timing exceeds 1 hour, the first-level Box server obtains the system clock of the Host server and compares it with its own system clock.

结合第二方面,在第二方面的第二种实施方式中,所述判断单元具体包括:With reference to the second aspect, in a second implementation manner of the second aspect, the judging unit specifically includes:

若池化服务器的系统拓扑结构为单台Host连接多台Box的拓扑结构,则确定当前Host服务器为时钟源Host服务器;If the system topology of the pooled server is a topology in which a single Host is connected to multiple Boxes, it is determined that the current Host server is the clock source Host server;

若池化服务器的系统拓扑结构为多台Host连接单台Box的拓扑结构,获取当前链路的Channel number,判断一级Box服务器系统时间是否已同步,是则根据Channel number确定时钟源Host服务器,否则确定当前Host服务器为时钟源Host服务器。If the system topology of the pooled server is a topology in which multiple Hosts are connected to a single Box, obtain the Channel number of the current link, and determine whether the system time of the first-level Box server has been synchronized. If yes, determine the clock source Host server according to the Channel number. Otherwise, determine that the current host server is the clock source host server.

结合第二方面,在第二方面的第三种实施方式中,所述时钟同步单元具体用于:With reference to the second aspect, in a third implementation manner of the second aspect, the clock synchronization unit is specifically configured to:

若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,If the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer.

若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零。If the current host server is not the clock source host server, the current host server obtains the system clock of the first-level Box server, updates its own system time, and clears the timer.

结合第二方面,在第二方面的第四种实施方式中,所述时钟同步单元还用于:With reference to the second aspect, in a fourth implementation manner of the second aspect, the clock synchronization unit is further configured to:

若池化服务器的系统拓扑结构中Host服务器存在下级联二级Box服务器,则二级Box服务器获取一级Box服务器的系统时钟,进行时钟同步,一级Box服务器BMC将时间同步至二级Box服务器BMC。If the Host server in the system topology of the pooled server has a cascaded second-level Box server, the second-level Box server obtains the system clock of the first-level Box server and synchronizes the clock, and the first-level Box server BMC synchronizes the time to the second-level Box server. Server BMC.

第三方面,提供一种终端,包括:In a third aspect, a terminal is provided, including:

处理器、存储器,其中,processor, memory, where,

该存储器用于存储计算机程序,The memory is used to store computer programs,

该处理器用于从存储器中调用并运行该计算机程序,使得在终端执行上述方法。The processor is used to call and run the computer program from the memory, so that the above method is executed in the terminal.

第四方面,提供了一种计算机存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fourth aspect, a computer storage medium is provided, and instructions are stored in the computer-readable storage medium, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.

第五方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods of the above aspects.

本发明的有益效果在于:The beneficial effects of the present invention are:

本发明提供的池化服务器系统BMC时钟同步方法、装置、终端及存储介质,能够通过确定唯一时钟源Host服务器的系统时钟同步多个Host服务器及下级联Box服务器,保证整个池化服务器系统时间的统一,通过设定校准时间定期进行时钟校对,提高Box时钟精度,简化池化服务器系统整机BMC时间同步流程,增加产品的易用性与灵活性,提升运维效率。The BMC clock synchronization method, device, terminal and storage medium of the pooled server system provided by the present invention can synchronize multiple Host servers and lower cascaded Box servers by determining the system clock of the unique clock source Host server, so as to ensure the system time of the entire pooled server. By setting the calibration time for regular clock calibration, the Box clock accuracy is improved, the BMC time synchronization process of the entire pooled server system is simplified, the usability and flexibility of the product are increased, and the operation and maintenance efficiency is improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, other drawings can also be obtained based on these drawings without creative labor.

图1是本申请一个实施例的方法的示意性流程图。FIG. 1 is a schematic flowchart of a method according to an embodiment of the present application.

图2是单台Host连接多台Box的拓扑结构图。Figure 2 is a topology diagram of a single Host connecting multiple Boxes.

图3是多台Host连接单台Box的拓扑结构图。Figure 3 is a topology diagram of multiple Hosts connected to a single Box.

图4是本申请一个实施例的装置的示意性框图。FIG. 4 is a schematic block diagram of an apparatus according to an embodiment of the present application.

图5为本发明实施例提供的一种终端的结构示意图。FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

图1是本申请一个实施例的方法的示意性流程图。其中,图1执行主体可以为一种池化服务器系统BMC时钟同步装置。FIG. 1 is a schematic flowchart of a method according to an embodiment of the present application. The execution body of FIG. 1 may be a BMC clock synchronization device of a pooled server system.

如图1所示,该方法100包括:As shown in FIG. 1, the method 100 includes:

步骤110,Host服务器下级联的一级Box服务器接收到Host服务器发送的时钟同步请求并开始计时;Step 110, the first-level Box server cascaded under the Host server receives the clock synchronization request sent by the Host server and starts timing;

步骤120,设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准;Step 120, set the calibration duration T and calibration time error t, and when the timing duration exceeds T, perform system clock calibration on the first-level Box server and the Host server;

步骤130,当校准时间误差大于t,判断当前Host服务器是否为时钟源Host服务器;Step 130, when the calibration time error is greater than t, determine whether the current Host server is the clock source Host server;

步骤140,若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零。Step 140, if the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer, if the current Host server is not the clock source Host server, then the current Host server Get the system clock of the first-level Box server, update its own system time and clear the timer.

可选地,作为本申请一个实施例,所述设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准,包括:Optionally, as an embodiment of the present application, the set calibration duration T and calibration time error t, when the timing duration exceeds T, perform system clock calibration on the first-level Box server and the Host server, including:

设定校准时长T=1h,校准时间误差t=1s;Set the calibration duration T=1h, and the calibration time error t=1s;

当计时时长超过1小时,一级Box服务器获取Host服务器的系统时钟与自身系统时钟进行比较。When the timing exceeds 1 hour, the first-level Box server obtains the system clock of the Host server and compares it with its own system clock.

可选地,作为本申请一个实施例,所述当校准时间误差大于t,判断当前Host服务器是否为时钟源Host服务器,包括:Optionally, as an embodiment of the present application, when the calibration time error is greater than t, determining whether the current Host server is a clock source Host server includes:

若池化服务器的系统拓扑结构为单台Host连接多台Box的拓扑结构,则确定当前Host服务器为时钟源Host服务器;If the system topology of the pooled server is a topology in which a single Host is connected to multiple Boxes, it is determined that the current Host server is the clock source Host server;

若池化服务器的系统拓扑结构为多台Host连接单台Box的拓扑结构,获取当前链路的Channel number,判断一级Box服务器系统时间是否已同步,是则根据Channel number确定时钟源Host服务器,否则确定当前Host服务器为时钟源Host服务器。If the system topology of the pooled server is a topology in which multiple Hosts are connected to a single Box, obtain the Channel number of the current link, and determine whether the system time of the first-level Box server has been synchronized. If yes, determine the clock source Host server according to the Channel number. Otherwise, determine that the current host server is the clock source host server.

可选地,作为本申请一个实施例,所述若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零,包括:Optionally, as an embodiment of the present application, if the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer, if the current Host server does not If the host server is the clock source, the current Host server obtains the system clock of the first-level Box server, updates its own system time and clears the timer, including:

若当前Host服务器为时钟源Host服务器,则一级Box服务器BMC获取当前Host服务器的系统时钟,更新自身系统时间及RTC芯片时间,且计时器清零;If the current Host server is the clock source Host server, the first-level Box server BMC obtains the system clock of the current Host server, updates its own system time and RTC chip time, and clears the timer;

若当前Host服务器不为时钟源Host服务器,则当前Host服务器BMC获取一级Box服务器的系统时钟,更新自身系统时间,且计时器清零。If the current host server is not the clock source host server, the current host server BMC obtains the system clock of the first-level Box server, updates its own system time, and clears the timer.

可选地,作为本申请一个实施例,所述方法还包括:Optionally, as an embodiment of the present application, the method further includes:

若池化服务器的系统拓扑结构中Host服务器存在下级联二级Box服务器,则二级Box服务器获取一级Box服务器的系统时钟,进行时钟同步,一级Box服务器BMC将时间同步至二级Box服务器BMC。If the Host server in the system topology of the pooled server has a cascaded second-level Box server, the second-level Box server obtains the system clock of the first-level Box server and synchronizes the clock, and the first-level Box server BMC synchronizes the time to the second-level Box server. Server BMC.

为了便于对本发明的理解,下面以本发明池化服务器系统BMC时钟同步的原理,结合实施例中对池化服务器系统BMC时钟同步的过程,对本发明提供的池化服务器系统BMC时钟同步方法做进一步的描述。In order to facilitate the understanding of the present invention, the following describes the method for synchronizing the BMC clock of a pooled server system provided by the present invention based on the principle of the BMC clock synchronization of the pooled server system of the present invention and the process of synchronizing the BMC clock of the pooled server system in the embodiment. description of.

具体的,池化服务器系统BMC时钟同步方法包括如下步骤:Specifically, the method for synchronizing the BMC clock of the pooled server system includes the following steps:

S1、Host服务器下级联的一级Box服务器接收到Host服务器发送的时钟同步请求并开始计时;S1. The first-level Box server cascaded under the Host server receives the clock synchronization request sent by the Host server and starts timing;

S2、设定校准时长T=1h,校准时间误差t=1s;当计时时长超过1小时,一级Box服务器获取Host服务器的系统时钟与自身系统时钟进行比较;S2. Set the calibration duration T=1h, and the calibration time error t=1s; when the timing duration exceeds 1 hour, the first-level Box server obtains the system clock of the Host server and compares it with its own system clock;

S3、若校准时间误差超过1秒,判断当前Host服务器是否为时钟源Host服务器,若校准时间误差不超过1秒,计时器清零重新计时;S3. If the calibration time error exceeds 1 second, determine whether the current Host server is the clock source Host server. If the calibration time error does not exceed 1 second, the timer is cleared and re-timed;

S4、若池化服务器的系统拓扑结构为单台Host连接多台Box的拓扑结构(如图2所示),则确定当前Host服务器为时钟源Host服务器,一级Box服务器BMC获取当前Host服务器的系统时钟,更新自身系统时间及RTC芯片时间,且计时器清零;S4. If the system topology of the pooled server is a topology in which a single Host is connected to multiple Boxes (as shown in Figure 2), the current Host server is determined as the clock source Host server, and the first-level Box server BMC obtains the current Host server System clock, update its own system time and RTC chip time, and clear the timer;

若池化服务器的系统拓扑结构为多台Host连接单台Box的拓扑结构(如图3所示),获取当前链路的Channel number,判断一级Box服务器系统时间是否已同步,若一级Box服务器系统时间已同步则根据Channel number确定时钟源Host服务器,当前Host服务器BMC获取一级Box服务器的系统时钟,更新自身系统时间,且计时器清零;If the system topology of the pooled server is a topology in which multiple hosts are connected to a single box (as shown in Figure 3), obtain the Channel number of the current link, and determine whether the system time of the first-level Box server has been synchronized. If the server system time has been synchronized, the clock source Host server is determined according to the Channel number. The current Host server BMC obtains the system clock of the first-level Box server, updates its own system time, and clears the timer;

若一级Box服务器系统时间未同步,则确定当前Host服务器为时钟源Host服务器,一级Box服务器BMC获取当前Host服务器的系统时钟,更新自身系统时间及RTC芯片时间,且计时器清零;If the system time of the first-level Box server is not synchronized, it is determined that the current Host server is the clock source Host server, and the first-level Box server BMC obtains the system clock of the current Host server, updates its own system time and RTC chip time, and clears the timer;

S5、若池化服务器的系统拓扑结构中Host服务器存在下级联二级Box服务器,则二级Box服务器获取一级Box服务器的系统时钟,进行时钟同步,一级Box服务器BMC将时间同步至二级Box服务器BMC。S5. If the Host server in the system topology of the pooled server has a cascaded second-level Box server, the second-level Box server obtains the system clock of the first-level Box server and synchronizes the clock, and the first-level Box server BMC synchronizes the time to the second-level Box server. Level Box server BMC.

其中,池化服务器系统通过PCIe Switch芯片实现PCIe互联,所述Host服务器与Box服务器通过MiniSAS线缆连接,Host服务器BMC与Box服务器BMC通过MiniSAS线缆上的I2C信号通信。The pooled server system realizes PCIe interconnection through a PCIe Switch chip, the Host server and the Box server are connected through a MiniSAS cable, and the Host server BMC and the Box server BMC communicate through I2C signals on the MiniSAS cable.

如图4示,该装置400包括:As shown in FIG. 4, the apparatus 400 includes:

接收单元410,所述接收单元410用于Host服务器下级联的一级Box服务器接收到Host服务器发送的时钟同步请求并开始计时;The receiving unit 410, the receiving unit 410 is used for the first-level Box server cascaded under the Host server to receive the clock synchronization request sent by the Host server and start timing;

时钟校准单元420,所述时钟校准单元420用于设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准;The clock calibration unit 420 is used to set the calibration duration T and the calibration time error t, and when the timing duration exceeds T, the system clock calibration is performed between the first-level Box server and the Host server;

判断单元430,所述判断单元430用于当校准时间误差大于t,判断当前Host服务器是否为时钟源Host服务器;Judging unit 430, the judging unit 430 is used to judge whether the current Host server is the clock source Host server when the calibration time error is greater than t;

时钟同步单元440,所述时钟同步单元440用于若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零。Clock synchronization unit 440, the clock synchronization unit 440 is used for if the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, performs clock synchronization and clears the timer, if the current Host server does not If the host server is the clock source, the current host server obtains the system clock of the first-level Box server, updates its own system time, and clears the timer.

可选地,作为本申请一个实施例,所述时钟校准单元410具体用于:Optionally, as an embodiment of the present application, the clock calibration unit 410 is specifically configured to:

设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准。Set the calibration duration T and calibration time error t. When the timing duration exceeds T, calibrate the system clock between the first-level Box server and the Host server.

可选地,作为本申请一个实施例,所述时钟校准单元420具体用于:Optionally, as an embodiment of the present application, the clock calibration unit 420 is specifically configured to:

设定校准时长T=1h,校准时间误差t=1s;Set the calibration duration T=1h, and the calibration time error t=1s;

当计时时长超过1小时,一级Box服务器获取Host服务器的系统时钟与自身系统时钟进行比较。When the timing exceeds 1 hour, the first-level Box server obtains the system clock of the Host server and compares it with its own system clock.

可选地,作为本申请一个实施例,所述判断单元430具体包括:Optionally, as an embodiment of the present application, the judging unit 430 specifically includes:

若池化服务器的系统拓扑结构为单台Host连接多台Box的拓扑结构,则确定当前Host服务器为时钟源Host服务器;If the system topology of the pooled server is a topology in which a single Host is connected to multiple Boxes, it is determined that the current Host server is the clock source Host server;

若池化服务器的系统拓扑结构为多台Host连接单台Box的拓扑结构,获取当前链路的Channel number,判断一级Box服务器系统时间是否已同步,是则根据Channel number确定时钟源Host服务器,否则确定当前Host服务器为时钟源Host服务器。If the system topology of the pooled server is a topology in which multiple Hosts are connected to a single Box, obtain the Channel number of the current link, and determine whether the system time of the first-level Box server has been synchronized. If yes, determine the clock source Host server according to the Channel number. Otherwise, determine that the current host server is the clock source host server.

可选地,作为本申请一个实施例,所述时钟同步单元440具体用于:Optionally, as an embodiment of the present application, the clock synchronization unit 440 is specifically configured to:

若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,If the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer.

若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零。If the current host server is not the clock source host server, the current host server obtains the system clock of the first-level Box server, updates its own system time, and clears the timer.

可选地,作为本申请一个实施例,所述时钟同步单元440还具体用于:Optionally, as an embodiment of the present application, the clock synchronization unit 440 is further specifically configured to:

若池化服务器的系统拓扑结构中Host服务器存在下级联二级Box服务器,则二级Box服务器获取一级Box服务器的系统时钟,进行时钟同步,一级Box服务器BMC将时间同步至二级Box服务器BMC。If the Host server in the system topology of the pooled server has a cascaded second-level Box server, the second-level Box server obtains the system clock of the first-level Box server and synchronizes the clock, and the first-level Box server BMC synchronizes the time to the second-level Box server. Server BMC.

图5为本发明实施例提供的一种终端装置500的结构示意图,该终端装置500可以用于执行本申请实施例提供的一种池化服务器系统BMC时钟同步的方法。FIG. 5 is a schematic structural diagram of a terminal device 500 according to an embodiment of the present invention, and the terminal device 500 may be used to execute a method for synchronizing a BMC clock of a pooled server system provided by an embodiment of the present application.

其中,该终端装置500可以包括:处理器510、存储器520及通信单元530。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本申请的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The terminal device 500 may include: a processor 510 , a memory 520 and a communication unit 530 . These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not constitute a limitation to the present application. It can be either a bus-shaped structure, a star-shaped structure, or a More or fewer components than shown may be included, or some components may be combined, or a different arrangement of components.

其中,该存储器520可以用于存储处理器510的执行指令,存储器520可以由任何类型的易失性或非易失性存储终端或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。当存储器520中的执行指令由处理器510执行时,使得终端500能够执行以下上述方法实施例中的部分或全部步骤。Wherein, the memory 520 can be used to store the execution instructions of the processor 510, and the memory 520 can be realized by any type of volatile or non-volatile storage terminal or their combination, such as static random access memory (SRAM), electrical Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk . When the execution instructions in the memory 520 are executed by the processor 510, the terminal 500 is enabled to execute some or all of the steps in the following method embodiments.

处理器510为存储终端的控制中心,利用各种接口和线路连接整个电子终端的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子终端的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器510可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本申请实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 510 is the control center of the storage terminal, using various interfaces and lines to connect various parts of the entire electronic terminal, by running or executing the software programs and/or modules stored in the memory 520, and calling the data stored in the memory, To perform various functions of the electronic terminal and/or process data. The processor may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs connected with the same function or different functions. For example, the processor 510 may only include a central processing unit (Central Processing Unit, CPU for short). In the embodiments of the present application, the CPU may be a single computing core, or may include multiple computing cores.

通信单元530,用于建立通信信道,从而使所述存储终端可以与其它终端进行通信。接收其他终端发送的用户数据或者向其他终端发送用户数据。The communication unit 530 is used for establishing a communication channel, so that the storage terminal can communicate with other terminals. Receive user data sent by other terminals or send user data to other terminals.

本申请还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本申请提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。The present application also provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, the program can include some or all of the steps in the embodiments provided in the present application. The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, ROM for short) or a random access memory (English: random access memory, RAM for short).

因此,本申请提供的池化服务器系统BMC时钟同步方法、装置、终端及存储介质,能够通过确定唯一时钟源Host服务器的系统时钟同步多个Host服务器及下级联Box服务器,保证整个池化服务器系统时间的统一,通过设定校准时间定期进行时钟校对,提高Box时钟精度,简化池化服务器系统整机BMC时间同步流程,增加产品的易用性与灵活性,提升运维效率,本实施例所能达到的技术效果可以参见上文中的描述,此处不再赘述。Therefore, the BMC clock synchronization method, device, terminal and storage medium of the pooled server system provided by the present application can synchronize multiple Host servers and lower cascaded Box servers by determining the system clock of the unique clock source Host server, so as to ensure the entire pooled server. Unification of system time, regular clock calibration by setting calibration time, improves Box clock accuracy, simplifies the BMC time synchronization process of the entire pooled server system, increases product usability and flexibility, and improves operation and maintenance efficiency. This embodiment For the technical effects that can be achieved, reference may be made to the above description, which will not be repeated here.

本领域的技术人员可以清楚地了解到本申请实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present application can be embodied in the form of software products in essence or in the parts that make contributions to the prior art. The computer software products are stored in a storage medium such as a USB flash drive, a mobile Hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes, including several instructions to make a computer terminal (It may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。It is sufficient to refer to each other for the same and similar parts among the various embodiments in this specification. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the description in the method embodiment.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Although the present invention has been described in detail in conjunction with the preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those of ordinary skill in the art can make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions should all fall within the scope of the present invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should all be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (8)

1.一种池化服务器系统最佳主时钟同步方法,其特征在于,所述方法包括:1. an optimal master clock synchronization method for a pooled server system, characterized in that the method comprises: Host服务器下级联的一级Box服务器接收到Host服务器发送的时钟同步请求并开始计时;The first-level Box server cascaded under the Host server receives the clock synchronization request sent by the Host server and starts timing; 设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准;Set the calibration duration T and calibration time error t, when the timing duration exceeds T, the system clock calibration is performed between the first-level Box server and the Host server; 当校准时间误差大于t,判断当前Host服务器是否为时钟源Host服务器:若池化服务器的系统拓扑结构为单台Host连接多台Box的拓扑结构,则确定当前Host服务器为时钟源Host服务器;若池化服务器的系统拓扑结构为多台Host连接单台Box的拓扑结构,获取当前链路的通道数,判断一级Box服务器系统时间是否已同步,是则根据通道数确定时钟源Host服务器,否则确定当前Host服务器为时钟源Host服务器;When the calibration time error is greater than t, determine whether the current Host server is the clock source Host server: if the system topology of the pooled server is a single Host connected to multiple Boxes, the current Host server is determined to be the clock source Host server; if The system topology of the pooled server is the topology of multiple hosts connected to a single box. Obtain the number of channels of the current link to determine whether the system time of the first-level Box server has been synchronized. If yes, determine the clock source Host server according to the number of channels, otherwise Make sure the current Host server is the clock source Host server; 若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零。If the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer. If the current Host server is not the clock source Host server, the current Host server obtains the first-level host server. The system clock of the Box server, updates its own system time and clears the timer. 2.如权利要求1所述的池化服务器系统最佳主时钟同步方法,其特征在于,所述设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准,包括:2. the best master clock synchronization method of pooled server system as claimed in claim 1, it is characterized in that, described setting calibration duration T, calibration time error t, when timing duration exceeds T, will first-level Box server and Host The server performs system clock calibration, including: 设定校准时长T=1h,校准时间误差t=1s;Set the calibration duration T=1h, and the calibration time error t=1s; 当计时时长超过1小时,一级Box服务器获取Host服务器的系统时钟与自身系统时钟进行比较。When the timing exceeds 1 hour, the first-level Box server obtains the system clock of the Host server and compares it with its own system clock. 3.如权利要求1所述的池化服务器系统最佳主时钟同步方法,其特征在于,所述若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零,包括:3. the best master clock synchronization method of pooled server system as claimed in claim 1, is characterized in that, described if current Host server is clock source Host server, then first-level Box server obtains the system clock of current Host server, carries out The clock is synchronized and the timer is cleared. If the current host server is not the clock source host server, the current host server obtains the system clock of the first-level Box server, updates its own system time and clears the timer, including: 若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,更新自身系统时间及RTC芯片时间,且计时器清零;If the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, updates its own system time and RTC chip time, and clears the timer; 若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间,且计时器清零。If the current host server is not the clock source host server, the current host server obtains the system clock of the first-level Box server, updates its own system time, and clears the timer. 4.一种池化服务器系统最佳主时钟同步装置,其特征在于,所述装置包括:4. An optimal master clock synchronization device for a pooled server system, characterized in that the device comprises: 接收单元,所述接收单元用于Host服务器下级联的一级Box服务器接收到Host服务器发送的时钟同步请求并开始计时;A receiving unit, the receiving unit is used for the first-level Box server cascaded under the Host server to receive the clock synchronization request sent by the Host server and start timing; 时钟校准单元,所述时钟校准单元用于设定校准时长T、校准时间误差t,当计时时长超过T,将一级Box服务器与Host服务器进行系统时钟校准;A clock calibration unit, the clock calibration unit is used to set the calibration duration T and the calibration time error t, and when the timing duration exceeds T, the system clock calibration is performed between the first-level Box server and the Host server; 判断单元,所述判断单元用于当校准时间误差大于t,判断当前Host服务器是否为时钟源Host服务器:若池化服务器的系统拓扑结构为单台Host连接多台Box的拓扑结构,则确定当前Host服务器为时钟源Host服务器;若池化服务器的系统拓扑结构为多台Host连接单台Box的拓扑结构,获取当前链路的通道数,判断一级Box服务器系统时间是否已同步,是则根据通道数确定时钟源Host服务器,否则确定当前Host服务器为时钟源Host服务器;A judging unit, the judging unit is used to judge whether the current Host server is a clock source Host server when the calibration time error is greater than t: if the system topology of the pooled server is a topology in which a single Host is connected to multiple Boxes, then determine whether the current Host server is a clock source Host server. The host server is the clock source host server; if the system topology of the pooled server is the topology of multiple hosts connected to a single box, obtain the number of channels of the current link, and determine whether the system time of the first-level box server has been synchronized. The number of channels determines the clock source Host server, otherwise the current Host server is determined as the clock source Host server; 时钟同步单元,所述时钟同步单元用于若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零。The clock synchronization unit is used for if the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer, if the current Host server is not the clock The source Host server, the current Host server obtains the system clock of the first-level Box server, updates its own system time, and clears the timer. 5.如权利要求4所述的池化服务器系统最佳主时钟同步装置,其特征在于,所述时钟校准单元具体用于:5. the best master clock synchronization device of the pooled server system as claimed in claim 4, is characterized in that, described clock calibration unit is specifically used for: 设定校准时长T=1h,校准时间误差t=1s;Set the calibration duration T=1h, and the calibration time error t=1s; 当计时时长超过1小时,一级Box服务器获取Host服务器的系统时钟与自身系统时钟进行比较。When the timing exceeds 1 hour, the first-level Box server obtains the system clock of the Host server and compares it with its own system clock. 6.如权利要求4所述的池化服务器系统最佳主时钟同步装置,其特征在于,所述时钟同步单元具体用于:6. The best master clock synchronization device of a pooled server system as claimed in claim 4, wherein the clock synchronization unit is specifically used for: 若当前Host服务器为时钟源Host服务器,则一级Box服务器获取当前Host服务器的系统时钟,进行时钟同步并计时器清零,If the current Host server is the clock source Host server, the first-level Box server obtains the system clock of the current Host server, synchronizes the clock and clears the timer. 若当前Host服务器不为时钟源Host服务器,则当前Host服务器获取一级Box服务器的系统时钟,更新自身系统时间并计时器清零。If the current host server is not the clock source host server, the current host server obtains the system clock of the first-level Box server, updates its own system time, and clears the timer. 7.一种终端,其特征在于,包括:7. A terminal, characterized in that, comprising: 处理器;processor; 用于存储处理器的执行指令的存储器;memory for storing instructions for execution of the processor; 其中,所述处理器被配置为执行权利要求1-3任一项所述的方法。wherein the processor is configured to perform the method of any one of claims 1-3. 8.一种存储有计算机程序的计算机可读存储介质,其特征在于,该程序被处理器执行时实现如权利要求1-3中任一项所述的方法。8. A computer-readable storage medium storing a computer program, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-3 is implemented.
CN201811603552.6A 2018-12-26 2018-12-26 A pooled server system BMC clock synchronization method, device, terminal and storage medium Active CN109510682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811603552.6A CN109510682B (en) 2018-12-26 2018-12-26 A pooled server system BMC clock synchronization method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811603552.6A CN109510682B (en) 2018-12-26 2018-12-26 A pooled server system BMC clock synchronization method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109510682A CN109510682A (en) 2019-03-22
CN109510682B true CN109510682B (en) 2020-07-03

Family

ID=65755454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811603552.6A Active CN109510682B (en) 2018-12-26 2018-12-26 A pooled server system BMC clock synchronization method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109510682B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114779883B (en) * 2022-05-17 2024-03-19 西安易朴通讯技术有限公司 System clock synchronization method, device, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281884A (en) * 2014-07-24 2016-01-27 北京信威通信技术股份有限公司 Method for time synchronization between nodes in network without center
CN107295627A (en) * 2016-04-01 2017-10-24 中国移动通信有限公司研究院 Method for synchronizing time, time synchronism apparatus and wireless communication protocol stack system
CN108429642A (en) * 2018-02-28 2018-08-21 郑州云海信息技术有限公司 A topology recognition method, system, device and computer storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399757B (en) * 2007-09-25 2011-02-02 华为技术有限公司 Method and device for tracing time clock source
CN101170373A (en) * 2007-11-27 2008-04-30 上海自动化仪表股份有限公司 Clock synchronization realization method for loop network
CN105191178B (en) * 2013-05-01 2019-06-28 三星电子株式会社 Method and apparatus for device-to-device communication system
CN105282840B (en) * 2014-07-24 2019-02-22 北京信威通信技术股份有限公司 A kind of method of time synchronization between mobile Ad hoc network interior joint

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281884A (en) * 2014-07-24 2016-01-27 北京信威通信技术股份有限公司 Method for time synchronization between nodes in network without center
CN107295627A (en) * 2016-04-01 2017-10-24 中国移动通信有限公司研究院 Method for synchronizing time, time synchronism apparatus and wireless communication protocol stack system
CN108429642A (en) * 2018-02-28 2018-08-21 郑州云海信息技术有限公司 A topology recognition method, system, device and computer storage medium

Also Published As

Publication number Publication date
CN109510682A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
CN104202194B (en) The collocation method and device of PCIe topologys
CN115686872B (en) BMC-based memory resource processing equipment, method, device and medium
CN109495542B (en) Load distribution method and terminal equipment based on performance monitoring
CN107666493B (en) Database configuration method and equipment thereof
CN112947734B (en) Server power consumption control method, system, terminal and storage medium
WO2016155540A1 (en) Bus arbitration method, apparatus and system
WO2013075501A1 (en) Method and device for hot-plugging a node
CN100527661C (en) Method and system for realizing multi-clock synchronization
CN109660391B (en) A pooled server system firmware upgrade method, system and related device
CN108028806B (en) Method and apparatus for allocating virtual resources in network function virtualization NFV network
CN111159090B (en) Information processing method and device and electronic equipment
CN105373563B (en) Database switching method and device
CN109510682B (en) A pooled server system BMC clock synchronization method, device, terminal and storage medium
CN116166434A (en) Processor allocation method and system, device, storage medium and electronic equipment
US20190004816A1 (en) Systems and methods for heterogeneous system on a chip servers
CN119052229A (en) File downloading method, device and computer program product
WO2017124801A1 (en) Method, device, and system for initiating vnf instantiation
CN108345564B (en) Interrupt matrix module, chip and electronic equipment
CN111124890B (en) Distributed database performance test method, system, terminal and storage medium
CN114448972A (en) Distributed storage log compression downloading method, system, terminal and storage medium
CN112003730A (en) A method, system, terminal and storage medium for rapid cluster deployment
WO2018001375A1 (en) Physical to virtual migration method, physical server, virtual server, and system
CN106416133B (en) The determination method, apparatus and equipment of optimal heart beat cycle
CN115296765B (en) Time synchronization method of distributed simulation system and distributed simulation system
CN104407714A (en) Main board and use method thereof for remote multi-computer switching

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200611

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant