CN117811962A - Message sending method and device, storage medium and electronic device - Google Patents
Message sending method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN117811962A CN117811962A CN202211167689.8A CN202211167689A CN117811962A CN 117811962 A CN117811962 A CN 117811962A CN 202211167689 A CN202211167689 A CN 202211167689A CN 117811962 A CN117811962 A CN 117811962A
- Authority
- CN
- China
- Prior art keywords
- position offset
- communication node
- sending
- message
- jump
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000004891 communication Methods 0.000 claims abstract description 155
- 238000001514 detection method Methods 0.000 claims abstract description 124
- 230000008859 change Effects 0.000 claims abstract description 62
- 230000000737 periodic effect Effects 0.000 claims abstract description 53
- 238000004590 computer program Methods 0.000 claims description 20
- 230000005540 biological transmission Effects 0.000 claims description 14
- 230000000694 effects Effects 0.000 abstract description 8
- 235000008694 Humulus lupulus Nutrition 0.000 description 23
- 239000013307 optical fiber Substances 0.000 description 16
- 238000010586 diagram Methods 0.000 description 13
- 238000011144 upstream manufacturing Methods 0.000 description 9
- 230000003287 optical effect Effects 0.000 description 8
- 238000005259 measurement Methods 0.000 description 6
- 230000007704 transition Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000005538 encapsulation Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003213 activating effect Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- ABEXEQSGABRUHS-UHFFFAOYSA-N 16-methylheptadecyl 16-methylheptadecanoate Chemical compound CC(C)CCCCCCCCCCCCCCCOC(=O)CCCCCCCCCCCCCCC(C)C ABEXEQSGABRUHS-UHFFFAOYSA-N 0.000 description 1
- 241000764238 Isis Species 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000005417 image-selected in vivo spectroscopy Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012739 integrated shape imaging system Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000002168 optical frequency-domain reflectometry Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- -1 that is Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a message sending method and device, a storage medium and an electronic device, comprising the following steps: determining the position offset of a jump detection message sent by a first communication node in a periodic template window of a second communication node; transmitting a link jump notification message when the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time; the invention solves the problem that the link jump can not be detected in time when the link jump occurs, and achieves the effect of detecting the link jump in time.
Description
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a message sending method and device, a storage medium and an electronic device.
Background
The IETF DetNet working group proposes a specified period queuing forwarding (Cycle Specified Queuing and Forwarding, CSQF) and a Large scale deterministic network IP technique (Large-scale Deterministic IP Network, LDN) that does not require full network time synchronization, only frequency synchronization, and can provide deterministic transport services for critical traffic.
In the periodic scheduling forwarding model, when a controller performs end-to-end path planning on deterministic service, accurate time delay of a physical link needs to be acquired, but in practical application, an optical fiber is influenced by factors such as environment temperature and humidity, carrier frequency, curvature and the like; in order to improve the measurement accuracy of the link delay, a special network optical frequency domain reflectometer (Optical Frequency Domain Reflectometer, OFDR) and other devices are generally selected to measure the physical delay of the optical fiber, and the measurement process is not required to be repeated under the condition that the optical fiber path is not jumped.
However, when the OTN network optical path changes, the optical module device is damaged, and the optical fiber breaks, the optical device may automatically perform protection switching, and switch the optical signal from one physical optical fiber to another physical optical fiber, that is, optical fiber link jump occurs, as shown in fig. 4. When the optical fiber link hops, the link delay may change, but at this time, the user and the control plane cannot acquire and respond to the link hops in time, and thus the accuracy of end-to-end path planning cannot be guaranteed.
Aiming at the problems that the link cannot be detected in time when the link hops in the related art, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a message sending method and device, a storage medium and an electronic device, which at least solve the problem that the message can not be detected in time when a link jumps in the related art.
According to one embodiment of the present invention, there is provided a message sending method, including: determining the position offset of a jump detection message sent by a first communication node in a periodic template window of a second communication node; and sending a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
In an exemplary embodiment, before determining the position offset of the hop detection message sent by the first communication node within the periodic template window of the second communication node, the method further includes: and receiving the jump detection message sent by the first communication node at the starting time or the ending time of the periodic template window.
In an exemplary embodiment, before determining the position offset of the hop detection message sent by the first communication node within the periodic template window of the second communication node, the method further includes: and receiving a plurality of jump detection messages which are sequentially transmitted by the first communication node according to a preset transmission interval, wherein the preset transmission interval is an integer multiple of the time slot length of a periodic template adopted by the first communication node.
In an exemplary embodiment, after determining the position offset of the hop detection message sent by the first communication node within the periodic template window of the second communication node, the method further includes: storing the position offset under the condition that the jump detection message is a first jump detection message sent by the first communication node; and comparing the position offset with the position offset value determined last time to determine the change value of the position offset under the condition that the jump detection message is not the first jump detection message sent by the first communication node and the change value of the position offset is smaller than or equal to the preset threshold value.
In an exemplary embodiment, the transmitted link hopping advertisement packet includes: a first field for identifying the first communication node, a second field for identifying a second communication node, a slot size of the periodic template window, the last determined position offset value, the position offset, and a change value of the position offset.
According to another embodiment of the present invention, there is also provided a method for sending a message, including: and transmitting the jump detection message to a second communication node to instruct the second communication node to determine the position offset of the jump detection message transmitted by the first communication node in a period template window of the second communication node, and transmitting a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
In an exemplary embodiment, before sending the hop detection message to the second communication node, the method further comprises: determining a plurality of period templates supported by the second communication node and the first communication node; determining a target period template from the plurality of period templates, and determining a preset sending interval of the jump detection message according to the target period template, wherein the preset sending interval is an integer multiple of the time slot length of the period template.
In one exemplary embodiment, transmitting the transition detection message to the second communication node includes: and transmitting the jump detection message at the starting time or the ending time of the periodic template window of the first communication node.
In an exemplary embodiment, the transmitted link hopping advertisement packet includes: a first field for identifying a first communication node, a second field for identifying a second communication node, a slot size of the periodic template window, the last determined position offset value, the position offset, and a change value of the position offset.
According to another embodiment of the present invention, there is provided a message transmitting apparatus including: the determining module is used for determining the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node; and the first sending module is used for sending a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
According to another embodiment of the present invention, there is provided a message transmitting apparatus including: the second sending module is configured to send a hop detection packet to a second communication node, so that the second communication node is instructed to determine a position offset of the hop detection packet sent by the first communication node in a period template window of the second communication node, and send a link hop notification packet when a change value of the position offset is greater than a preset threshold, where the change value of the position offset is a difference value between the position offset and a position offset value determined last time.
According to a further embodiment of the invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, when the first communication node sends the jump detection message, the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node is determined; and sending a link jump notification message under the condition that the change value of the position offset used for indicating the difference value between the position offset and the position offset determined last time is larger than a preset threshold value; therefore, when the link hops, the link can be obtained in time; therefore, the problem that the link cannot be detected in time when the link hops in the related technology can be solved, and the effect of detecting the link hops in time is achieved.
Drawings
Fig. 1 is a hardware block diagram of a computer terminal of a message transmission method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of sending a message according to an embodiment of the invention;
FIG. 3 is a flow chart of another method of sending messages according to an embodiment of the invention
FIG. 4 is a schematic diagram of an alternative fiber link hop according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an alternative link hopping detection principle according to an embodiment of the present invention;
fig. 6 is a flow chart of an alternative link hopping detection according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another alternative fiber link hop in accordance with an embodiment of the present invention;
fig. 8 is a flow chart of another alternative link hopping detection according to an embodiment of the present invention;
fig. 9 is a schematic diagram of an encapsulation format of an alternative link hopping advertisement message according to an embodiment of the present invention;
FIG. 10 is a block diagram of an alternative messaging device in accordance with an embodiment of the present invention;
fig. 11 is a block diagram of another alternative messaging device in accordance with an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a computer terminal or similar computing device. Taking the operation on a computer terminal as an example, fig. 1 is a block diagram of a hardware structure of a computer terminal of a message sending method according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the computer terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for sending a message in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for sending a message running on the computer terminal is provided, and fig. 2 is a flowchart of a method for sending a message according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, determining the position offset of a jump detection message sent by a first communication node in a period template window of a second communication node;
the periodic template window is a periodic template supported by both an upstream node (corresponding to the first communication node) and a downstream node (corresponding to the second communication node).
It should be noted that the above-mentioned position offset may be denoted as an offset, the measured offset value is stored in the downstream node, and the measurement accuracy of the offset value may reach the ns level.
Step S204, under the condition that the change value of the position offset is larger than a preset threshold value, a link jump notification message is sent, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
It should be noted that, the preset threshold is calculated according to the selected period template, if the variation of the offset value exceeds the preset threshold, the optical fiber link is considered to be possibly hopped, and a corresponding link hopping notification message is sent.
Through the steps, when the first communication node sends the jump detection message, the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node is determined; and sending a link jump notification message under the condition that the change value of the position offset used for indicating the difference value between the position offset and the position offset determined last time is larger than a preset threshold value; therefore, when the link hops, the link can be obtained in time; therefore, the problem that the link cannot be detected in time when the link hops in the related technology can be solved, and the effect of detecting the link hops in time is achieved.
Optionally, the above step S202 is performed: before determining the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node, the method further comprises: and receiving the jump detection message sent by the first communication node at the starting time or the ending time of the periodic template window.
Optionally, the above step S202 is performed: before determining the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node, the method further comprises: and receiving a plurality of jump detection messages which are sequentially transmitted by the first communication node according to a preset transmission interval, wherein the preset transmission interval is an integer multiple of the time slot length of a periodic template adopted by the first communication node.
Optionally, the above step S202 is performed: after determining the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node, the method further comprises: storing the position offset under the condition that the jump detection message is a first jump detection message sent by the first communication node; and comparing the position offset with the position offset value determined last time to determine the change value of the position offset under the condition that the jump detection message is not the first jump detection message sent by the first communication node and the change value of the position offset is smaller than or equal to the preset threshold value.
Optionally, the sent link hopping advertisement packet includes: a first field for identifying the first communication node, a second field for identifying a second communication node, a slot size of the periodic template window, the last determined position offset value, the position offset, and a change value of the position offset.
In this embodiment, another method for sending a message running on the computer terminal is also provided, and fig. 3 is a flowchart of another method for sending a message according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S302: and transmitting the jump detection message to a second communication node to instruct the second communication node to determine the position offset of the jump detection message transmitted by the first communication node in a period template window of the second communication node, and transmitting a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
Through the steps, the second communication node is instructed to determine the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node by sending the jump detection message to the second communication node, and a link jump notification message is sent under the condition that the change value of the position offset is larger than a preset threshold value; the problem that in the related art, when a link hops, the link can not be detected in time is solved, and the effect that the link hops can be detected in time is achieved.
Optionally, the above step S302 is performed: before sending the jump detection message to the second communication node, the method further comprises: determining a plurality of period templates supported by the second communication node and the first communication node; determining a target period template from the plurality of period templates, and determining a preset sending interval of the jump detection message according to the target period template, wherein the preset sending interval is an integer multiple of the time slot length of the period template.
Optionally, the above step S302 is performed: the step of sending the hop detection message to the second communication node may be implemented by: and transmitting the jump detection message at the starting time or the ending time of the periodic template window of the first communication node.
Optionally, the sent link hopping advertisement packet includes: a first field for identifying a first communication node, a second field for identifying a second communication node, a slot size of the periodic template window, the last determined position offset value, the position offset, and a change value of the position offset.
The principle of the above link hopping detection procedure is described below with reference to fig. 5, and fig. 5 is a schematic diagram of an alternative link hopping detection principle according to an embodiment of the present invention, as shown in fig. 5:
when the jump detection message arrives at the downstream node, the offset value is calculated and stored according to the selected periodic template, and as the subsequent detection message arrives continuously, the downstream node sets a threshold delta according to the change condition of the offset value, if the change quantity of the offset value exceeds delta, the optical fiber link is considered to be possibly jumped, and a corresponding link jump notification message is sent out. It can be seen that in fig. 5, the values of offset1 and offset2 are less than δ, and thus no link jump is assumed to occur, while the value of offset3 is greater than δ, and thus a link jump is assumed to occur.
Further, the following description is made with reference to fig. 6, and fig. 6 is a flowchart of an alternative link hopping detection according to an embodiment of the present invention, as shown in fig. 6, specifically including the following steps:
step 1: activating a link jump detection function of the network equipment, and designating the sending frequency of a jump detection message and a selected period template;
it should be noted that, the sending frequency of the detection message of the upstream node may be flexibly specified by the user, and particularly, since the detection message needs to be sent at the beginning or ending time of the window, the sending interval of the detection message must be an integer multiple of the time slot length T, for example, when t=20us, the sending frequency of the measurement message may be set to 20us,40us,60us, and so on, which is not limited in this application.
It should be noted that, if the upstream and downstream devices support multiple periodic templates at the same time, in order to increase the measurement frequency, a window of the smallest periodic template may be selected as a reference to send a detection message, and the detection message needs to carry the selected periodic template.
Step 2: the upstream node constructs a link jump detection message according to the specified periodic template;
step 3: the downstream node sends a measurement message at the beginning time of the periodic template window according to the designated frequency;
step 4: the downstream node receives the detection message, if the detection message is the first detection message, the deviation value (corresponding to the position offset) in the designated period is calculated and stored, the jump difference value (corresponding to the position offset) is set to 0, and the step 7 is executed; otherwise, calculating the value of the offset and comparing with the locally stored value of the offset;
step 5: if the offset value of the calculated offset value and the locally stored offset value does not exceed the threshold delta, setting the jump value to 0, and executing the step 7;
the value of δ may be determined comprehensively according to the actual environmental temperature and humidity change, the optical fiber load change, the optical fiber length, etc., and the value of δ may be an absolute value or a ratio, which is not limited in this application.
Step 6: updating the stored offset value and the hopping difference value, and sending out a link hopping notification message;
when the downstream node detects that the jump occurs, the link jump behavior and the jump deviation value are optionally notified to the upstream node or the controller, and then the upstream node or the controller can trigger or notify the user to re-measure the optical fiber link delay. Specifically, the advertised information at least includes an address or an interface capable of identifying the home network device, an address or an interface capable of identifying the peer network device, a period size, a hopping flag, a hopping difference value, and the like. The invention does not limit the information notification mode, for example, the information notification can be sent to other nodes of the network by extending the attribute notification of IGP (OSPF, ISIS) and BGP, and the information notification can also be sent to the controller by extending the southbound interface (such as NETCONF, BGPCEP, BGP-LS, etc.).
Step 7: and finishing the jump detection.
Through the steps, when the upstream node sends the jump detection message, determining the position offset of the jump detection message sent by the upstream node in a period template window of the second communication node, and sending a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold value; therefore, when the link hops, the link can be obtained in time; therefore, the problem that the link cannot be detected in time when the link hops in the related technology can be solved, and the effect of detecting the link hops in time is achieved.
In order to facilitate better understanding of the technical solution, the present application further provides the following examples to describe the technical solution.
Example 1
The scheme of embodiment 1 is described below with reference to fig. 7 and 8, where fig. 7 is a schematic diagram of another alternative optical fiber link hopping according to an embodiment of the present invention, and fig. 8 is a flowchart of another alternative link hopping detection according to an embodiment of the present invention.
As shown in fig. 7, in this embodiment, it is assumed that there are two network devices N1 and N2, where the two devices are frequency-synchronized but time-unsynchronized, in the traffic direction N1- > N2, a is an upstream device node, N2 is a downstream device node, and both the N1 and N2 devices support 3 cycle templates, respectively A, B, C, with cycle template slot lengths of 10us,20us, and 40us, respectively. In N1, the slot length of the periodic template a is selected as the transmission interval of the detection message, that is, the transmission interval of the jump detection message is 10us. In N2, a threshold δ of jump detection is set to 500ns. The phase difference delta between the two devices is 5us, the optical fiber time delay is 12us, after the 2 nd detection message is sent out by the N1, the link hops, the optical fiber time delay after the hopping is 18us, and according to the prior art, the first three detection messages reach the offset value offset of the N2 node falling in the window.
The general flow of the jump detection at this time is shown in fig. 8, and includes the following steps:
step 1: activating the jump detection test function of the N1 and N2 nodes, wherein the message sending frequency is 10us, and a periodic template is selected as an A template;
step 2: the N1 node constructs and sends a detection message at intervals of 10us at the beginning time of the A template window;
step 3: the N2 node receives the 1 st detection message, calculates an offset value of 7us, stores the offset value in the local area, and sets the jump difference value to 0;
step 4: the N2 node receives the 2 nd detection message, calculates an offset value to be 7us, calculates the deviation from the stored offset value, and does not exceed a threshold delta=500 ns;
step 5: the N2 node receives the 3 rd detection message, calculates an offset value to be 3us, calculates an offset value to be 4us with stored offset, and exceeds a threshold delta=500 ns;
step 6: updating the stored offset value to 3us, and updating the jump deviation to 3us;
step 7: and sending out a link jump notification message.
Through the steps, when the first communication node sends the jump detection message, the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node is determined; and sending a link jump notification message under the condition that the change value of the position offset used for indicating the difference value between the position offset and the position offset determined last time is larger than a preset threshold value; therefore, when the link hops, the link can be obtained in time; therefore, the problem that the link cannot be detected in time when the link hops in the related technology can be solved, and the effect of detecting the link hops in time is achieved.
Example 2
The following describes the present embodiment with reference to fig. 9, and fig. 9 is a schematic diagram of an encapsulation format of an optional link hopping advertisement packet according to an embodiment of the present invention;
the embodiment provides an example of encapsulation of a link hopping information notification message, for example, OSPF may be extended, and a link attribute sub-TLV called link-switch sub-TLV may be added to carry information about a link hopping between two devices associated with the link, where the information includes an offset value and a hop offset-detection before and after a link hopping, and an encapsulation schematic format is shown in fig. 9:
wherein, the type field uses a specific value to indicate that the sub-TLV is a link jump deviation attribute type, the length field indicates the length of the sub-TLV data part, the value is 8, the cycle-template field is used for specifying the time slot length of the selected cycle template, for example, the length of the field is 2Octets, and the cycle template A is 10 us; pre-offset values before hopping, 2Octets, post-offset values after hopping, 2Octets; the offset-detection before and after hopping occupies 2Octets.
The specific carrying position of the extended cycle-offset sub-TLV is not particularly limited, and the specific carrying position may be a sub-TLV of a link attribute, or a sub-TLV of a node attribute, so long as the specific carrying position contains information capable of identifying a local node and a peer node, and related link hopping deviation information.
It should be noted that, the embodiment of the present application only provides an example of extending OSPF, and the extension of other protocols (such as IS-IS, BGP-LS) IS similar to the above solution, which IS not repeated in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a second node device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides a message sending device, which is used for implementing the above embodiment and the preferred implementation manner, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 10 is a block diagram of an alternative message sending apparatus according to an embodiment of the present invention, as shown in fig. 10, including:
determination module 1002: the method comprises the steps of determining the position offset of a jump detection message sent by a first communication node in a periodic template window of a second communication node;
first transmitting module 1004: and sending a link jump notification message when the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
By the device, when the first communication node sends the jump detection message, the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node is determined; and sending a link jump notification message under the condition that the change value of the position offset used for indicating the difference value between the position offset and the position offset determined last time is larger than a preset threshold value; therefore, when the link hops, the link can be obtained in time; therefore, the problem that the link cannot be detected in time when the link hops in the related technology can be solved, and the effect of detecting the link hops in time is achieved.
Optionally, the determining module 1002 is further configured to determine that, before the position offset of the transition detection packet sent by the first communication node in the periodic template window of the second communication node, the transition detection packet sent by the first communication node at the start time or the end time of the periodic template window is received.
Optionally, the determining module 1002 is further configured to receive, before determining a position offset of a hop detection packet sent by a first communication node in a period template window of a second communication node, a plurality of hop detection packets sequentially sent by the first communication node according to a preset sending interval, where the preset sending interval is an integer multiple of a time slot length of a period template adopted by the first communication node.
Optionally, the determining module 1002 is further configured to, after determining a position offset of a transition detection packet sent by a first communication node in a periodic template window of a second communication node, store the position offset if the transition detection packet is a first transition detection packet sent by the first communication node; and comparing the position offset with the position offset value determined last time to determine the change value of the position offset under the condition that the jump detection message is not the first jump detection message sent by the first communication node and the change value of the position offset is smaller than or equal to the preset threshold value.
Optionally, the above first sending module 1004 is further configured to identify a first field of the first communication node, identify a second field of the second communication node, and determine a time slot size of the periodic template window, the last determined position offset value, the position offset, and a change value of the position offset.
Fig. 11 is a block diagram of another alternative message sending apparatus according to an embodiment of the present invention, as shown in fig. 11, including:
the second sending module 1102: and the method is used for sending the jump detection message to the second communication node so as to instruct the second communication node to determine the position offset of the jump detection message sent by the first communication node in a period template window of the second communication node, and sending a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
By the device, the second communication node is instructed to determine the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node by sending the jump detection message to the second communication node, and a link jump notification message is sent under the condition that the change value of the position offset is larger than a preset threshold value; the problem that in the related art, when a link hops, the link can not be detected in time is solved, and the effect that the link hops can be detected in time is achieved.
Optionally, the second sending module 1102 is further configured to determine a plurality of period templates supported by the second communication node and the first communication node before sending the hop detection packet to the second communication node; determining a target period template from the plurality of period templates, and determining a preset sending interval of the jump detection message according to the target period template, wherein the preset sending interval is an integer multiple of the time slot length of the period template.
Optionally, the second sending module 1102 is further configured to send the hop detection message at a start time or an end time of the periodic template window of the first communication node.
Optionally, the second sending module 1102 is further configured to identify a first field of the first communication node, identify a second field of the second communication node, and determine a time slot size of the periodic template window, the last determined position offset value, the position offset, and a change value of the position offset.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, determining the position offset of a jump detection message sent by a first communication node in a period template window of a second communication node;
s2, sending a link jump notification message when the change value of the position offset is larger than a preset threshold, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
Alternatively, in the present embodiment, the storage medium described above may be further configured to store a computer program for performing the steps of:
s1, transmitting a jump detection message to a second communication node to instruct the second communication node to determine the position offset of the jump detection message transmitted by a first communication node in a period template window of the second communication node, and transmitting a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, determining the position offset of a jump detection message sent by a first communication node in a period template window of a second communication node;
s2, sending a link jump notification message when the change value of the position offset is larger than a preset threshold, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
Optionally, in this embodiment, the above processor may be further configured to execute the following steps by a computer program:
s1, transmitting a jump detection message to a second communication node to instruct the second communication node to determine the position offset of the jump detection message transmitted by a first communication node in a period template window of the second communication node, and transmitting a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (13)
1. A method for sending a message, comprising:
determining the position offset of a jump detection message sent by a first communication node in a periodic template window of a second communication node;
and sending a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
2. The method for sending a message according to claim 1, wherein before determining the position offset of the hop detection message sent by the first communication node in the periodic template window of the second communication node, the method further comprises:
and receiving the jump detection message sent by the first communication node at the starting time or the ending time of the periodic template window.
3. The method for sending a message according to claim 1, wherein before determining the position offset of the hop detection message sent by the first communication node in the periodic template window of the second communication node, the method further comprises:
and receiving a plurality of jump detection messages which are sequentially transmitted by the first communication node according to a preset transmission interval, wherein the preset transmission interval is an integer multiple of the time slot length of a periodic template adopted by the first communication node.
4. The method for sending a message according to claim 1, wherein after determining a position offset of the hop detection message sent by the first communication node in the periodic template window of the second communication node, the method further comprises:
storing the position offset under the condition that the jump detection message is a first jump detection message sent by the first communication node;
and comparing the position offset with the position offset value determined last time to determine the change value of the position offset under the condition that the jump detection message is not the first jump detection message sent by the first communication node and the change value of the position offset is smaller than or equal to the preset threshold value.
5. The method for sending a message according to any one of claims 1 to 4, wherein the sent link hopping advertisement message includes: a first field for identifying the first communication node, a second field for identifying a second communication node, a slot size of the periodic template window, the last determined position offset value, the position offset, and a change value of the position offset.
6. A method for sending a message, comprising:
and transmitting the jump detection message to a second communication node to instruct the second communication node to determine the position offset of the jump detection message transmitted by the first communication node in a period template window of the second communication node, and transmitting a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
7. The method of sending a message according to claim 6, wherein before sending the hop detection message to the second communication node, the method further comprises:
determining a plurality of period templates supported by the second communication node and the first communication node;
determining a target period template from the plurality of period templates, and determining a preset sending interval of the jump detection message according to the target period template, wherein the preset sending interval is an integer multiple of the time slot length of the period template.
8. The method for sending a message as claimed in claim 6, wherein sending the hop detection message to the second communication node comprises:
and transmitting the jump detection message at the starting time or the ending time of the periodic template window of the first communication node.
9. The method for sending a message according to any one of claims 6 to 8, wherein the sent link hopping advertisement message includes: a first field for identifying a first communication node, a second field for identifying a second communication node, a slot size of the periodic template window, the last determined position offset value, the position offset, and a change value of the position offset.
10. A message transmitting apparatus, comprising:
the determining module is used for determining the position offset of the jump detection message sent by the first communication node in the periodic template window of the second communication node;
and the first sending module is used for sending a link jump notification message under the condition that the change value of the position offset is larger than a preset threshold value, wherein the change value of the position offset is the difference value between the position offset and the position offset determined last time.
11. A message transmitting apparatus, comprising:
the second sending module is configured to send a hop detection packet to a second communication node, so that the second communication node is instructed to determine a position offset of the hop detection packet sent by the first communication node in a period template window of the second communication node, and send a link hop notification packet when a change value of the position offset is greater than a preset threshold, where the change value of the position offset is a difference value between the position offset and a position offset value determined last time.
12. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of the claims 1 to 5 or the method of any of the claims 6 to 9 when run.
13. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 5 or the method of any of the claims 6 to 9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211167689.8A CN117811962A (en) | 2022-09-23 | 2022-09-23 | Message sending method and device, storage medium and electronic device |
PCT/CN2023/089040 WO2024060601A1 (en) | 2022-09-23 | 2023-04-18 | Message sending method and apparatus, and storage medium and electronic apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211167689.8A CN117811962A (en) | 2022-09-23 | 2022-09-23 | Message sending method and device, storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117811962A true CN117811962A (en) | 2024-04-02 |
Family
ID=90424093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211167689.8A Pending CN117811962A (en) | 2022-09-23 | 2022-09-23 | Message sending method and device, storage medium and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117811962A (en) |
WO (1) | WO2024060601A1 (en) |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3319331B2 (en) * | 1997-04-04 | 2002-08-26 | 日本電気株式会社 | Delay / transmission level setting method in bidirectional communication system |
CN101800676A (en) * | 2010-02-20 | 2010-08-11 | 中兴通讯股份有限公司 | Link detection method, device and system |
CN103036756B (en) * | 2011-10-08 | 2017-12-26 | 湖南磐云数据有限公司 | A kind of mixing ring network protection method and system based on sharing channel |
CN105764106B (en) * | 2016-02-03 | 2019-06-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of update method of transmission path, terminal and system |
CN106375143B (en) * | 2016-08-29 | 2020-03-06 | 新华三技术有限公司 | Link detection message sending method and device |
CN110808873B (en) * | 2019-10-21 | 2022-02-22 | 锐捷网络股份有限公司 | Method and device for detecting link failure |
WO2022092632A2 (en) * | 2020-10-30 | 2022-05-05 | 한국항공대학교산학협력단 | Offset-based transmission path and slot discovery method for periodic end-to-end low-latency traffic transmission, and control device performing same |
CN115037399A (en) * | 2021-03-03 | 2022-09-09 | 中兴通讯股份有限公司 | Message forwarding method, electronic device and storage medium |
-
2022
- 2022-09-23 CN CN202211167689.8A patent/CN117811962A/en active Pending
-
2023
- 2023-04-18 WO PCT/CN2023/089040 patent/WO2024060601A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2024060601A1 (en) | 2024-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3301873B1 (en) | Error detection in communication networks | |
EP2448196A1 (en) | Wireless network device, wireless network system and method of controlling selection of routings | |
US10314107B2 (en) | Communication device, communication method, and communication system | |
CN112040526B (en) | Communication path selection method, equipment and communication system | |
US20210028982A1 (en) | Method, device, and system for deploying static routes | |
CN102025642B (en) | Method and device for detecting router identification conflict and routing equipment | |
CN103684923A (en) | Method for measuring packet loss and network device | |
WO2019087639A1 (en) | Wireless sensor system, management device, communication control method and communication control program | |
EP3474493A1 (en) | Network performance measurement method and detection device | |
CN111884875A (en) | Offline device determination method and device | |
CN105553844A (en) | Link state advertisements transmission methods and network devices | |
CN115022161A (en) | Network delay fault positioning method and device and network delay fault detection equipment | |
JP2018528680A (en) | Anchor master AM management method and node | |
KR101678954B1 (en) | Routing Apparatus for Considering Bottleneck Node Lifetime and Route Link Quality in RPL-based IoT Wireless Network and Method of the Same | |
CN117811962A (en) | Message sending method and device, storage medium and electronic device | |
US10250477B2 (en) | Method and controller for announcing bandwidth of cluster system | |
CN109274546B (en) | Timer scheduling method and device | |
US20190036807A1 (en) | Network system, communication device, and communication method | |
CN114465689B (en) | Signal instruction synchronous processing method, system, equipment and storage medium of channel group | |
CN116782255A (en) | Same-frequency subnet fusion method and device, communication node and storage medium | |
EP4264909A1 (en) | Optimized route for time-critical traffic in mesh network | |
EP3949592A1 (en) | Method and system of wireless tdma scheduling for industrial machine-to-machine communication, including propagation-delay-aware scheduling | |
CN116266818A (en) | Information measurement method and device | |
CN112398560A (en) | Measuring method, measuring device and storage medium | |
CN114221896B (en) | BGP route oscillation suppression method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |