CN113810301A - Message sending method, terminal device and storage medium - Google Patents

Message sending method, terminal device and storage medium Download PDF

Info

Publication number
CN113810301A
CN113810301A CN202010532570.0A CN202010532570A CN113810301A CN 113810301 A CN113810301 A CN 113810301A CN 202010532570 A CN202010532570 A CN 202010532570A CN 113810301 A CN113810301 A CN 113810301A
Authority
CN
China
Prior art keywords
control board
message
main control
standby
serial number
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.)
Pending
Application number
CN202010532570.0A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202010532570.0A priority Critical patent/CN113810301A/en
Publication of CN113810301A publication Critical patent/CN113810301A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a message sending method, which comprises the following steps: sending the message serial number of the main control board to a standby main control board so that the standby main control board refreshes the message serial number of the standby main control board, and the message serial number of the next message sent is continuous with the message serial number obtained by refreshing; and determining the message sent by the current main control board based on the main-standby relation of the current main control board, and sending the message sent by the current main control board to the opposite terminal equipment. The invention also provides a terminal device and a storage medium. The invention relates to the technical field of communication.

Description

Message sending method, terminal device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a message sending method, a terminal device, and a storage medium.
Background
With the advent of 5G communication, the demand for time synchronization accuracy is higher and higher, and high-quality time synchronization becomes a key problem to be solved in the first place. The IEEE1588 time synchronization protocol (PTP protocol for short) is a high-precision time synchronization technology, and can be combined with a packet network to synchronize time signals with different precisions in a heterogeneous system into a uniform master time with the highest performance. Generally, the PTP protocol measures upstream and downstream time offsets and path delays in a message interaction manner, so that a downstream device corrects local time according to a measurement result and synchronizes with an upstream device. The existing device is usually configured with dual main control boards (a main control board and a standby main control board), and in the process of switching the main and standby main control boards, the prior art has solved the problem of time synchronization of the main and standby main control boards in the switching process, that is, after the main control board is switched to the standby main control board, the 1588 message can be sent quickly, and the message interruption time in the main and standby switching process is shortened, so as to achieve the purposes of stabilizing the network and reducing network oscillation. However, in the prior art, in the active/standby switching process, a short message sequence number confusion phenomenon occurs in PTP messages, and for messages that need to be matched in pairs according to sequence numbers, for example, delay _ req (delay request) messages and delay _ resp (delay response) messages, this may cause relatively large time jump due to mismatching of sequence numbers, thereby affecting the overall accuracy of time and affecting a time-sensitive network.
Disclosure of Invention
The present invention is directed to solve one of the above technical problems, and provides a packet sending method, a terminal device, and a storage medium, so as to solve the problem in the prior art that the serial numbers of packets before and after switching between main and standby main control boards are discontinuous.
In a first aspect, the present invention provides a method for sending a packet, including:
sending the message serial number of the main control board to a standby main control board so that the standby main control board refreshes the message serial number of the standby main control board, and the message serial number of the next message sent is continuous with the message serial number obtained by refreshing;
and determining the message sent by the current main control board based on the main-standby relation of the current main control board, and sending the message sent by the current main control board to the opposite terminal equipment.
In some embodiments, the step of determining, based on the active-standby relationship of the current main control board, a packet sent by the current main control board, and sending the packet sent by the current main control board to the peer device specifically includes:
receiving messages sent by all the main control boards;
determining a message sent by a current main control board based on the main-standby relation of the current main control board;
and discarding the message sent by the current standby main control board, and sending the determined message sent by the current main control board to the opposite terminal equipment.
In some embodiments, the step of sending the message serial number of the active main control board to the standby main control board specifically includes:
based on a preset sending frequency, sending the message serial number of the main master control board to a standby master control board according to the preset sending frequency, wherein the sending frequency is higher than the 1588 message packet sending frequency of the local terminal equipment;
or, in response to the start of the main/standby switching process of the main control board and the standby control board, the message serial number of the main control board is sent to the standby control board according to the preset sending frequency.
In some embodiments, the sending mode of sending the message serial number of the main master control board to the standby master control board is realized based on the form of the notification message;
the format of the notification message comprises: an 8K clock mode message format and an internal Ethernet port mode message format.
In a second aspect, the present invention further provides a packet sending method, where the method includes:
determining a message of a main control board;
updating the message serial number of the main control board to be the target message serial number based on the target message serial number generated by the continuous updating rule;
and sending the updated message of the main master control board to opposite-end equipment.
In some embodiments, the step of determining the message of the active main control board specifically includes:
receiving messages sent by all the main control boards;
and determining the message of the main control board based on the main-standby relation of the current main control board and the standby main control board.
In some embodiments, the step of updating the packet serial number of the active main control board to the target packet serial number based on the target packet serial number generated by the continuous update rule specifically includes:
generating a target message serial number based on a continuous updating rule;
and analyzing the message of the main master control board, updating the sequence number field in the message into the sequence number of the target message, and repackaging the message.
In a third aspect, the present invention provides a terminal device, including:
the notification module is used for sending the message serial number of the main control board to the standby main control board so that the standby main control board refreshes the message serial number of the standby main control board and the message serial number of the next message sent is continuous with the refreshed message serial number;
and the reprocessing module is used for determining the message sent by the current main control board based on the main-standby relation of the current main control board and sending the message sent by the current main control board to the opposite terminal equipment.
In a fourth aspect, the present invention provides a terminal device, including:
the determining module is used for determining the message of the main control board;
and the reprocessing module is used for updating the message serial number of the main control board to be the target message serial number based on the target message serial number generated by the continuous updating rule and sending the updated message of the main control board to the opposite terminal equipment.
In a fifth aspect, the present invention further provides a storage medium for a computer-readable storage, where the storage medium stores one or more first programs, and the one or more first programs are executable by one or more processors to implement the message sending method provided in the first aspect of the present invention; alternatively, the storage medium stores one or more second programs, and the one or more second programs are executable by one or more processors to implement the message sending method provided by the second aspect of the present invention.
The message sending method, the terminal device and the storage medium provided by the invention solve the problem of discontinuous message serial numbers before and after main/standby switching by adopting the technical scheme that the main/standby main control boards simultaneously send messages with the same serial number, but only send the current main control message to the opposite end or recode the message serial number, so that the message serial numbers are kept continuous before and after the main/standby switching, thereby avoiding the time jump of a time sensitive network caused by the discontinuous message serial numbers.
Drawings
Fig. 1 is a flowchart of a message sending method provided in the present invention;
fig. 2 is a flowchart of another message sending method provided in the present invention;
fig. 3 is a flowchart of another message sending method provided by the present invention;
fig. 4 is a flowchart of another message sending method provided by the present invention;
fig. 5 is a schematic structural diagram of an 8K clock mode packet format according to the present invention;
fig. 6 is a schematic structural diagram of an internal ethernet port mode packet format according to the present invention;
fig. 7 is a flowchart of another message sending method provided by the present invention;
fig. 8 is a flowchart of another message sending method provided in the present invention;
fig. 9 is a schematic structural diagram of a terminal device provided in the present invention;
fig. 10 is a schematic structural diagram of another terminal device provided in the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the following describes in detail a message sending method, a terminal device, and a storage medium provided by the present invention with reference to the accompanying drawings.
Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but which may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements/instructions/requests, these elements/instructions/requests should not be limited by these terms. These terms are only used to distinguish one element/instruction/request from another element/instruction/request.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present invention and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The message sending method provided by the invention can ensure the continuity of the message serial numbers sent to the opposite terminal equipment in the process of switching the main and standby main control boards, and particularly, the technical scheme of the invention is suitable for a sending scene of 1588 messages. In the following embodiments of the present invention, a sending scenario of a 1588 message will be described.
The 1588 message is a message sent by the master control board in the time synchronization process according to IEEE1588 time synchronization protocol (PTP for short), and in the active/standby switching process of the active master control board and the standby master control board, the problem of continuous sequence numbers of the 1588 message is not considered in the prior art.
Fig. 1 is a diagram of a message sending method provided by the present invention, where the method uses a terminal device as an execution main body, and as shown in fig. 1, the method includes:
step S101, the message serial number of the main master control board is sent to the standby master control board, so that the standby master control board refreshes the message serial number of the standby master control board, and the message serial number of the next message is continuous with the message serial number obtained by refreshing.
When the local terminal equipment transmits the message of the main control board to the opposite terminal equipment, the local terminal equipment transmits the message serial number of the message currently being transmitted by the main control board to the standby main control board, the standby main control board refreshes the message serial number of the standby main control board after receiving the message serial number of the main control board so as to update the message serial number of the standby main control board to be the same as the current message serial number of the main control board, thereby ensuring that the message serial number of the message transmitted by the standby main control board is continuous with the refreshed message serial number when the next message of the standby main control board is transmitted to the opposite terminal equipment, therefore, the message serial number of the message sent by the local terminal equipment can be ensured to be continuous with the message serial number of the message sent last time all the time.
Step S102, based on the master-slave relationship of the current master control board, determining a message sent by the current master control board, and sending the message sent by the current master control board to an opposite terminal device.
Before sending a message to an opposite terminal device, the local terminal device identifies the main-standby relationship of the current main control board, determines the message sent by the current main control board according to the main-standby relationship, and sends the message sent by the current main control board to the opposite terminal device.
In the invention, because the message serial numbers of the main control board and the standby main control board are synchronously updated to be the same in real time, the message serial number of the message sent to the opposite terminal equipment by the local terminal equipment can always be continuous with the last message serial number no matter whether the local terminal equipment is subjected to main/standby switching, thereby solving the problem that the 1588 message serial number is discontinuous before and after the main/standby switching in the prior art.
It should be noted that, in the present invention, the continuous message sequence numbers refer to that the message sequence numbers are continuous according to a certain preset rule, for example, the message sequence numbers are sequentially increased by 1, increased by 2, or the like, or are sequentially increased by alphabetical order, or are presented according to a certain rule according to a preset algorithm rule, or the like.
When sending a message to an opposite terminal device, the message serial number of the main control board is sent to the standby main control board so that the standby main control board updates the message serial number of the standby main control board to be the same as the main control board, so that the message serial number of the message sent by the current main control board (the original standby main control board before main standby switching) after the main standby switching is completed subsequently can be continued to the message serial number of the original main control board before the main standby switching, thereby realizing the continuity of the message serial number of the 1588 message before and after the main standby switching, and further avoiding the influence of the discontinuity of the 1588 message serial number on the time precision.
Fig. 2 is another message sending method provided by the present invention, and as shown in fig. 2, in this embodiment, on the basis of the method shown in fig. 1, step S102 specifically includes:
and S1021, receiving messages sent by all the main control boards.
Step S1022, based on the active-standby relationship of the current main control board, a message sent by the current active main control board is determined.
And S1023, discarding the message sent by the current standby main control board, and sending the determined message sent by the current main control board to the opposite terminal equipment.
In this embodiment, when the local device needs to generate a response packet in response to a packet sent by the opposite device, both the current main control board and the current standby main control board generate and send response packets, and send the response packets to a reprocessing module (described later) of the local device. The local terminal device determines the master-slave relationship of all current master control boards by inquiring system information, and then determines which of the received messages is the message sent by the current master control board by identifying the master control board identification carried in the received message based on the master-slave relationship of the master control boards, and discards the message sent by the current master control board after determining the message sent by the current master control board, for example, deletes the message sent by the current master control board and sends the message sent by the current master control board to the opposite terminal device, thereby realizing the interaction between the current master control board and the opposite terminal device.
Of course, in practical application, other embodiments of sending the message of the current active main control board to the opposite terminal device may also be adopted, and the present invention is not limited.
In the invention, the dual main control boards of the device are preset with 1588 functions by technicians in the field, specifically, the technicians in the field configure the main control board and the standby main control board with the function of simultaneously sending 1588 messages, and carry out consistency check on the main control board and the standby main control board to ensure the synchronization of the configuration of the main control board and the standby main control board.
In some embodiments, in step S101, sending the message serial number of the active main control board to the standby main control board may be implemented based on various ways.
As an optional implementation manner, the local device may send the message sequence number of the active main control board to the standby main control board on time. As shown in fig. 3 (fig. 3 is a flowchart of another message sending method provided by the present invention), step S101 may specifically include:
step S1011, based on the preset sending frequency, sending the message serial number of the main master control board to the standby master control board according to the preset sending frequency.
Wherein, the sending frequency should be higher than the 1588 message packet sending frequency of the local terminal equipment. In this embodiment, it can be ensured that the active main control board notifies the standby main control board to start sending the messages with the same serial number before sending the packet by setting the sending frequency, and when there are a plurality of PTP connections on the device, the local device can quickly notify the standby main control board of the serial numbers of 1588 messages in all PTP connections. In this embodiment, the configuration of the transmission frequency may be configured in the local device in advance by a person skilled in the art, and correspondingly, as shown in fig. 3, before step S1011, the method further includes step S1010: the transmission frequency is configured.
As another alternative implementation, the local device may send the message serial number of the active main control board to the standby main control board as needed. Specifically, as shown in fig. 4 (fig. 4 is a flowchart of another message sending method provided by the present invention), step S101 may specifically include:
step S1011', in response to the start of the active/standby switching process between the active main control board and the standby main control board, the message serial number of the active main control board is sent to the standby main control board according to the preset sending frequency.
When the local device needs to perform the main/standby switching between the main control board and the standby control board, the local device may send the message serial number of the main control board to the standby control board according to the preset sending frequency in response to the main/standby switching instruction.
In the above embodiment, in step S101, the sending manner of sending the message serial number of the active main control board to the standby main control board may be implemented based on a notification message format, where the notification message format includes: an 8K clock mode message format and an internal Ethernet port mode message format.
Fig. 5 is a schematic structural diagram of an 8K clock mode packet format according to the present invention, as shown in fig. 5, where: type: defined as 0x0C, identifying this message as a message sequence number notification message: ptplinkld: PTP link identification on the equipment; 3, Count: the identification message carries the serial numbers of several messages; messageType: the specific message type transmitted inherits the value of the type of the existing standard message; sequence ld: message sequence number.
One notification message at least carries the serial number of one message, and the serial numbers of other messages are sequentially filled in the data field according to the messageType and sequence.
Fig. 6 is a schematic structural diagram of an internal ethernet port mode packet format according to the present invention, as shown in fig. 6, where 1. EtherType: defining the message as 0x88FC, and marking the message as a message serial number notification message; ptplinkld: PTP link identification on the equipment; 3, Count: the identification message carries the serial numbers of several messages; messageType: the specific message type transmitted inherits the value of the type of the existing standard message; sequence ld: message sequence number.
One notification message at least carries a serial number of one message, the serial numbers of other messages are sequentially filled in the data field according to the messageType and sequence order, the length of the Ethernet message is at least 64 bytes, and if the length of the message does not meet the length of 64 bytes, the rest data are directly filled with all 0 s.
In some embodiments of the present invention, before step S101, that is, before the local device sends the message serial number of the main control board to the standby main control board, the local device obtains the message serial number of the main control board in advance, for example, the local device sends a request for obtaining the message serial number to the main control board at preset time intervals, or the local device actively sends the current message serial number to the local device when sending the message by performing configuration in advance.
Of course, in some other embodiments of the present invention, the local device may also directly send the message serial number to the standby main control board by the active main control board without acquiring the message serial number of the active main control board in advance.
Fig. 7 is a further message sending method provided by the present invention, as shown in fig. 7, the method includes:
step S201, determining a message of the main control board.
Step S202, based on the target message serial number generated by the continuous updating rule, the message serial number of the main master control board is updated to be the target message serial number.
Step S203, sending the updated message of the main control board to the peer device.
In the packet transmission method provided in this embodiment, before the local device sends a packet to the peer device, the local device determines the packet sent by the main control board, and then assigns a new packet serial number, which is continuous with the previous packet serial number, to the packet of the main control board based on a preset continuous update rule, so as to send the packet assigned with the new packet serial number to the peer device, so that the packet serial numbers of the packet can be kept continuous regardless of whether the packet sent by the local device is switched between the main control board and the peer device or not.
It should be noted that, in the present invention, the continuous message sequence numbers refer to that the message sequence numbers are continuous according to a certain preset rule, for example, the message sequence numbers are sequentially increased by 1, increased by 2, or the like, or are sequentially increased by alphabetical order, or are presented according to a certain rule according to a preset algorithm rule, or the like.
Fig. 8 is a flowchart of another message sending method provided by the present invention, where in this embodiment, on the basis of the method shown in fig. 7, step S201 specifically includes:
and step S2011, receiving the messages sent by all the main control boards.
Step S2012, determining a message of the active main control board based on the active-standby relationship between the active main control board and the standby main control board.
In this embodiment, when the local device needs to generate a response packet in response to a packet sent by the opposite device, both the current main control board and the current standby main control board generate and send response packets, and send the response packets to a reprocessing module (described later) of the local device. The local terminal equipment determines the main-standby relationship of all current main control boards by inquiring system information, and then determines which one of the received messages is the message sent by the current main control board by identifying the main control board identification carried in the received message based on the main-standby relationship of the main control boards.
Of course, in practical application, other manners of determining the message sent by the main control board may also be adopted, and the present invention is not limited thereto.
In addition, in the present invention, the dual main control boards of the device are preset with 1588 function settings by technicians in the field, specifically, technicians in the field configure the main control board and the standby main control board with a function of sending 1588 messages simultaneously, and perform consistency check on the main control board and the standby main control board to ensure that the main and standby main control boards are configured synchronously.
With continued reference to fig. 8, in some embodiments, while performing step S203, the method further includes:
step S204: and discarding the message of the standby main control board.
The local terminal device discards the message of the standby main control board, for example, deletes the message while sending the message of the main control board to the opposite terminal device, thereby avoiding resource occupation.
Of course, in practical applications, step S204 may be performed before or after step S203.
In some embodiments, the specific implementation procedure of step S202 is as follows: the home terminal equipment generates a target message serial number based on a continuous updating rule, analyzes the message of the main control board, updates a serial number field in the message into the target message serial number, and repackages the message to regenerate the message.
Fig. 9 is a schematic structural diagram of a terminal device provided in the present invention, which is used for implementing the message sending method shown in fig. 1 of the present invention, and as shown in fig. 9, the terminal device includes: a notification module 11 and a reprocessing module 12.
The notification module 11 is configured to send the message serial number of the main master control board to the standby master control board, so that the standby master control board refreshes the message serial number of the standby master control board, and the message serial number of the next message sent is continuous with the message serial number obtained by refreshing; the reprocessing module 12 is configured to determine, based on the active-standby relationship of the current main control board, a packet sent by the current main control board, and send the packet sent by the current main control board to the peer device.
When the terminal device sends the message to the opposite terminal device, the message serial number of the main control board is sent to the standby main control board, so that the standby main control board updates the message serial number of the standby main control board to be the same as the main control board, and the message serial number of the message sent by the current main control board (the original standby main control board before the main-standby switching) after the main-standby switching is completed subsequently can be continued to the message serial number of the original main control board before the main-standby switching, so that the continuity of the message serial number of the 1588 message before and after the main-standby switching is realized, and the influence of the discontinuity of the 1588 message serial number on the time precision is further avoided.
In this embodiment, the functions of each module correspond to the steps of the method shown in fig. 1, and please refer to the description of the corresponding steps in the method shown in fig. 1, which is not described herein again.
It should be noted that, in practical application, the notification module may be a module independent from the main control board and the standby control board, which is disposed in the terminal device, or may be a functional module built in the main control board, so as to send the message serial number of the main control board to the standby control board.
Fig. 10 is a schematic structural diagram of another terminal device provided by the present invention, which is used for implementing the message sending method shown in fig. 7 of the present invention, and as shown in fig. 10, the terminal device includes a determining module 21 and a reprocessing module 22.
The determining module 21 is configured to determine a message of the main control board; the reprocessing module 22 is configured to update the message serial number of the primary main control board to be the target message serial number based on the target message serial number generated by the continuous update rule, and send the updated message of the primary main control board to the peer device.
The terminal equipment provided by the invention determines the message sent by the main control board before sending the message to the opposite terminal equipment each time, then assigns a new message serial number which is continuous with the previous message serial number to the message of the main control board based on the preset continuous updating rule, and further sends the message assigned with the new message serial number to the opposite terminal equipment, so that the message serial number can be kept continuous no matter before or after the main and standby switching of the message sent by the local terminal equipment.
In this embodiment, the functions of each module correspond to the steps of the method shown in fig. 7, and please refer to the description of the corresponding steps in the method shown in fig. 7, which is not described herein again.
The present invention also provides a storage medium for a computer-readable storage, wherein the storage medium stores one or more first programs, and the one or more first programs are executable by one or more processors to implement the message sending method shown in fig. 1 to 6 of the present invention; alternatively, the storage medium stores one or more second programs, and the one or more second programs are executable by one or more processors to implement the message sending method shown in fig. 7 and 8.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a generic and descriptive sense only and not for purposes of limitation. In some instances, features, characteristics and/or elements described in connection with a particular embodiment may be used alone or in combination with features, characteristics and/or elements described in connection with other embodiments, unless expressly stated otherwise, as would be apparent to one skilled in the art. It will, therefore, be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the invention encompassed by the appended claims.

Claims (10)

1. A message sending method comprises the following steps:
sending the message serial number of the main control board to a standby main control board so that the standby main control board refreshes the message serial number of the standby main control board, and the message serial number of the next message sent is continuous with the message serial number obtained by refreshing;
and determining the message sent by the current main control board based on the main-standby relation of the current main control board, and sending the message sent by the current main control board to the opposite terminal equipment.
2. The method according to claim 1, wherein the step of determining the packet sent by the current main control board based on the main-standby relationship of the current main control board and sending the packet sent by the current main control board to the opposite device specifically includes:
receiving messages sent by all the main control boards;
determining a message sent by a current main control board based on the main-standby relation of the current main control board;
and discarding the message sent by the current standby main control board, and sending the determined message sent by the current main control board to the opposite terminal equipment.
3. The method according to claim 1, wherein the step of sending the message sequence number of the active main control board to the standby main control board specifically comprises:
based on a preset sending frequency, sending the message serial number of the main master control board to a standby master control board according to the preset sending frequency, wherein the sending frequency is higher than the 1588 message packet sending frequency of the local terminal equipment;
or, in response to the start of the main/standby switching process of the main control board and the standby control board, the message serial number of the main control board is sent to the standby control board according to the preset sending frequency.
4. The method according to any one of claims 1-3, wherein the sending mode of sending the message serial number of the active main control board to the standby main control board is realized based on the form of a notification message;
the format of the notification message comprises: an 8K clock mode message format and an internal Ethernet port mode message format.
5. A message sending method comprises the following steps:
determining a message of a main control board;
updating the message serial number of the main control board to be the target message serial number based on the target message serial number generated by the continuous updating rule;
and sending the updated message of the main master control board to opposite-end equipment.
6. The method according to claim 5, wherein the step of determining the message of the active main control board specifically includes:
receiving messages sent by all the main control boards;
and determining the message of the main control board based on the main-standby relation of the current main control board and the standby main control board.
7. The method according to claim 5, wherein the step of updating the packet sequence number of the active main control board to the target packet sequence number based on the target packet sequence number generated by the continuous update rule specifically includes:
generating a target message serial number based on a continuous updating rule;
and analyzing the message of the main master control board, updating the sequence number field in the message into the sequence number of the target message, and repackaging the message.
8. A terminal device, comprising:
the notification module is used for sending the message serial number of the main control board to the standby main control board so that the standby main control board refreshes the message serial number of the standby main control board and the message serial number of the next message sent is continuous with the refreshed message serial number;
and the reprocessing module is used for determining the message sent by the current main control board based on the main-standby relation of the current main control board and sending the message sent by the current main control board to the opposite terminal equipment.
9. A terminal device, comprising:
the determining module is used for determining the message of the main control board;
and the reprocessing module is used for updating the message serial number of the main control board to be the target message serial number based on the target message serial number generated by the continuous updating rule and sending the updated message of the main control board to the opposite terminal equipment.
10. A storage medium for computer readable storage, wherein the storage medium stores one or more first programs executable by one or more processors to implement the messaging method of any of claims 1-4;
alternatively, the storage medium stores one or more second programs, which are executable by one or more processors to implement the messaging method according to any one of claims 5-7.
CN202010532570.0A 2020-06-11 2020-06-11 Message sending method, terminal device and storage medium Pending CN113810301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010532570.0A CN113810301A (en) 2020-06-11 2020-06-11 Message sending method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010532570.0A CN113810301A (en) 2020-06-11 2020-06-11 Message sending method, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN113810301A true CN113810301A (en) 2021-12-17

Family

ID=78943820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010532570.0A Pending CN113810301A (en) 2020-06-11 2020-06-11 Message sending method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN113810301A (en)

Similar Documents

Publication Publication Date Title
US10862601B1 (en) Bridges including physical layer devices for indicating transmission times of synchronization frames by modifying previously generated corresponding follow up frames
US9419738B2 (en) Communication device, method and system for queueing packets to be transmitted
US9219562B2 (en) System and method to dynamically redistribute timing and synchronization in a packet switched network
JP7401656B2 (en) METHODS, APPARATUS AND SYSTEM AND STORAGE MEDIA FOR SELECTING CLOCK SOURCES
US11924314B2 (en) Message transmission method, message transmission device, network side device and storage medium
EP3226504A1 (en) Time synchronization method and apparatus
CN113574940B (en) Time synchronization method and related equipment
US10069583B2 (en) Faster synchronization time and better master selection based on dynamic accuracy information in a network of IEEE 1588 clocks
CN113572561B (en) Method, apparatus, communication system and medium for clock synchronization
CN113810301A (en) Message sending method, terminal device and storage medium
US20180026864A1 (en) Communication apparatus, communication system, and communication method
JP2014032055A (en) Communication system
CN113346974B (en) Method, apparatus, communication system and storage medium for clock synchronization
EP3961415A1 (en) Transaction confirmation methods and apparatuses in blockchain network
KR20180052065A (en) Apparatus and method for managing alarm message in ethernet communication network
CN112994820A (en) Optical fiber link detection method and device
US20230262625A1 (en) Time Synchronization Fault Processing Method, Apparatus, And System
CN112152744A (en) Clock synchronization method and device, FPGA chip and optical fiber communication network
US20230208544A1 (en) Method, apparatus, and system for processing time synchronization fault and storage medium
CN108809468B (en) Time synchronization method, device and storage medium and electronic equipment
CN115276869A (en) Clock synchronization method and device, electronic equipment and storage medium
KR101708398B1 (en) Synchronization method for terminal on profiled network and networking apparatus performing the same
CN117424666A (en) Method, controller, node, computer readable medium for gating scheduling
CN115941494A (en) Fine-grained slice time slot negotiation method and application

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