Overhead transmission method, device, equipment and computer readable storage medium

文档序号:1601365 发布日期:2020-01-07 浏览:7次 中文

阅读说明:本技术 一种开销传输方法、装置、设备及计算机可读存储介质 (Overhead transmission method, device, equipment and computer readable storage medium ) 是由 蒙万洲 李雯雯 于 2018-06-28 设计创作,主要内容包括:本文公开了一种开销传输方法、装置、设备及计算机可读存储介质,属于通讯技术领域,该方法包括:提取开销数据,并缓存为开销帧,所述开销帧包括:通道号、行号和开销数据;将所述开销帧封装为自定义开销数据帧;根据所述自定义开销数据帧的类型进行开销数据的串行传输,通过在开销前增加通道号行号等标识并按序缓存,封装成自定义包进行OTN开销的串行传输,实现了开销的跨FPGA的插入和提取,结构简单,移植性高,极大地节省了OTN器件管脚。(The text discloses an overhead transmission method, an overhead transmission device, overhead transmission equipment and a computer readable storage medium, which belong to the technical field of communication, and the method comprises the following steps: extracting overhead data and buffering the overhead data into an overhead frame, wherein the overhead frame comprises: channel number, row number, and overhead data; packaging the overhead frame into a custom overhead data frame; serial transmission of overhead data is carried out according to the type of the custom overhead data frame, channel number row numbers and other identifiers are added before overhead and are cached in sequence, and the custom packet is packaged to carry out serial transmission of OTN overhead, so that insertion and extraction of overhead across an FPGA are realized, the structure is simple, the portability is high, and pins of OTN devices are greatly saved.)

1. An overhead transmission method, comprising:

extracting overhead data and buffering the overhead data into an overhead frame, wherein the overhead frame comprises: channel number, row number, and overhead data;

packaging the overhead frame into a custom overhead data frame;

and carrying out serial transmission of overhead data according to the type of the self-defined overhead data frame.

2. The overhead transmission method according to claim 1, wherein encapsulating the overhead frame as a custom overhead data frame further comprises:

and acquiring an overhead request and receiving an insertion data packet.

3. The overhead transmission method of claim 2, wherein said encapsulating the overhead frame into a custom overhead data frame comprises:

obtaining a cache waterline from the overhead frame;

and packaging the overhead frame into a user-defined overhead data frame according to the overhead request and the cache waterline.

4. The overhead transmission method of claim 3, wherein the type of the custom overhead data frame comprises: a data frame, a request frame, a data request frame; correspondingly, the serial transmission of overhead data according to the type of the custom overhead data frame includes:

judging whether the type of the self-defined overhead data frame is a data frame, if so, extracting required overhead data according to the line number, and outputting a corresponding channel number, a request multiframe value and overhead data;

otherwise, the overhead request, the channel number and the request multiframe value are extracted and cached, the inserted data packet is subjected to framing operation, and the inserted data packet is packaged into an inserted overhead data frame for transmission.

5. An overhead transmission apparatus, comprising:

an extraction module, configured to extract overhead data and cache the overhead data as an overhead frame, where the overhead frame includes: channel number, row number, and overhead data;

the encapsulation module is used for encapsulating the overhead frame into a user-defined overhead data frame;

and the transmission module is used for carrying out serial transmission of the overhead data according to the type of the custom overhead data frame.

6. The overhead transmission device of claim 5, further comprising:

and the inserting module is used for acquiring the overhead request and receiving the inserting data packet.

7. The overhead transmission device according to claim 6, wherein the encapsulation module specifically includes:

obtaining a cache waterline from the overhead frame;

and packaging the overhead frame into a user-defined overhead data frame according to the overhead request and the cache waterline.

8. The overhead transport device of claim 7, wherein the types of the custom overhead data frames comprise: a data frame, a request frame, a data request frame; accordingly, the transmission module comprises:

the judging unit is used for judging whether the type of the custom overhead data frame is a data frame;

the first transmission unit is used for extracting the required overhead data according to the line number and outputting the corresponding channel number, the request multiframe value and the overhead data when the type of the self-defined overhead data frame is a data frame;

and the second transmission unit is used for extracting and caching the overhead request, the channel number and the request multiframe value when the type of the self-defined overhead data frame is a request frame or a data request frame, performing framing operation on the inserted data packet, and packaging the inserted data packet into an inserted overhead data frame for transmission.

9. An electronic device comprising a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, wherein the application is configured to perform the overhead transport method of any of claims 1-4.

10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the overhead transmission method according to any one of claims 1 to 4.

Technical Field

The present disclosure relates to the field of communications, and in particular, to an overhead transmission method, apparatus, device, and computer readable storage medium.

Background

In an Optical Transport Network (OTN), a powerful Network maintenance management function is implemented by overhead, and overhead processing plays an important role in the OTN, including: APS/PCC (automatic Protection Switching/Protection Communication Channel), GCC (General Communication Channel) and some reserved overhead are used to transmit the customized information related to the device or user. With the increasing speed and capacity of OTN devices, for large-capacity devices, resources of an FPGA (Field Programmable Gate Array) are increasingly strained, and overhead processing is relatively independent, and it is a common practice to implement overhead processing in one FPGA alone. If overhead information is transmitted in parallel, logic processing is more complex and occupies more hardware pins.

Disclosure of Invention

The invention aims to provide an overhead transmission method, an overhead transmission device, overhead transmission equipment and a computer readable storage medium, wherein identifiers such as channel number row numbers are added before overhead and are cached in sequence, and the identifiers are packaged into a custom packet to carry out serial transmission of OTN overhead, so that the cross-FPGA insertion and extraction of the overhead are realized, the structure is simple, the portability is high, and the OTN device pins are greatly saved.

The technical scheme adopted for solving the technical problems is as follows:

according to an aspect herein, there is provided an overhead transmission method, comprising:

extracting overhead data and buffering the overhead data into an overhead frame, wherein the overhead frame comprises: channel number, row number, and overhead data;

packaging the overhead frame into a custom overhead data frame;

and carrying out serial transmission of overhead data according to the type of the self-defined overhead data frame.

Optionally, before encapsulating the overhead frame into a custom overhead data frame, the method further includes:

and acquiring an overhead request and receiving an insertion data packet.

Optionally, the encapsulating the overhead frame into a custom overhead data frame includes:

obtaining a cache waterline from the overhead frame;

and packaging the overhead frame into a user-defined overhead data frame according to the overhead request and the cache waterline.

Optionally, the types of the custom overhead data frame include: a data frame, a request frame, a data request frame; correspondingly, the serial transmission of overhead data according to the type of the custom overhead data frame includes:

judging whether the type of the self-defined overhead data frame is a data frame, if so, extracting required overhead data according to the line number, and outputting a corresponding channel number, a request multiframe value and overhead data;

otherwise, the overhead request, the channel number and the request multiframe value are extracted and cached, the inserted data packet is subjected to framing operation, and the inserted data packet is packaged into an inserted overhead data frame for transmission.

According to another aspect herein, there is provided an overhead transmission apparatus comprising:

an extraction module, configured to extract overhead data and cache the overhead data as an overhead frame, where the overhead frame includes: channel number, row number, and overhead data;

the encapsulation module is used for encapsulating the overhead frame into a user-defined overhead data frame;

and the transmission module is used for carrying out serial transmission of the overhead data according to the type of the custom overhead data frame.

Optionally, the method further comprises:

and the inserting module is used for acquiring the overhead request and receiving the inserting data packet.

Optionally, the package module specifically includes:

obtaining a cache waterline from the overhead frame;

and packaging the overhead frame into a user-defined overhead data frame according to the overhead request and the cache waterline.

Optionally, the types of the custom overhead data frame include: a data frame, a request frame, a data request frame; accordingly, the transmission module comprises:

the judging unit is used for judging whether the type of the custom overhead data frame is a data frame;

the first transmission unit is used for extracting the required overhead data according to the line number and outputting the corresponding channel number, the request multiframe value and the overhead data when the type of the self-defined overhead data frame is a data frame;

and the second transmission unit is used for extracting and caching the overhead request, the channel number and the request multiframe value when the type of the self-defined overhead data frame is a request frame or a data request frame, performing framing operation on the inserted data packet, and packaging the inserted data packet into an inserted overhead data frame for transmission.

According to yet another aspect herein, there is provided an electronic device comprising a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application configured to perform the overhead transfer method described above.

According to yet another aspect herein, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the overhead transmission method described above.

An overhead transmission method, an overhead transmission device, overhead transmission equipment and a computer-readable storage medium in the embodiment of the invention are provided, and the method comprises the following steps: extracting overhead data and buffering the overhead data into an overhead frame, wherein the overhead frame comprises: channel number, row number, and overhead data; packaging the overhead frame into a custom overhead data frame; serial transmission of overhead data is carried out according to the type of the custom overhead data frame, channel number row numbers and other identifiers are added before overhead and are cached in sequence, and the custom packet is packaged to carry out serial transmission of OTN overhead, so that insertion and extraction of overhead across an FPGA are realized, the structure is simple, the portability is high, and pins of OTN devices are greatly saved.

Drawings

Fig. 1 is a flowchart of an overhead transmission method according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of overhead data according to an embodiment of the present invention;

fig. 3 is a schematic structural diagram of a custom overhead data frame according to an embodiment of the present invention;

fig. 4 is a flowchart of another overhead transmission method according to an embodiment of the present invention;

FIG. 5 is a flowchart of the method of step S30 in FIG. 1;

fig. 6 is a schematic structural diagram of an inserted overhead data frame according to an embodiment of the present invention;

fig. 7 is a block diagram illustrating an exemplary structure of an overhead transmission apparatus according to a second embodiment of the present invention;

fig. 8 is a block diagram illustrating an exemplary structure of another overhead transmission apparatus according to a second embodiment of the present invention;

fig. 9 is a block diagram illustrating an exemplary structure of the transmission module of fig. 7.

The objects, features, and advantages described herein will be further explained with reference to the accompanying drawings.

Detailed Description

In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer and more obvious, the present invention is further described in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not restrictive.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种列车CAN总线通信安全加密方法、解密方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类