CN112713956A - Frequency selection method, device, equipment and storage medium of synchronous Ethernet - Google Patents

Frequency selection method, device, equipment and storage medium of synchronous Ethernet Download PDF

Info

Publication number
CN112713956A
CN112713956A CN202011630434.1A CN202011630434A CN112713956A CN 112713956 A CN112713956 A CN 112713956A CN 202011630434 A CN202011630434 A CN 202011630434A CN 112713956 A CN112713956 A CN 112713956A
Authority
CN
China
Prior art keywords
frequency
port
message
synchronous
target
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
Application number
CN202011630434.1A
Other languages
Chinese (zh)
Other versions
CN112713956B (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.)
Guangdong Dapu Telecom Technology Co Ltd
Original Assignee
Guangdong Dapu Telecom 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 Guangdong Dapu Telecom Technology Co Ltd filed Critical Guangdong Dapu Telecom Technology Co Ltd
Priority to CN202011630434.1A priority Critical patent/CN112713956B/en
Publication of CN112713956A publication Critical patent/CN112713956A/en
Application granted granted Critical
Publication of CN112713956B publication Critical patent/CN112713956B/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/0602Systems characterised by the synchronising information used
    • H04J3/0617Systems characterised by the synchronising information used the synchronising signal being characterised by the frequency or phase

Abstract

The embodiment of the invention discloses a frequency selection method of a synchronous Ethernet, which comprises the following steps: receiving a plurality of first synchronization message messages and a plurality of frequency signals; the first synchronization message carries a grade evaluation value of a frequency signal, and the frequency signal corresponds to the frequency source one by one; determining an optimal frequency source according to the grade evaluation values in the plurality of first synchronous message messages; analyzing a port identifier in a first synchronous message corresponding to the optimal frequency source; and determining the frequency recovered by the target port corresponding to the port identification as the target frequency. The frequency selection method of the synchronous Ethernet disclosed by the embodiment of the invention can solve the problem of mapping relation between the synchronous message and multi-path synchronous Ethernet frequency input by configuring the corresponding port identification at the port of the synchronous Ethernet equipment, so that a CPU (central processing unit) can select the frequency signal recovered by the port according to the quality grade information in the synchronous message.

Description

Frequency selection method, device, equipment and storage medium of synchronous Ethernet
Technical Field
The present invention relates to the field of communication networks, and in particular, to a method, an apparatus, a device, and a storage medium for selecting a frequency of a synchronous ethernet network.
Background
In a communication network, the normal operation of many services requires network time synchronization. Time synchronization includes synchronization in both frequency and phase. The frequency and the phase difference among the whole network devices can be kept within a reasonable error range through time synchronization. The technology for realizing time synchronization mainly comprises the following steps: GPS synchronization, BDS synchronization, PTP synchronization, and SyncE + PTP synchronization. The GPS and the BDS are both in satellite synchronization, and have high cost and great maintenance difficulty. PTP synchronization is low cost, but synchronization accuracy is limited by hardware stamping and the influence of network PDV. Therefore, for synchronous ethernet, SyncE + PTP technology is usually used to achieve higher synchronization accuracy. Synchronous Ethernet (SyncE) is a synchronization technology based on physical layer code stream carrying and frequency information recovery, and can implement high-precision frequency synchronization between network devices. The SyncE technology and the PTP technology are matched for use, the SyncE realizes frequency synchronization, the PTP realizes phase synchronization, and high-precision time synchronization can be met.
Disclosure of Invention
The embodiment of the invention provides a frequency selection method, a device, equipment and a storage medium of synchronous Ethernet, which can solve the problem of mapping relation between multi-path synchronous Ethernet frequency input and a synchronous message, and enable a CPU (central processing unit) to select a frequency signal recovered by a port according to quality grade information in the synchronous message.
In a first aspect, an embodiment of the present invention provides a method for selecting a frequency of a synchronous ethernet, including:
receiving a plurality of first synchronization message messages and a plurality of frequency signals; the first synchronization message carries the grade evaluation value of the frequency signal, and the frequency signal corresponds to the frequency source one by one;
determining an optimal frequency source according to the grade evaluation values in the plurality of first synchronous message messages;
analyzing the port identification in the first synchronous message corresponding to the optimal frequency source;
and determining the frequency recovered by the target port corresponding to the port identification as a target frequency.
Further, determining an optimal frequency source according to the rank evaluation values in the plurality of first synchronization message messages includes:
acquiring a grade evaluation value in each first synchronous message;
and determining the frequency source with the minimum grade evaluation value as the optimal frequency source.
Further, determining a frequency recovered by a target port corresponding to the port identifier as a target frequency includes:
if the optimal frequency sources comprise at least two optimal frequency sources, comparing the priorities of the ports corresponding to the at least two optimal frequency sources according to the port identifiers, and determining the port with the highest priority as a target port;
and determining the frequency recovered by the target port as a target frequency.
Furthermore, the plurality of first synchronization message packets are respectively received corresponding to the plurality of ports, and the first synchronization message packets correspond to the ports one to one; after receiving the plurality of first synchronization message messages, the method further comprises:
and adding port identifiers of corresponding ports to the plurality of first message messages.
Further, before receiving the plurality of first synchronization message messages and the plurality of frequency signals, the method further comprises:
different port identifications are configured for the ports of each synchronous Ethernet device.
Further, after determining the frequency recovered by the target port corresponding to the port identifier as the target frequency, the method further includes:
generating a second synchronous message, and adding the port identification of the target port into the second synchronous message;
and sending the second synchronous message to a target port according to the added port identification.
Further, after sending the second synchronization message to the target port according to the added port identifier, the method further includes:
deleting the port identification from the second synchronization message;
and sending the second synchronous message with the port identification deleted through the target port.
In a second aspect, an embodiment of the present invention further provides a frequency selection device for a synchronous ethernet, including:
the first synchronous message and frequency signal receiving module is used for receiving a plurality of first synchronous message and a plurality of frequency signal receiving modules; the first synchronization message carries the grade evaluation value of the frequency signal, and the frequency signal corresponds to the frequency source one by one;
the optimal frequency source determining module is used for determining an optimal frequency source according to the grade evaluation values in the plurality of first synchronous message messages;
the port identification analysis module is used for analyzing the port identification in the first synchronous message corresponding to the optimal frequency source;
and the target frequency determining module is used for determining the frequency recovered by the target port corresponding to the port identification as the target frequency.
Optionally, the optimal frequency source determining module is further configured to:
acquiring a grade evaluation value in each first synchronous message;
and determining the frequency source with the minimum grade evaluation value as the optimal frequency source.
Optionally, the target frequency determining module is further configured to:
if the optimal frequency sources comprise at least two optimal frequency sources, comparing the priorities of the ports corresponding to the at least two optimal frequency sources according to the port identifiers, and determining the port with the highest priority as a target port;
and determining the frequency recovered by the target port as a target frequency.
Optionally, the plurality of first synchronization message packets are received corresponding to the plurality of ports respectively, and the first synchronization message packets correspond to the ports one to one; the first synchronization message and frequency signal receiving module is further configured to:
and adding port identifiers of corresponding ports to the plurality of first message messages.
Optionally, the apparatus further includes a port identifier configuration module, configured to configure a different port identifier for each port of the synchronous ethernet device.
Optionally, the apparatus further comprises:
a second synchronization message generation module, configured to generate a second synchronization message, and add the port identifier of the target port to the second synchronization message;
and the first sending module is used for sending the second synchronous message to a target port according to the added port identification.
Optionally, the apparatus further comprises:
a port identifier deleting module, configured to delete the port identifier from the second synchronization message;
and the second sending module is used for sending the second synchronous message with the port identifier deleted through the target port.
In a third aspect, an embodiment of the present invention further provides a frequency selection device for a synchronous ethernet, where the frequency selection device includes:
comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method for frequency selection of synchronous ethernet according to any of the embodiments of the present invention when executing the program.
In a fourth aspect, an embodiment of the present invention further provides a frequency selection storage medium for a synchronous ethernet, where a computer program is stored on the storage medium, and when the program is executed by a processing device, the program implements a frequency selection method for a synchronous ethernet according to any one of the embodiments of the present invention.
The embodiment of the invention firstly receives a plurality of first synchronous message messages and a plurality of frequency signals; the first synchronization message carries a grade evaluation value of a frequency signal, and the frequency signal corresponds to a frequency source one by one; then determining an optimal frequency source according to the grade evaluation values in the plurality of first synchronous message messages; analyzing the port identification in the first synchronous message corresponding to the optimal frequency source; and finally, determining the frequency recovered by the target port corresponding to the port identification as the target frequency. The frequency selection method of the synchronous Ethernet disclosed by the embodiment of the invention can solve the problem of mapping relation between the synchronous message and multi-path synchronous Ethernet frequency input by configuring the corresponding port identification at the port of the synchronous Ethernet equipment, so that a CPU (central processing unit) can select the frequency signal recovered by the port according to the quality grade information in the synchronous message.
Drawings
Fig. 1 is a flowchart of a frequency selection method for synchronous ethernet according to a first embodiment of the present invention;
fig. 2 is a structural diagram of a synchronous ethernet device according to a first embodiment of the present invention;
fig. 3 is a structural diagram of a synchronous ethernet device with a port identifier according to a first embodiment of the present invention;
fig. 4 is a schematic diagram of a frequency selection process of a synchronous ethernet according to a first embodiment of the present invention;
fig. 5 is a schematic structural diagram of a frequency selection device of a synchronous ethernet according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device in a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for selecting a frequency of a synchronous ethernet according to an embodiment of the present invention, where the embodiment is applicable to a case of selecting a frequency of a synchronous ethernet, and the method may be executed by a frequency selection apparatus of a synchronous ethernet, where the frequency selection apparatus may be composed of hardware and/or software, and may be generally integrated in a device having a frequency selection function of a synchronous ethernet, where the device may be an electronic device such as a server or a server cluster. As shown in fig. 1, the method specifically comprises the following steps:
step 110, receiving a plurality of first synchronization message messages and a plurality of frequency signals.
The first synchronization message carries a level evaluation value of a frequency signal, and the frequency signal corresponds to a frequency source one by one. In this embodiment, the first Synchronization message may be a Synchronization message (ESMC) received by a Synchronous Ethernet (sync, Synchronization Ethernet), and the level evaluation value may be an SSM value in the message, which may represent a quality level of a sync frequency signal. The ESMC messages are transmitted with the SyncE frequency signal.
Fig. 2 is a structural diagram of a synchronous ethernet device according to an embodiment of the present invention, and as shown in fig. 2, the synchronous ethernet device supports multiple ports for input and output, and each port supports SyncE frequency recovery and ESMC message reception. The format of the ESMC message is shown in table 1.
TABLE 1 ESMC message Format
Figure BDA0002879938580000071
Figure BDA0002879938580000081
Specifically, the ESMC message is transmitted along with the SyncE frequency signal, and carries quality level information of the SyncE frequency signal. When the synchronous Ethernet receives the SyncE frequency signal and the ESMC message, the SyncE frequency signal is recovered at a port of a physical layer chip (Phy chip) or a switching chip, and the ESMC message is sent to a CPU for processing, and the CPU can decide whether the frequency signal is available or not according to quality grade information carried in the ESMC message.
In this embodiment, before receiving the plurality of first synchronization message packets and the plurality of frequency signals, a different port identifier may be configured for each port of the synchronous ethernet device.
Wherein, the port identification can be represented by vlan tag.
Specifically, different Vlan tags may be configured for different ports, fig. 3 is a structural diagram of a synchronous ethernet device with port identifiers according to an embodiment of the present invention, and as shown in fig. 3, ports with port numbers of 1, 2.
In this embodiment, a plurality of first synchronization message packets are received corresponding to a plurality of ports, respectively, and the first synchronization message packets correspond to the ports one to one; after receiving the plurality of first synchronization message packets, the port identifier of the corresponding port may be added to the plurality of first message packets.
Specifically, when the synchronous ethernet device receives a plurality of ESMC messages, different messages are input through different chip ports, so that the vlan tag corresponding to the corresponding port can be added to the header of the message when the message passes through the different ports. Further, the CPU can analyze the vlan tag after receiving the ESMC message.
And step 120, determining an optimal frequency source according to the level evaluation values in the plurality of first synchronous message messages.
In this embodiment, the manner of determining the optimal frequency source according to the rank evaluation values in the plurality of first synchronization message messages may be: acquiring a grade evaluation value in each first synchronous message; and determining the frequency source with the minimum grade evaluation value as the optimal frequency source.
Specifically, the message of the ESMC includes quality level information, where the quality level information may be a level evaluation value, and in this embodiment, may be represented by an SSM value in the message, and the smaller the SSM value is, the higher the quality level is. When multiple paths of SyncE frequency input exist, namely the CPU receives a plurality of ESMC messages, the CPU can analyze SSM values in the ESMC messages at the moment, and then a frequency source corresponding to the message with the minimum SSM value is determined as an optimal frequency source (Best-SyncE frequency source).
The data format of the ESMC message is shown in table 2.
TABLE 2 data Format
Figure BDA0002879938580000091
And step 130, analyzing the port identification in the first synchronization message corresponding to the optimal frequency source.
Specifically, after selecting the Best-SyncE frequency source according to the quality grade information of the ESMC, the CPU may analyze the vlan tag in the ESMC message corresponding to the Best-SyncE frequency source, and may determine which port the message passes through when being input according to the vlan tag.
And step 140, determining the frequency recovered by the target port corresponding to the port identifier as the target frequency.
Specifically, after the target port is determined according to the vlan tag in the ESMC message, the frequency recovered by the target port can be used as the target frequency.
In this embodiment, the manner of determining the frequency recovered by the target port corresponding to the port identifier as the target frequency may be: if the optimal frequency sources comprise at least two optimal frequency sources, comparing the priorities of the ports corresponding to the at least two optimal frequency sources according to the port identifiers, and determining the port with the highest priority as a target port; and determining the frequency recovered by the target port as the target frequency.
Specifically, if there are at least two SSM messages with the same SSM value, that is, there are at least two optimal frequency sources, in this case, the port priority may be configured, that is, the configuration of adding the port priority to the port parameter table of the CPU. The port priority does not need to be added to the ESMC message, but when the SSM values of a plurality of ESMC messages are equal, the port priorities of the corresponding receiving ports are compared, and the port with the higher port priority is selected as the target port. Fig. 4 is a schematic diagram of a frequency selection process of a synchronous ethernet in the first embodiment of the present invention, as shown in the figure, if SSM values in ESMC messages are different, a frequency source corresponding to a message with the minimum SSM value is determined as a Best-SyncE frequency source, and then a target port is determined according to a port identifier; and if the SSM values in the ESMC message are the same, taking the port with higher port priority as the target port.
In this embodiment, after determining the frequency recovered by the target port corresponding to the port identifier as the target frequency, a second synchronization message may be generated, and the port identifier of the target port is added to the second synchronization message; and sending the second synchronous message to the target port according to the added port identification.
The second synchronization message may be an ESMC message sent by the CPU.
Specifically, when the CPU sends a message, the vlan tag of the port may be added to the ESMC message header to be sent, and the switch chip forwards the message to the corresponding port according to the vlan tag.
In this embodiment, after the second synchronization message is sent to the target port according to the added port identifier, the port identifier may also be deleted from the second synchronization message; and sending the second synchronous message with the port identification deleted through the target port.
Specifically, to prevent network slicing, the vlan tag in the message may be deleted when the port sends the message, and the message with the vlan tag deleted may be sent through the target port.
The embodiment of the invention firstly receives a plurality of first synchronous message messages and a plurality of frequency signals; the first synchronization message carries a grade evaluation value of a frequency signal, and the frequency signal corresponds to a frequency source one by one; then determining an optimal frequency source according to the grade evaluation values in the plurality of first synchronous message messages; analyzing the port identification in the first synchronous message corresponding to the optimal frequency source; and finally, determining the frequency recovered by the target port corresponding to the port identification as the target frequency. The frequency selection method of the synchronous Ethernet disclosed by the embodiment of the invention can solve the problem of mapping relation between the synchronous message and multi-path synchronous Ethernet frequency input by configuring the corresponding port identification at the port of the synchronous Ethernet equipment, so that a CPU (central processing unit) can select the frequency signal recovered by the port according to the quality grade information in the synchronous message.
Example two
Fig. 5 is a schematic structural diagram of a frequency selection device of a synchronous ethernet according to a second embodiment of the present invention. As shown in fig. 5, the apparatus includes: a first synchronization message and frequency signal receiving module 210, an optimal frequency source determining module 220, a port identifier parsing module 230, and a target frequency determining module 240.
A first synchronization message and frequency signal receiving module 210, configured to receive a plurality of first synchronization message and a plurality of frequency signal receiving modules.
The first synchronization message carries a level evaluation value of a frequency signal, and the frequency signal corresponds to a frequency source one by one.
Optionally, the plurality of first synchronization message packets are received corresponding to the plurality of ports respectively, and the first synchronization message packets correspond to the ports one to one; the first synchronization message and frequency signal receiving module 210 is further configured to:
and adding port identifiers of corresponding ports to the first message messages.
An optimal frequency source determining module 220, configured to determine an optimal frequency source according to the rank evaluation values in the plurality of first synchronization message messages.
Optionally, the optimal frequency source determining module 220 is further configured to:
acquiring a grade evaluation value in each first synchronous message; and determining the frequency source with the minimum grade evaluation value as the optimal frequency source.
The port identifier parsing module 230 is configured to parse the port identifier in the first synchronization message corresponding to the optimal frequency source.
And a target frequency determining module 240, configured to determine, as the target frequency, a frequency recovered by the target port corresponding to the port identifier.
Optionally, the target frequency determining module 240 is further configured to:
if the optimal frequency sources comprise at least two optimal frequency sources, comparing the priorities of the ports corresponding to the at least two optimal frequency sources according to the port identifiers, and determining the port with the highest priority as a target port; and determining the frequency recovered by the target port as the target frequency.
Optionally, the apparatus further includes a port identifier configuration module, configured to configure a different port identifier for each port of the synchronous ethernet device.
Optionally, the apparatus further comprises:
the second synchronous message generating module is used for generating a second synchronous message and adding the port identification of the target port into the second synchronous message;
and the first sending module is used for sending the second synchronous message to the target port according to the added port identification.
Optionally, the apparatus further comprises:
a port identifier deleting module, configured to delete the port identifier from the second synchronization message;
and the second sending module is used for sending the second synchronous message with the port identifier deleted through the target port.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present invention.
EXAMPLE III
Fig. 6 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. FIG. 6 illustrates a block diagram of a computer device 312 suitable for use in implementing embodiments of the present invention. The computer device 312 shown in FIG. 6 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention. Device 312 is a frequency selective computing device of a typical synchronous ethernet network.
As shown in FIG. 6, computer device 312 is in the form of a general purpose computing device. The components of computer device 312 may include, but are not limited to: one or more processors 316, a storage device 328, and a bus 318 that couples the various system components including the storage device 328 and the processors 316.
Bus 318 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 312 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 312 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 328 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 330 and/or cache Memory 332. The computer device 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 318 by one or more data media interfaces. Storage 328 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 336 having a set (at least one) of program modules 326 may be stored, for example, in storage 328, such program modules 326 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which may comprise an implementation of a network environment, or some combination thereof. Program modules 326 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
The computer device 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, camera, display 324, etc.), with one or more devices that enable a user to interact with the computer device 312, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 312 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 322. Also, computer device 312 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), etc.) and/or a public Network, such as the internet, via Network adapter 320. As shown, network adapter 320 communicates with the other modules of computer device 312 via bus 318. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 312, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 316 executes various functional applications and data processing by executing programs stored in the storage device 328, for example, to implement the frequency selection method of the synchronous ethernet provided by the above-described embodiment of the present invention.
Example four
Embodiments of the present invention provide a computer-readable storage medium having stored thereon a computer program, which when executed by a processing apparatus, implements a frequency selection method for synchronous ethernet as in the embodiments of the present invention. The computer readable medium of the present invention described above may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a plurality of first synchronization message messages and a plurality of frequency signals; determining an optimal frequency source according to the grade evaluation values in the plurality of first synchronous message messages; analyzing a port identifier in a first synchronous message corresponding to the optimal frequency source; and determining the frequency recovered by the target port corresponding to the port identification as the target frequency.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for selecting a frequency of a synchronous ethernet network, comprising:
receiving a plurality of first synchronization message messages and a plurality of frequency signals; the first synchronization message carries the grade evaluation value of the frequency signal, and the frequency signal corresponds to the frequency source one by one;
determining an optimal frequency source according to the grade evaluation values in the plurality of first synchronous message messages;
analyzing the port identification in the first synchronous message corresponding to the optimal frequency source;
and determining the frequency recovered by the target port corresponding to the port identification as a target frequency.
2. The method of claim 1, wherein determining an optimal frequency source based on rank estimates in the first plurality of synchronization message messages comprises:
acquiring a grade evaluation value in each first synchronous message;
and determining the frequency source with the minimum grade evaluation value as the optimal frequency source.
3. The method of claim 2, wherein determining the target port recovery frequency corresponding to the port identifier as the target frequency comprises:
if the optimal frequency sources comprise at least two optimal frequency sources, comparing the priorities of the ports corresponding to the at least two optimal frequency sources according to the port identifiers, and determining the port with the highest priority as a target port;
and determining the frequency recovered by the target port as a target frequency.
4. The method of claim 1, wherein the first synchronization message packets are received corresponding to a plurality of ports, respectively, and the first synchronization message packets are in one-to-one correspondence with the ports; after receiving the plurality of first synchronization message messages, the method further comprises:
and adding port identifiers of corresponding ports to the plurality of first message messages.
5. The method of claim 1, further comprising, prior to receiving the first plurality of synchronization message messages and the plurality of frequency signals:
different port identifications are configured for the ports of each synchronous Ethernet device.
6. The method according to claim 1, wherein after determining a frequency recovered by a target port corresponding to the port identifier as a target frequency, further comprising:
generating a second synchronous message, and adding the port identification of the target port into the second synchronous message;
and sending the second synchronous message to a target port according to the added port identification.
7. The method of claim 6, wherein after sending the second synchronization message to the destination port according to the added port identifier, further comprising:
deleting the port identification from the second synchronization message;
and sending the second synchronous message with the port identification deleted through the target port.
8. A frequency selection device for synchronous ethernet, comprising:
the first synchronous message and frequency signal receiving module is used for receiving a plurality of first synchronous message and a plurality of frequency signal receiving modules; the first synchronization message carries the grade evaluation value of the frequency signal, and the frequency signal corresponds to the frequency source one by one;
the optimal frequency source determining module is used for determining an optimal frequency source according to the grade evaluation values in the plurality of first synchronous message messages;
the port identification analysis module is used for analyzing the port identification in the first synchronous message corresponding to the optimal frequency source;
and the target frequency determining module is used for determining the frequency recovered by the target port corresponding to the port identification as the target frequency.
9. A computer device, the device comprising: comprising a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the method for frequency selection of a synchronous ethernet network according to any of the claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processing means, carries out a method for frequency selection for synchronous ethernet according to any one of claims 1 to 7.
CN202011630434.1A 2020-12-31 2020-12-31 Frequency selection method, device, equipment and storage medium of synchronous Ethernet Active CN112713956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011630434.1A CN112713956B (en) 2020-12-31 2020-12-31 Frequency selection method, device, equipment and storage medium of synchronous Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011630434.1A CN112713956B (en) 2020-12-31 2020-12-31 Frequency selection method, device, equipment and storage medium of synchronous Ethernet

Publications (2)

Publication Number Publication Date
CN112713956A true CN112713956A (en) 2021-04-27
CN112713956B CN112713956B (en) 2022-12-02

Family

ID=75547720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011630434.1A Active CN112713956B (en) 2020-12-31 2020-12-31 Frequency selection method, device, equipment and storage medium of synchronous Ethernet

Country Status (1)

Country Link
CN (1) CN112713956B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006135A (en) * 2010-12-03 2011-04-06 北京华环电子股份有限公司 Method and device for selecting synchronous clock source
CN102664699A (en) * 2012-04-12 2012-09-12 中兴通讯股份有限公司南京分公司 Method and device for selecting clock sources of microwave network elements
CN104426645A (en) * 2013-09-02 2015-03-18 华为技术有限公司 Method for determining Ethernet clock source and device for determining Ethernet clock source
CN107437971A (en) * 2016-05-27 2017-12-05 中国移动通信有限公司研究院 The processing method and processing device of Synchronization Status Message
US20200287969A1 (en) * 2017-11-24 2020-09-10 Huawei Technologies Co., Ltd. Network device synchronization method and network device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006135A (en) * 2010-12-03 2011-04-06 北京华环电子股份有限公司 Method and device for selecting synchronous clock source
CN102664699A (en) * 2012-04-12 2012-09-12 中兴通讯股份有限公司南京分公司 Method and device for selecting clock sources of microwave network elements
CN104426645A (en) * 2013-09-02 2015-03-18 华为技术有限公司 Method for determining Ethernet clock source and device for determining Ethernet clock source
CN107437971A (en) * 2016-05-27 2017-12-05 中国移动通信有限公司研究院 The processing method and processing device of Synchronization Status Message
US20200287969A1 (en) * 2017-11-24 2020-09-10 Huawei Technologies Co., Ltd. Network device synchronization method and network device

Also Published As

Publication number Publication date
CN112713956B (en) 2022-12-02

Similar Documents

Publication Publication Date Title
US9602271B2 (en) Sub-nanosecond distributed clock synchronization using alignment marker in ethernet IEEE 1588 protocol
US11671194B2 (en) Technologies for high-precision timestamping of packets
US10078678B2 (en) Data transfer between multiple databases
CN111309747A (en) Data synchronization method, system and device
US20230327792A1 (en) Transporting client timing information across a network
US20220360350A1 (en) Method and apparatus for acquiring timestamp of data stream, storage medium, and electronic apparatus
CN112015816A (en) Data synchronization method, device, medium and electronic equipment
CN113572560B (en) Method, electronic device, and storage medium for determining clock synchronization accuracy
US10523548B2 (en) Circuit and a method for attaching a time stamp to a trace message
CN112713956B (en) Frequency selection method, device, equipment and storage medium of synchronous Ethernet
US10628242B1 (en) Message stream processor microbatching
CN112015746B (en) Data real-time processing method, device, medium and electronic equipment
CN115277504A (en) Network traffic monitoring method, device and system
CN111628913B (en) Online time length determining method and device, readable medium and electronic equipment
CN114637697A (en) Data stream processing device, processing method, chip and electronic equipment
CN112600641A (en) Network equipment time synchronization method, device, equipment and storage medium
US10819622B2 (en) Batch checkpointing for inter-stream messaging system
CN112346891A (en) Message storage method, device, equipment and computer readable medium
CN113312195A (en) Data processing method, device, equipment and storage medium
CN112256700A (en) Data storage method and device, electronic equipment and computer readable storage medium
CN112817701A (en) Timer processing method and device, electronic equipment and computer readable medium
CN114513523B (en) Data synchronization method, device, equipment and storage medium
CN111787107B (en) Message processing method and device, readable medium and electronic equipment
CN114253977A (en) Data processing method and device, electronic equipment and storage medium
CN114430364A (en) Information display method and device, electronic equipment and computer readable medium

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
CB02 Change of applicant information

Address after: 523000 Room 401 and 402, building 5, No. 24, industrial East Road, Songshanhu Park, Dongguan City, Guangdong Province

Applicant after: Guangdong daguangxin Technology Co.,Ltd.

Address before: 523808 the first, second and third floors of building 16, small and medium-sized science and technology enterprise Pioneer Park, North Industrial City, Songshanhu high tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant before: Guangdong Dapu Telecom Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant