CN114244465A - Cascade system main equipment selection method, selection device and cascade system - Google Patents
Cascade system main equipment selection method, selection device and cascade system Download PDFInfo
- Publication number
- CN114244465A CN114244465A CN202111605927.4A CN202111605927A CN114244465A CN 114244465 A CN114244465 A CN 114244465A CN 202111605927 A CN202111605927 A CN 202111605927A CN 114244465 A CN114244465 A CN 114244465A
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- clock
- precision
- equipment
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0641—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Electric Clocks (AREA)
Abstract
The invention relates to a selection method, a selection device and a cascade system of a main device of the cascade system, the selection method is applied to the main device selection device of the cascade system, the cascade system comprises at least two terminal devices, the method comprises the following steps: acquiring clock precision data of the terminal equipment with clock precision values prestored in the at least two pieces of terminal equipment and equipment model data of other pieces of terminal equipment, wherein the clock precision data and the equipment model data both carry terminal identifications; determining clock precision data which corresponds to the equipment model data and carries a terminal identifier based on a pre-stored model precision corresponding relation; and determining clock precision data with the highest precision, wherein a terminal device corresponding to a terminal identifier carried by the clock precision data with the highest precision is taken as a main device of the cascade system. The invention can automatically select the clock with proper precision value as the main device, thereby maximizing the clock testing precision of the whole cascade system.
Description
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to a method and an apparatus for selecting a master device of a cascade system, and a cascade system.
Background
Cascading in computer science refers to the mapping relationship between multiple objects, which simply means that multiple objects are connected together, and when an active object performs an operation, the associated object (passive side) also performs the same operation synchronously.
In order to facilitate the management of the system, it is necessary to maintain a uniform clock frequency and timing starting point between the respective objects. The specific cascade operation mode is that a plurality of objects are connected in sequence, then one object is selected as the master device, and the clock frequency of the other objects jumps along with the clock frequency of the master device, so that the clock synchronization among the objects is realized. The clock frequency of each object in the system is jittered with the master device, so the clock precision of the master device is related to the clock precision of the whole system.
At present, when the master equipment is selected, the precision of the precision value of the selected master equipment can not be determined mainly through manual selection, so that the problem to be solved at present is how to improve the precision of the selected master equipment so as to improve the clock precision value of the whole system.
Disclosure of Invention
In order to select a clock with a proper precision value as a master device and maximize the clock testing precision of the whole cascade system, the application provides a selection method and a selection device of the master device of the cascade system and the cascade system.
In a first aspect, the present application provides a method for selecting a master device of a cascade system, which adopts the following technical solutions:
a method for selecting a main device of a cascade system is applied to a main device selection device of the cascade system, the cascade system comprises at least two terminal devices, and the method comprises the following steps:
acquiring clock precision data of the terminal equipment with clock precision values prestored in the at least two pieces of terminal equipment and equipment model data of other pieces of terminal equipment, wherein the clock precision data and the equipment model data both carry terminal identifications;
determining clock precision data which corresponds to the equipment model data and carries a terminal identifier based on a pre-stored model precision corresponding relation;
and determining clock precision data with the highest precision, wherein a terminal device corresponding to a terminal identifier carried by the clock precision data with the highest precision is taken as a main device of the cascade system.
By adopting the technical scheme, the method can automatically acquire the clock precision value of each terminal device, can acquire the device model data of the terminal device aiming at the terminal device which cannot acquire the clock precision value, and then inquires and acquires the clock precision data of the terminal device in the model precision corresponding relation, thereby acquiring the clock precision values of all the terminal devices. And selecting a terminal device corresponding to the clock precision data with the highest precision from the acquired clock precision values as a main device of the cascade system, so that the clock precision value of the cascade system can be maximized.
Optionally, the acquiring of the clock precision data of the terminal device in which the clock precision value is prestored in the at least two terminal devices includes acquiring device model data of other terminal devices;
respectively sending clock precision acquisition requests to the at least two terminal devices so that the terminal devices can inquire clock precision data of the terminal devices;
responding to the query result information returned by the terminal equipment, and determining clock precision data carrying a terminal identifier and query failure feedback carrying the terminal identifier;
and acquiring the equipment model data of the corresponding terminal equipment according to the terminal identification carried by the inquiry failure feedback so as to enable the terminal equipment to return the equipment model data carrying the terminal identification.
Optionally, the model precision corresponding relationship includes a comparison table of device model data and clock precision data;
the determining, based on the pre-stored model accuracy correspondence, clock accuracy data that corresponds to the device model data and carries a terminal identifier includes:
inquiring a comparison table of the equipment model data and the clock precision data, and determining the clock precision data corresponding to the equipment model data carrying the terminal identification;
and adding the terminal identifier carried by the equipment model data to the clock precision data obtained by query so as to obtain the clock precision data which corresponds to the equipment model data and carries the terminal identifier.
Optionally, the determining the clock precision data with the highest precision, taking a terminal device corresponding to a terminal identifier carried by the clock precision data with the highest precision as a master device of the cascade system, includes:
judging whether the clock precision data with the highest precision is unique or not;
if so, determining the terminal equipment corresponding to the terminal identification carried by the clock precision data with the highest precision as the main equipment;
if not, acquiring the production date data of the terminal equipment corresponding to the terminal identification carried by the at least two clock precision data with the highest precision;
and determining latest production date data, and taking the terminal device corresponding to the terminal identifier carried by the latest production date data as a main device.
By adopting the technical scheme, as the equipment is more seriously aged along with the lengthening of time, the drift of the clock in the equipment is larger, and the probability that the clock precision data is more stable is higher for the terminal equipment with the later production date. Therefore, when a plurality of terminal devices with the highest clock precision value are provided, the production date of the terminal device with the highest clock precision value can be acquired again, and the terminal device with the latest production date is selected as the main device, so that the clock precision value of the cascade system is maximized, and the stability of clock precision data can be improved.
Optionally, the obtaining of the production date data of the terminal device corresponding to the terminal identifier carried by the at least two pieces of clock precision data with the highest precision includes:
respectively sending production date acquisition requests to terminal equipment corresponding to at least two clock precision data carrying terminal identifications with highest precision so that the terminal equipment can inquire the production date data of the terminal equipment;
responding to the query result information returned by the terminal equipment, and determining production date data carrying the terminal identification and query invalid feedback carrying the terminal identification;
acquiring equipment model data of corresponding terminal equipment according to the terminal identification carried by the invalid feedback of the query so as to enable the terminal equipment to return the equipment model data carrying the terminal identification;
and determining production date data which corresponds to the equipment model data and carries the same terminal identification based on the pre-stored model date corresponding relation.
Optionally, the method further includes acquiring beat count data of the terminal device, where the beat count data is output by a beat register connected to the terminal device, a clock of the terminal device is timed to increase a preset duration, and the beat count data output by the beat register is increased by a preset number;
and determining clock state information of the terminal equipment according to the jitter count data, wherein the clock state information reflects whether a clock of the terminal equipment works normally or not.
By adopting the technical scheme, whether the clock of each terminal device normally beats is judged through the heartbeat register, and when the heartbeat register does not normally beat, a worker can timely maintain and replace the terminal device, so that the normal operation of the terminal device is ensured.
Optionally, the determining the clock state information of the terminal device according to the jitter count data includes:
judging whether the jitter count data obtained twice continuously are the same;
if so, the clock state information reflects that the clock of the terminal equipment does not work normally;
if not, the clock state information reflects that the clock of the terminal equipment works normally.
In a second aspect, the present application provides a cascade system master device selecting apparatus, which adopts the following technical solutions:
a cascade system main device selection device, the cascade system also includes at least two terminal devices, the main device selection device includes:
the data acquisition module is used for acquiring clock precision data of the terminal equipment with the clock precision value prestored in the at least two pieces of terminal equipment and equipment model data of other terminal equipment, wherein the clock precision data and the equipment model data both carry a middle terminal identifier;
the accuracy determining module is used for determining clock accuracy data which corresponds to the equipment model data and carries the terminal identification based on a pre-stored model accuracy corresponding relation;
and the equipment determining module is used for determining the clock precision data with the highest precision, and the terminal equipment corresponding to the terminal identification carried by the clock precision data with the highest precision is taken as the main equipment of the cascade system.
By adopting the technical scheme, the terminal equipment with the highest clock precision value can be automatically selected as the main equipment through the selection device.
In a third aspect, the present application provides a cascade system, which adopts the following technical solutions:
a cascade system comprises at least two terminal devices and also comprises the main device selection device.
Optionally, some terminal devices in the at least two terminal devices have a clock precision storage module;
the clock precision storage module comprises:
the pull-up and pull-down resistors are used for storing multi-bit binary codes reflecting clock precision data;
or registers for storing clock accuracy data.
By adopting the technical scheme, a clock precision storage module is arranged in part of the terminal equipment, and the clock precision value of the terminal equipment is stored in the clock precision storage module.
In summary, the present application includes at least one of the following beneficial technical effects:
1. when the method and the device are used for selecting the master device, the user does not need to know the device condition of each tester, the optimization selection of the master clock can be automatically completed, the user experience can be enhanced, the clock precision of the final test is better ensured, and the time measurement precision of the system is maximized;
2. when the number of the terminal equipment with the highest clock precision value is more than one, the terminal equipment with the latest production date and the highest clock precision is selected as the master equipment, so that the stability of the clock precision of the cascade system can be improved while the highest clock precision value of the cascade system is ensured;
3. the clock state information of each terminal device can be monitored in real time through the heartbeat register, the clock of each terminal device is guaranteed to be in a normal working state, and the accuracy of the test result of the cascade system is guaranteed.
Drawings
Fig. 1 is a schematic structural diagram of the cascade system of the present application.
Fig. 2 is a schematic flow chart of the selection method of the present application.
Fig. 3 is a schematic flow chart of the selection device of the present application.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
The embodiment of the application discloses a method for selecting a main device of a cascade system. The present application takes as an example a method of selecting a master device after cascading testers.
The network tester is a device for testing network equipment and a system, and is widely applied to the fields of network-related research and development, production, construction, maintenance and the like. The basic principle is that through the setting of a user, a network tester actively generates network flow to be used as an excitation source to be input into a tested System (SUT), and the characteristics of the tested system are qualitatively and quantitatively known through analyzing and recording the returned network flow.
The present network devices have become very complex, for example, some core routers may have hundreds of ports, and the number of test ports that a single tester can connect to is limited, so that the test for hundreds of ports at the same time cannot be completed by a single tester, and therefore, all ports of the same router need to be tested by a plurality of testers. And because each tester has its own clock, the data of each tester is asynchronous when testing the same router. Therefore, in order to facilitate system management and satisfy synchronization of data of a plurality of testers, before testing, the testers need to be connected through physical media such as coaxial cables and network cables to form a cascade system.
The cascade system is formed by connecting a plurality of testers together, selecting one tester as a master device, and synchronously jumping clocks of the other testers along with the clock of the master device, so that the synchronous jumping of the clocks in the testers is realized, and the testers have uniform clock frequency and timing starting points. Such synchronization is essential for testing of delay, jitter, etc. in network testing.
Since the clock frequency of all testers after synchronization depends on the clock frequency of the master device, the selection of the master device determines the clock accuracy value of the whole system, and therefore, how to select the tester with the proper clock accuracy value as the master device is very important.
Referring to fig. 1, fig. 1 shows a schematic diagram of a cascading system, which includes at least two terminal devices and a selection device.
All the terminal devices can be connected through coaxial cables, network cables and the like to form a cascade system, and the terminal devices can be testers or other devices needing cascade connection. The terminal equipment is divided into two types, one type is terminal equipment with a clock precision value stored inside, and the other type is terminal equipment without a clock precision value stored inside.
For the terminal device with the clock precision value stored inside, a clock precision storage module is arranged in the terminal device, and the clock precision value can be stored in the clock precision storage module in a 16-bit binary value mode.
In one example of the application, the clock precision storage module comprises 16 pull-up and pull-down resistors arranged in the terminal equipment, the on-off of the resistors can be controlled through the up-and-down sliding resistors, and the on-off of the 16 resistors represents 1 and 0 of a binary value, so that the storage of the 16-bit binary value is realized.
For example, in PPM of traffic, 6 bits represent integer values, 10 bits represent decimal values, then 3.0PPM can be represented as 0000110000000000, and 0.2PPM can be represented as 0000000000000010. And according to the on-off of 16 resistors corresponding to the 16 numerical value slips, the clock precision value of the terminal equipment can be stored in the clock precision storage module.
In another example of the present application, the clock precision storage module includes a register disposed in the terminal device, and the register may be a nonvolatile CPLD, and a 16-bit binary value is stored in the nonvolatile CPLD.
Of course, the terminal device having the clock accuracy value stored therein may also have production date data stored therein, that is, the terminal device is provided with a production date storage module, the production date data may be stored in the production date storage module in a binary numerical manner, and the clock accuracy storage module may be referred to in a specific storage manner, which is not repeated herein. Of course, the production date data may be stored in the production date storage module as decimal data as long as storage of the production date data is possible.
All the terminal devices are internally stored with device model data, and the device model data can be stored in a memory of each terminal device.
The selection device is connected between any two terminal devices, in one example of the application, the selection device can be a server, the server can obtain clock precision data, device model data and production date data stored in each terminal device, and the server has a loading function and can be used for a worker to enter set information or programs according to needs.
Each terminal device is connected with a heartbeat register, the heartbeat register outputs beat counting data, the heartbeat counting data is driven by a clock of each terminal device, and when the clock of the terminal device beats, the heartbeat register beats with the clock, so that the beat counting data is output.
Referring to fig. 2, for a method for selecting a master device of a cascading system disclosed in an embodiment of the present application, the method may be executed by the server in fig. 1, and when the method is executed by the server, the method is represented as a program in the server, and the method includes the following steps:
s11: clock precision data of the terminal equipment with the clock precision values stored in advance in at least two pieces of terminal equipment and equipment model data of other terminal equipment are obtained.
The clock precision data and the equipment model data both carry terminal identification.
Specifically, the server sends a clock precision acquisition request to each terminal device, and each terminal device queries its clock precision data, so as to query whether the terminal device itself stores a clock precision value. When the terminal equipment is provided with a hardware memory and the hardware memory stores a clock precision value, the terminal equipment feeds back inquiry success information to the server and transmits clock precision data carrying a terminal identifier to the server so that the server obtains the clock precision data carrying the terminal identifier; when the terminal device does not have a hardware memory, that is, the terminal device does not store clock precision data, the terminal device feeds back query failure information to the server, so that the server obtains query failure feedback carrying the terminal identifier.
When the server acquires the query failure feedback carrying the terminal identification, the server sends an equipment model data acquisition instruction to the terminal equipment corresponding to the query failure feedback again, and the terminal equipment transmits the stored equipment model data to the server, so that the server obtains the equipment model data carrying the terminal identification.
S12: and determining clock precision data which corresponds to the equipment model data and carries the terminal identification based on the pre-stored model precision corresponding relation.
The model precision corresponding relation reflects clock precision values corresponding to different models of terminal equipment. And a maintenance table is prestored in the server, and clock precision values and production dates corresponding to different types of terminal equipment are stored in the maintenance table. For example, the tester with Model a has a production date of 2012 and a clock precision of 5 PPM; the production date of the tester with the equipment Model B is 2016 years, and the used clock precision is 1 PPM; the production date of the tester with the equipment Model C is 2018, and the used clock precision is 0.5 PPM. The maintenance table is built as shown in table 1:
TABLE 1
Model of the device | Date of manufacture | Clock accuracy (PPM) |
Model A | 2012 | 5 |
Model B | 2016 | 1 |
Model C | 2018 | 0.5 |
... | ... | ... |
The data in the maintenance form can be directly input into the server in a keyboard input mode, can also be copied into the server in a USB flash disk copying mode, or can be stored in the server in a wireless transmission mode such as WIFI and Bluetooth, and the data can be recorded as long as the maintenance form can be recorded.
After the server obtains the equipment model data carrying the terminal identification, the server inquires a maintenance table stored in the server, obtains clock precision data corresponding to the equipment model data carrying the terminal identification based on the corresponding relation between the equipment model data and the clock precision data, and then adds the terminal identification carried by the equipment model data to the clock precision data obtained through inquiry so as to obtain the clock precision data corresponding to the equipment model data and carrying the terminal identification.
S13: and determining the clock precision data with the highest precision, wherein the terminal equipment corresponding to the terminal identification carried by the clock precision data with the highest precision is taken as the main equipment of the cascade system.
After clock precision data of each terminal device is obtained and inquired, a plurality of clock precision values are obtained and inquired in the server, the server compares the plurality of clock precision values obtained through obtaining and inquiring to obtain a clock precision value with the highest precision, and the terminal device carried by the terminal identifier carried by the clock precision value with the highest precision is used as a main device of the cascade system.
When the server compares the clock precision values with the highest precision values, the number of the terminal devices with the highest and the same clock precision values is multiple, and when the master device is selected, one of the terminal devices can be directly selected as the master device, so that the selection of a clock with a proper precision value is realized, and the clock precision value of the whole system is maximized.
Of course, in general, the more the device ages with time, the greater the drift of the clock, and the more likely it is that the clock accuracy will be more stable for the terminal device that is produced at a later date. After each clock precision data is obtained and inquired, whether the clock precision data with the highest precision is unique can be judged according to the obtained clock precision data and the inquired clock precision data;
and if so, taking the terminal equipment corresponding to the terminal identification carried by the clock precision data with the highest precision as the main equipment.
And if not, acquiring the production date data of the terminal equipment corresponding to the terminal identification carried by at least two pieces of clock precision data with the highest precision, and taking the terminal equipment corresponding to the terminal identification carried by any one piece of latest production date data as the main equipment.
Specifically, a production date acquisition request is respectively sent to terminal devices corresponding to terminal identifiers carried by at least two pieces of clock precision data with the highest precision, so that the terminal devices can inquire the production date data of the terminal devices;
for the terminal equipment with the hardware memory, the hardware memory of the terminal equipment stores production date data, the terminal of the equipment feeds back and inquires effective information to the server, and transmits the production date data with the terminal identification to the server, so that the server obtains the production date data with the terminal identification. And for the terminal equipment without the hardware memory, the terminal equipment returns the query invalidity feedback carrying the terminal identification to the server, so that the server obtains the query invalidity feedback carrying the terminal identification.
Responding to the query result information returned by the terminal equipment, and determining the production date data carrying the terminal identification and the query invalid feedback carrying the terminal identification; and acquiring the equipment model data of the corresponding terminal equipment according to the terminal identification carried by the query invalid feedback so as to enable the terminal equipment to return the equipment model data carrying the terminal identification.
And determining production date data which corresponds to the equipment model data and carries the same terminal identification based on the pre-stored model date corresponding relation. The corresponding relation between the model and the date is stored in a maintenance table and can be obtained by inquiring the maintenance table.
Specifically, after the server acquires the equipment model data carrying the terminal identifier, a maintenance table stored in the server is queried, production date data corresponding to the equipment model data carrying the terminal identifier is queried and obtained based on the corresponding relation between the equipment model data and the production date data, and then the terminal identifier carried by the equipment model data is added to the queried production date data, so that the production date data corresponding to the equipment model data and carrying the terminal identifier is obtained.
And finally, according to the acquired and inquired production date data, taking the terminal equipment corresponding to the terminal identification carried by any latest production date data as the main equipment. The selected master equipment can ensure that the clock precision stability of the master equipment is better while the clock precision value is ensured to be the highest.
Certainly, when the master device is selected, it is also necessary to ensure that the clock of each terminal device is in normal jitter, and therefore, it is also necessary to determine whether the clock of each terminal device is in normal jitter in real time during the operation of the terminal device. Therefore, the method further comprises:
s21: and acquiring the jitter counting data of each terminal device, and judging the clock state information of each terminal device according to the obtained jitter counting data.
When the clock of the terminal equipment normally beats, the clock timing of the terminal equipment increases the preset time length, and the beat counting data output by the heartbeat register increases the preset number.
And determining the clock state information of the terminal equipment according to the jitter counting data output by the heartbeat register, and reflecting whether the clock of the terminal equipment works normally or not through the clock state information.
Specifically, after the jitter count data of each terminal device is acquired, whether the jitter count data acquired twice continuously is the same is judged;
if so, it is indicated that the jitter count data output twice by the heartbeat register is the same, the clock of the terminal device stops jumping, and the clock state information reflects that the clock of the terminal device is abnormally operated.
If not, the heartbeat register is judged to output different heartbeat counting data at two sides, the heartbeat register is driven by the clock of the terminal equipment to normally beat, and the clock state information reflects that the clock of the terminal equipment normally works.
The staff can judge whether the clock of each terminal equipment works normally according to the data reflected by the clock state information, so that the staff can process the clock of the terminal equipment in time when the clock of the terminal equipment works abnormally, and the influence on normal use is avoided.
The implementation principle of the method for selecting the main device of the cascade system in the embodiment of the application is as follows: when the master equipment needs to be selected, the clock accuracy value of each terminal equipment can be automatically acquired without the user knowing the condition of each terminal equipment, and the terminal equipment with the highest clock accuracy value is automatically selected as the master equipment. And when the number of the terminal equipment with the highest clock precision value is more than one, acquiring the production date of the terminal equipment with the highest clock precision, and selecting the terminal equipment with the latest production date as the main equipment, so that the selected main equipment has the latest production date and the highest clock precision value. The method and the device realize automatic selection of the main equipment, and the selected main equipment has better performance, thereby not only enhancing the user experience, but also maximizing the time measurement precision of the system.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules referred to are not necessarily required in this application.
The above is a description of method embodiments, and the following is a further description of the present application with reference to apparatus embodiments.
The embodiment of the application also discloses a selection device of the cascade system main equipment, the selection device is used for executing the selection method, and the selection device can be similar to a server in the system. Referring to fig. 3, the apparatus includes a data acquisition module, a precision determination module, and a device determination module.
The data acquisition module is used for acquiring clock precision data of the terminal equipment with the clock precision value prestored in at least two pieces of terminal equipment and equipment model data of other terminal equipment, wherein the clock precision data and the equipment model data both carry a middle terminal identifier;
the accuracy determining module is used for determining clock accuracy data which corresponds to the equipment model data and carries the terminal identification based on a pre-stored model accuracy corresponding relation;
and the equipment determining module is used for determining the clock precision data with the highest precision, and the terminal equipment corresponding to the terminal identification carried by the clock precision data with the highest precision is taken as the main equipment of the cascade system.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described apparatus may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The embodiments of the present invention are preferred embodiments of the present application, and the scope of protection of the present application is not limited by the embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.
Claims (10)
1. A method for selecting a master device of a cascade system is applied to a master device selection device of the cascade system, the cascade system comprises at least two terminal devices, and the method comprises the following steps:
acquiring clock precision data of the terminal equipment with clock precision values prestored in the at least two pieces of terminal equipment and equipment model data of other pieces of terminal equipment, wherein the clock precision data and the equipment model data both carry terminal identifications;
determining clock precision data which corresponds to the equipment model data and carries a terminal identifier based on a pre-stored model precision corresponding relation;
and determining clock precision data with the highest precision, wherein a terminal device corresponding to a terminal identifier carried by the clock precision data with the highest precision is taken as a main device of the cascade system.
2. The method according to claim 1, wherein the obtaining of the clock precision data of the terminal device with the clock precision value pre-stored therein from the at least two terminal devices, and the device model data of the remaining terminal devices comprises;
respectively sending clock precision acquisition requests to the at least two terminal devices so that the terminal devices can inquire clock precision data of the terminal devices;
responding to the query result information returned by the terminal equipment, and determining clock precision data carrying a terminal identifier and query failure feedback carrying the terminal identifier;
and acquiring the equipment model data of the corresponding terminal equipment according to the terminal identification carried by the inquiry failure feedback so as to enable the terminal equipment to return the equipment model data carrying the terminal identification.
3. The method of claim 1, wherein the model accuracy correspondence comprises a look-up table of device model data and clock accuracy data;
the determining, based on the pre-stored model accuracy correspondence, clock accuracy data that corresponds to the device model data and carries a terminal identifier includes:
inquiring a comparison table of the equipment model data and the clock precision data, and determining the clock precision data corresponding to the equipment model data carrying the terminal identification;
and adding the terminal identifier carried by the equipment model data to the clock precision data obtained by query so as to obtain the clock precision data which corresponds to the equipment model data and carries the terminal identifier.
4. The method according to claim 1, wherein the determining the clock precision data with the highest precision, and taking a terminal device corresponding to a terminal identifier carried by the clock precision data with the highest precision as a master device of the cascade system comprises:
judging whether the clock precision data with the highest precision is unique or not;
if so, determining the terminal equipment corresponding to the terminal identification carried by the clock precision data with the highest precision as the main equipment;
if not, acquiring the production date data of the terminal equipment corresponding to the terminal identification carried by the at least two clock precision data with the highest precision;
and determining latest production date data, and taking the terminal device corresponding to the terminal identifier carried by the latest production date data as a main device.
5. The method according to claim 4, wherein the obtaining of the production date data of the terminal device corresponding to the terminal identifier carried by the at least two clock accuracy data with the highest accuracy comprises:
respectively sending production date acquisition requests to terminal equipment corresponding to at least two clock precision data carrying terminal identifications with highest precision so that the terminal equipment can inquire the production date data of the terminal equipment;
responding to the query result information returned by the terminal equipment, and determining production date data carrying the terminal identification and query invalid feedback carrying the terminal identification;
acquiring equipment model data of corresponding terminal equipment according to the terminal identification carried by the invalid feedback of the query so as to enable the terminal equipment to return the equipment model data carrying the terminal identification;
and determining production date data which corresponds to the equipment model data and carries the same terminal identification based on the pre-stored model date corresponding relation.
6. The method according to claim 1, further comprising obtaining beat count data of the terminal device, wherein the beat count data is output by a beat register connected to the terminal device, the clock timing of the terminal device is increased by a preset time length, and the beat count data output by the beat register is increased by a preset number;
and determining clock state information of the terminal equipment according to the jitter count data, wherein the clock state information reflects whether a clock of the terminal equipment works normally or not.
7. The method of claim 6, wherein determining clock status information of the terminal device based on the jitter count data comprises:
judging whether the jitter count data obtained twice continuously are the same;
if so, the clock state information reflects that the clock of the terminal equipment does not work normally;
if not, the clock state information reflects that the clock of the terminal equipment works normally.
8. A device for selecting a master device of a cascade system, wherein the cascade system further comprises at least two terminal devices, the device for selecting the master device comprising:
the data acquisition module is used for acquiring clock precision data of the terminal equipment with the clock precision value prestored in the at least two pieces of terminal equipment and equipment model data of other terminal equipment, wherein the clock precision data and the equipment model data both carry a middle terminal identifier;
the accuracy determining module is used for determining clock accuracy data which corresponds to the equipment model data and carries the terminal identification based on a pre-stored model accuracy corresponding relation;
and the equipment determining module is used for determining the clock precision data with the highest precision, and the terminal equipment corresponding to the terminal identification carried by the clock precision data with the highest precision is taken as the main equipment of the cascade system.
9. A cascade system comprising at least two terminal devices, characterized in that it further comprises a master device selection means according to claim 8.
10. The system according to claim 9, wherein, of the at least two terminal devices, there is a part of the terminal devices having a clock precision storage module;
the clock precision storage module comprises:
the pull-up and pull-down resistors are used for storing multi-bit binary codes reflecting clock precision data;
or registers for storing clock accuracy data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111605927.4A CN114244465B (en) | 2021-12-25 | 2021-12-25 | Cascade system main equipment selection method, selection device and cascading system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111605927.4A CN114244465B (en) | 2021-12-25 | 2021-12-25 | Cascade system main equipment selection method, selection device and cascading system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114244465A true CN114244465A (en) | 2022-03-25 |
CN114244465B CN114244465B (en) | 2023-07-21 |
Family
ID=80763016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111605927.4A Active CN114244465B (en) | 2021-12-25 | 2021-12-25 | Cascade system main equipment selection method, selection device and cascading system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114244465B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150316A (en) * | 2007-09-14 | 2008-03-26 | 电子科技大学 | A multi-channel clock synchronization method and system |
CN102811155A (en) * | 2011-06-01 | 2012-12-05 | 中兴通讯股份有限公司 | Method for selecting clock source in clock transparent transmission mode, slave device and system |
JP2016082259A (en) * | 2014-10-10 | 2016-05-16 | 株式会社明電舎 | Clock synchronization system and clock synchronization method |
CN105634641A (en) * | 2016-01-05 | 2016-06-01 | 山东康威通信技术股份有限公司 | Precise timing system and method based on cascade network communication of switching architecture |
CN107749788A (en) * | 2017-09-29 | 2018-03-02 | 郑州云海信息技术有限公司 | A kind of method, apparatus and equipment for improving clock synchronization accuracy |
CN108235448A (en) * | 2016-12-21 | 2018-06-29 | 联芯科技有限公司 | Improve the device and method of ad hoc network clock accuracy |
KR20180090109A (en) * | 2017-02-02 | 2018-08-10 | 주식회사 다산네트웍스 | Clock synchronization system improved clock accuracy through competition with Grand Master clocks |
CN108650050A (en) * | 2018-05-09 | 2018-10-12 | 西安电子科技大学 | A kind of distributed network clock synchronous method |
CN111181679A (en) * | 2019-12-25 | 2020-05-19 | 北京飞利信电子技术有限公司 | IEEE 1588-based high-speed streaming media bus accurate clock synchronization system |
CN111835446A (en) * | 2019-04-19 | 2020-10-27 | 杭州海康威视数字技术股份有限公司 | Method, device and medium for determining master equipment |
-
2021
- 2021-12-25 CN CN202111605927.4A patent/CN114244465B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150316A (en) * | 2007-09-14 | 2008-03-26 | 电子科技大学 | A multi-channel clock synchronization method and system |
CN102811155A (en) * | 2011-06-01 | 2012-12-05 | 中兴通讯股份有限公司 | Method for selecting clock source in clock transparent transmission mode, slave device and system |
JP2016082259A (en) * | 2014-10-10 | 2016-05-16 | 株式会社明電舎 | Clock synchronization system and clock synchronization method |
CN105634641A (en) * | 2016-01-05 | 2016-06-01 | 山东康威通信技术股份有限公司 | Precise timing system and method based on cascade network communication of switching architecture |
CN108235448A (en) * | 2016-12-21 | 2018-06-29 | 联芯科技有限公司 | Improve the device and method of ad hoc network clock accuracy |
KR20180090109A (en) * | 2017-02-02 | 2018-08-10 | 주식회사 다산네트웍스 | Clock synchronization system improved clock accuracy through competition with Grand Master clocks |
CN107749788A (en) * | 2017-09-29 | 2018-03-02 | 郑州云海信息技术有限公司 | A kind of method, apparatus and equipment for improving clock synchronization accuracy |
CN108650050A (en) * | 2018-05-09 | 2018-10-12 | 西安电子科技大学 | A kind of distributed network clock synchronous method |
CN111835446A (en) * | 2019-04-19 | 2020-10-27 | 杭州海康威视数字技术股份有限公司 | Method, device and medium for determining master equipment |
CN111181679A (en) * | 2019-12-25 | 2020-05-19 | 北京飞利信电子技术有限公司 | IEEE 1588-based high-speed streaming media bus accurate clock synchronization system |
Non-Patent Citations (2)
Title |
---|
BANSAL, MONIKA: "Out-Degree Based clock synchronization in wireless network using precision time protocol", 12TH IEEE INTERNATIONAL CONFERENCE ON ADVANCED NETWORKS AND TELECOMMUNICAITONS SYSTEM * |
周凌飞: "纯硬件IEEE 1588v2精确时间同步系统的设计与实现", 中国优秀硕士学位论文全文数据库 信息科技辑 * |
Also Published As
Publication number | Publication date |
---|---|
CN114244465B (en) | 2023-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105426234B (en) | Database deadlocks detection method and device | |
CN103176974A (en) | Method and device used for optimizing access path in data base | |
CN108536808B (en) | Spark calculation framework-based data acquisition method and device | |
CN111291990B (en) | Quality monitoring processing method and device | |
CN110569179A (en) | Data acquisition system and data acquisition method | |
CN105117345A (en) | Interface testing method and device for application program | |
CN112311628A (en) | Network speed measurement method, system, network device and storage medium | |
CN110460967B (en) | Short message platform test method and device, computer equipment and storage medium | |
US10075520B2 (en) | Distributed aggregation of real-time metrics for large scale distributed systems | |
CN113656318A (en) | Software version testing method and device and computer equipment | |
CN109064248A (en) | Order data synchronous method of calibration, device and equipment | |
CN110134583A (en) | Software test and data processing method and device | |
US8325628B2 (en) | Determining placement of nodes within a wireless network | |
CN114244465B (en) | Cascade system main equipment selection method, selection device and cascading system | |
JP3791921B2 (en) | Method for analyzing network trace, processing device for analyzing network trace, computer-executable program for controlling computer as processing device, and method for correcting time difference between nodes in network | |
CN110990381B (en) | Processing method and device of server, storage medium and electronic device | |
CN112965912A (en) | Interface test case generation method and device and electronic equipment | |
CN112422369A (en) | Method and device for determining offline time, storage medium and electronic device | |
CN112667632A (en) | Metadata processing method and device | |
CN117874033A (en) | Database sub-table method and device, electronic equipment and storage medium | |
CN112650815B (en) | Method and device for synchronizing environment data, storage medium and electronic device | |
CN106570193B (en) | Method for loading time sequence big data | |
CN116155745A (en) | Message parsing method, device, storage medium and computer equipment | |
CN113010377B (en) | Method and device for collecting operation log of job | |
CN115878443A (en) | Interface test script generation method and device, storage medium and electronic device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |