CN111224895A - Time-sensitive message transmission method, device and equipment in HSR network - Google Patents
Time-sensitive message transmission method, device and equipment in HSR network Download PDFInfo
- Publication number
- CN111224895A CN111224895A CN201911381583.6A CN201911381583A CN111224895A CN 111224895 A CN111224895 A CN 111224895A CN 201911381583 A CN201911381583 A CN 201911381583A CN 111224895 A CN111224895 A CN 111224895A
- Authority
- CN
- China
- Prior art keywords
- time
- message
- sensitive
- sensitive message
- messages
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/56—Queue scheduling implementing delay-aware scheduling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
- H04L47/6275—Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9057—Arrangements for supporting packet reassembly or resequencing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
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 discloses a method, a device and equipment for transmitting time-sensitive messages in an HSR network, wherein the method comprises the following steps: when the received message is a time-sensitive message, determining the source of the time-sensitive message; when the time-sensitive message is uploaded from the local equipment, packaging the time-sensitive message and storing the time-sensitive message into a first local queue; when the time-sensitive message is input from the ring network, determining whether the current network channel is occupied by the time-sensitive message; if the current network channel is occupied by the time-sensitive message, storing the time-sensitive message into a first forwarding queue; and when the current network channel is not occupied by the time-sensitive message, transmitting the time-sensitive message stored in the first local queue or the first forwarding queue according to a preset first message transmission strategy. The method ensures the prior transmission of the time-sensitive message, reduces the waiting time delay of the time-sensitive message, ensures the real-time property of the time-sensitive message transmission and improves the transmission efficiency of the time-sensitive message.
Description
Technical Field
The invention relates to the technical field of switch networks, in particular to a method, a device and equipment for transmitting a time-sensitive message in an HSR network.
Background
In the network message transmission process, in order to ensure the real-time property of time-sensitive message transmission, in the network communication environment of the switch, the priority of message transmission can be set to ensure the time-sensitive message is transmitted preferentially, but in the network communication environment of the switch, due to the limitation of the transmission port of the switch, the problem of forwarding delay exists. In an HSR network, a DANH (dual connectivity switching node) is used as a forwarding node, and a cut-through switching technology is adopted to reduce the delay caused by the time-sensitive message forwarding process when a data frame is forwarded, but the problem of waiting delay in time-sensitive message transmission still cannot be solved.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the defect of waiting time delay in the transmission of the time-sensitive packet in the HSR network in the prior art, so as to provide a method, an apparatus and a device for transmitting the time-sensitive packet in the HSR network.
According to a first aspect, an embodiment of the present invention provides a method for transmitting a time-sensitive packet in an HSR network, including:
when the received message is a time-sensitive message, determining the source of the time-sensitive message; when the time-sensitive message is uploaded from local equipment, packaging and storing the time-sensitive message to a first local queue; when the time-sensitive message is input from the ring network, determining whether the current network channel is occupied by the time-sensitive message; if the current network channel is occupied by the time-sensitive message, storing the time-sensitive message into a first forwarding queue; and if the current network channel is not occupied by the time-sensitive message, transmitting the time-sensitive message stored in the first local queue or the first forwarding queue according to a preset first message transmission strategy.
With reference to the first aspect, in a first implementation manner of the first aspect, before the received packet is a time-sensitive packet, the method further includes: classifying the received message; and determining the message types according to the classification result, wherein the message types comprise time-sensitive messages and non-time-sensitive messages.
With reference to the first aspect, in a second implementation manner of the first aspect, the method further includes: when the time-sensitive message is input from the ring network, determining whether the current network channel is occupied by a non-time-sensitive message; and if the current network channel is occupied by the non-time-sensitive message, interrupting the transmission of the non-time-sensitive message and transmitting the time-sensitive message.
With reference to the first aspect, in a third implementation manner of the first aspect, the method further includes: when the received message is a non-time-sensitive message, determining the source of the non-time-sensitive message; when the non-time-sensitive message is uploaded from the local equipment, message splitting processing is carried out on the non-time-sensitive message to obtain a plurality of corresponding short messages, and the plurality of short messages are packaged and stored in a second local queue; when the time-sensitive message is input from the ring network, storing the non-time-sensitive message into a second forwarding queue; and when the network channel is idle, transmitting the short message stored in the second local queue or the second forwarding queue according to a preset second message transmission strategy.
With reference to the third implementation manner of the first aspect, in the fourth implementation manner of the first aspect, the transmitting the non-time-sensitive packet stored in the second local queue or the second forwarding queue according to a preset second packet transmission policy when the network channel is idle includes: when the short message does not meet the integrity requirement, discarding the short message; and when the short message meets the integrity requirement, transmitting the short message.
According to a second aspect, an embodiment of the present invention provides a method for transmitting a time-sensitive packet, including: receiving a message; when the received message is a time-sensitive message, decapsulating the time-sensitive message to obtain message information; when the received messages are a plurality of short messages used for transmitting non-time-sensitive messages, the short messages are de-encapsulated, and all the short messages obtained after de-encapsulation are combined to obtain the message information.
According to a third aspect, an embodiment of the present invention provides a time-sensitive packet transmission apparatus, including: the source determining module is used for determining the source of the time-sensitive message when the received message is the time-sensitive message; the first storage module is used for packaging and storing the time-sensitive message to a first local queue when the time-sensitive message is uploaded from local equipment; the judging module is used for determining whether the current network channel is occupied by the time-sensitive message when the time-sensitive message is input from the ring network; the second storage module is used for storing the time-sensitive message into a first forwarding queue if the current network channel is occupied by the time-sensitive message; and the transmission module is used for transmitting the time-sensitive message stored in the first local queue or the first forwarding queue according to a preset first message transmission strategy when the current network channel is not occupied by the time-sensitive message.
According to a fourth aspect, an embodiment of the present invention provides a time-sensitive packet transmission apparatus, including: the receiving module is used for receiving the message; the decapsulation module is used for decapsulating the time-sensitive message to obtain message information when the received message is the time-sensitive message; and the merging module is used for decapsulating the short messages and merging all the decapsulated short messages to obtain the message information when the received messages are a plurality of short messages used for transmitting non-time-sensitive messages.
According to a fifth aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the method for time-sensitive packet transmission in the HSR network according to the first aspect or the first embodiment, or according to the second aspect or the second embodiment.
According to a sixth aspect, the present invention provides a computer-readable storage medium, which stores computer instructions for causing a computer to execute the method for time-sensitive packet transmission in an HSR network according to the first aspect, or any of the embodiments of the second aspect.
The technical scheme of the invention has the following advantages:
1. the method for transmitting the time-sensitive message in the HSR network comprises the steps of determining the source of the time-sensitive message, packaging the time-sensitive message uploaded by a local device and then storing the time-sensitive message into a corresponding first local queue, judging whether a current network channel is occupied by the time-sensitive message when the time-sensitive message input in a ring network is received, storing the received time-sensitive message into a first forwarding queue if the current network channel is occupied by the time-sensitive message, and transmitting the time-sensitive message according to a preset first message transmission strategy when the current network channel is not occupied by the time-sensitive message, so that the priority transmission of the time-sensitive message is ensured, the waiting time delay of the time-sensitive message is reduced, the transmission efficiency of the time-sensitive message is improved, and the real-time performance of the time-sensitive message transmission is ensured.
2. According to the time-sensitive message transmission method in the HSR network, the received message is unpacked to obtain the time-sensitive message information, a plurality of received short messages belonging to the same non-time-sensitive message are unpacked, all the short messages obtained after the unpacking are combined to obtain the completed non-time-sensitive message information, and the accuracy of the received time-sensitive message information and the non-time-sensitive message information is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flow chart of a time-sensitive message transmission method in an embodiment of the present invention;
FIG. 2 is a flow chart of a method for time-sensitive packet transmission in an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a time-sensitive packet transmission apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a time-sensitive packet transmission apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment provides a method for transmitting a time-sensitive message in an HSR network, which can be used for transmitting a time-sensitive message in an HSR ring network, and in the HSR ring network communication environment, a local device message and an HSR ring network message received in the communication environment are transmitted. As shown in fig. 1, includes:
s11, when the received message is a time sensitive message, determining the source of the time sensitive message.
For example, when a dual connectivity switching node DANH receives an uploaded to-be-transmitted message, source identification is performed on the received to-be-transmitted message, where the to-be-transmitted message may be obtained from a local device, a left ring of an HSR ring network, or a right ring of the HSR ring network. The source of the to-be-transmitted message may be obtained according to the message tag, for example, if the tag of the to-be-transmitted message is "a", which indicates that the time-sensitive message is from the HSR ring network, when the tag of the received to-be-transmitted time-sensitive message is "a", it is determined that the to-be-transmitted time-sensitive message is from the HSR ring network, and the time-sensitive message whose tag is not "a" is from the local device. The method for distinguishing the message sources in the embodiment of the application is not limited, and a person skilled in the art can determine the method according to actual needs.
And S12, when the time-sensitive message is uploaded from the local equipment, packaging the time-sensitive message and storing the time-sensitive message in the first local queue.
For example, the time-sensitive packet uploaded by the local device may be encapsulated into a packet format suitable for transmission in the current HSR ring network according to the packet transmission format of the current network channel, and stored in the first local queue.
S13, when the time sensitive message is input from the ring network, it is determined whether the current network channel is occupied by the time sensitive message.
Illustratively, when a time-sensitive message input by the HSR ring network is received, whether a time-sensitive message being transmitted exists in a current network channel is detected, and whether the transmitted message is the time-sensitive message can be determined by identifying a packet header of the message transmitted in the current network channel. For example, if the header identifier of the packet to be transmitted is "B" and is characterized as a time-sensitive packet, when the packet header identifier of the packet transmitted in the current network channel is identified as "B", it is determined that the packet currently being transmitted is a time-sensitive packet, that is, the current network channel is occupied by the time-sensitive packet, and when the packet header identifier of the packet transmitted in the current network channel is identified as not "B", it is determined that the packet currently being transmitted is a non-time-sensitive packet, that is, the current network channel is occupied by the non-time-sensitive packet.
And S14, if the current network channel is occupied by the time-sensitive message, storing the time-sensitive message into a first forwarding queue.
Illustratively, when it is detected that there is a time-sensitive message being transmitted in the current network channel, the time-sensitive message input through the HSR ring network is already in a message format transmitted in the encapsulated HSR ring network, and since the time-sensitive message is a message that needs to be transmitted in real time and cannot be interrupted, the time-sensitive message input through the HSR ring network can be transmitted only after the time-sensitive message being transmitted in the current network channel is transmitted, and can be stored in the first forwarding queue.
And S15, if the current network channel is not occupied by the time-sensitive message, transmitting the time-sensitive message stored in the first local queue or the first forwarding queue according to a preset first message transmission strategy.
Illustratively, the first messaging policy may include a forwarding first, local first, weighted, time sliced, first come first send, prioritized, etc. control policy. The category of the first message transmission policy is not limited in the present application, and those skilled in the art can determine the category according to actual needs. Taking the first message transmission strategy as a local priority example for explanation, if both the first forwarding queue and the first local queue contain time-sensitive messages to be transmitted, the time-sensitive messages in the first local queue are preferentially transmitted based on a local priority control strategy. The time-sensitive message represents a message needing real-time transmission, the transmission priority of the non-time-sensitive message is lower than that of the time-sensitive message, if the message being transmitted in the current network channel is the non-time-sensitive message, the time-sensitive message occupies the network channel of the non-time-sensitive message for preferential transmission, the real-time performance of time-sensitive message transmission is guaranteed, and the waiting time delay of the time-sensitive message is reduced.
In the time-sensitive message transmission method provided by this embodiment, a source of a time-sensitive message is determined, the time-sensitive message uploaded by a local device is packaged and stored in a corresponding first local queue, when the time-sensitive message input in a ring network is received, it is determined whether a current network channel is occupied by the time-sensitive message, if the current network channel is occupied by the time-sensitive message, the received time-sensitive message is stored in a first forwarding queue, and when the network channel is not occupied by the time-sensitive message, the time-sensitive message is transmitted according to a preset first message transmission policy, so that priority transmission of the time-sensitive message is ensured, waiting time delay of the time-sensitive message is reduced, transmission efficiency of the time-sensitive message is improved, and real-time performance of time-sensitive message transmission is ensured.
As an optional embodiment of the present application, before step S11, the method further includes:
firstly, the received message is classified.
For example, the type of the packet may be obtained by analyzing a header of the received packet, where the header of the packet includes an identifier that characterizes a type of the packet, and the received packet may be determined to be a time-sensitive packet or a non-time-sensitive packet by identifying the header identifier of the packet. For example, if the header identifier of the received packet is "C", which means that the received packet is a time-sensitive packet, when the header identifier of the received packet is "C", the received packet is determined to be a time-sensitive packet, and when the header identifier of the received packet is not "C", the received packet is determined to be a non-time-sensitive packet.
Secondly, determining the message types according to the classification result, wherein the message types comprise time-sensitive messages and non-time-sensitive messages.
For example, the specific description of the message type refers to the related description of the above embodiment, and is not repeated here.
As an optional embodiment of the present application, the method further comprises:
firstly, when a time sensitive message is input from a ring network, whether a current network channel is occupied by a non-time sensitive message is determined.
For example, for a specific description on whether the current network channel is occupied by the non-time-sensitive packet, refer to the related description of the foregoing embodiment, and details are not described here again.
Secondly, if the current network channel is occupied by the non-time-sensitive message, the transmission of the non-time-sensitive message is interrupted, and the time-sensitive message is transmitted.
For example, if the message transmitted in the current network channel is a non-time-sensitive message, the time-sensitive message to be transmitted occupies the network channel to perform message transmission, and at the same time, the transmission of the non-time-sensitive message being transmitted in the network channel is interrupted. By interrupting the transmission of the non-time-sensitive message, the network channel resources are released to transmit the time-sensitive message, and the real-time property of the time-sensitive message transmission is ensured.
As an optional implementation manner of the present application, the time-sensitive packet transmission method further includes:
first, when the received message is a non-time-sensitive message, the source of the non-time-sensitive message is determined.
For example, the method for determining the source of the non-time-sensitive packet and the method for determining the source of the time-sensitive packet have the same principle, that is, the source can be determined by the tag of the packet.
Secondly, when the non-time-sensitive message is uploaded from the local equipment, the non-time-sensitive message is subjected to message splitting processing to obtain a plurality of corresponding short messages, and the plurality of short messages are packaged and stored in a second local queue.
Illustratively, when a non-time-sensitive message uploaded by the local device is received, the non-time-sensitive message may be split into multiple short frames of messages, and the multiple short frames of messages are encapsulated according to a message format transmitted by a network channel of the current HSR ring network and stored in the second local queue. The splitting of the multi-frame short message can be carried out according to the average splitting of the total length of the non-time sensitive message to obtain a plurality of short messages in an HSR message format; the method and the device can also split the data carried by the non-time-sensitive message according to the segments to obtain a plurality of short messages in the HSR message format.
And thirdly, when the non-time-sensitive message is input from the ring network, the non-time-sensitive message is stored in a second forwarding queue.
Illustratively, when a non-time-sensitive message input by the HSR ring network is received, the non-time-sensitive message already in the HSR ring network is a split and encapsulated short message, and the received short message belonging to the non-time-sensitive message can be stored in the second forwarding queue without splitting and encapsulating again.
And thirdly, when the network channel is idle, transmitting the short message stored in a second local queue or a second forwarding queue according to a preset second message transmission strategy.
Illustratively, the second messaging policy may include a forwarding first, local first, weighted, time sliced, first come first sent, prioritized, etc. control policy. The type of the message transmission strategy is not limited in the application, and can be determined by a person skilled in the art according to actual needs. When the network channel is idle, that is, there is no any message being transmitted in the current network channel, if both the second forwarding queue and the second local queue contain short messages to be transmitted, the second message transmission policy is taken as the local queue priority for illustration, and based on the control policy of the local queue priority, the short messages in the second local queue are preferentially transmitted. By setting a transmission strategy for the transmission of the short messages in the second local queue and the second forwarding queue, the short messages in the second local queue and the second forwarding queue are prevented from being transmitted simultaneously, network channels are mutually occupied, and the transmission efficiency of the short messages is ensured.
As an optional implementation manner of the present application, when a network channel is idle, according to a preset second packet transmission policy, transmitting a short packet stored in a second local queue or a second forwarding queue, includes:
firstly, when the short message does not meet the integrity requirement, discarding the short message.
Illustratively, before transmitting the short message in the second local queue or the second forwarding queue, it is necessary to determine whether the short message to be transmitted is a complete short message, and the short message may be identified by a message format of the short message, and when the short message satisfies an HSR message encapsulation format, it may be determined that the short message satisfies an integrity requirement. If the message format of the short message is identified, and the message encapsulation format of the short message is found not to meet the integrity requirement, the short message can be determined to be the interrupted transmission message, and the short message is discarded, so that the interrupted incomplete short message is prevented from continuously occupying a transmission channel, and the waste of transmission bandwidth is avoided.
And secondly, when the short message meets the integrity requirement, transmitting the short message.
Illustratively, if the short message to be transmitted is complete and no message is sent in the current network channel, the short message may be transmitted. When the short message is transmitted, a non-time-sensitive message sending storage area can be established, a frame of short message waiting to be sent is extracted from a second local queue or a second forwarding queue to the non-time-sensitive message sending storage area according to a second message transmission strategy, when a network channel is idle, the short message of the non-time-sensitive message sending storage area is transmitted, but the short message transmission can be interrupted by a newly arrived time-sensitive message until the non-time-sensitive message sending storage area is emptied after the short message is successfully sent. After the non-time-sensitive message sending storage area is emptied, a frame of non-time-sensitive short messages of a second forwarding queue or a second local queue can be extracted according to a second message transmission strategy, stored in the non-time-sensitive message sending storage area and sent when a channel is idle next time, and a non-time-sensitive message sending storage area is established, so that a backup retransmission mechanism of the non-time-sensitive messages can be realized.
The embodiment provides a time-sensitive message transmission method in an HSR network, which can be used for any local device in an HSR ring network communication environment. As shown in fig. 2, includes:
and S21, receiving the message.
Illustratively, the message may be a time-sensitive message or a non-time-sensitive message sent by a dual-connectivity switching node in an HSR ring network communication environment.
And S22, when the received message is a time-sensitive message, decapsulating the time-sensitive message to obtain message information.
For example, the type of the received packet is determined, and for a specific description of determining the type of the packet, reference is made to the description of the corresponding part of the above embodiment. If the received message is a time-sensitive message, removing the HSR header of the message, and analyzing the message to obtain the information of the time-sensitive message. Taking the HSR ring network left ring network message as an example, when receiving the time-sensitive message sent by the HSR ring network left ring network, the HSR header of the time-sensitive message is removed, and the message content is analyzed to obtain the time-sensitive message information.
S23, when the received messages are a plurality of short messages used for transmitting non-time-sensitive messages, the short messages are de-encapsulated, and all the short messages obtained after de-encapsulation are combined to obtain message information.
Illustratively, if the received message is a frame of short message belonging to a non-time-sensitive message, removing the HSR header of the short message, analyzing the short message to obtain message information of the short message, storing the message information of the short message, and after other short messages belonging to the same non-time-sensitive message arrive and are decapsulated successfully, combining all the received short messages belonging to the same non-time-sensitive message to obtain a complete non-time-sensitive message, thereby obtaining message information transmitted by the non-time-sensitive message.
In the method for transmitting a time-sensitive message in an HSR network provided in this embodiment, time-sensitive message information is obtained by decapsulating a received message, decapsulating a plurality of received short messages belonging to the same non-time-sensitive message, and merging all the short messages obtained after decapsulation to obtain completed non-time-sensitive message information, so that the accuracy of the received time-sensitive message information and the non-time-sensitive message information is ensured.
This embodiment provides a time-sensitive packet transmission apparatus in an HSR network, as shown in fig. 3, including:
the source determining module 31 is configured to determine a source of the time-sensitive packet when the received packet is the time-sensitive packet.
The first storage module 32 is configured to encapsulate and store the time-sensitive packet in the first local queue when the time-sensitive packet is uploaded from the local device.
The judging module 33 is configured to determine whether the current network channel is occupied by the time-sensitive packet when the time-sensitive packet is input from the ring network.
The second storage module 34 is configured to store the time-sensitive packet in the first forwarding queue if the current network channel is occupied by the time-sensitive packet.
The transmission module 35 is configured to transmit the time-sensitive packet stored in the first local queue or the first forwarding queue according to a preset first packet transmission policy if the current network channel is not occupied by the time-sensitive packet.
The time-sensitive message transmission apparatus provided in this embodiment determines a source of a time-sensitive message through a source determining module, encapsulates the time-sensitive message uploaded by a local device by a first storage module and stores the time-sensitive message into a corresponding first local queue, determines, through a determining module, whether a current network channel is occupied by the time-sensitive message when the time-sensitive message input in a ring network is received, stores, if the current network channel is occupied by the time-sensitive message, the received time-sensitive message into a first forwarding queue through a second storage module, and transmits the time-sensitive message according to a preset first message transmission policy when the network channel is not occupied by the time-sensitive message. The device ensures the prior transmission of the time-sensitive message in the HSR network, reduces the waiting time delay of the time-sensitive message, improves the transmission efficiency of the time-sensitive message and ensures the real-time property of the time-sensitive message transmission.
As an optional embodiment of the present application, before the source determining module 31, the method includes:
and the dividing module is used for carrying out category division on the received messages.
And the first determining module is used for determining the message types according to the classification result, wherein the message types comprise time-sensitive messages and non-time-sensitive messages.
As an optional implementation manner of this application, the time-sensitive packet transmission apparatus further includes:
and the second determining module is used for determining whether the current network channel is occupied by the non-time-sensitive message when the time-sensitive message is input from the ring network.
And the interruption module is used for interrupting the transmission of the non-time-sensitive message and transmitting the time-sensitive message if the current network channel is occupied by the non-time-sensitive message.
As an optional implementation manner of this application, the time-sensitive packet transmission apparatus further includes:
and the second determining module is used for determining the source of the non-time-sensitive message when the received message is the non-time-sensitive message.
And the first encapsulation module is used for splitting the non-time-sensitive message when the non-time-sensitive message is uploaded from the local equipment to obtain a plurality of corresponding short messages, and encapsulating and storing the plurality of short messages to the second local queue.
And the second packaging module is used for storing the non-time-sensitive message to a second forwarding queue when the time-sensitive message is input from the ring network.
And the transmission module is used for transmitting the short message stored in the second local queue or the second forwarding queue according to a preset second message transmission strategy when a network channel is idle.
As an optional implementation manner of the present application, the transmission module includes:
and the discarding submodule is used for discarding the short message when the short message does not meet the integrity requirement.
And the transmission submodule is used for transmitting the short message when the short message meets the integrity requirement.
This embodiment provides a time-sensitive packet transmission apparatus, as shown in fig. 4, including:
the receiving module 41 is configured to receive a message.
And the decapsulation module 42 is configured to decapsulate the time-sensitive packet to obtain packet information when the received packet is the time-sensitive packet.
And a merging module 43, configured to decapsulate the short messages when the received messages are multiple short messages used for transmitting non-time-sensitive messages, and merge all the short messages obtained after decapsulation to obtain the message information.
The time-sensitive message transmission apparatus provided in this embodiment receives a message through a receiving module, and when the received message is a time-sensitive message, a decapsulating module decapsulates the time-sensitive message to obtain message information, and when the received message is a plurality of short messages used for transmitting a non-time-sensitive message, the decapsulating module decapsulates the plurality of short messages, and a merging module merges a plurality of decapsulated short messages belonging to the same non-time-sensitive message to obtain complete non-time-sensitive message information. The device extracts the message information by adopting different modes for the received messages of different types, thereby ensuring the accuracy of the received time sensitive message information and the received non-time sensitive message information.
An embodiment of the present invention further provides a computer device, as shown in fig. 5, the device includes a processor 51 and a memory 52, where the processor 51 and the memory 52 may be connected by a bus or in another manner, and fig. 5 takes the connection by the bus 50 as an example.
The processor 51 may be a Central Processing Unit (CPU). The Processor 51 may also be other general-purpose processors, Digital Signal Processors (DSPs), Graphics Processing Units (GPUs), embedded Neural Network Processors (NPUs), or other dedicated deep learning coprocessors, Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or any combination thereof.
The memory 52 is a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the time-sensitive message transmission method in the HSR network according to the embodiment of the present invention (for example, the source determining module 31, the first storage module 32, the determining module 33, the second storage module 34, and the transmission module 35 shown in fig. 3, and the receiving module 41, the decapsulating module 42, and the merging module 43 shown in fig. 4). The processor 51 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 52, that is, the time-sensitive message transmission method in the HSR network in the above method embodiment is implemented.
The memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 51, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 52 may optionally include memory located remotely from the processor 51, and these remote memories may be connected to the processor 51 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 one or more modules are stored in the memory 52 and, when executed by the processor 51, perform the time-sensitive messaging method in the HSR network in the embodiments shown in fig. 1-2.
The method comprises the steps of determining the source of a time-sensitive message, packaging the time-sensitive message uploaded by local equipment and storing the time-sensitive message into a corresponding first local queue, judging whether a current network channel is occupied by the time-sensitive message when the time-sensitive message input in a ring network is received, storing the received time-sensitive message into a first forwarding queue if the current network channel is occupied by the time-sensitive message, and transmitting the time-sensitive message according to a preset first message transmission strategy when the network channel is not occupied by the time-sensitive message, so that the priority transmission of the time-sensitive message is ensured, the waiting time delay of the time-sensitive message is reduced, and the real-time property of the time-sensitive message transmission is ensured.
The details of the computer device may be understood by referring to the corresponding descriptions and effects in the embodiments shown in fig. 1 to fig. 4, and are not described herein again.
An embodiment of the present invention further provides a non-transitory computer storage medium, where the computer storage medium stores a computer executable instruction, and the computer executable instruction can execute the time-sensitive packet transmission method in the HSR network in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a flash Memory (FlashMemory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.
Claims (10)
1. A method for transmitting time-sensitive messages in an HSR network is characterized by comprising the following steps:
when the received message is a time-sensitive message, determining the source of the time-sensitive message;
when the time-sensitive message is uploaded from local equipment, packaging and storing the time-sensitive message to a first local queue;
when the time-sensitive message is input from the ring network, determining whether the current network channel is occupied by the time-sensitive message;
if the current network channel is occupied by the time-sensitive message, storing the time-sensitive message into a first forwarding queue;
and if the current network channel is not occupied by the time-sensitive message, transmitting the time-sensitive message stored in the first local queue or the first forwarding queue according to a preset first message transmission strategy.
2. The method of claim 1, wherein before the received message is a time-sensitive message, the method further comprises:
classifying the received message;
and determining the message types according to the classification result, wherein the message types comprise time-sensitive messages and non-time-sensitive messages.
3. The method of claim 1, further comprising:
when the time-sensitive message is input from the ring network, determining whether the current network channel is occupied by a non-time-sensitive message;
and if the current network channel is occupied by the non-time-sensitive message, interrupting the transmission of the non-time-sensitive message and transmitting the time-sensitive message.
4. The method of claim 1, further comprising:
when the received message is a non-time-sensitive message, determining the source of the non-time-sensitive message;
when the non-time-sensitive message is uploaded from the local equipment, message splitting processing is carried out on the non-time-sensitive message to obtain a plurality of corresponding short messages, and the plurality of short messages are packaged and stored in a second local queue;
when the non-time-sensitive message is input from a ring network, storing the non-time-sensitive message to a second forwarding queue;
and when the network channel is idle, transmitting the short message stored in the second local queue or the second forwarding queue according to a preset second message transmission strategy.
5. The method according to claim 4, wherein the transmitting the short packet stored in the second local queue or the second forwarding queue according to a preset second packet transmission policy when the network channel is idle comprises:
when the short message does not meet the integrity requirement, discarding the short message;
and when the short message meets the integrity requirement, transmitting the short message.
6. A method for transmitting time-sensitive messages in an HSR network is characterized by comprising the following steps:
receiving a message;
when the received message is a time-sensitive message, decapsulating the time-sensitive message to obtain message information;
when the received messages are a plurality of short messages used for transmitting non-time-sensitive messages, the short messages are de-encapsulated, and all the short messages obtained after de-encapsulation are combined to obtain the message information.
7. A time-sensitive message transmission device in an HSR network is characterized by comprising:
the source determining module is used for determining the source of the time-sensitive message when the received message is the time-sensitive message;
the first storage module is used for packaging and storing the time-sensitive message to a first local queue when the time-sensitive message is uploaded from local equipment;
the judging module is used for determining whether the current network channel is occupied by the time-sensitive message when the time-sensitive message is input from the ring network;
the second storage module is used for storing the time-sensitive message into a first forwarding queue if the current network channel is occupied by the time-sensitive message;
and the transmission module is used for transmitting the time-sensitive message stored in the first local queue or the first forwarding queue according to a preset first message transmission strategy when the current network channel is not occupied by the time-sensitive message.
8. A time-sensitive message transmission device in an HSR network is characterized by comprising:
the receiving module is used for receiving the message;
the decapsulation module is used for decapsulating the time-sensitive message to obtain message information when the received message is the time-sensitive message;
and the merging module is used for decapsulating the short messages and merging all the decapsulated short messages to obtain the message information when the received messages are a plurality of short messages used for transmitting non-time-sensitive messages.
9. A computer device, comprising: a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of time-sensitive messaging in an HSR network as claimed in any of claims 1-6.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method of time-sensitive messaging in an HSR network of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911381583.6A CN111224895B (en) | 2019-12-27 | 2019-12-27 | Time-sensitive message transmission method, device and equipment in HSR network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911381583.6A CN111224895B (en) | 2019-12-27 | 2019-12-27 | Time-sensitive message transmission method, device and equipment in HSR network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111224895A true CN111224895A (en) | 2020-06-02 |
CN111224895B CN111224895B (en) | 2023-04-07 |
Family
ID=70829134
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911381583.6A Active CN111224895B (en) | 2019-12-27 | 2019-12-27 | Time-sensitive message transmission method, device and equipment in HSR network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111224895B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112737978A (en) * | 2020-12-31 | 2021-04-30 | 中国电子科技集团公司第七研究所 | Data message-oriented double-queue synchronization method, system, equipment and storage medium |
CN114095445A (en) * | 2020-07-29 | 2022-02-25 | 华人运通(上海)自动驾驶科技有限公司 | Data transmission control method and device for vehicle-mounted Ethernet, electronic equipment and storage medium |
CN114401233A (en) * | 2021-12-20 | 2022-04-26 | 裕太微电子股份有限公司 | Message scheduling method of time-aware scheduler and time-aware scheduler |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102714633A (en) * | 2012-03-06 | 2012-10-03 | 华为技术有限公司 | Method for transmission and reception of traffic packets, device and system |
CN104579962A (en) * | 2015-01-23 | 2015-04-29 | 盛科网络(苏州)有限公司 | Method and device for differentiating QoS strategies of different messages |
CN104954257A (en) * | 2014-03-27 | 2015-09-30 | 苏州与或信息科技有限公司 | Message forwarding system and method |
CN106453160A (en) * | 2016-10-11 | 2017-02-22 | 福建星海通信科技有限公司 | Beidou data transmission method and system |
CN106953779A (en) * | 2017-03-06 | 2017-07-14 | 南方电网科学研究院有限责任公司 | Redundant ring network node monitoring method and system |
CN108462646A (en) * | 2017-02-17 | 2018-08-28 | 华为技术有限公司 | A kind of message processing method and device |
CN109787919A (en) * | 2018-12-27 | 2019-05-21 | 瑞斯康达科技发展股份有限公司 | A kind of method, apparatus, computer storage medium and the terminal of information transmission |
-
2019
- 2019-12-27 CN CN201911381583.6A patent/CN111224895B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102714633A (en) * | 2012-03-06 | 2012-10-03 | 华为技术有限公司 | Method for transmission and reception of traffic packets, device and system |
CN104954257A (en) * | 2014-03-27 | 2015-09-30 | 苏州与或信息科技有限公司 | Message forwarding system and method |
CN104579962A (en) * | 2015-01-23 | 2015-04-29 | 盛科网络(苏州)有限公司 | Method and device for differentiating QoS strategies of different messages |
CN106453160A (en) * | 2016-10-11 | 2017-02-22 | 福建星海通信科技有限公司 | Beidou data transmission method and system |
CN108462646A (en) * | 2017-02-17 | 2018-08-28 | 华为技术有限公司 | A kind of message processing method and device |
CN106953779A (en) * | 2017-03-06 | 2017-07-14 | 南方电网科学研究院有限责任公司 | Redundant ring network node monitoring method and system |
CN109787919A (en) * | 2018-12-27 | 2019-05-21 | 瑞斯康达科技发展股份有限公司 | A kind of method, apparatus, computer storage medium and the terminal of information transmission |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114095445A (en) * | 2020-07-29 | 2022-02-25 | 华人运通(上海)自动驾驶科技有限公司 | Data transmission control method and device for vehicle-mounted Ethernet, electronic equipment and storage medium |
CN112737978A (en) * | 2020-12-31 | 2021-04-30 | 中国电子科技集团公司第七研究所 | Data message-oriented double-queue synchronization method, system, equipment and storage medium |
CN114401233A (en) * | 2021-12-20 | 2022-04-26 | 裕太微电子股份有限公司 | Message scheduling method of time-aware scheduler and time-aware scheduler |
Also Published As
Publication number | Publication date |
---|---|
CN111224895B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111224895B (en) | Time-sensitive message transmission method, device and equipment in HSR network | |
US11134132B2 (en) | Accelerated network packet processing | |
US11368338B2 (en) | Multi-protocol vehicle relay communication method, gateway device, vehicle network system, transfer method, and non-transitory computer-readable recording medium storing program | |
CN110022264B (en) | Method for controlling network congestion, access device and computer readable storage medium | |
CN111050361B (en) | Message transmission method, device and system | |
CN112087394A (en) | Message processing method and device | |
CN113395197B (en) | Gateway device, in-vehicle network system, transfer method, and computer-readable recording medium | |
US20210392084A1 (en) | Transmission Of Packets Over A TSN Aware Network | |
US8862768B2 (en) | Method and system for packetizing data for servicing traffic end-to-end | |
CN111801911B (en) | Traffic function chain congestion tracking | |
CN103281257B (en) | A kind of protocol message processing method and equipment | |
KR20220058576A (en) | Method and apparatus for controlling data transmission, and storage medium | |
EP3066803B1 (en) | Network traffic preemption using intermittent encapsulation | |
CN112332951B (en) | Ethernet frame preemption method, device, equipment and storage medium | |
CN107294856B (en) | Method, equipment and system for determining topology change | |
CN113949667A (en) | Message processing method and node equipment in segmented network | |
CN117041370A (en) | Communication method and system | |
WO2024174447A1 (en) | Data processing method and apparatus, storage medium and electronic device | |
WO2017173899A1 (en) | Terminal, device server, network message processing method, system, and storage medium | |
US20170359257A1 (en) | Communication device, terminal device, central server device, information processing system, telegram processing method and telegram generation method | |
WO2020072132A1 (en) | Method and apparatus for packet wash in networks | |
CN112737889B (en) | Flow processing method, flow monitoring method, device, system and storage medium | |
CN108616453B (en) | Method, device and system for network equipment | |
CN110572423A (en) | Data processing method and device | |
CN109450826B (en) | Message processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |