发明名称 |
Packet Edit Processing Method and Related Device |
摘要 |
A packet edit processing method and a device are provided. In an embodiment, the method includes: generating an input packet template based on N to-be-edited protocol header fields of an input packet, and a preset protocol field mapping relationship, where the input packet template includes N protocol descriptors, and the protocol field mapping relationship is a mapping relationship between a protocol field included in a protocol descriptor and a protocol field included in a protocol header field; performing edit processing on the input packet template to obtain an output packet template; and converting, based on the preset protocol field mapping relationship, M protocol descriptors into M protocol header fields of an output packet, and replacing the N protocol header fields in the input packet with the M protocol header fields to obtain the output packet. |
申请公布号 |
US2017085477(A1) |
申请公布日期 |
2017.03.23 |
申请号 |
US201615365606 |
申请日期 |
2016.11.30 |
申请人 |
Huawei Technologies Co., Ltd. |
发明人 |
Li Nan;Wang Linchun |
分类号 |
H04L12/741;H04L12/46 |
主分类号 |
H04L12/741 |
代理机构 |
|
代理人 |
|
主权项 |
1. A packet edit processing method, the method comprising:
generating an input packet template based on N to-be-edited protocol header fields of an input packet, and a preset protocol field mapping relationship, wherein the input packet template comprises N protocol descriptors that are corresponding, in a one-to-one manner, to the N protocol header fields, and the protocol field mapping relationship is a mapping relationship between a protocol field comprised in a protocol descriptor and a protocol field comprised in a protocol header field that has a correspondence with the protocol descriptor; performing edit processing on the input packet template to obtain an output packet template; and converting, based on the preset protocol field mapping relationship, M protocol descriptors comprised in the obtained output packet template into M protocol header fields of an output packet, and replacing the N protocol header fields in the input packet with the M protocol header fields to obtain the output packet, wherein N and M are positive integers. |
地址 |
Shenzhen CN |