WO2018090611A1 - 一种报文处理方法和装置、计算机存储介质 - Google Patents

一种报文处理方法和装置、计算机存储介质 Download PDF

Info

Publication number
WO2018090611A1
WO2018090611A1 PCT/CN2017/088627 CN2017088627W WO2018090611A1 WO 2018090611 A1 WO2018090611 A1 WO 2018090611A1 CN 2017088627 W CN2017088627 W CN 2017088627W WO 2018090611 A1 WO2018090611 A1 WO 2018090611A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
package
memory
packet
encapsulation
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.)
Ceased
Application number
PCT/CN2017/088627
Other languages
English (en)
French (fr)
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
Publication of WO2018090611A1 publication Critical patent/WO2018090611A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Definitions

  • the present invention relates to the field of communications, and in particular, to a message processing method and apparatus, and a computer storage medium.
  • each package data is separately added. If the destination address (DA, destination address), source address (SA, source address), and virtual local area network (VLAN) information of the Layer 2 encapsulation are added, the data is added three times.
  • DA destination address
  • SA source address
  • VLAN virtual local area network
  • each time a data is added the message is shifted on the bus. By shifting, the length of the message may be increased by one beat (the bus length of one clock cycle) or multiple beats. As shown in Figure 1, time period 1, time period 2, time period 3, and time period 4 in the figure refer to one time.
  • the bus length of the clock cycle including a portion of the message data in the bus length of each clock cycle.
  • the DA is inserted into the original data, and the original data is shifted for the first time;
  • the SA is inserted into the data after the DA is added, and the data is shifted a second time;
  • the VLAN is inserted into the data after the SA is added in the second step, and the data is shifted for the third time.
  • the current message has more time period 5 than the original message, and the original data 2, data 3, and data 4 are spliced and shifted three times. This data splicing shift is very error-prone. When multiple data needs to be inserted into the message, the probability of the message being erroneous due to multiple shifts of the data is increased.
  • an embodiment of the present invention provides a packet processing method and apparatus, and a computer storage medium, which solves multiple data generated by inserting data multiple times when data is inserted into a message multiple times.
  • a message processing method comprising:
  • each package data corresponds to one package enable, and each package data carries a byte length
  • the enabling, by the at least one encapsulation, to encapsulate the at least one encapsulation data in a memory to generate a data packet includes:
  • the package enable is enabled, the corresponding package data is the first data, and the first data is encapsulated in the memory to generate a data packet, where the data packet is the first The length in bytes of the data.
  • the first data includes at least one encapsulation data that is enabled to be true, and the first encapsulation data is encapsulation data that is encapsulated and enabled in the first data.
  • the second package data is encapsulated data that is enabled by any one of the first data except the first package data.
  • the encapsulating the first data in a memory to generate a data packet includes:
  • the second address is stored in the memory, the second address is a byte length of the first packaged data plus one byte, and so on, until each of the first data is encapsulated and enabled
  • the package data is stored in the memory as true, and the data packet is obtained.
  • the data adding location of the packet is added, and the data packet is added to the data adding location of the packet, including:
  • the byte length stored in the memory is a sum of a byte length of the at least one package data and a preset byte length.
  • a message processing device includes: an obtaining module, a determining module, a generating module, and an adding module; wherein
  • the obtaining module is configured to acquire at least one package data and at least one package enable corresponding to the at least one package data, where each package data corresponds to one package enable, Each packaged data carries a byte length;
  • the determining module is configured to determine, according to a byte length of the at least one package data, a memory stored in the package, where the byte length of the memory storage is greater than or equal to a sum of byte lengths of the at least one package data;
  • the generating module is configured to enable the at least one package data to be encapsulated in a memory to generate a data packet according to the at least one package;
  • the acquiring module is further configured to acquire a data adding location of the packet
  • the adding module is configured to add the data packet to a data addition location of the message.
  • the determining module is configured to determine that the encapsulation data corresponding to the encapsulation enable of the at least one encapsulation enable is the first data
  • the generating module is configured to encapsulate the first data in a memory to generate a data packet, where the data packet is a byte length of the first data.
  • the first data includes at least one encapsulation data that is enabled to be true, and the first encapsulation data is encapsulation data that is encapsulated and enabled in the first data.
  • the second package data is encapsulated data that is enabled by any one of the first data except the first package data.
  • the device also includes a storage module,
  • the storage module is configured to store the first package data from the first address of the memory into the memory, the first address is a first byte in the memory, and the second Encapsulating data is stored into the memory from a second address of the memory, the second address is a byte length of the first encapsulated data plus one byte, and so on, until the first data is to be Each package in the package enables the package data to be stored in the memory;
  • the obtaining module is configured to obtain the data packet.
  • the apparatus further includes a mobile module.
  • the acquiring module is configured to acquire a data adding location of the packet, where the data is added Located between the second data and the third data, the second data and the third data are any two connected data in the message;
  • the mobile module is configured to move the third data or the second data to a packet end of the packet by a byte length of the data packet;
  • the adding module is configured to add the data packet to a data addition location of the message.
  • the byte length stored in the memory is a sum of a byte length of the at least one package data and a preset byte length.
  • the obtaining module, the determining module, the generating module, the adding module, the storing module, and the moving module may perform a processing by using a central processing unit (CPU) and digital signal processing. (DSP, Digital Singnal Processor) or Programmable Array (FPGA) implementation.
  • CPU central processing unit
  • DSP Digital Singnal Processor
  • FPGA Programmable Array
  • a computer storage medium storing computer executable instructions configured to perform the message processing method of any of the above aspects.
  • the packet processing method and device provided by the embodiment of the present invention, by packing a plurality of package data to be inserted, inserting all required package data by only one insertion action, and solving the problem that when multiple package data needs to be added,
  • the problem of data splicing shift error caused by the insertion of the package data reduces the complexity of inserting the package data and improves the stability of the data when the package data is inserted.
  • FIG. 1 is a schematic flowchart of a packet processing method in the prior art
  • FIG. 2 is a schematic flowchart 1 of a packet processing method according to an embodiment of the present invention.
  • FIG. 3 is a second schematic flowchart of a packet processing method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a memory storage according to an embodiment of the present disclosure.
  • FIG. 5 is a first schematic diagram of a packet processing method according to an embodiment of the present invention.
  • FIG. 6 is a second schematic diagram of a packet processing method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram 1 of a packet processing apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram 2 of a packet processing apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram 3 of a packet processing apparatus according to an embodiment of the present invention.
  • the embodiment of the invention provides a packet processing method. As shown in FIG. 2, the method includes:
  • Step 101 Acquire at least one package data and at least one package enable corresponding to the at least one package data, where each package data corresponds to one package enable, and each package data carries a byte length.
  • the execution body of the message processing method provided by the embodiment of the present invention is a message processing apparatus.
  • the package data needs to be inserted into the packet, and the packet processing device obtains, from the preset configuration table, all the package data that may be used for processing the service and the package enable corresponding to each package data.
  • the configuration table contains information about the encapsulated data, packet type, and service type. There is at least one type of encapsulated data required to process a certain service, and one of the encapsulated data or multiple encapsulated data of all encapsulated data may be used each time depending on the usage when processing a certain type of service.
  • the configuration table contains all the package data for processing this service, and the package enable for each package data.
  • the encapsulation enable includes both true and false. When the encapsulation enable is true, the package data needs to be used to process the service. When the encapsulation enable is false, the package data is not required to process the service. At the same time, it should be noted that each package data carries a byte length.
  • Step 102 Determine, according to a byte length of the at least one package data, a memory stored in the package, where the byte length of the memory storage is greater than or equal to a byte length of the at least one package data. The sum of degrees.
  • a message is provided in the message processing apparatus for storing the stored data of the message to be inserted.
  • the storage byte length of the memory is set to: the sum of the byte lengths of all packaged data that may be used for processing this service, and the reserved empty words. Section length. Among them, the preview of the null byte length provides a possible extension for future use.
  • Step 103 Enable, according to the at least one encapsulation, to encapsulate the at least one package data in a memory to generate a data packet.
  • the first data includes at least one encapsulation data that is enabled to be true, and the first package data is encapsulation data that is enabled by any one of the first data, and the second package data is the Any one of the data except the first package data enables the package data to be true; storing the first package data from the first address of the memory into the memory, the first address is The first byte in the memory stores the second package data from the second address of the memory into the memory, and the second address is a byte length of the first package data One byte is added, and so on, until each package in the first data is packaged as true, and the package data is stored in the memory to obtain the data packet.
  • Step 104 Obtain a data addition location of the packet, and add the data packet to a data addition location of the packet.
  • the data addition location of the packet is obtained, where the data addition location is located between the second data and the third data, and the second data and the third data are any two connected data in the packet. And moving the third data or the second data to a packet end of the packet to a length of a byte of the data packet, and adding the data packet to a data addition location of the packet.
  • the packet processing method provided by the embodiment of the present invention by packing a plurality of package data to be inserted, inserts all required package data only by one insertion operation, thereby reducing the need to add multiple package data to the message.
  • the problem of data splicing shift error caused by inserting package data multiple times reduces the complexity of inserting package data and improves the stability of data when inserting package data.
  • the embodiment of the invention provides a packet processing method. As shown in FIG. 3, the method includes:
  • Step 201 The packet processing apparatus acquires at least one package data and at least one package enable corresponding to the at least one package data, where each package data corresponds to one package enable, and each package data carries a byte length.
  • the packet processing device obtains at least four package data required for processing the A service from the configuration table, and is, in order, package data 1, package data 2, package data 3, and package data 4, but the processing of the service may only be A combination of one or more of the four is used, and according to the encapsulation enable of the package data 1, the package data 2, the package data 3, and the package data 4 in the configuration table, it is possible to determine the data to be used for processing the service.
  • the encapsulation enable of the encapsulation data 1 plus the encapsulation data 4 is true, and the encapsulation enable of the encapsulation data 2 and the encapsulation data 3 is false, and the package data 1 and the package data 4 need to be inserted to process the service.
  • the package data 1, the package data 2, the package data 3, and the package data 4 all carry their respective byte lengths.
  • Step 202 The message processing apparatus determines, according to a byte length of the at least one encapsulated data, a stored memory that has a byte length greater than or equal to a sum of byte lengths of the at least one encapsulated data.
  • a message is provided in the message processing apparatus for storing the stored data of the message to be inserted.
  • the storage byte length of the memory is set to: the sum of the byte lengths of all packaged data that may be used for processing this service, and the reserved empty words. Section length. Among them, the length of the preview empty byte is raised For future expansion possible use.
  • a schematic diagram of a memory storing packaged data has at most five package data required for processing the A service, and the storage capacity of the memory is a byte length of the package data 1 to the package data 5 and a byte of the reserved portion. length.
  • Step 203 The packet processing apparatus determines that the encapsulation data corresponding to the encapsulation enable in the at least one encapsulation enable is the first data, and the first data is encapsulated in the memory to generate a data packet.
  • the data packet is the byte length of the first data.
  • the left side of FIG. 5 is package data that is enabled by the message processing device, and is encapsulated data 1, package data 2, package data 3, and package data 4. Now you need to package these four packaged data.
  • the package data 1 is first stored in the memory, starting from the first byte of the memory; due to the byte length of the package data, it is assumed that the byte length of the package data 1 is 10, then the storage After the completion of the data 1, the memory is occupied by 10 bytes; when the package data 2 is stored, the storage is started from the 11th byte of the memory.
  • the storage method of the package data 3 and the package data 4 is the same as that of the package data 2. After the four package data are stored, the four package data are packaged to form a data packet.
  • Step 204 The packet processing device acquires a data adding location of the packet, where the data adding location is located between the second data and the third data, where the second data and the third data are any two of the packets. Linked data, moving the third data or the second data to a packet end of the packet, and adding the data packet to the data of the packet. position.
  • the upper part of the right side of FIG. 5 is a message to be inserted into the package data, which is referred to herein as the original message.
  • the original message includes a total of four time period length data. It includes original data 1, original data 2, original data 3, and original data 4.
  • the original data 1 is stored in time period 1
  • the original data 2 is stored in time period 2, and so on. Now you need to insert the data in the packet into the original message.
  • the packet processing device can obtain the data of the packet according to the information in the configuration table and the packet type. The position is as shown in the lower right part of Figure 5.
  • the message processing device first moves the original data from the data addition position (including part of the original data 2, the original data 3, and the original data 4) back to the byte length of the data packet according to the length of the data packet, and then moves the data.
  • the data is added to the original message to add the location.
  • the message with the added packet is shown in the lower right part of Figure 5.
  • the packet length just takes up a period of time, so the original data 3 after the move still occupies a time period. If the length of the data packet is greater than one time period, the data shifting and splicing shown in FIG. 6 occurs.
  • the upper part of Figure 6 is the original message, and the lower part is the new message inserted into the data packet. It can be seen that the original data 2 and the original data 3 are performed because the byte length of the data packet is longer than the length of one byte of the time period. Data stitching.
  • the packet processing method provided by the embodiment of the present invention by packing a plurality of package data to be inserted, inserts all required package data by only one insertion action, thereby reducing the need to insert multiple package data, because multiple insertions are required.
  • the problem of data splicing shift error caused by the package data reduces the complexity of inserting the package data and improves the stability of the data when the package data is inserted.
  • the embodiment of the present invention provides a message processing apparatus 1. As shown in FIG. 7, the apparatus includes: an obtaining module 10, a determining module 11, a generating module 12, and an adding module 13;
  • the obtaining module 10 is configured to acquire at least one package data and at least one package enable corresponding to the at least one package data, where each package data corresponds to one package enable, and each package data carries a byte length;
  • the determining module 11 is configured to determine, according to a byte length of the at least one package data, a memory stored in the package, where the byte length of the memory storage is greater than or equal to a sum of byte lengths of the at least one package data;
  • the generating module 12 is configured to enable the at least one package data to be encapsulated in a memory to generate a data packet according to the at least one package.
  • the acquiring module 10 is further configured to acquire a data adding location of the packet
  • the adding module 13 is configured to add the data packet to a data addition location of the message.
  • the determining module 11 is configured to determine that the encapsulation data corresponding to the encapsulation enable of the at least one encapsulation enable is the first data
  • the generating module 12 is configured to encapsulate the first data in a memory to generate a data packet, where the data packet is a byte length of the first data.
  • the first data includes at least one encapsulation data that is enabled to be true, and the first encapsulation data is encapsulation data that is encapsulated and enabled in the first data.
  • the second package data is encapsulated data that is enabled by any one of the first data except the first package data.
  • the device further includes a storage module 14,
  • the storage module 14 is configured to store the first package data from the first address of the memory into the memory, where the first address is the first byte in the memory, and the first Two package data is stored into the memory from a second address of the memory, the second address is a byte length of the first package data plus one byte, and so on, until the first Each package in the data enables the package data to be stored in the memory;
  • the obtaining module 10 is configured to obtain the data packet.
  • the device further includes a mobile module 15,
  • the acquiring module 10 is configured to acquire a data adding location of the packet, where the data adding location is located between the second data and the third data, where the second data and the third data are any of the packets Two connected data;
  • the mobile module 15 is configured to move the third data or the second data to a packet end of the packet by a byte length of the data packet;
  • the adding module 13 is configured to add the data packet to a data adding bit of the packet Set.
  • the byte length stored in the memory is a sum of a byte length of the at least one package data and a preset byte length.
  • the description of the packet processing apparatus provided by the embodiment of the present invention can be referred to the description of the packet processing method in the first embodiment to the second embodiment.
  • the packet processing apparatus inserts a plurality of package data to be inserted, inserts all data to be encapsulated by only one insertion operation, and reduces the insertion of the package data by multiple times when adding a plurality of package data.
  • the resulting data splicing shift error has reduced the complexity of inserting the packaged data and improved the accuracy of the data when the packaged data is inserted.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the device is implemented in a flow chart A function specified in a block or blocks of a process or multiple processes and/or block diagrams.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

本发明实施例公开了一种报文处理方法,获取至少一个封装数据和与所述至少一个封装数据对应的至少一个封装使能,其中,每一个封装数据对应一个封装使能,每一个封装数据携带字节长度;根据所述至少一个封装数据的字节长度确定封装存储的存储器,所述存储器存储的字节长度大于等于所述至少一个封装数据的字节长度之和;根据所述至少一个封装使能将所述至少一个封装数据在存储器中封装生成数据包;获取报文的数据添加位置,将所述数据包添加到所述报文的数据添加位置。本发明实施例同时还公开了一种报文处理装置、计算机存储介质。

Description

一种报文处理方法和装置、计算机存储介质
相关申请的交叉引用
本申请基于申请号为201611043516.X、申请日为2016年11月21日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明涉及通讯领域,尤其涉及一种报文处理方法和装置、计算机存储介质。
背景技术
随着数据通信领域的快速发展,数据产品的业务类型越来越多,如二层以太网、三层网络之间互连的协议(IP,Internet Protocol)网络、多协议标签交换(MPLS,Multi-Protocol Label Switching)网络以及为了提高网络安全传输的互联网协议安全性(IPSEC,Internet Protocol Security)网络等。这些互联网技术在提高网络的性能和安全性的同时,对报文的改造也越来越多,因而对报文编辑的要求也越来越高。
现有技术在对报文进行修改时,当需要添加多个封装数据时,通过各个封装数据单独添加。如添加二层封装的目的地址(DA,destination address)、源地址(SA,source address)和虚拟局域网(VLAN,Virtual Local Area Network)信息,就要对报文进行3次数据添加操作。而在进行数据添加的过程中,每添加一个数据都会使报文在总线上进行移位,通过移位可能导致报文长度增加一拍(一个时钟周期的总线长度)或多拍。如图1所示,图中时间周期1、时间周期2、时间周期3、时间周期4分别指一个时 钟周期的总线长度,每一个时钟周期的总线长度中包括一部分报文数据。在第一步中,将DA插入原数据中,原数据进行了第一次移位;在第二步中,将SA插入了添加DA后的数据中,数据进行了第二次移位;在第三步中,将VLAN插入第二步添加了SA后的数据中,数据进行了第三次移位。经过三次移位,现在的报文比原报文多出了时间周期5这一拍数据,而且原数据2、数据3、数据4进行了三次数据的拼接和移位。这种数据拼接移位非常容易出错,当出现多个数据需要插入报文时更加大了报文因数据多次移位而出错的概率。
发明内容
为解决现有存在的技术问题,本发明实施例提供一种报文处理的方法和装置、计算机存储介质,解决了当多次插入数据至报文时,因多次插入数据产生的多次数据拼接移动而带来的数据出错率高的问题。
为达到上述目的,本发明实施例的技术方案是这样实现的:
一种报文处理方法,所述方法包括:
获取至少一个封装数据和与所述至少一个封装数据对应的至少一个封装使能,其中,每一个封装数据对应一个封装使能,每一个封装数据携带字节长度;
根据所述至少一个封装数据的字节长度确定封装存储的存储器,所述存储器存储的字节长度大于等于所述至少一个封装数据的字节长度之和;
根据所述至少一个封装使能将所述至少一个封装数据在存储器中封装生成数据包;
获取报文的数据添加位置,将所述数据包添加到所述报文的数据添加位置。
本发明实施例一实施方式中,所述根据所述至少一个封装使能将所述至少一个封装数据在存储器中封装生成数据包,包括:
确定所述至少一个封装使能中封装使能为真的封装使能对应的封装数据为第一数据,将所述第一数据在存储器中封装生成数据包,所述数据包为所述第一数据的字节长度。
本发明实施例一实施方式中,所述第一数据包括至少一个封装使能为真的封装数据,第一封装数据为所述第一数据中的任意一个封装使能为真的封装数据,第二封装数据为所述第一数据中除所述第一封装数据外的任意一个封装使能为真的封装数据;
所述将所述第一数据在存储器中封装生成数据包,包括:
将所述第一封装数据从存储器的第一地址起存储至所述存储器中,所述第一地址是所述存储器中的第一个字节,将所述第二封装数据从所述存储器的第二地址起存储至所述存储器中,所述第二地址为所述第一封装数据的字节长度加一个字节,以此类推,直至将所述第一数据中的每一个封装使能为真的封装数据存储至所述存储器中,获得所述数据包。
本发明实施例一实施方式中,所述获取报文的数据添加位置,将所述数据包添加到所述报文的数据添加位置,包括:
获取报文的数据添加位置,所述数据添加位置位于第二数据和第三数据之间,所述第二数据和所述第三数据为所述报文中任意两个相连的数据,将所述第三数据或所述第二数据向所述报文的报文尾移动所述数据包的字节长度,将所述数据包添加到所述报文的数据添加位置。
本发明实施例一实施方式中,所述存储器存储的字节长度为所述至少一个封装数据的字节长度与预设字节长度之和。
一种报文处理装置,所述装置包括:获取模块、确定模块、生成模块、添加模块;其中,
所述获取模块,配置为获取至少一个封装数据和与所述至少一个封装数据对应的至少一个封装使能,其中,每一个封装数据对应一个封装使能, 每一个封装数据携带字节长度;
所述确定模块,配置为根据所述至少一个封装数据的字节长度确定封装存储的存储器,所述存储器存储的字节长度大于等于所述至少一个封装数据的字节长度之和;
所述生成模块,配置为根据所述至少一个封装使能将所述至少一个封装数据在存储器中封装生成数据包;
所述获取模块,还配置为获取报文的数据添加位置;
所述添加模块,配置为将所述数据包添加到所述报文的数据添加位置。
本发明实施例一实施方式中,所述确定模块,配置为确定所述至少一个封装使能中封装使能为真的封装使能对应的封装数据为第一数据;
所述生成模块,配置为将所述第一数据在存储器中封装生成数据包,所述数据包为所述第一数据的字节长度。
本发明实施例一实施方式中,所述第一数据包括至少一个封装使能为真的封装数据,第一封装数据为所述第一数据中的任意一个封装使能为真的封装数据,第二封装数据为所述第一数据中除所述第一封装数据外的任意一个封装使能为真的封装数据;
所述装置还包括存储模块,
所述存储模块,配置为将所述第一封装数据从存储器的第一地址起存储至所述存储器中,所述第一地址是所述存储器中的第一个字节,将所述第二封装数据从所述存储器的第二地址起存储至所述存储器中,所述第二地址为所述第一封装数据的字节长度加一个字节,以此类推,直至将所述第一数据中的每一个封装使能为真的封装数据存储至所述存储器中;
所述获取模块,配置为获得所述数据包。
本发明实施例一实施方式中,所述装置还包括移动模块,
所述获取模块,配置为获取报文的数据添加位置,所述数据添加位置 位于第二数据和第三数据之间,所述第二数据和所述第三数据为所述报文中任意两个相连的数据;
所述移动模块,配置为将所述第三数据或所述第二数据向所述报文的报文尾移动所述数据包的字节长度;
所述添加模块,配置为将所述数据包添加到所述报文的数据添加位置。
本发明实施例一实施方式中,所述存储器存储的字节长度为所述至少一个封装数据的字节长度与预设字节长度之和。
所述获取模块、所述确定模块、所述生成模块、所述添加模块、所述存储模块、所述移动模块在执行处理时,可以采用中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Singnal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)实现。
一种计算机存储介质,其中存储有计算机可执行指令,该计算机可执行指令配置执行上述方案任一项所述的报文处理方法。
本发明的实施例提供的报文处理方法和装置,通过将待插入的多个封装数据进行打包,仅通过一次插入动作插入所有需要的封装数据,解决了需要添加多个封装数据时,因多次插入封装数据导致的数据拼接移位出错的问题,降低了插入封装数据的复杂度,提高了插入封装数据时数据的稳定性。
附图说明
图1为本现有技术中报文处理方法流程示意图;
图2为本发明实施例提供的报文处理方法流程示意图一;
图3为本发明实施例提供的报文处理方法流程示意图二;
图4为本发明实施例提供的存储器存储结构示意图;
图5为本发明实施例提供的报文处理方法示意图一;
图6为本发明实施例提供的报文处理方法示意图二;
图7为本发明实施例提供的报文处理装置结构示意图一;
图8为本发明实施例提供的报文处理装置结构示意图二;
图9为本发明实施例提供的报文处理装置结构示意图三。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
实施例一
本发明实施例提供一种报文处理方法,如图2所示,该方法包括:
步骤101、获取至少一个封装数据和与所述至少一个封装数据对应的至少一个封装使能,其中,每一个封装数据对应一个封装使能,每一个封装数据携带字节长度。
需要说明的是,本发明实施例提供的报文处理方法的执行主体为报文处理装置。当处理某种业务时,需要插入封装数据至报文中,报文处理装置从预设配置表中获取处理此业务可能会使用的所有封装数据和每一种封装数据对应的封装使能。
其中,配置表中包含待处理封装数据的信息,报文类型、业务类型等信息。处理某种业务需要的封装数据至少有一种,而且处理某种业务类型时根据使用情况的不同每次可能会使用所有封装数据的其中一个封装数据或多个封装数据。
配置表中包含有处理此业务的所有封装数据,以及每个封装数据对应的封装使能。封装使能包括真和假两种,当封装使能为真时,处理此次业务需要使用该封装数据;当封装使能为假时,处理此次业务不需要使用该封装数据。同时,需要说明的是,每一个封装数据都携带字节长度。
步骤102、根据所述至少一个封装数据的字节长度确定封装存储的存储器,所述存储器存储的字节长度大于等于所述至少一个封装数据的字节长 度之和。
具体的,报文处理装置中设置了一个存储器用于存储待插入报文的存储数据。为了保证处理某种业务所有可能使用的封装数据都能被存储在存储器中,将存储器的存储字节长度设置为:处理此业务可能使用的所有封装数据的字节长度之和以及预留空字节长度。其中,预览的空字节长度提供以后可能的扩展使用。
步骤103、根据所述至少一个封装使能将所述至少一个封装数据在存储器中封装生成数据包。
具体的,确定所述至少一个封装使能中封装使能为真的封装使能对应的封装数据为第一数据,将所述第一数据在存储器中封装生成数据包,所述数据包为所述第一数据的字节长度。
其中,所述第一数据包括至少一个封装使能为真的封装数据,第一封装数据为所述第一数据中的任意一个封装使能为真的封装数据,第二封装数据为所述第一数据中除所述第一封装数据外的任意一个封装使能为真的封装数据;将所述第一封装数据从存储器的第一地址起存储至所述存储器中,所述第一地址是所述存储器中的第一个字节,将所述第二封装数据从所述存储器的第二地址起存储至所述存储器中,所述第二地址为所述第一封装数据的字节长度加一个字节,以此类推,直至将所述第一数据中的每一个封装使能为真的封装数据存储至所述存储器中,获得所述数据包。
步骤104、获取报文的数据添加位置,将所述数据包添加到所述报文的数据添加位置。
具体的,获取报文的数据添加位置,所述数据添加位置位于第二数据和第三数据之间,所述第二数据和所述第三数据为所述报文中任意两个相连的数据,将所述第三数据或所述第二数据向所述报文的报文尾移动所述数据包的字节长度,将所述数据包添加到所述报文的数据添加位置。
本发明的实施例提供的报文处理方法,通过将待插入的多个封装数据进行打包,仅通过一次插入动作插入所有需要的封装数据,减少了需要向报文添加多个封装数据时,因多次插入封装数据导致的数据拼接移位出错的问题,降低了插入封装数据的复杂度,提高了插入封装数据时数据的稳定性。
实施例二
本发明实施例提供一种报文处理方法,如图3所示,该方法包括:
步骤201、报文处理装置获取至少一个封装数据和与所述至少一个封装数据对应的至少一个封装使能,其中,每一个封装数据对应一个封装使能,每一个封装数据携带字节长度。
示例性的,报文处理装置从配置表中得到处理A业务需要的封装数据最多有4个,依次为封装数据1、封装数据2、封装数据3和封装数据4,但处理此次业务可能只会用到4个之中的一个或多个的组合,根据配置表中封装数据1、封装数据2、封装数据3和封装数据4的封装使能,可以判断处理此次业务需要使用的数据。例如封装数据1加封装数据4的封装使能为真,封装数据2和封装数据3的封装使能为假,则处理此次业务需插入封装数据1和封装数据4。其中,封装数据1、封装数据2、封装数据3和封装数据4都携带各自的字节长度。
步骤202、报文处理装置根据所述至少一个封装数据的字节长度确定封装存储的存储器,所述存储器存储的字节长度大于等于所述至少一个封装数据的字节长度之和。
具体的,报文处理装置中设置了一个存储器用于存储待插入报文的存储数据。为了保证处理某种业务所有可能使用的封装数据都能被存储在存储器中,将存储器的存储字节长度设置为:处理此业务可能使用的所有封装数据的字节长度之和以及预留空字节长度。其中,预览的空字节长度提 供以后可能的扩展使用。
如图4所示,存储封装数据的存储器的示意图,处理A业务需要的封装数据最多有5个,存储器的存储容量为封装数据1至封装数据5的字节长度和加预留部分的字节长度。
步骤203、报文处理装置确定所述至少一个封装使能中封装使能为真的封装使能对应的封装数据为第一数据,将所述第一数据在存储器中封装生成数据包,所述数据包为所述第一数据的字节长度。
示例性的,如图5所示,图5左侧是报文处理装置获取的使能为真的封装数据,依次为封装数据1、封装数据2、封装数据3和封装数据4。现在需要将这四个封装数据进行打包。如图5左侧,首先将封装数据1存进存储器中,存储时从存储器的第一个字节开始;因封装数据的字节长度可知,假设封装数据1的字节长度为10,则存储数据1完成后,占用了存储器10个字节;存储封装数据2时,则从存储器的第11个字节开始存储。封装数据3和封装数据4的存储方法与封装数据2相同。当四个封装数据均存储后,将这个四个封装数据打包,形成数据包。
步骤204、报文处理装置获取报文的数据添加位置,所述数据添加位置位于第二数据和第三数据之间,所述第二数据和所述第三数据为所述报文中任意两个相连的数据,将所述第三数据或所述第二数据向所述报文的报文尾移动所述数据包的字节长度,将所述数据包添加到所述报文的数据添加位置。
如图5所示,图5中右侧上部分为待插入封装数据的报文,这里称为原报文。原报文一共包括四个时间周期长度的数据。包括原数据1、原数据2、原数据3和原数据4。原数据1存储在时间周期1中、原数据2存储在时间周期2中,依次类推。现在需要将数据包中的数据插入到原报文中。报文处理装置根据配置表中的信息以及报文类型可以获得报文的数据添加 位置,如图5中右下部分图中所示。报文处理装置根据数据包的长度,首先将原数据从数据添加位置起后面的数据(包括部分原数据2、原数据3和原数据4)向后移动数据包的字节长度,然后将数据包添加到原报文的数据添加位置。添加过数据包的报文如图5右下部分所示。图5中数据包长度刚好占了一个时间周期,所以移动后的原数据3仍占据了一个时间周期。若数据包的长度大于一个时间周期,则会出现图6所示的数据移位拼接的情况。图6中上部分为原报文,下部分为插入了数据包的新报文,可以看到因数据包字节长度大于一个时间周期的字节长度,所以原数据2、原数据3都进行了数据拼接。
本发明的实施例提供的报文处理方法,通过将待插入的多个封装数据进行打包,仅通过一次插入动作插入所有需要的封装数据,减少了需要添加多个封装数据时,因多次插入封装数据导致的数据拼接移位出错的问题,降低了插入封装数据的复杂度,提高了插入封装数据时数据的稳定性。
实施例三
本发明实施例提供了一种报文处理装置1,如图7所示,所述装置包括:获取模块10、确定模块11、生成模块12、添加模块13;其中,
所述获取模块10,配置为获取至少一个封装数据和与所述至少一个封装数据对应的至少一个封装使能,其中,每一个封装数据对应一个封装使能,每一个封装数据携带字节长度;
所述确定模块11,配置为根据所述至少一个封装数据的字节长度确定封装存储的存储器,所述存储器存储的字节长度大于等于所述至少一个封装数据的字节长度之和;
所述生成模块12,配置为根据所述至少一个封装使能将所述至少一个封装数据在存储器中封装生成数据包;
所述获取模块10,还配置为获取报文的数据添加位置;
所述添加模块13,配置为将所述数据包添加到所述报文的数据添加位置。
本发明实施例一实施方式中,所述确定模块11,配置为确定所述至少一个封装使能中封装使能为真的封装使能对应的封装数据为第一数据;
所述生成模块12,配置为将所述第一数据在存储器中封装生成数据包,所述数据包为所述第一数据的字节长度。
本发明实施例一实施方式中,所述第一数据包括至少一个封装使能为真的封装数据,第一封装数据为所述第一数据中的任意一个封装使能为真的封装数据,第二封装数据为所述第一数据中除所述第一封装数据外的任意一个封装使能为真的封装数据;
如图8所示,所述装置还包括存储模块14,
所述存储模块14,配置为将所述第一封装数据从存储器的第一地址起存储至所述存储器中,所述第一地址是所述存储器中的第一个字节,将所述第二封装数据从所述存储器的第二地址起存储至所述存储器中,所述第二地址为所述第一封装数据的字节长度加一个字节,以此类推,直至将所述第一数据中的每一个封装使能为真的封装数据存储至所述存储器中;
所述获取模块10,配置为获得所述数据包。
本发明实施例一实施方式中,如图9所示,所述装置还包括移动模块15,
所述获取模块10,配置为获取报文的数据添加位置,所述数据添加位置位于第二数据和第三数据之间,所述第二数据和所述第三数据为所述报文中任意两个相连的数据;
所述移动模块15,配置为将所述第三数据或所述第二数据向所述报文的报文尾移动所述数据包的字节长度;
所述添加模块13,配置为将所述数据包添加到所述报文的数据添加位 置。
本发明实施例一实施方式中,所述存储器存储的字节长度为所述至少一个封装数据的字节长度与预设字节长度之和。
具体的,本发明实施例提供的报文处理装置的理解可以参考实施例一至实施例二的报文处理方法的说明,本实施例在此不再赘述。
本发明的实施例提供的报文处理装置,通过将待插入的多个封装数据进行打包,仅通过一次插入动作插入所有待封装数据,减少了添加多个封装数据时,因多次插入封装数据导致的数据拼接移位出错的问题,降低了插入封装数据的复杂度,提高了插入封装数据时数据的准确性。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个 流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
采用本发明实施例,通过将待插入的多个封装数据进行打包,仅通过一次插入动作插入所有需要的封装数据,解决了需要添加多个封装数据时,因多次插入封装数据导致的数据拼接移位出错的问题,降低了插入封装数据的复杂度,提高了插入封装数据时数据的稳定性。

Claims (11)

  1. 一种报文处理方法,所述方法包括:
    获取至少一个封装数据和与所述至少一个封装数据对应的至少一个封装使能,其中,每一个封装数据对应一个封装使能,每一个封装数据携带字节长度;
    根据所述至少一个封装数据的字节长度确定封装存储的存储器,所述存储器存储的字节长度大于等于所述至少一个封装数据的字节长度之和;
    根据所述至少一个封装使能将所述至少一个封装数据在存储器中封装生成数据包;
    获取报文的数据添加位置,将所述数据包添加到所述报文的数据添加位置。
  2. 根据权利要求1所述的方法,其中,所述根据所述至少一个封装使能将所述至少一个封装数据在存储器中封装生成数据包,包括:
    确定所述至少一个封装使能中封装使能为真的封装使能对应的封装数据为第一数据,将所述第一数据在存储器中封装生成数据包,所述数据包为所述第一数据的字节长度。
  3. 根据权利要求2所述的方法,其中,
    所述第一数据包括至少一个封装使能为真的封装数据,第一封装数据为所述第一数据中的任意一个封装使能为真的封装数据,第二封装数据为所述第一数据中除所述第一封装数据外的任意一个封装使能为真的封装数据;
    所述将所述第一数据在存储器中封装生成数据包,包括:
    将所述第一封装数据从存储器的第一地址起存储至所述存储器中,所述第一地址是所述存储器中的第一个字节,将所述第二封装数据从所 述存储器的第二地址起存储至所述存储器中,所述第二地址为所述第一封装数据的字节长度加一个字节,以此类推,直至将所述第一数据中的每一个封装使能为真的封装数据存储至所述存储器中,获得所述数据包。
  4. 根据权利要求1所述的方法,其中,所述获取报文的数据添加位置,将所述数据包添加到所述报文的数据添加位置,包括:
    获取报文的数据添加位置,所述数据添加位置位于第二数据和第三数据之间,所述第二数据和所述第三数据为所述报文中任意两个相连的数据,将所述第三数据或所述第二数据向所述报文的报文尾移动所述数据包的字节长度,将所述数据包添加到所述报文的数据添加位置。
  5. 根据权利要求1至4任一项所述的方法,其中,所述存储器存储的字节长度为所述至少一个封装数据的字节长度与预设字节长度之和。
  6. 一种报文处理装置,所述装置包括:获取模块、确定模块、生成模块、添加模块;其中,
    所述获取模块,配置为获取至少一个封装数据和与所述至少一个封装数据对应的至少一个封装使能,其中,每一个封装数据对应一个封装使能,每一个封装数据携带字节长度;
    所述确定模块,配置为根据所述至少一个封装数据的字节长度确定封装存储的存储器,所述存储器存储的字节长度大于等于所述至少一个封装数据的字节长度之和;
    所述生成模块,配置为根据所述至少一个封装使能将所述至少一个封装数据在存储器中封装生成数据包;
    所述获取模块,还配置为获取报文的数据添加位置;
    所述添加模块,配置为将所述数据包添加到所述报文的数据添加位置。
  7. 根据权利要求6所述的装置,其中,
    所述确定模块,配置为确定所述至少一个封装使能中封装使能为真的封装使能对应的封装数据为第一数据;
    所述生成模块,配置为将所述第一数据在存储器中封装生成数据包,所述数据包为所述第一数据的字节长度。
  8. 根据权利要求7所述的装置,其中,
    所述第一数据包括至少一个封装使能为真的封装数据,第一封装数据为所述第一数据中的任意一个封装使能为真的封装数据,第二封装数据为所述第一数据中除所述第一封装数据外的任意一个封装使能为真的封装数据;
    所述装置还包括存储模块,
    所述存储模块,配置为将所述第一封装数据从存储器的第一地址起存储至所述存储器中,所述第一地址是所述存储器中的第一个字节,将所述第二封装数据从所述存储器的第二地址起存储至所述存储器中,所述第二地址为所述第一封装数据的字节长度加一个字节,以此类推,直至将所述第一数据中的每一个封装使能为真的封装数据存储至所述存储器中;
    所述获取模块,配置为获得所述数据包。
  9. 根据权利要求6所述的装置,其中,所述装置还包括移动模块,
    所述获取模块,配置为获取报文的数据添加位置,所述数据添加位置位于第二数据和第三数据之间,所述第二数据和所述第三数据为所述报文中任意两个相连的数据;
    所述移动模块,配置为将所述第三数据或所述第二数据向所述报文的报文尾移动所述数据包的字节长度;
    所述添加模块,配置为将所述数据包添加到所述报文的数据添加位置。
  10. 根据权利要求6至9任一项所述的装置,其中,所述存储器存储的字节长度为所述至少一个封装数据的字节长度与预设字节长度之和。
  11. 一种计算机存储介质,其中存储有计算机可执行指令,该计算机可执行指令配置执行上述权利要求1-5任一项所述的报文处理方法。
PCT/CN2017/088627 2016-11-21 2017-06-16 一种报文处理方法和装置、计算机存储介质 Ceased WO2018090611A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611043516.X 2016-11-21
CN201611043516.XA CN108092942B (zh) 2016-11-21 2016-11-21 一种报文处理方法和装置

Publications (1)

Publication Number Publication Date
WO2018090611A1 true WO2018090611A1 (zh) 2018-05-24

Family

ID=62145187

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088627 Ceased WO2018090611A1 (zh) 2016-11-21 2017-06-16 一种报文处理方法和装置、计算机存储介质

Country Status (2)

Country Link
CN (1) CN108092942B (zh)
WO (1) WO2018090611A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181872A (zh) * 2019-11-19 2020-05-19 视联动力信息技术股份有限公司 一种数据处理方法和装置
CN114465981A (zh) * 2021-12-29 2022-05-10 华为技术有限公司 数据传输方法以及通信装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022110174A1 (zh) * 2020-11-30 2022-06-02 华为技术有限公司 一种编辑报文的方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997000563A1 (en) * 1995-06-19 1997-01-03 International Business Machines Corporation Method and system for receiving data packets in a unidirectional broadcasting system
US6101551A (en) * 1996-04-30 2000-08-08 Nec Corporation Multi-processor system for supporting multicasting communication and inter-multiprocessor communication method therefor
CN1863101A (zh) * 2005-10-18 2006-11-15 华为技术有限公司 一种通用路由封装隧道的检测方法
CN104396196A (zh) * 2013-06-26 2015-03-04 华为技术有限公司 数据报文处理方法、数据报文处理装置及系统
CN105897929A (zh) * 2016-06-02 2016-08-24 浙江宇视科技有限公司 一种视频监控数据备份的方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7949773B2 (en) * 2000-04-12 2011-05-24 Telecommunication Systems, Inc. Wireless internet gateway
CN100502348C (zh) * 2003-07-23 2009-06-17 华为技术有限公司 网络安全处理装置及其方法
CN100438502C (zh) * 2005-07-05 2008-11-26 华为技术有限公司 一种l2tp报文处理方法
CN103036817A (zh) * 2012-12-14 2013-04-10 华为技术有限公司 一种服务器单板、服务器单板实现方法及主处理器
CN103023809B (zh) * 2012-12-28 2015-07-22 中国船舶重工集团公司第七0九研究所 一种采用二次缓冲技术的信息系统数据同步处理方法
CN103825819B (zh) * 2014-03-25 2017-06-30 武汉众合德信技术有限公司 一种报文发送及接收方法、装置
CN104270367B (zh) * 2014-09-30 2018-01-09 新华三技术有限公司 一种bfd会话建立方法和设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997000563A1 (en) * 1995-06-19 1997-01-03 International Business Machines Corporation Method and system for receiving data packets in a unidirectional broadcasting system
US6101551A (en) * 1996-04-30 2000-08-08 Nec Corporation Multi-processor system for supporting multicasting communication and inter-multiprocessor communication method therefor
CN1863101A (zh) * 2005-10-18 2006-11-15 华为技术有限公司 一种通用路由封装隧道的检测方法
CN104396196A (zh) * 2013-06-26 2015-03-04 华为技术有限公司 数据报文处理方法、数据报文处理装置及系统
CN105897929A (zh) * 2016-06-02 2016-08-24 浙江宇视科技有限公司 一种视频监控数据备份的方法及装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181872A (zh) * 2019-11-19 2020-05-19 视联动力信息技术股份有限公司 一种数据处理方法和装置
CN114465981A (zh) * 2021-12-29 2022-05-10 华为技术有限公司 数据传输方法以及通信装置
CN114465981B (zh) * 2021-12-29 2023-04-11 华为技术有限公司 数据传输方法以及通信装置

Also Published As

Publication number Publication date
CN108092942A (zh) 2018-05-29
CN108092942B (zh) 2020-04-10

Similar Documents

Publication Publication Date Title
KR102755356B1 (ko) Ioam 방법 및 전자 기기
CN109962847B (zh) 业务功能链报文的封装方法和装置及计算机可读存储介质
CN113615134B (zh) 一种报文转发方法、装置、网络节点及存储介质
CN111382201B (zh) 异构数据库同步方法、装置、计算机设备及存储介质
CN102833061A (zh) 基于无缝冗余环网的提高时钟精度的方法及节点
CN105991435B (zh) 用于获取端口路径的方法及装置
CN109218200A (zh) 一种报文处理方法及装置
WO2018090611A1 (zh) 一种报文处理方法和装置、计算机存储介质
CN106027510A (zh) 工业以太网的通信网络的动态重构方法及系统
WO2015184771A1 (zh) 一种业务功能链操作、管理和维护方法及节点设备
CN116996478A (zh) 隧道封装表资源管理方法、dpu及相关设备
CN115514702A (zh) 快速切换链路的方法、装置、电子设备及存储介质
US8755386B2 (en) Traceback packet transport protocol
CN102263700A (zh) 一种报文收发方法、装置和系统
CN116647440A (zh) 防微环的报文发送方法、装置、计算机设备及可读介质
JP6174101B2 (ja) ネットワークファブリックノードにおけるコマンドの同期実行のための技術
CN103955445B (zh) 一种数据处理方法、处理器及数据处理设备
CN115426104A (zh) 量子密钥供应的专有、共享保护方法及相关设备
CN107181689A (zh) 路由器之间的消息交互方法和装置
CN103957070B (zh) 一种数据帧的定位方法及装置
CN104506369A (zh) 一种丢包位置的检测方法和设备
CN104919765B (zh) 一种流表项的下发方法及装置
US10075328B2 (en) Point-to-multipoint ring network protection method and device
CN118487972A (zh) SRv6单向检测方法、装置、电子设备及可读介质
CN115459942B (zh) 一种流量监控方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17872090

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17872090

Country of ref document: EP

Kind code of ref document: A1