CN111245744A - Message transmission control method and device - Google Patents

Message transmission control method and device Download PDF

Info

Publication number
CN111245744A
CN111245744A CN201811446354.3A CN201811446354A CN111245744A CN 111245744 A CN111245744 A CN 111245744A CN 201811446354 A CN201811446354 A CN 201811446354A CN 111245744 A CN111245744 A CN 111245744A
Authority
CN
China
Prior art keywords
priority
output
message
low
priority message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811446354.3A
Other languages
Chinese (zh)
Inventor
鞠海英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Original Assignee
Sanechips Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanechips Technology Co Ltd filed Critical Sanechips Technology Co Ltd
Priority to CN201811446354.3A priority Critical patent/CN111245744A/en
Publication of CN111245744A publication Critical patent/CN111245744A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/56Queue scheduling implementing delay-aware scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a message transmission control method and a device, wherein the method comprises the following steps: identifying each received message; setting different priorities for the messages based on the identification result; wherein, the time delay requirement of the high priority message is higher than that of the low priority message; and in the subsequent processing and output processes, the high-priority messages are preferentially arranged to be processed.

Description

Message transmission control method and device
Technical Field
The present invention relates to a technology for transmitting data over an ethernet in the field of communications, and in particular, to a method and an apparatus for controlling packet transmission.
Background
The fifth Generation wireless communication technology (5G) standard newly defines an Enhanced Common Public Radio Interface (ECPRI) protocol, and a schematic diagram of forwarding data carried on an ethernet protocol is shown in fig. 1, where the ECPRI protocol is carried on the ethernet, so that the forwarding data can be transmitted on the ethernet, and higher bandwidth efficiency and transmission flexibility are obtained. The forwarding data is transmitted on the ethernet, and before reaching the final destination, the forwarding data is transmitted through one-hop or multi-hop devices in the middle, fig. 2 shows a schematic diagram of the transmission of the forwarding data at each node in the ethernet, these intermediate devices transmit not only the forwarding data stream but also non-forwarding data streams, and the message delay is unstable due to the first-in first-out queuing under the condition of large flow. The forwarding data stream is time sensitive, and when the forwarding data stream is transmitted on the ethernet network and reaches the destination receiving end, the intermediate network device needs to solve the problem that the time delay of the forwarding data stream reaching the destination end after being transmitted in the devices meets the requirement.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention desirably provide a method and an apparatus for controlling packet transmission, which can at least overcome the problem in the prior art that the delay is not sensitive when data is transmitted over an ethernet.
In a first aspect, an embodiment of the present invention provides a method for controlling packet transmission, where the method includes:
identifying each received message;
setting different priorities for the messages based on the identification result; wherein, the time delay requirement of the high priority message is higher than that of the low priority message;
and in the subsequent analysis and output control processes, the high-priority messages are preferentially arranged and processed.
In the embodiment of the present invention, optionally, preferentially arranging and processing the high-priority packet in the subsequent parsing control process includes:
the method comprises the steps of analyzing a high-priority message and determining a target output port for outputting the high-priority message, and then analyzing a low-priority message and determining a target output port for outputting the low-priority message.
In this embodiment of the present invention, optionally, the method further includes:
and inputting the messages with the same priority into input queues with the same level, wherein the input queues are at least divided into high-priority input queues and low-priority input queues.
In this embodiment of the present invention, optionally, preferentially arranging and processing the high-priority packet in the output control process includes:
if a high-priority message to be output currently exists, controlling to output the high-priority message, and after all the high-priority messages to be output are completely output, controlling to output a low-priority message to be output;
in the process of outputting the low-priority message, if a new high-priority message to be output appears, the output of the low-priority message is suspended, and the new high-priority message to be output is controlled to be output preferentially.
In this embodiment of the present invention, optionally, the method further includes:
configuring different priority output queues for each output port to control each output port to preferentially send messages in the high priority output queue of each output port; the output queues are divided into at least a high priority output queue and a low priority output queue.
In a second aspect, an embodiment of the present invention provides a packet transmission control apparatus, where the apparatus includes:
the identification module is used for identifying each received message;
a setting module, configured to set different priorities for the respective packets based on the identification result; wherein, the time delay requirement of the high priority message is higher than that of the low priority message;
and the control module is used for preferentially arranging and processing the high-priority message in the subsequent analysis and output control processes.
In this embodiment of the present invention, optionally, the control module is further configured to:
in the subsequent analysis control process, the high-priority message is firstly analyzed and a target output port for outputting the high-priority message is determined, and then the low-priority message is analyzed and a target output port for outputting the low-priority message is determined.
In this embodiment of the present invention, optionally, the control module is further configured to:
and inputting the messages with the same priority into input queues with the same level, wherein the input queues are at least divided into high-priority input queues and low-priority input queues.
In this embodiment of the present invention, optionally, the control module is further configured to:
in the output control process, if a high-priority message to be output currently exists, the high-priority message is controlled to be output, and after all the high-priority messages to be output are output completely, the low-priority messages to be output are controlled to be output; in the process of outputting the low-priority message, if a new high-priority message to be output appears, the output of the low-priority message is suspended, and the new high-priority message to be output is controlled to be output preferentially.
In this embodiment of the present invention, optionally, the control module is further configured to:
configuring different priority output queues for each output port to control each output port to preferentially send messages in the high priority output queue of each output port; the output queues are divided into at least a high priority output queue and a low priority output queue.
In a third aspect, an embodiment of the present invention further provides a computer storage medium, where a computer-executable instruction is stored in the computer storage medium, and the computer-executable instruction is used to execute the message transmission control method according to the embodiment of the present invention.
In the technical scheme of the embodiment of the invention, each received message is identified; setting different priorities for the messages based on the identification result; wherein, the time delay requirement of the high priority message is higher than that of the low priority message; in the subsequent analysis and output control processes, the high-priority messages are preferentially arranged and processed; therefore, the problem that the time delay is insensitive when data is transmitted on the Ethernet in the prior art can be at least overcome, and because the message with high time delay requirement is identified and is configured with higher priority processing right, the processing time delay of the message with high time delay requirement is improved in the transmission of the Ethernet, and the time delay requirement of the message in the transmission of the Ethernet is met.
Drawings
FIG. 1 is a schematic diagram of forwarding data carried over an Ethernet protocol;
FIG. 2 is a schematic diagram of forwarding data transmitted at each node in an Ethernet network;
fig. 3 is a flowchart illustrating a message transmission control method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a specific flow for processing a packet according to an embodiment of the present invention;
fig. 5 is a schematic diagram of receiving and transmitting time-sensitive forward data packets and non-time-sensitive forward data packets at a port according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a message transmission control apparatus according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
Example one
Fig. 3 is a schematic flow chart of a message transmission control method according to an embodiment of the present invention, which is applied to an intermediate network device, and as shown in fig. 3, the method includes:
step 301: and identifying each received message.
Specifically, each message is received through a receiving port.
Here, the receiving port includes a plurality of ports, each of which has an independent identifier, so that the system can identify which receiving port receives which message by using the identifier of the receiving port.
Here, the identification in step 301 may be understood as a pre-identification.
In some optional embodiments, the identifying each received packet includes:
preliminarily analyzing each received message;
and judging whether each message contains a preset field or not based on the preliminary analysis result.
Therefore, whether the current message is a high-priority message or a low-priority message is conveniently judged by whether the preset field is contained.
Here, the preset field may be autonomously set by the system.
In some optional embodiments, the identifying each received packet includes:
determining the identification of a receiving port of each message;
and judging whether the identification of the receiving port corresponding to each message is positioned in a preset interval.
Therefore, whether the current message is a high-priority message or a low-priority message is conveniently judged through the receiving port identification corresponding to the current message.
That is, when the receiving port receives each packet, there is pre-identification priority processing, and the obtained pre-identification result can be used for priority processing control of subsequent parsing and forwarding processing.
Step 302: setting different priorities for the messages based on the identification result; the time delay requirement of the high-priority message is higher than that of the low-priority message.
Here, the delay requirement is high, i.e. the time sensitivity is strong and the delay is short; the delay requirement is low, i.e. it means that the time sensitivity is weak and the delay is relatively long.
That is, the message with high delay requirement is set as the high priority message, and the message with low delay requirement is set as the low priority message.
In some optional embodiments, the setting different priorities for the respective packets based on the identification result includes:
and judging the message containing the preset field as a high-priority message, and judging the message not containing the preset field as a low-priority message.
In some specific embodiments, the setting different priorities for the messages based on the identification result includes:
when the identification result indicates that the current message contains a preset field, setting the current message as a high-priority message;
and when the identification result indicates that the current message does not contain the preset field, setting the current message as a low-priority message.
Here, the preset field may be autonomously set by the system.
Here, the preset field is implemented by flexibly configuring one or several groups of message features.
For example, the preset field is a field used for characterizing that the current packet carries a fronthaul (fronthaul) data packet feature.
For example, when the identification result indicates that the current message contains a field of the characteristics of the forwarding data message, setting the current message as a high-priority message; and when the identification result represents that the current message does not contain the field of the characteristics of the forwarding data message, setting the current message as a low-priority message.
For another example, the preset field is a field used for representing a characteristic that a current packet carries a time-sensitive data packet.
For example, when the identification result represents that the current message contains a field with time-sensitive data message characteristics, setting the current message as a high-priority message; and when the identification result represents that the current message does not contain the field of the time-sensitive data message characteristic, setting the current message as a low-priority message.
Here, time sensitive data requires that the time delay meet certain conditions.
That is, the high priority message is not limited to forwarding data, but may be other time-sensitive data.
In other optional embodiments, the setting different priorities for the messages based on the identification result includes:
and judging the message with the receiving port identification positioned in the preset interval as a high-priority message, and judging the message with the receiving port identification positioned in the non-preset interval as a low-priority message.
Here, the preset interval may be autonomously set by the system.
For example, the number of receiving ports is x +1, and the port numbers are respectively marked as 0, 1, 2, … and x; if the preset interval is from x to x +1, the messages received by the port x and the port x-1 are high-priority messages.
Therefore, whether the current message is a high-priority message or a low-priority message is conveniently judged through the identification of the receiving port corresponding to the current message.
Step 303: and in the subsequent analysis and output control processes, the high-priority messages are preferentially arranged and processed.
Here, the processing priority in step 303 is different from the pre-recognition priority in step 301, such as the port priority, and the processing priority in step 303 is a re-recognized high-priority packet after deep parsing recognition, and is used for output priority control.
In some optional embodiments, in the subsequent parsing control process, prioritizing to process the high-priority packet includes:
the method comprises the steps of analyzing a high-priority message and determining a target output port for outputting the high-priority message, and then analyzing a low-priority message and determining a target output port for outputting the low-priority message.
Therefore, the messages with high processing delay requirements can be arranged preferentially, and the delay time is reduced for ensuring the fast output of the messages.
To implement prioritization for processing high priority packets, optionally, the method further includes:
and inputting the messages with the same priority into input queues with the same level, wherein the input queues are divided into high-priority input queues and low-priority input queues.
That is, the high-priority message is input into the high-priority input queue for subsequent processing; and inputting the message with low priority into a low-priority input queue for subsequent processing.
There may be more than one high priority input queue and more than one low priority input queue.
Optionally, messages of the same priority are input to one or more input queues of the same level.
That is, a plurality of high priority messages are input to one or more high priority input queues, and a plurality of low priority messages are input to one or more low priority input queues.
In some optional embodiments, in the output control process, prioritizing to process the high priority packet includes:
if a high-priority message to be output currently exists, controlling to output the high-priority message, and after all the high-priority messages to be output are completely output, controlling to output a low-priority message to be output;
in the process of outputting the low-priority message, if a new high-priority message to be output appears, the output of the low-priority message is suspended, and the new high-priority message to be output is controlled to be output preferentially.
In this way, each output port is controlled to send messages from the output queue with higher priority in priority, and the messages of the output queue with higher priority can be sent out in queue-insertion priority.
To implement prioritization for processing high priority packets, optionally, the method further includes:
configuring different priority output queues for each output port to control each output port to preferentially send messages in the high priority output queue of each output port; the output queues are divided into a high priority output queue and a low priority output queue.
Therefore, the output port can output the message timely according to the requirement.
It should be noted that, compared to the existing single priority processing, the technical solution described in this embodiment has two priority identifications, specifically, both the ingress and the egress have the function of determining whether the packet is a high priority packet, and the priority packet determination methods in the two locations can be flexibly configured and may be different from each other, that is, the priority of the ingress and the priority of the egress are not necessarily the same priority.
In this embodiment, the intermediate network device may be a device capable of transmitting or forwarding a packet, such as a switch.
In the technical scheme of the embodiment of the invention, because the message with high delay requirement is identified and is configured with higher priority processing right and queue insertion processing right, the processing delay of the message with high delay requirement is improved in the transmission of the Ethernet, the delay requirement of the message in the transmission of the Ethernet is met, and the problem that the delay is insensitive when the data is transmitted on the Ethernet in the prior art can be at least overcome.
Example two
Fig. 4 is a schematic diagram of a specific flow of processing a packet according to an embodiment of the present invention, where, as shown in fig. 4, units for processing a packet include a Unit0 Unit, a Unit1 Unit, a Unit2 Unit, and a Unit3 Unit; the receiving ports are respectively marked as port 0, port 1, port 2, … and port x; the output ports are denoted as ports m, n, …; pri denotes a priority flag.
In the following, several embodiments are described based on the schematic diagram shown in fig. 4.
Embodiment one
After each port receives an ethernet message, the Unit0 Unit completes simple parsing of the message to identify the critical data message that is time sensitive. The key data message is not limited to the forwarding data ECPRI, but may be other time-sensitive data, and can be specifically identified by flexibly configuring one or more sets of message characteristics to match. Time-sensitive forward-transmitted data, for which a high priority is configured; non-time sensitive forward-passing data, for which a low priority is configured. It should be noted that the priority is not limited to two types, and various priorities may be given according to the time-sensitive type.
The Unit1 Unit receives the message transmitted by the Unit0 Unit, and after identifying the priority of the message, the message enters a corresponding input priority queue, and the messages with the same priority of all ports enter the same priority queue to wait for processing of entering the next-stage Unit.
When Unit2 is idle, Unit1 will send the packet from the high priority queue to Unit2 according to the priority of the input priority queue. The Unit2 Unit completes the subsequent deep analysis and exchange forwarding control of the message. After the input high-priority queue is empty, the Unit1 sends the message to the Unit2 Unit from the non-empty input low-priority queue, and performs deep analysis and exchange forwarding of the message. When the input high-priority queue becomes non-empty, the Unit1 Unit immediately sends the message from the high-priority queue to the Unit2 Unit for deep analysis and exchange forwarding. In this manner, time-sensitive critical data is always prioritized and forwarded.
The Unit2 completes deep parsing and the forwarded message, and the message enters different port output priority queues according to the port to be forwarded and the higher priority of the time-sensitive message obtained by deep parsing in the Unit 3. Each output port judges different output priority queues when sending, and sends messages from higher priority queues preferentially, so that the time delay stability of the messages with high priority is very high, and the influence of non-time-sensitive data flow congestion is reduced to the lowest.
Embodiment two
This embodiment is a simplified version of the first embodiment.
After each port receives an ethernet message, the Unit0 Unit has two processing methods: the method 1 is consistent with the unti0 processing method of the first scheme, namely, the simple analysis of the message is completed, so that the time-sensitive critical data message can be identified. The key data message is not limited to the forwarding data ECPRI, but may be other time-sensitive data, specifically, by flexibly configuring one or more groups of message features to match and identify. Time-sensitive forward data, giving high priority; non-time sensitive forwarding data, giving low priority. The priority is not limited to two, and various priorities may be given according to the time-sensitive type. In the method 2, for simplification of implementation, the Unit0 Unit does not parse and recognize the priority of the message, and the message directly enters the next-stage module, i.e., is processed by the Unit1 Unit.
The Unit1 Unit implementation is simplified to be non-prioritized or skipped over for the first embodiment, and all packets are not prioritized for queuing to the Unit2 Unit for processing.
The Unit2 completes deep parsing and forwarding of the packet, and the packet enters different port output priority queues according to the port to be forwarded and the time-sensitive packet parsed out deeply in the Unit3 with higher priority. Each output port judges different output priority queues when sending, and sends messages from higher priority queues preferentially, so that the time delay stability of the messages with high priority is very high, and the influence of non-time-sensitive data flow congestion is reduced to the lowest.
Embodiment three
This embodiment is a simplified version of the first embodiment.
After each port receives an ethernet message, the Unit0 Unit completes simple parsing of the message to identify the critical data message that is time sensitive. The key data message is not limited to the forwarding data ECPRI, but may be other time-sensitive data, and can be specifically identified by flexibly configuring one or more sets of message characteristics to match. Time-sensitive forward-transmitted data, for which a high priority is configured; non-time sensitive forward-passing data, for which a low priority is configured. It should be noted that the priority is not limited to two types, and various priorities may be given according to the time-sensitive type.
The Unit1 Unit receives the message transmitted by the Unit0 Unit, and after identifying the priority of the message, the message enters a corresponding input priority queue, and the messages with the same priority of all ports enter the same priority queue to wait for processing of entering the next-stage Unit.
When Unit2 is idle, Unit1 will send the packet from the high priority queue to Unit2 according to the priority of the input priority queue. The Unit2 Unit completes the subsequent deep analysis and exchange forwarding control of the message. After the input high-priority queue is empty, the Unit1 sends the message to the Unit2 Unit from the non-empty input low-priority queue, and performs deep analysis and exchange forwarding of the message. When the input high-priority queue becomes non-empty, the Unit1 Unit immediately sends the message from the high-priority queue to the Unit2 Unit for deep analysis and exchange forwarding. In this manner, time-sensitive critical data is always prioritized and forwarded.
The Unit2 Unit completes deep parsing and forwarding of the packet, and the packet enters the Unit3 Unit. The Unit3 Unit implementation is simplified to be non-prioritized and not enter different output priority queues compared to the implementation, and all packets of each output port enter the same output queue. Each output port sends messages from the output queue in sequence without differentiating the priority queue.
Thus, in the technical scheme of the embodiment, the delay is reduced by analyzing the time-sensitive forward data in multiple layers and receiving and sending the forward data messages which can be processed by the priority queue in advance.
Fig. 5 is a schematic diagram of receiving and transmitting time-sensitive forward data packets and non-time-sensitive forward data packets at a port according to the embodiment of the present invention, where as shown in fig. 5, data received at port 0 and port 2 are output from port n; the message received by the port 0 is forwarded data, and the message received by the port 2 is non-forwarded data. Although the data 01 and 02 received by the port 0 are received at the same time as the data 21 and 22 received by the port 2, since the message received by the port 0 is the forward data and the message received by the port 2 is the non-forward data, the port n first outputs the data 01 and 02 received by the port 0 and then outputs the data received by the port 2, and after the data 21 of the port 2, the port 0 receives the data 13, at this time, since the message received by the port 0 is the forward data, the data is output in queue, that is, the data 13 of the port 0 is output first and then the data 22 and 23 of the port 2 are output.
As shown in fig. 5, the data received by port 1 and port x is output from port m; the message received by the port 1 is forwarding data, and the message received by the port x is non-forwarding data. Although the data 11 and 12 of the port 1 are received at the same time as the data x1 and x2 of the port x, since the packet received by the port 1 is forwarded data and the packet received by the port x is non-forwarded data, the port m first outputs the data 11 and 12 received by the port 1 and then outputs the data received by the port x, and after the data x1 received by the port x, the port 1 receives the data 13, at this time, since the packet received by the port 1 is forwarded data, the queue outputs the data 13 of the port 1 first and then outputs the data x2 and x3 received by the port x.
It should be noted that the implementation method of the message transmission control is not limited to these specific implementation forms, and is not listed here.
Because the time-sensitive forward data is identified and the higher priority processing is obtained, the priority and queue-insertion processing can be performed, so that the processing time delay of the time-sensitive forward data is improved in the transmission of the time-sensitive forward data in the Ethernet, and the time delay requirement of the transmission of the forward data in the Ethernet is met.
Example four
Fig. 6 is a schematic diagram of a structure of a packet transmission control apparatus according to an embodiment of the present invention, which is applied to an intermediate network device; as shown in fig. 6, the apparatus includes:
an identification module 10, configured to identify each received packet;
a setting module 20, configured to set different priorities for the respective messages based on the identification result; wherein, the time delay requirement of the high priority message is higher than that of the low priority message;
and the control module 30 is configured to preferentially arrange and process the high-priority packet in the subsequent parsing and output control processes.
As an alternative embodiment, the control module 30 is further configured to:
in the subsequent analysis control process, the high-priority message is firstly analyzed and a target output port for outputting the high-priority message is determined, and then the low-priority message is analyzed and a target output port for outputting the low-priority message is determined.
As an alternative embodiment, the control module 30 is further configured to:
and inputting the messages with the same priority into input queues with the same level, wherein the input queues are divided into high-priority input queues and low-priority input queues.
As an alternative embodiment, the control module 30 is further configured to:
in the output control process, if a high-priority message to be output currently exists, the high-priority message is controlled to be output, and after all the high-priority messages to be output are output completely, the low-priority messages to be output are controlled to be output; in the process of outputting the low-priority message, if a new high-priority message to be output appears, the output of the low-priority message is suspended, and the new high-priority message to be output is controlled to be output preferentially.
As an alternative embodiment, the control module 30 is further configured to:
configuring different priority output queues for each output port to control each output port to preferentially send messages in the high priority output queue of each output port; the output queues are divided into a high priority output queue and a low priority output queue.
In practical applications, the identification module 10, the setting module 20, and the control module 30 may be implemented by a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), or the like, which are located in the message transmission control device.
In this embodiment, the intermediate network device may be a device capable of transmitting or forwarding a packet, such as a switch.
The message transmission control device of the embodiment can at least overcome the problem that the time delay is insensitive when data is transmitted on the ethernet in the prior art.
The present embodiment also provides a computer storage medium, which stores a computer program, and the computer program can implement any one or more of the foregoing message transmission control methods after being executed by a processor.
The computer storage medium may be of various types, and in this embodiment may preferably be a non-transitory storage medium.
It should be understood by those skilled in the art that the functions of the programs in the storage medium of the present embodiment can be understood by referring to the related description of the message transmission control method described in the embodiments.
The computer storage medium provided by the embodiment of the invention is stored with computer instructions, and the instructions are executed by a processor to realize that:
identifying each received message; setting different priorities for the messages based on the identification result; wherein, the time delay requirement of the high priority message is higher than that of the low priority message; and in the subsequent analysis and output control processes, the high-priority messages are preferentially arranged and processed.
The computer storage medium provided by the embodiment of the invention is stored with computer instructions, and the instructions are executed by a processor to realize that:
the method comprises the steps of analyzing a high-priority message and determining a target output port for outputting the high-priority message, and then analyzing a low-priority message and determining a target output port for outputting the low-priority message.
The computer storage medium provided by the embodiment of the invention is stored with computer instructions, and the instructions are executed by a processor to realize that: and inputting the messages with the same priority into input queues with the same level, wherein the input queues are divided into high-priority input queues and low-priority input queues.
The computer storage medium provided by the embodiment of the invention is stored with computer instructions, and the instructions are executed by a processor to realize that: if a high-priority message to be output currently exists, controlling to output the high-priority message, and after all the high-priority messages to be output are completely output, controlling to output a low-priority message to be output; in the process of outputting the low-priority message, if a new high-priority message to be output appears, the output of the low-priority message is suspended, and the new high-priority message to be output is controlled to be output preferentially.
The computer storage medium provided by the embodiment of the invention is stored with computer instructions, and the instructions are executed by a processor to realize that: configuring different priority output queues for each output port to control each output port to preferentially send messages in the high priority output queue of each output port; the output queues are divided into a high priority output queue and a low priority output queue.
Compared with the prior art, the technical scheme of the invention has the following beneficial effects: because the message with high time delay requirement is identified and higher priority processing right and queue-insertion processing right are configured for the message, the processing time delay of the message with high time delay requirement is improved in the transmission of the Ethernet, the time delay requirement of the message in the transmission of the Ethernet is met, and the problem that the time delay is insensitive when the data is transmitted on the Ethernet in the prior art can be at least overcome.
The technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
In the embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one second processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A method for packet transmission, the method comprising:
identifying each received message;
setting different priorities for the messages based on the identification result; wherein, the time delay requirement of the high priority message is higher than that of the low priority message;
and in the subsequent analysis and output control processes, the high-priority messages are preferentially arranged and processed.
2. The method of claim 1, wherein prioritizing the processing of high priority packets during subsequent parsing control comprises:
the method comprises the steps of analyzing a high-priority message and determining a target output port for outputting the high-priority message, and then analyzing a low-priority message and determining a target output port for outputting the low-priority message.
3. The method of claim 2, further comprising:
and inputting the messages with the same priority into input queues with the same level, wherein the input queues are at least divided into high-priority input queues and low-priority input queues.
4. The method of claim 1, wherein prioritizing the processing of high priority messages during output control comprises:
if a high-priority message to be output currently exists, controlling to output the high-priority message, and after all the high-priority messages to be output are completely output, controlling to output a low-priority message to be output;
in the process of outputting the low-priority message, if a new high-priority message to be output appears, the output of the low-priority message is suspended, and the new high-priority message to be output is controlled to be output preferentially.
5. The method of claim 4, further comprising:
configuring different priority output queues for each output port to control each output port to preferentially send messages in the high priority output queue of each output port; the output queues are divided into at least a high priority output queue and a low priority output queue.
6. A message transmission control apparatus, the apparatus comprising:
the identification module is used for identifying each received message;
a setting module, configured to set different priorities for the respective packets based on the identification result; wherein, the time delay requirement of the high priority message is higher than that of the low priority message;
and the control module is used for preferentially arranging and processing the high-priority message in the subsequent analysis and output control processes.
7. The apparatus of claim 6, wherein the control module is further configured to:
in the subsequent analysis control process, the high-priority message is firstly analyzed and a target output port for outputting the high-priority message is determined, and then the low-priority message is analyzed and a target output port for outputting the low-priority message is determined.
8. The apparatus of claim 7, wherein the control module is further configured to:
and inputting the messages with the same priority into input queues with the same level, wherein the input queues are at least divided into high-priority input queues and low-priority input queues.
9. The apparatus of claim 6, wherein the control module is further configured to:
in the output control process, if a high-priority message to be output currently exists, the high-priority message is controlled to be output, and after all the high-priority messages to be output are output completely, the low-priority messages to be output are controlled to be output; in the process of outputting the low-priority message, if a new high-priority message to be output appears, the output of the low-priority message is suspended, and the new high-priority message to be output is controlled to be output preferentially.
10. The apparatus of claim 9, wherein the control module is further configured to:
configuring different priority output queues for each output port to control each output port to preferentially send messages in the high priority output queue of each output port; the output queues are divided into at least a high priority output queue and a low priority output queue.
CN201811446354.3A 2018-11-29 2018-11-29 Message transmission control method and device Pending CN111245744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811446354.3A CN111245744A (en) 2018-11-29 2018-11-29 Message transmission control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811446354.3A CN111245744A (en) 2018-11-29 2018-11-29 Message transmission control method and device

Publications (1)

Publication Number Publication Date
CN111245744A true CN111245744A (en) 2020-06-05

Family

ID=70871169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811446354.3A Pending CN111245744A (en) 2018-11-29 2018-11-29 Message transmission control method and device

Country Status (1)

Country Link
CN (1) CN111245744A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116887418A (en) * 2023-09-05 2023-10-13 浙江国利信安科技有限公司 Method, device and medium for scheduling high priority messages in EPA network

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040151197A1 (en) * 2002-10-21 2004-08-05 Hui Ronald Chi-Chun Priority queue architecture for supporting per flow queuing and multiple ports
CN101616096A (en) * 2009-07-31 2009-12-30 中兴通讯股份有限公司 Array dispatching method and device
CN101692648A (en) * 2009-08-14 2010-04-07 中兴通讯股份有限公司 Method and system for queue scheduling
CN102684983A (en) * 2011-03-15 2012-09-19 中兴通讯股份有限公司 Cell scheduling method and device
CN103441949A (en) * 2013-08-07 2013-12-11 中国能源建设集团广东省电力设计研究院 Ethernet data transmission method and system based on E1 link
CN103716255A (en) * 2012-09-29 2014-04-09 华为技术有限公司 Message processing method and device
CN107547393A (en) * 2016-06-29 2018-01-05 华为技术有限公司 A kind of method and the network equipment for calculating forward-path
CN108462646A (en) * 2017-02-17 2018-08-28 华为技术有限公司 A kind of message processing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040151197A1 (en) * 2002-10-21 2004-08-05 Hui Ronald Chi-Chun Priority queue architecture for supporting per flow queuing and multiple ports
CN101616096A (en) * 2009-07-31 2009-12-30 中兴通讯股份有限公司 Array dispatching method and device
CN101692648A (en) * 2009-08-14 2010-04-07 中兴通讯股份有限公司 Method and system for queue scheduling
CN102684983A (en) * 2011-03-15 2012-09-19 中兴通讯股份有限公司 Cell scheduling method and device
CN103716255A (en) * 2012-09-29 2014-04-09 华为技术有限公司 Message processing method and device
CN103441949A (en) * 2013-08-07 2013-12-11 中国能源建设集团广东省电力设计研究院 Ethernet data transmission method and system based on E1 link
CN107547393A (en) * 2016-06-29 2018-01-05 华为技术有限公司 A kind of method and the network equipment for calculating forward-path
CN108462646A (en) * 2017-02-17 2018-08-28 华为技术有限公司 A kind of message processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116887418A (en) * 2023-09-05 2023-10-13 浙江国利信安科技有限公司 Method, device and medium for scheduling high priority messages in EPA network
CN116887418B (en) * 2023-09-05 2023-12-15 浙江国利信安科技有限公司 Method, device and medium for scheduling high priority messages in EPA network

Similar Documents

Publication Publication Date Title
US20230388239A1 (en) Packet sending method, network node, and system
CN106921591B (en) Method for processing critical service burst in airborne navigation electric network
CN103873177B (en) Secure messaging methods based on In-vehicle networking
CN101009649A (en) Queue management in a network processor
CN112084027B (en) Network-on-chip data transmission method, device, network-on-chip, equipment and medium
CN114221912B (en) Time-sensitive network access method for non-periodic time-triggered service flow
CN112039796A (en) Data packet transmission method and device, storage medium and electronic equipment
CN115766860A (en) Data transmission method, TSN node and computer readable storage medium
CN102857440A (en) Data processing method and switchboard
CN107733812B (en) Data packet scheduling method, device and equipment
US11516145B2 (en) Packet control method, flow table update method, and node device
CN110463135A (en) Full duplex transmission method and device
CN111970271B (en) Preemptive scheduling method and device for TSN (transport stream network) message
CN111245744A (en) Message transmission control method and device
CN103795648A (en) Method, device and system for scheduling queue
CN111740922B (en) Data transmission method, device, electronic equipment and medium
CN108234397A (en) A kind of heterogeneous network data transmission method for uplink and method of reseptance based on channel
CN108696455B (en) Method and device for processing service flow
WO2016132402A1 (en) Communication frame transfer device and communication system
WO2021101640A1 (en) Method and apparatus of packet wash for in-time packet delivery
CN114124856B (en) Flow control method, device and storage medium
EP4185000A1 (en) Communication device and communication method
CN114979058A (en) CAN multi-mailbox multiplexing processing method and system
CN104219178A (en) Openflow-based control message processing method, Openflow-based control message transmitting device, Openflow-based control message receiving device and Openflow-based control message processing system
WO2023273788A1 (en) Data processing method and related apparatus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200605