Message processing method and device and computer readable storage medium

文档序号:1007765 发布日期:2020-10-23 浏览:12次 中文

阅读说明:本技术 一种报文处理方法、装置及计算机可读存储介质 (Message processing method and device and computer readable storage medium ) 是由 程伟强 王敏学 于 2019-04-11 设计创作,主要内容包括:本发明公开了一种报文处理方法、装置及计算机可读存储介质,涉及通信技术领域,以解决在FlexE中进行网络管理时,没有足够的带宽承载管理控制报文的问题。该方法包括:确定传输管理码块所需的带宽,所述管理码块用于承载管理控制报文;根据所述带宽,利用所述管理码块替换原始数据流中的IDLE码块,形成数据通信网络DCN报文;发送所述DCN报文。本发明实施例可解决在FlexE中进行网络管理时,没有足够的带宽承载管理控制报文的问题。(The invention discloses a message processing method, a message processing device and a computer readable storage medium, relates to the technical field of communication, and aims to solve the problem that when network management is carried out in FlexE, sufficient bandwidth does not exist to bear management control messages. The method comprises the following steps: determining a bandwidth required by transmission of a management code block, wherein the management code block is used for bearing a management control message; replacing an IDLE code block in the original data stream by the management code block according to the bandwidth to form a DCN message of the data communication network; and sending the DCN message. The embodiment of the invention can solve the problem that when network management is carried out in Flexe, the management control message is not loaded by enough bandwidth.)

1. A message processing method is applied to flexible Ethernet Flexe equipment and is characterized by comprising the following steps:

determining a bandwidth required by transmission of a management code block, wherein the management code block is used for bearing a management control message;

replacing an IDLE IDLE code block in the original data stream by the management code block according to the bandwidth to form a DCN message of the data communication network;

and sending the DCN message.

2. The method of claim 1, wherein the determining a bandwidth required for transmission of a management code block comprises:

the bandwidth reserved for the FlexE Instance is taken as the bandwidth required for transmission of the management code block.

3. The method of claim 1, wherein the determining a bandwidth required for transmission of a management code block comprises:

acquiring the number of subinterfaces included by the Flexe Instance and the reserved bandwidth of each subinterface;

determining the total amount of reserved bandwidth of all the subinterfaces according to the number of the subinterfaces and the reserved bandwidth of each subinterface;

and determining the bandwidth required by the transmission management code block according to the total bandwidth of the Flexe Instance and the total amount of reserved bandwidths of all the subinterfaces.

4. The method according to claim 3, wherein the determining the bandwidth required for transmitting the management code block according to the total bandwidth of the Flexe Instance and the total amount of reserved bandwidths of all the subinterfaces comprises:

reserving bandwidth for the management code block according to a target interval, wherein the target interval is the quotient of the total bandwidth and the total reserved bandwidth of all the subinterfaces.

5. The method of claim 1, wherein the management code block comprises the following fields:

code block type field 0x 4B: for indicating the code block type;

payload field Payload: used for bearing management control messages;

sequence number field Seq: and the sending sequence number is used for identifying the sending sequence number of the management control message.

6. The method of claim 5, wherein the management code block further comprises one or more of:

a reserved field Resv;

an M field: used for expressing the SPN in-band management channel of the slice packet network;

the check field CRC 4.

7. The method of claim 1, wherein prior to the determining the bandwidth required for transmission of the management code block, the method further comprises:

at the beginning of powering on the FlexE device, the whole FlexE Instance is used as a subinterface to perform ethernet configuration.

8. The method of claim 1, wherein prior to the determining the bandwidth required for transmission of the management code block, the method further comprises:

and receiving the DCN message in the IP format sent by the DCN network, and encapsulating the DCN message in the IP format in the management code block after repackaging the DCN message in the IP format.

9. The method of claim 1, wherein, in the sending the DCN packet, the method further comprises:

and forming a DCN message in an IP format according to the DCN message, and sending the DCN message in the IP format to a DCN network.

10. A message processing method is applied to Flexe equipment and is characterized by comprising the following steps:

receiving a DCN message; the DCN message is formed by replacing an IDLE code block in an original data stream with a management code block, wherein the management code block is used for carrying a management control message;

and acquiring a management control message according to the DCN message.

11. The method of claim 10, wherein the management code block comprises the following fields:

code block type field 0x 4B: for indicating the code block type;

payload field Payload: used for bearing management control messages;

sequence number field Seq: and the sending sequence number is used for identifying the sending sequence number of the management control message.

12. The method of claim 11, wherein the management code block further comprises one or more of:

a reserved field Resv;

an M field: used for expressing the SPN in-band management channel of the slice packet network;

the check field CRC 4.

13. The method according to claim 12, wherein said obtaining a management control packet according to the DCN packet comprises:

acquiring a sending sequence number of the management code block according to the sequence number field of the management code block;

and arranging the management code blocks according to the sending serial numbers to obtain management control messages.

14. The method of claim 13, further comprising:

and checking the management control message according to the check field.

15. A message processing device is arranged in Flexe equipment, and is characterized by comprising: a processor and a transceiver;

the processor is configured to determine a bandwidth required for transmitting a management code block, where the management code block is used to carry a management control packet; replacing an IDLE IDLE code block in the original data stream by the management code block according to the bandwidth to form a DCN message of the data communication network;

the transceiver is configured to send the DCN packet.

16. The apparatus of claim 15, wherein the processor is further configured to use a bandwidth reserved for a FlexE Instance as a bandwidth required for transmission of a management code block.

17. The apparatus of claim 15, wherein the processor is further configured to:

acquiring the number of subinterfaces included by the Flexe Instance and the reserved bandwidth of each subinterface;

determining the total amount of reserved bandwidth of all the subinterfaces according to the number of the subinterfaces and the reserved bandwidth of each subinterface;

and determining the bandwidth required by the transmission management code block according to the total bandwidth of the Flexe Instance and the total amount of reserved bandwidths of all the subinterfaces.

18. The apparatus of claim 17, wherein the processor is further configured to:

reserving bandwidth for the management code block according to a target interval, wherein the target interval is the quotient of the total bandwidth and the total reserved bandwidth of all the subinterfaces.

19. The apparatus of claim 15, wherein the management code block comprises the following fields:

code block type field 0x 4B: for indicating the code block type;

payload field Payload: used for bearing management control messages;

sequence number field Seq: and the sending sequence number is used for identifying the sending sequence number of the management control message.

20. The apparatus of claim 19, wherein the management code block further comprises one or more of:

a reserved field Resv;

an M field: used for expressing the SPN in-band management channel of the slice packet network;

the check field CRC 4.

21. The apparatus of claim 15, wherein the processor is further configured to: at the beginning of powering on the FlexE device, the whole FlexE Instance is used as a subinterface to perform ethernet configuration.

22. The apparatus of claim 15, wherein the processor is further configured to:

and receiving the DCN message in the IP format sent by the DCN network, and encapsulating the DCN message in the IP format in the management code block after repackaging the DCN message in the IP format.

23. The apparatus of claim 15, wherein the transceiver is further configured to: and forming a DCN message in an IP format according to the DCN message, and sending the DCN message in the IP format to a DCN network.

24. A message processing device is arranged in Flexe equipment, and is characterized by comprising: a processor and a transceiver;

the transceiver is used for receiving a DCN message; the DCN message is formed by replacing an IDLE code block in an original data stream with a management code block, wherein the management code block is used for carrying a management control message;

and the processor is used for acquiring a management control message according to the DCN message.

25. The apparatus of claim 24, wherein the management code block comprises the following fields:

code block type field 0x 4B: for indicating the code block type;

payload field Payload: used for bearing management control messages;

sequence number field Seq: and the sending sequence number is used for identifying the sending sequence number of the management control message.

26. The apparatus of claim 25, wherein the management code block further comprises one or more of:

a reserved field Resv;

an M field: used for expressing the SPN in-band management channel of the slice packet network;

the check field CRC 4.

27. The apparatus of claim 26, wherein the processor is further configured to:

acquiring a sending sequence number of the management code block according to the sequence number field of the management code block; and arranging the management code blocks according to the sending serial numbers to obtain management control messages.

28. The apparatus of claim 27, wherein the processor is further configured to: and checking the management control message according to the check field.

29. A communication device, comprising: a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor; it is characterized in that the preparation method is characterized in that,

the processor for reading the program in the memory to implement the steps in the method of any one of claims 1 to 9; or implementing a step in a method according to any of claims 10 to 14.

30. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the steps in the method according to any one of claims 1 to 9; or implementing a step in a method according to any of claims 10 to 14.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种核电站通信基于无线光的以太网透传方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!