CN104396196A - Data packet processing method and a data packet processing device and system - Google Patents

Data packet processing method and a data packet processing device and system Download PDF

Info

Publication number
CN104396196A
CN104396196A CN201380000740.9A CN201380000740A CN104396196A CN 104396196 A CN104396196 A CN 104396196A CN 201380000740 A CN201380000740 A CN 201380000740A CN 104396196 A CN104396196 A CN 104396196A
Authority
CN
China
Prior art keywords
length
coutinuous store
data streaming
burst
store region
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
CN201380000740.9A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104396196A publication Critical patent/CN104396196A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]

Abstract

Disclosed are a data packet processing method and a data packet processing device and system. The data packet processing method comprises: a predetermined addition scheme is employed for adding length information of a Data Streaming packet to a first slice, the first splice is transmitted to facilitate a receiving side in acquiring the length information in the first splice received, and a smallest available contiguous storage area on a storage medium is determined on the basis of the length information; the smallest available contiguous storage area is used for storing all of the splices of the Data Streaming packet. In embodiments of the present invention, the length of the packet is acquired by the receiving side when same receives the first splice, and the smallest available contiguous storage area on the storage medium is determined on the basis of the length information instead of having to allocate according to the maximum length a contiguous storage area for storage of the packet, thus conserving a storage resource and preventing wastage of the storage resource.

Description

Data packet processing method and a data packet processing device and system
Data message processing method, data message processing unit and system
Technical field
The present invention relates to technical field of data processing, more specifically to data message processing method, data message processing unit and system.Background technology
RapidlO (rapidly inputs output)Agreement is to meet a kind of open system interconnection technical standard that high performance embedded system demand is designed.The main application scenarios of RapidlO are embedded system intraconnection, support chip to chip, plate to the communication between plate.Several transmission modes defined in RapidlO agreements, Data streaming patterns are one.In Data streaming patterns, the maximum length that Data streaming messages are supported is 64KB.In transmission, it is transmitted according to 256B, 128B, 64B etc. burst granularity.During the present invention is researched and developed, inventor has found that, due in RapidlO agreements, the length of Data streaming messages is defined in last burst, this causes recipient receiving first burst(I.e. first burst)When can not also obtain the length of Data streaming messages.Again because the length of Data streaming messages can use 1 64KB, therefore, recipient typically just presses maximum length(Namely 64KB) distribution Coutinuous store region stored messages.So, even if major part Data streaming messages very littles, recipient is also required to distribute many 64KB Coutinuous store region, causes the waste of storage resource.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide number data message processing method, data message processing unit and system, to solve the above problems.To achieve the above object, the embodiment of the present invention provides following technical scheme:
First aspect according to embodiments of the present invention there is provided a kind of data message processing method, including:The length information of Data streaming messages is added to by first burst using default addition manner, and send the first burst, so that recipient obtains length information from the first burst received, and determine that minimum can use Coutinuous store region on a storage medium according to the length information; The minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.With reference in a first aspect, in the first possible implementation, the default addition manner includes:Using high M of the logical layer field of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8.With reference to the first possible implementation of first aspect, in second of possible implementation, the logical layer field includes stream number streamID fields or grade of service COS grade of service fields.With reference in a first aspect, in the third possible implementation, the default addition manner includes:Using high M of the field in the payload area of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8.With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation, the field in the payload area includes half-word hwordO fields the either field into hwordl27 fields.With reference in a first aspect, in the 5th kind of possible implementation, the default addition manner includes:Increase M bit lengths domain in first burst and store the length information, the M spans are 0 to 16 or 0 to 8.With reference to the first possible implementation of first aspect, or second of possible implementation of first aspect, or the third possible implementation of first aspect, or the 4th kind of possible implementation of first aspect, or the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, the length information is specially the corresponding length quantized level of length of the Data streaming messages
65536
Quantization value difference between adjacent lengths quantized level is byte.With reference to the 6th kind of possible implementation of first aspect, in the 7th kind of possible implementation, when the M positions in the length field all take 0, the length quantized level is characterized.With reference to first aspect, or the first possible implementation of first aspect, or second of possible implementation of first aspect, or the third possible implementation of first aspect, or the 4th kind of possible implementation of first aspect, or first aspect the 5th kind of possible implementation, or first aspect the 6th kind of possible implementation, or the 7th kind of possible implementation of first aspect, at the 8th kind Also include in possible implementation:Consult addition manner in advance.
With reference to first aspect, or the first possible implementation of first aspect, or second of possible implementation of first aspect, or the third possible implementation of first aspect, or first aspect the 4th kind of possible implementation, or first aspect the 5th kind of possible implementation, or the 6th kind of possible implementation of first aspect, or the 7th kind of possible implementation of first aspect, in the 9th kind of possible implementation of first aspect, in addition to:Increase addition manner field in first burst, the addition manner field is used to store used addition manner.Second aspect according to embodiments of the present invention there is provided a kind of data message processing method, including:When receiving Data streaming just blunt literary first bursts, obtained from the first burst in the length information of the Data streaming messages, the first burst and the Data streaming just blunt literary length information with the addition of using default addition manner by sender;According to the length information, determine that minimum can use Coutinuous store region on a storage medium, the minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
With reference to second aspect, in the first possible implementation, in addition to:At least two storage pools are marked off on a storage medium in advance, each storage pool includes at least one Coutinuous store region, the memory length in each Coutinuous store region is identical in same storage pool, and the memory length in the Coutinuous store region in different storage pools is differed;
It is described according to the length information, determine that minimum can be included with Coutinuous store region on a storage medium:From at least two storage pool, available Coutinuous store region of the memory length not less than the length of the Data streaming messages is selected, Coutinuous store region can be used as the minimum.
It is described according to the length information in second of possible implementation with reference to second aspect, determine that minimum can be included with Coutinuous store region on a storage medium:In the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of the Data streaming messages is reserved, Coutinuous store region can be used as the minimum.
With reference to second of possible implementation of second aspect, in the third possible implementation, it is described in the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of the Data streaming messages is reserved, can be included as the minimum with Coutinuous store region: When receiving first burst, using the Data streaming messages belonging to the first burst as current message, next message corresponding first address in the circulation Coutinuous store space is at least determined;Space interval between the corresponding first address of the current message and the blunt literary corresponding first address of next ^ is at least equal to the Data streaming just blunt literary length.
With reference to the third possible implementation of second aspect, in the 4th kind of possible implementation, it is described in the circulation Coutinuous store space of storage medium, continuous space of the length not less than the length of the Data streaming messages is reserved, can also be included with Coutinuous store region as minimum:When the blunt literary corresponding first address of next ability is located at the afterbody in the circulation Coutinuous store space, next literary corresponding first address is changed to the initial address in the circulation Coutinuous store space.
With reference to the third possible implementation of second aspect, in the 5th kind of possible implementation, in addition to:The state that the Coutinuous store region of the processed Data streaming messages finished will be stored is labeled as can use.
With reference to the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation, it is described in the circulation Coutinuous store space of storage medium, Coutinuous store region of the length not less than the length of the Data streaming messages is reserved, can also be included with Coutinuous store region as minimum:When the corresponding first address of next message is located at the afterbody in the circulation Coutinuous store space, state is labeled as to can use, and memory length is not less than the length of the Data streaming messages, and the initial address in Coutinuous store region is used as next blunt literary corresponding first address of ^.The third aspect according to embodiments of the present invention there is provided a kind of data message processing unit, including:Adding device, for the length information of Data streaming messages to be added into first burst using default addition manner, and send the first burst, so that recipient obtains length information from the first burst received, and determine that minimum can use Coutinuous store region on a storage medium according to the length information;The minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
With reference to the third aspect, in the first possible implementation, the default addition manner includes:Using high M of the logical layer field of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8. With reference to the first possible implementation of the third aspect, in second of possible implementation, the logical layer field includes stream number streamID fields or grade of service COS grade of service fields.With reference to the third aspect, in the third possible implementation, the default addition manner includes:Using high M of the field in the payload area of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8.With reference to the first possible implementation of the third aspect, in the 4th kind of possible implementation, the field in the payload area includes half-word hwordO fields the either field into hwordl27 fields.With reference to the third aspect, in the 5th kind of possible implementation, the default addition manner includes:Increase M bit lengths domain in first burst and store the length information, the M spans are 0 to 16 or 0 to 8.With reference to the first possible implementation of the third aspect, or second of possible implementation of the third aspect, or the third possible implementation of the third aspect, or the 4th kind of possible implementation of the third aspect, or the 5th kind of possible implementation of the third aspect, in the 6th kind of possible implementation, the length information is specially the corresponding length quantized level of length of the Data streaming messages
65536
Quantization value difference between adjacent lengths quantized level is byte.With reference to the 6th kind of possible implementation of the third aspect, in the 7th kind of possible implementation, when the M positions in the length field all take 0, the length quantized level is characterized.With reference to the third aspect, or the first possible implementation of the third aspect, or second of possible implementation of the third aspect, or the third possible implementation of the third aspect, or the third aspect the 4th kind of possible implementation, or the third aspect the 5th kind of possible implementation, or the 6th kind of possible implementation of the third aspect, or the 7th kind of possible implementation of the third aspect, in the 8th kind of possible implementation, in addition to:Negotiation element, for consulting addition manner in advance.With reference to the third aspect, or the first possible implementation of the third aspect, or second of possible implementation of the third aspect, or the third possible implementation of the third aspect, or the 4th kind of possible implementation of the third aspect, or the 5th kind of possible implementation of the third aspect, or the 6th kind of possible implementation of the third aspect, or the 7th kind of possible implementation of the third aspect, in the 9th kind of possible implementation of the third aspect, the adding device is additionally operable to, and increases addition in first burst Mode field, the addition manner field is used to store used addition manner.Fourth aspect according to embodiments of the present invention, a kind of data message processing unit is provided, including CPU and memory, software program and call the data being stored in the memory that the CPU is stored in the memory by running at least perform following steps:
The length information of Data streaming messages is added to by first burst using default addition manner, and send the first burst, so that recipient obtains length information from the first burst received, and determine that minimum can use Coutinuous store region on a storage medium according to the length information;
The minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
With reference to fourth aspect, in the first possible implementation, the default addition manner includes:Using high M of the logical layer field of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8.
With reference to the first possible implementation of fourth aspect, in second of possible implementation, the logical layer field includes stream number streamID fields or grade of service COS grade of service fields.
With reference to fourth aspect, in the third possible implementation, the default addition manner includes:Using high M of the field in the payload area of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8.
With reference to the first possible implementation of fourth aspect, in the 4th kind of possible implementation, the field in the payload area includes half-word hwordO fields the either field into hwordl27 fields.
With reference to fourth aspect, in the 5th kind of possible implementation, the default addition manner includes:Increase M bit lengths domain in first burst and store the length information, the M spans are 0 to 16 or 0 to 8.
With reference to the first possible implementation of fourth aspect, or second of possible implementation of fourth aspect, or the third possible implementation of fourth aspect, or the 4th kind of possible implementation of fourth aspect, or the 5th kind of possible implementation of fourth aspect, in the 6th kind of possible implementation, the length information is specially the corresponding length quantized level of length of the Data streaming messages 65536
Quantization value difference between adjacent lengths quantized level is 7 bytes.With reference to the 6th kind of possible implementation of fourth aspect, in the 7th kind of possible implementation, when the M positions in the length field all take 0, the length quantized level is characterized.With reference to fourth aspect, or the first possible implementation of fourth aspect, or second of possible implementation of fourth aspect, or the third possible implementation of fourth aspect, or fourth aspect the 4th kind of possible implementation, or fourth aspect the 5th kind of possible implementation, or the 6th kind of possible implementation of fourth aspect, or the 7th kind of possible implementation of fourth aspect, in the 8th kind of possible implementation, also execute the following steps:Consult addition manner in advance.With reference to fourth aspect, or the first possible implementation of fourth aspect, or second of possible implementation of fourth aspect, or the third possible implementation of fourth aspect, or the 4th kind of possible implementation of fourth aspect, or the 5th kind of possible implementation of fourth aspect, or the 6th kind of possible implementation of fourth aspect, or the 7th kind of possible implementation of fourth aspect, in the 9th kind of possible implementation of fourth aspect, also execute the following steps:Consult addition manner in advance.5th aspect according to embodiments of the present invention at least includes there is provided a kind of data message processing unit:Receiving module, for when receiving the first burst of Data streaming messages, obtained from the first burst in the length information of the Data streaming messages, the first burst and the power mouthful Data streaming just blunt literary length informations to be added using the default power of adding mouthful mode by sender;Management module, for according to the length information, determining that minimum can use Coutinuous store region on a storage medium, the minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
With reference to the 5th aspect, in the first possible implementation, the management module is additionally operable to, at least two storage pools are marked off on a storage medium in advance, each storage pool includes at least one Coutinuous store region, the memory length in each Coutinuous store region is identical in same storage pool, and the memory length in the Coutinuous store region in different storage pools is differed;It is described according to the length information, determine that minimum can be included with Coutinuous store region on a storage medium: From at least two storage pool, available Coutinuous store region of the memory length not less than the length of the Data streaming messages is selected, Coutinuous store region can be used as the minimum.It is described according to the length information in second of possible implementation with reference to the 5th aspect, determine that minimum can be included with Coutinuous store region on a storage medium:In the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of the Data streaming messages is reserved, Coutinuous store region can be used as the minimum.With reference to second of possible implementation of the 5th aspect, in the third possible implementation, it is described in the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of the Data streaming messages is reserved, can be included as the minimum with Coutinuous store region:When receiving first burst, using the Data streaming messages belonging to the first burst as current message, next message corresponding first address in the circulation Coutinuous store space is at least determined;Space interval between the corresponding first address of the current message and the blunt literary corresponding first address of next ^ is at least equal to the Data streaming just blunt literary length.With reference to the third possible implementation of the 5th aspect, in the 4th kind of possible implementation, it is described in the circulation Coutinuous store space of storage medium, continuous space of the length not less than the length of the Data streaming messages is reserved, can also be included with Coutinuous store region as minimum:When the blunt literary corresponding first address of next ability is located at the afterbody in the circulation Coutinuous store space, next literary corresponding first address is changed to the initial address in the circulation Coutinuous store space.With reference to the third possible implementation of the 5th aspect, in the 5th kind of possible implementation, in addition to:Unit is marked, the state for the Coutinuous store region by the processed Data streaming messages finished are stored is labeled as can use.With reference to the 5th kind of possible implementation of the 5th aspect, in the 6th kind of possible implementation, it is described in the circulation Coutinuous store space of storage medium, Coutinuous store region of the length not less than the length of the Data streaming messages is reserved, can also be included with Coutinuous store region as minimum:When the corresponding first address of next message is located at the afterbody in the circulation Coutinuous store space, state is labeled as to can use, and memory length is not less than the length of the Data streaming messages, and the initial address in Coutinuous store region is used as next blunt literary corresponding first address of ^.There is provided a kind of data message processing unit, including CPU for 6th aspect according to embodiments of the present invention And memory, software program and call the data being stored in the memory that the CPU is stored in the memory by running, at least perform following steps:
When receiving Data streaming just blunt literary first bursts, obtained from the first burst in the length information of the Data streaming messages, the first burst and the Data streaming just blunt literary length information with the addition of using default addition manner by sender;According to the length information, determine that minimum can use Coutinuous store region on a storage medium, the minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.With reference to the 6th aspect, in the first possible implementation, also execute the following steps:At least two storage pools are marked off on a storage medium in advance, each storage pool includes at least one Coutinuous store region, the memory length in each Coutinuous store region is identical in same storage pool, and the memory length in the Coutinuous store region in different storage pools is differed;It is described according to the length information, determine that minimum can be included with Coutinuous store region on a storage medium:
From at least two storage pool, available Coutinuous store region of the memory length not less than the length of the Data streaming messages is selected, Coutinuous store region can be used as the minimum.It is described according to the length information in second of possible implementation with reference to the 6th aspect, determine that minimum can be included with Coutinuous store region on a storage medium:In the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of the Data streaming messages is reserved, Coutinuous store region can be used as the minimum.With reference to second of possible implementation of the 6th aspect, in the third possible implementation, it is described in the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of the Data streaming messages is reserved, can be included as the minimum with Coutinuous store region:When receiving first burst, using the Data streaming messages belonging to the first burst as current message, next message corresponding first address in the circulation Coutinuous store space is at least determined;Space interval between the corresponding first address of the current message and the blunt literary corresponding first address of next ^ is at least equal to the Data streaming just blunt literary length..With reference to the third possible implementation of the 6th aspect, in the 4th kind of possible implementation, It is described in the circulation Coutinuous store space of storage medium, reserve length not less than the Data streaming messages length continuous space, can also be included with Coutinuous store region as minimum:When the blunt literary corresponding first address of next ability is located at the afterbody in the circulation Coutinuous store space, next literary corresponding first address is changed to the initial address in the circulation Coutinuous store space.With reference to the third possible implementation of the 6th aspect, in the 5th kind of possible implementation, also execute the following steps:The state that the Coutinuous store region of the processed Data streaming messages finished will be stored is labeled as can use.With reference to the 5th kind of possible implementation of the 6th aspect, in the 6th kind of possible implementation, it is described in the circulation Coutinuous store space of storage medium, Coutinuous store region of the length not less than the length of the Data streaming messages is reserved, can also be included with Coutinuous store region as minimum:When the corresponding first address of next message is located at the afterbody in the circulation Coutinuous store space, state is labeled as to can use, and memory length is not less than the length of the Data streaming messages, and the initial address in Coutinuous store region is used as next blunt literary corresponding first address of ^.7th aspect according to embodiments of the present invention, a kind of data message processing system is provided, at least include the data message processing unit as described in the 9th kind of possible any one of implementation of the third aspect to the third aspect, and, in terms of the 5th to the data message processing unit as described in the 6th kind of possible any one of implementation in terms of the 5th.Eighth aspect according to embodiments of the present invention, at least include the data message processing unit as described in the 9th kind of possible any one of implementation of fourth aspect to fourth aspect, and, in terms of the 6th to the data message processing unit as described in the 6th kind of possible any one of implementation in terms of the 6th.It can be seen that, in embodiments of the present invention, the length of Data streaming messages is added in first burst, this causes recipient receiving first burst(I.e. first burst) when can obtain the length of Data streaming messages, so as to determine that minimum can use Coutinuous store region on a storage medium according to the length information.And without as prior art, Coutinuous store region stored messages are distributed by maximum length, so as to save storage resource, it is to avoid storage resource waste.Brief description of the drawings in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to reality The accompanying drawing used required for applying in example or description of the prior art is briefly described, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.Fig. 1 is the interaction schematic diagram of sender provided in an embodiment of the present invention and recipient;
Fig. 3 is payload area field occupancy schematic diagram in first burst provided in an embodiment of the present invention;Fig. 4 adds length information field schematic diagram to be provided in an embodiment of the present invention in first burst;Fig. 5 is data message processing method flow chart provided in an embodiment of the present invention;
Fig. 6 is another flow chart of data message processing method provided in an embodiment of the present invention;
Figure is provided in an embodiment of the present invention to store the schematic diagram of Data streaming messages using Coutinuous store space is circulated;
Fig. 8 is data message processing device structure diagram provided in an embodiment of the present invention;
Fig. 9 is another structural representation of data message processing unit provided in an embodiment of the present invention;Figure 10 is the another structural representation of data message processing unit provided in an embodiment of the present invention;Figure 11 is the another structural representation of data message processing unit provided in an embodiment of the present invention;Figure 12 is the another structural representation of data message processing unit provided in an embodiment of the present invention;Figure 13 is the another structural representation of data message processing unit provided in an embodiment of the present invention.
Embodiment the technical term that hereinafter uses, is write a Chinese character in simplified form or summary of abridging is explained as follows for the sake of quoting and understanding:
Cos:Class of service, the grade of service;
SrcID:Source device ID, source device ID;
destID:Destination device ID, purpose equipment ID;
VC:Virtual channel, tunnel; CRF:Critical request flow, important request stream;
Buffer:Slow rushes area;
DDR SDRAM:Double Data Rate Synchronous Dynamic Random Access Memory, Double Data Rate synchronous DRAM;
SRAM:Static RAM, SRAM;
FLASH:Flash memory;
SSD:Solid State Disk, solid state hard disc; Hword:Half-word.Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
RapidIO (rapidly inputs output)Technology is a kind of high-performance, low pin count, the interconnection architecture based on packet-switching, is to meet a kind of open system interconnection technical standard that high performance embedded system demand is designed.RapidIO is mainly used in embedded system intraconnection, supports chip to chip, plate to the communication between plate, can as embedded device backboard(Backplane) connect.
Several transmission modes defined in RapidIO agreements, Data streaming patterns are one.In Data streaming patterns, the maximum length that Data streaming messages are supported is 64KB.In transmission, it is transmitted according to 256B burst granularity.During the present invention is researched and developed, inventor has found, message receiving side can receive the data that multiple devices are sent.Due in RapidIO agreements, the length of Data streaming messages is defined in last burst, this causes recipient receiving first burst(I.e. first burst)When can not also obtain Data streaming just blunt literary length.Due to Data streaming, just blunt literary length can use 1 64 Κ Β again, and therefore, recipient typically just presses maximum length(Namely 64KB) distribution Coutinuous store region stored messages.So, even if major part Data streaming messages very littles, recipient is also required to distribute many 64KB Coutinuous store region, causes the waste of storage resource. To solve the above problems, the embodiment of the present invention provides a kind of data message processing method, the executive agent of this method is sender, and it at least comprises the following steps:
The length information of Data streaming messages is added to by first burst using default addition manner, and sends first burst.So that recipient obtains length information from the first burst received, and determine that minimum can use Coutinuous store region on a storage medium according to length information;Above-mentioned minimum can be used to deposit 4 all Data streaming just blunt texts with Coutinuous store region.That is, referring to Fig. 1, the interaction of sender and recipient are as follows:
The length information of Data streaming messages is added to first burst using default addition manner, and sends first burst by S 1, sender.
S2, recipient obtain length information from the first burst received, and determine that minimum can use Coutinuous store region on a storage medium according to length information.
Above-mentioned length information reflects the length of Data streaming messages.In embodiments of the present invention, the length information of Data streaming messages is added in first burst, this causes recipient receiving first burst(I.e. first burst) when can obtain the length information of Data streaming messages, so as to determine that minimum can use Coutinuous store region on a storage medium according to the length information.And without as prior art, by the length allocation Coutinuous store region stored messages of maximum possible, so as to save storage resource, it is to avoid storage resource waste.The mode of addition length information has a variety of, will be introduced one by one below.
One, the logical layer field of the first burst of multiplexing stores the length information of Data streaming messages as length field.
In other words, can be using high M of logical layer field or low M is used as length field to store above-mentioned length information.
The logical layer field of above-mentioned first burst may include streamID (stream number) fields or COS grade of service fields.By taking streamID fields as an example, first burst shown in Figure 2, the dash area in Fig. 2 is streamID fields, in the first burst shown in Fig. 2, occupies high M of streamID fields as length(Length) domain, remaining bit can make other purposes, such as represent passage.
The above-mentioned a length of 8bit of COS field bits, streamID bit lengths are then 16bit.Therefore, such as multiplexing COS Field, can at most take 8 as length field, and such as be multiplexed streamlD fields, can at most take 16 as length field.That is, M spans are 0 to 16 or 0 to 8.It is limited in view of the position that can take, the length value between 0-64KB can be quantified as to a grade, phase
65536
Quantization value difference between adjacent two quantized levels is ^ " bytes(The byte of 64KB=65536).By taking M=8 as an example, then the quantization value difference between adjacent two quantized level is65536/28 = 256Byte(byte ).And such as taking M=16, then the quantization value difference between adjacent two quantized level is65536/216 = 1byte.The value of any one in above-mentioned M can be 0 or 1.And the different valued combinations in M positions in length field, different length quantized levels can be corresponded to.Still with M=8Exemplified by, " 00000000, it is 256 different valued combinations to " 11111111 ", 256 length quantized levels can be corresponded to.Therefore, the corresponding length quantized level of physical length of the concretely Data streaming messages of the length information in above-mentioned all embodiments.In the specific implementation, the 1st length quantized level of " 00000000 " correspondence can be made, the length of expression Data streaming messages is between 0 between 256byte, make the 2nd length quantized level of " 00000001 " correspondence, represent the length of Data streaming messages between 257 between 512byte, by that analogy;Or, it can also make " 00000001 " extremely " 11111111 " to correspond to the 1st to the 255th length quantized level respectively, and M positions in length field are when all taking 0 (namely taking 00000000), sign the2MIndividual length quantized level (namely the 256th length quantized level).Two, the payload area of the first burst of multiplexing(Payload field) stores the blunt literary length informations of Data streaming 4 as length field.Payload area includes hwordO fields to hwordl27 fields.Either field of the reusable hwordO fields into hwordl27 fields stores the length information of Data streaming messages as length field.For example, with reference to the first burst shown in Fig. 3, that is, it is multiplexed hword2 fields and is used as length field.In other words, can using hwordO fields high M into hwordl27 either fields or low M be used as length(Length) domain, remaining bit can make other purposes, such as storage payload data.The length of hwordO fields either field into hwordl27 fields is 16bit, therefore, and M value is 0 to 16.Mode with multiplexing logical layer field is similar, it is contemplated that the position that can be taken is limited, can be by 0-64KB
Length value between 65536 is quantified as2MQuantization value difference between individual grade, adjacent two quantized level is the byte (byte of 64KB=65536).Particular content can be found in record described previously herein, not stated herein as Redundant. Three, increase the length information that Μ bit lengths domain stores Data streaming messages in first burst.The installation position of length information field can carry out flexible design as needed by those skilled in the art, for example, referring to Fig. 4, length information field can be located at before hwordO fields, and certainly, length information field can also be located at after crc field, etc., do not stated herein as Redundant.Mode with multiplexing logical layer field is similar, it is contemplated that the position that can be taken is limited, can be by 0-64KB
Length value between 65536 is quantified as2MQuantization value difference between individual grade, adjacent two quantized level is 7 bytes
(the byte of 64 Κ Β=65536).Particular content can be found in record described previously herein, not stated herein as Redundant.It should be noted that the form of the mode of multiplexing field and unmodified first burst, and the mode for adding length information field then have modified the form of first burst, and the head of the first bursts of Data Streaming is extended.It is hereinbefore to describe three kinds of addition manners in the lump, it is rapid at this in order to which which kind of addition manner clearly used:Consult addition manner in advance.Or, it can also increase addition manner field in first burst, the field is used to store used addition manner.Or a certain field in the first burst of multiplexing is as addition manner field, power mouthful mode is added with what storage was used.For example, representing the logical layer field of the first burst of multiplexing with " 00 ", the field in the payload area of the first burst of multiplexing is represented with " 01 ", increase M bit lengths domain etc. is represented with " 10 ".Or, when dispatching from the factory, that is, set only with one of which addition manner, thus without consulting addition manner, without by addition manner field.It is following using recipient as executive agent to continue that the embodiment of the present invention is introduced after sender has been introduced.Referring to Fig. 5, for sender, the step performed by it is at least as follows:
S51, when receiving the first burst of Data streaming messages, Data streaming just blunt literary length information is obtained from first burst.Wherein, it with the addition of the length information of Data streaming messages in first burst using default addition manner by sender.Record described previously herein is referred on contents such as addition manner, length informations, herein not Repeat.
S52, according to length information, determine that minimum can use Coutinuous store region on a storage medium.
Minimum can be used for all bursts for storing Data streaming messages with Coutinuous store region.
How to determine that minimum there can be various ways with Coutinuous store region on a storage medium, two ways will be introduced herein.Mode one:
Mark off at least two storage pools on a storage medium in advance, each storage pool includes at least one Coutinuous store region(Slow deposits area), the memory length in each Coutinuous store region is identical in same storage pool, and the memory length in the Coutinuous store region in different storage pools is differed.And above-mentioned " according to length information, determine that minimum " can be may particularly include with Coutinuous store region on a storage medium:
From at least two storage pools, available Coutinuous store region of the memory length not less than the length of Data streaming messages is selected, Coutinuous store region can be used as minimum.
For example, 1KB storage pools, 4KB storage pools, 16KB storage pools, 64KB storage pools can be marked off, wherein, be in 1KB storage pools be 4KB in 1KB buffer, 4KB storage pools buffer, by that analogy.It is assumed that the length of Data streaming messages is 2KB, then can optionally can use buffer as minimum can use Coutinuous store region from 4KB storage pools, 16KB storage pools, 64KB storage pools.Buffer in the problem of being wasted in view of storage resource, prioritizing selection 4KB storage pools.When the buffer in 4KB storage pools is exhausted, the buffer in reselection 16KB storage pools.
Therefore, in other embodiments of the present invention, it is above-mentioned " from least two storage pools, to select available Coutinuous store region of the memory length not less than the length of Data streaming messages, " can be further refined as with Coutinuous store region as minimum:
From at least two storage pools, available buffer of the memory length not less than the length of Data streaming messages is selected as candidate buffer;The minimum buffer of memory length is selected from candidate buffer as minimum can use Coutinuous store region. For individual more specifically example, referring to Fig. 6, above-mentioned recipient may include receiving module, management module and storage medium( memory ).Certainly, storage medium (memory) is independently of outside recipient.Storage medium (memory) concretely DDR SDRAM, SRAM, FLASH, SSD.Storage medium is used for stored messages.Management module will be used to receive the buffer of message in storage medium, and several storage pools are divided into by size, for example, are divided into 1KB storage pools, 4KB storage pools, 16KB storage pools, 64KB storage pools.The workflow of above-mentioned a few modules is as follows:
S61, receiving module receive Data streaming messages from RapidIO interfaces;
562nd, receiving module parses its length information when receiving the first burst of certain Data streaming message;
563rd, receiving module is to management module application buffer, and provides length information;
564th, management module exports a buffer pointer minimum and not less than the Data streaming message lengths(First address);That is, management module, which distributes minimum, as minimum the Data streaming messages can be stored with Coutinuous store region with buffer.For example, the buffer first address such as message length less than or equal to 1KB, then output 1KB;If message length is more than 1KB and less than or equal to 4KB, 4KB buffer is exported;If message length is more than 4KB and less than or equal to 16KB, 16KB buffer is exported;If message length is more than 16KB, 64KB buffer is exported.
565th, receiving module can use the minimum of all bursts storage of the Data streaming messages of reception to application in buffer.More specifically, in the present invention, when receiving non-first burst, non-first burst is stored to the minimum for storing the affiliated Data streaming messages of non-first burst can use Coutinuous store region.It should be noted that due in mode one, N number of storage pool has been marked off in advance, in the case, referring to that length quantized level can be also improved therewith before.Described in embodiment before, the length value between 0-64KB can be quantified as to a grade,
65536
Quantization value difference between adjacent two quantized level is ^ " bytes(The byte of 64KB=65536).And in the present embodiment In, the length value between 0-64KB can be quantified as to N number of grade, N is equal with the number of storage pool.For example, 1 KB storage pools, 4KB storage pools, 16KB storage pools and 64KB storage pools are such as marked off, then the length value between 0-64KB is quantified as 4 grades:
Grade 1, message length is less than or equal to 1KB;
Grade 2, message length is more than 1KB and less than or equal to 4KB;Grade 3, message length is more than 4KB and less than or equal to 16KB;Class 4, message length is more than 16KB.
So, as long as taking 2bit can represent that 4 grades carry out transmission length information.
Further, in other embodiments of the present invention, it may also include the steps of:
It is available to the buffer mark states for storing the processed Data streaming messages finished.
So, it can specify that the message in which buffer is processed to be finished, the message in which buffer is also untreated to be finished, management module is in distribution, distribution state is labeled as available buffer, to prevent untreated complete message from being covered by new message.Mode two:
Data streaming messages are stored using the sufficiently large circulation Coutinuous store space of memory capacity.
When implementing, the memory capacity in circulation Coutinuous store space can be not less than 64KB.
Or, the memory capacity in circulation Coutinuous store space can be calculated by following formula:
The ^ of ([At x S/64+l) x 64 wherein, represent to read the maximum time interval of processing twice(Unit can be the second), S represents flow(Unit can be KB/ seconds), "] represents to round up.It is above-mentioned based on above-mentioned Coutinuous store region " according to length information, to determine that minimum " be may particularly include with Coutinuous store region on a storage medium:
In the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of Data streaming messages is reserved, Coutinuous store region can be used as minimum.
And further, " in the circulation Coutinuous store space of storage medium, reserving Coutinuous store region of the memory length not less than the length of Data streaming messages, Coutinuous store region can be used as minimum " Specific implementation can be:
When receiving first burst, by the Data streaming messages belonging to first burst, as current message, next message corresponding first address in circulation Coutinuous store region is at least determined.
Length of the space interval at least equal to current message of current just blunt literary corresponding first address and the blunt literary corresponding first address of next.Refer to Fig. 7, the sufficiently large circulation buffer of a memory length can be distributed as circulation Coutinuous store space to store all Data streaming messages, after the first burst of Data streaming messages is received, parsing reserves the space of reception, and the reception initial address of message next time is moved rearwards by into the length of current message.Its idiographic flow is as follows:
(1), management module distributes a circulation buffer, and buffer initial address and length are allocated into receiving module;
(2), receiving module calculates the reception initial address of next message after the first burst of Data streaming messages is received(Namely first address).Currently the Coutinuous store region between the blunt literary corresponding first address of ^ and the blunt literary corresponding first address of next ^ is that minimum can use Coutinuous store region.Reason for this is that, the burst of different Data streaming messages is probably to interleave what is received, therefore to calculate the first address of next message, in case the burst of next message covers the burst of current message.
(3), receiving module can use all bursts storage of the Data streaming messages of reception in Coutinuous store region to minimum.Or, also the length information of Data streaming messages can be supplied to management module by receiving module, the reception initial address of next message is calculated by management module(Namely first address)And export to receiving module, receiving module and then all bursts of the Data streaming messages of reception are stored to minimum and can used in Coutinuous store region.It should be noted that receiving module is received after non-first burst, just can backward it be deposited with Coutinuous store region relaying is continuous in the minimum applied;If first burst, then according to step(2) first address of the next message of calculating is continued. Need further exist for explanation be, it is assumed that receiving Data streaming messages A first burst, it then can determine whether the first address of next message, when Data streaming messages B first burst is received, the first address of before identified next message, you can be used as Data streaming messages B first address.Therefore, in the present embodiment, it is general and the first address of current message need not be calculated, it is only necessary to first address of the first address for next message that the last time is determined as current message.Unless following situations will can determine whether the first address of current text:In real process, the first address that can run into the next message calculated reaches the situation of buffer afterbodys.Afterwards, a certain Data streaming just blunt literary first bursts are received again, and during using the Data streaming messages as current message, because the first address of the last next message determined has reached buffer afterbodys, therefore, the first address of current message is changed to buffer initial address, afterwards, then next literary first address is determined.In this way, starting anew, circulate always.Or it is also possible that:When the corresponding first address of next message is located at the afterbody in circulation Coutinuous store space, next literary corresponding first address is changed to circulate to the initial address in Coutinuous store space.Afterwards, then when receiving first burst, so that it may first burst is directly stored into the head to circulation Coutinuous store space.Or, in other embodiments of the present invention, it may also include the steps of:The state that the Coutinuous store region of the processed Data streaming messages finished will be stored is labeled as can use.So, it can specify that the message in which Coutinuous store region is processed to be finished, message in which Coutinuous store region is also untreated to be finished, when the corresponding first address of next message is located at the afterbody in Coutinuous store region, state can be labeled as can use, and memory length is used as the corresponding first address of next message not less than the initial address in the Coutinuous store region of the length of Data streaming messages.
It is corresponding with method, data message processing unit also to be provided of the embodiment of the present invention.Foregoing to refer to, the executive agent of data message processing method is sender or recipient.Here also divide sender and recipient that data message process device is introduced.When as sender, referring to Fig. 8, data message processing unit 800 at least may include:Adding device 81, for using default addition manner by the length information of Data streaming messages Added to first burst, and first burst is sent, so that recipient obtains length information from the first burst received, and determine that minimum can use Coutinuous store region on a storage medium according to length information.
The related introduction of default addition manner refers to the introduction of method described previously herein, is not stated herein as Redundant.In other embodiments of the present invention, referring to Fig. 9, above-mentioned data message processing unit may also include negotiation element 82, for consulting addition manner in advance.
Referring to Figure 10, above-mentioned data message processing unit 800 may include CPU101 and memory 102 on hardware.Wherein, CPU101 is stored in memory 102 by running software program 103 and call the data being stored in memory 102, at least can perform following steps:
The length information of Data streaming messages is added to by first burst using default addition manner, and sends first burst.The related introduction of default addition manner refers to the introduction of method described previously herein, is not stated herein as Redundant.Above-mentioned memory concretely DDR SDRAM, SRAM, FLASH, SSD etc., it mainly includes program storage area and data storage area, wherein, the application program that program storage area can be needed for storage program area, and at least one function(Such as above-mentioned software program 103);Data storage area can store the data finally produced according to CPU implementation status, as intermediate data of the CPU produced by above-mentioned steps are performed, then be stored in internal memory.
It should be noted that CPU101 and memory 102 can be integrated in same chip, or two independent devices.When as the side of picking, referring to Figure 11, data message processing unit 110 at least may include:Receiving module 111, for when receiving the first burst of Data streaming messages, power mouthful Data streaming just blunt literary length informations are added using default addition manner by sender in the length information of acquisition Data streaming messages, first burst from first burst;Management module 112, for according to length information, determining that minimum can use Coutinuous store region on a storage medium.The minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
How to determine that minimum there can be various ways with Coutinuous store region on a storage medium.Two ways will be introduced herein. Mode one:
Management module 112 marks off at least two storage pools on a storage medium in advance, each storage pool includes at least one Coutinuous store region, the memory length in each Coutinuous store region is identical in same storage pool, and the memory length in the Coutinuous store region in different storage pools is differed.
For example, 1KB storage pools, 4KB storage pools, 16KB storage pools, 64KB storage pools can be marked off, wherein, be in 1KB storage pools be 4KB in 1KB buffer, 4KB storage pools buffer, by that analogy.And above-mentioned " according to the length information, determine that minimum " can be included with Coutinuous store region on a storage medium:
From at least two storage pools, available Coutinuous store region of the memory length not less than the length of Data streaming messages is selected, Coutinuous store region can be used as minimum.
Detail can be found in record described previously herein, not stated herein as Redundant.Mode two:
In the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of Data streaming messages is reserved, Coutinuous store region can be used as minimum.
Detail can be found in record described previously herein, not stated herein as Redundant.
When introducing recipient, once referred to that it may include negotiation element 82, for consulting addition manner in advance.Correspond, in other embodiments of the present invention, may also comprise above-mentioned negotiation element 82 as the data message processing unit 110 for the side of picking, be used for and sender(Negotiation element)Consult addition manner.
Referring to Figure 12, above-mentioned communicator 110 may include CPU121 and memory 122 on hardware.Wherein, CPU121 is stored in memory 122 by running software program 123 and call the data being stored in memory 122, at least can perform following steps:When receiving Data streaming just blunt literary first bursts, the length information of Data streaming messages is obtained from first burst.Wherein, it with the addition of the length information of Data streaming messages in first burst using default addition manner by sender.Record described previously herein is referred on contents such as addition manner, length informations, is not stated herein as Redundant.According to length information, determine that minimum can use Coutinuous store region on a storage medium.Minimum is available Coutinuous store region is used for all bursts for storing Data streaming messages.How to determine that minimum there can be various ways with Coutinuous store region on a storage medium, detail refers to record described previously herein, do not stated herein as Redundant.
Similarly, CPU121 and memory 122 can be integrated in same chip, or two independent devices.In addition, in other embodiments of the present invention, software program 123 and call the data being stored in memory 122 to can also carry out following steps that above-mentioned CPU121 is stored in memory 122 by running:The state that the Coutinuous store region of the processed Data streaming messages finished will be stored is labeled as can use.So, when the corresponding first address of next message is located at the afterbody in circulation Coutinuous store space, state can be labeled as can use, and memory length, not less than the length of Data streaming messages, the initial address in Coutinuous store region is used as the corresponding first address of next message.It should be noted that data message processing unit can be chip, embedded device.In actual applications, chip, embedded device are in some cases as sender, in some cases then as recipient.Therefore, referring to Figure 13, actual data message processing unit at least may include:Adding device 81, receiving module 111 and management module 112.In addition, it may further comprise negotiation element 82.Or, from the perspective of from the angle of hardware, when as sender, software program and call the data being stored in memory that the CPU of actual data message processing unit is stored in memory by running, it can perform the correlation step that foregoing sender can perform, and during as recipient, then can perform the correlation step that recipient described previously herein can perform.It is corresponding with the above method and device, in other embodiments of the present invention, data message processing system is also claimed(Namely foregoing embedded system).Above-mentioned communication system includes at least two data message processing units.The structure of data message processing unit can be found in record described previously herein, not stated herein as Redundant.The embodiment of each in this specification is described by the way of progressive, what each embodiment was stressed be between the difference with other embodiment, each embodiment identical similar portion mutually referring to. For the device that embodiment is provided, because it is corresponding with the method that embodiment is provided, so description is fairly simple, related part is referring to method part illustration.It can further be stated that, herein, such as first and second or the like relational terms are used merely to make a distinction an entity or operation with another entity or operation, and not necessarily require or imply between these entities or operation there is any this actual relation or order.And, term " including ", " including " or any other variant thereof is intended to cover non-exclusive inclusion, so that process, method, article or equipment including a series of key elements not only include those key elements, but also other key elements including being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence " including one ... ", it is not excluded that also there is other identical element in the process including the key element, method, article or equipment.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can add the mode of required common hardware to realize by software, common hardware includes universal integrated circuit, universal cpu, general-purpose storage, universal elements etc., can certainly include application specific integrated circuit, dedicated cpu, private memory, special components and parts etc. realize by specialized hardware, but it is blunt it is many in the case of the former be more preferably embodiment.Understood based on such, the part that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, the computer software product can be stored in the storage medium that can be read, such as u disks, mobile memory medium, read-only storage(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), the various media of software program code, including some instructions of can storing such as magnetic disc or CD are to cause a computer equipment(Can be personal computer, server, or network equipment etc.)The method for performing each embodiment of the invention.To the described above of the embodiment provided, professional and technical personnel in the field are enable to realize or using the present invention.A variety of modifications to these embodiments be will be apparent for those skilled in the art, and generic principles defined herein can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention is not intended to be limited to the embodiments shown herein, and is to fit to the most wide scope consistent with features of novelty with principle provided in this article.

Claims (48)

  1. Claims
    1st, a kind of data message processing method, it is characterised in that including:
    The length information of Data streaming messages is added to by first burst using default addition manner, and send the first burst, so that recipient obtains length information from the first burst received, and determine that minimum can use Coutinuous store region on a storage medium according to the length information;
    The minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
    2nd, the method as described in claim 1, it is characterised in that the default addition manner includes:Using high M of the logical layer field of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8.
    3rd, method as claimed in claim 2, it is characterised in that:The logical layer field includes stream number streamID fields or grade of service COS grade of service fields.
    4th, the method as described in claim 1, it is characterised in that:The default addition manner includes:Using high M of the field in the payload area of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8.
    5th, method as claimed in claim 4, it is characterised in that:
    The field in the payload area includes half-word hwordO fields the either field into hwordl27 fields.
    6th, the method as described in claim 1, it is characterised in that the default addition manner includes: Increase M bit lengths domain in first burst and store the length information, the M spans are 0 to 16 or 0 to 8.
    7th, the method as described in any one of claim 2-6, it is characterised in that:The length information is specially the corresponding length quantized level of length of the Data streaming messages,
    65536
    Quantization value difference between adjacent lengths quantized level is 7 bytes.
    8th, method as claimed in claim 7, it is characterised in that when the M positions in the length field all take 0, characterize the length quantized level.
    9th, the method as described in any one of claim 1-8, it is characterised in that also include:Consult addition manner in advance.
    10th, the method as described in any one of claim 1-8, it is characterised in that also include:Increase addition manner field in first burst, what the addition manner field was used for storing adds power mouthful mode.
    11st, a kind of data message processing method, it is characterised in that including:When receiving Data streaming just blunt literary first bursts, obtained from the first burst in the length information of the Data streaming messages, the first burst and the Data streaming just blunt literary length information with the addition of using default addition manner by sender;According to the length information, determine that minimum can use Coutinuous store region on a storage medium, the minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region. 12nd, method as claimed in claim 11, it is characterised in that:
    Methods described also includes:Mark off at least two storage pools on a storage medium in advance, each storage pool includes the memory length phase in each Coutinuous store region at least one Coutinuous store region, same storage pool
    It is described according to the length information, determine that minimum can be with Coutinuous store region bag from least two storage pool on a storage medium, available Coutinuous store region of the memory length not less than the length of the Data streaming messages is selected, Coutinuous store region can be used as the minimum.
    13rd, method as claimed in claim 11, it is characterised in that:
    It is described according to the length information, determine that minimum can be included with Coutinuous store region on a storage medium:
    In the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of the Data streaming messages is reserved, Coutinuous store region can be used as the minimum.
    14th, method as claimed in claim 13, it is characterised in that:
    It is described in the circulation Coutinuous store space of storage medium, reserve memory length not less than the Data streaming messages length Coutinuous store region, can be included as the minimum with Coutinuous store region:
    When receiving first burst, using the Data streaming messages belonging to the first burst as current message, next message corresponding first address in the circulation Coutinuous store space is at least determined;
    Space interval between the blunt literary corresponding first address of current ^ and the blunt literary corresponding first address of next ^ is at least equal to the blunt literary length of the Data streaming.
    15th, method as claimed in claim 14, it is characterised in that described in the circulation Coutinuous store space of storage medium, reserves continuous space of the length not less than the length of the Data streaming messages, Can also it be included with Coutinuous store region as minimum:
    When the corresponding first address of next message is located at the afterbody in the circulation Coutinuous store space, the blunt literary corresponding first address of next ability is changed to the initial address in the circulation Coutinuous store space.
    16th, method as claimed in claim 14, it is characterised in that also include:The state that the Coutinuous store region of the processed Data streaming messages finished will be stored is labeled as can use.
    17th, method as claimed in claim 16, it is characterized in that, it is described in the circulation Coutinuous store space of storage medium, reserve length not less than the Data streaming messages length Coutinuous store region, can also be included with Coutinuous store region as minimum:
    When the corresponding first address of next message is located at the afterbody in the circulation Coutinuous store space, state is labeled as to can use, and memory length is not less than the length of the Data streaming messages, the initial address in Coutinuous store region is used as the corresponding first address of the next message.
    18th, a kind of data message processing unit, it is characterised in that including:Adding device, for the length information of Data streaming messages to be added into first burst using default addition manner, and send the first burst, so that recipient obtains length information from the first burst received, and determine that minimum can use Coutinuous store region on a storage medium according to the length information;The minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
    19th, device as claimed in claim 18, it is characterised in that the default addition manner includes:Using high M of the logical layer field of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8. 20th, device as claimed in claim 19, it is characterised in that:The logical layer field includes stream number streamID fields or grade of service COS grade of service fields.
    21st, device as claimed in claim 18, it is characterised in that:The default addition manner includes:Using high M of the field in the payload area of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8.
    22nd, device as claimed in claim 21, it is characterised in that:The field in the payload area includes half-word hwordO fields the either field into hwordl27 fields.
    23rd, device as claimed in claim 18, it is characterised in that the default addition manner includes:Increase M bit lengths domain in first burst and store the length information, the M spans are 0 to 16 or 0 to 8.
    24th, the device as described in any one of claim 19-23, it is characterised in that:The length information is specially the corresponding length quantized level of length of the Data streaming messages,
    65536
    Quantization value difference between adjacent lengths quantized level is byte.
    25th, device as claimed in claim 24, it is characterised in that when the M positions in the length field all take 0, characterize the length quantized level.
    26th, the device as described in any one of claim 18-25, it is characterised in that also include: Negotiation element, for consulting addition manner in advance.
    27th, the device as described in any one of claim 18-25, it is characterised in that the adding device is additionally operable to, increases addition manner field in first burst, and what the addition manner field was used for storing adds power mouthful mode.
    28th, a kind of data message processing unit, it is characterised in that including CPU and memory, software program and call the data being stored in the memory that the CPU is stored in the memory by running, at least performs following steps:The length information of Data streaming messages is added to by first burst using default addition manner, and send the first burst, so that recipient obtains length information from the first burst received, and determine that minimum can use Coutinuous store region on a storage medium according to the length information;
    The minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
    29th, device as claimed in claim 28, it is characterised in that the default addition manner includes:Using high M of the logical layer field of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8.
    30th, device as claimed in claim 29, it is characterised in that:The logical layer field includes stream number streamID fields or grade of service COS grade of service fields.
    31st, device as claimed in claim 28, it is characterised in that:The default addition manner includes:Using high M of the field in the payload area of first burst or low M as length field stores the length information, the M spans are 0 to 16 or 0 to 8. 32nd, device as claimed in claim 31, it is characterised in that:The field in the payload area includes half-word hwordO fields the either field into hwordl27 fields.
    33rd, device as claimed in claim 28, it is characterised in that the default addition manner includes:Increase M bit lengths domain in first burst and store the length information, the M spans are 0 to 16 or 0 to 8.
    34th, the device as described in any one of claim 29-33, it is characterised in that:The length information is specially the corresponding length quantized level of length of the Data streaming messages,
    65536
    Quantization value difference between adjacent lengths quantized level is 7 bytes.
    35th, device as claimed in claim 34, it is characterised in that when the M positions of the length field all take 0, characterizes the length quantized level.
    36th, the device as described in any one of claim 28-35, it is characterised in that also execute the following steps:Consult addition manner in advance.
    37th, the device as described in any one of claim 28-35, it is characterised in that also execute the following steps:Increase addition manner field in first burst, what the addition manner field was used for storing adds power mouthful mode. 38th, a kind of data message processing unit, it is characterised in that at least include:Receiving module, for when receiving the first burst of Data streaming messages, obtained from the first burst in the length information of the Data streaming messages, the first burst and the power mouthful Data streaming just blunt literary length informations to be added using the default power of adding mouthful mode by sender;Management module, for according to the length information, determining that minimum can use Coutinuous store region on a storage medium, the minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
    39th, device as claimed in claim 38, it is characterised in that:The management module is additionally operable to, at least two storage pools are marked off on a storage medium in advance, each storage pool includes at least one Coutinuous store region, the memory length in each Coutinuous store region is identical in same storage pool, and the memory length in the Coutinuous store region in different storage pools is differed;It is described according to the length information, determine that minimum can be included with Coutinuous store region on a storage medium:
    From at least two storage pool, available Coutinuous store region of the memory length not less than the length of the Data streaming messages is selected, Coutinuous store region can be used as the minimum.
    40th, device as claimed in claim 38, it is characterised in that:It is described according to the length information, determine that minimum can be included with Coutinuous store region on a storage medium:In the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of the Data streaming messages is reserved, Coutinuous store region can be used as the minimum.
    41st, device as claimed in claim 40, it is characterised in that: It is described in the circulation Coutinuous store space of storage medium, reserve memory length not less than the Data streaming messages length Coutinuous store region, can be included as the minimum with Coutinuous store region:
    When receiving first burst, using the Data streaming messages belonging to the first burst as current message, next message corresponding first address in the circulation Coutinuous store space is at least determined;
    Space interval between the blunt literary corresponding first address of current ^ and the blunt literary corresponding first address of next ^ is at least equal to the blunt literary length of the Data streaming.
    42nd, device as claimed in claim 41, it is characterized in that, it is described in the circulation Coutinuous store space of storage medium, reserve length not less than the Data streaming messages length continuous space, can also be included with Coutinuous store region as minimum:
    When the corresponding first address of next message is located at the afterbody in the circulation Coutinuous store space, the blunt literary corresponding first address of next ability is changed to the initial address in the circulation Coutinuous store space.
    43rd, device as claimed in claim 41, it is characterised in that also include:Unit is marked, the state for the Coutinuous store region by the processed Data streaming messages finished are stored is labeled as can use.
    44th, device as claimed in claim 43, it is characterized in that, it is described in the circulation Coutinuous store space of storage medium, reserve length not less than the Data streaming messages length continuous space, can also be included with Coutinuous store region as minimum:
    When the corresponding first address of next message is located at the afterbody in the circulation Coutinuous store space, state is labeled as to can use, and memory length is not less than the length of the Data streaming messages, the initial address in Coutinuous store region is used as the corresponding first address of the next message.
    45th, a kind of data message processing unit, including CPU and memory, the CPU is deposited by operation Store up the software program in the memory and call the data being stored in the memory, at least perform following steps:
    When receiving Data streaming just blunt literary first bursts, obtained from the first burst in the length information of the Data streaming messages, the first burst and the Data streaming just blunt literary length information with the addition of using default addition manner by sender;According to the length information, determine that minimum can use Coutinuous store region on a storage medium, the minimum can be used for all bursts for storing the Data streaming messages with Coutinuous store region.
    46th, device as claimed in claim 45, it is characterised in that:
    Also execute the following steps:Mark off at least two storage pools on a storage medium in advance, each storage pool includes the memory length phase in each Coutinuous store region at least one Coutinuous store region, same storage pool
    It is described according to the length information, determine on a storage medium minimum can with Coutinuous store region wrap
    From at least two storage pool, available Coutinuous store region of the memory length not less than the length of the Data streaming messages is selected, Coutinuous store region can be used as the minimum.
    47th, device as claimed in claim 45, it is characterised in that:It is described according to the length information, determine that minimum can be included with Coutinuous store region on a storage medium:
    In the circulation Coutinuous store space of storage medium, Coutinuous store region of the memory length not less than the length of the Data streaming messages is reserved, Coutinuous store region can be used as the minimum.
    48th, device as claimed in claim 47, it is characterised in that:It is described in the circulation Coutinuous store space of storage medium, reserve memory length not less than the Data streaming messages length Coutinuous store region, can use Coutinuous store region as the minimum Including:
    When receiving first burst, using the Data streaming messages belonging to the first burst as current message, next message corresponding first address in the circulation Coutinuous store space is at least determined;
    Space interval between the blunt literary corresponding first address of current ^ and the blunt literary corresponding first address of next ^ is at least equal to the blunt literary length of the Data streaming.
    49th, device as claimed in claim 48, it is characterized in that, it is described in the circulation Coutinuous store space of storage medium, reserve length not less than the Data streaming messages length continuous space, can also be included with Coutinuous store region as minimum:
    When the corresponding first address of next message is located at the afterbody in the circulation Coutinuous store space, the blunt literary corresponding first address of next ability is changed to the initial address in the circulation Coutinuous store space.
    50th, device as claimed in claim 48, it is characterised in that also execute the following steps:The state that the Coutinuous store region of the processed Data streaming messages finished will be stored is labeled as can use.
    51st, device as claimed in claim 50, it is characterized in that, it is described in the circulation Coutinuous store space of storage medium, reserve length not less than the Data streaming messages length Coutinuous store region, can also be included with Coutinuous store region as minimum:
    When the corresponding first address of next message is located at the afterbody in the circulation Coutinuous store space, state is labeled as to can use, and memory length is not less than the length of the Data streaming messages, the initial address in Coutinuous store region is used as the corresponding first address of the next message.
    52nd, a kind of data message processing system, it is characterised in that at least including the data message processing unit as described in claim any one of 18-27, and, the data message processing unit as described in claim any one of 38-44. 53rd, a kind of data message processing system, it is characterised in that at least including the data message processing unit as described in claim any one of 28-37, and, the data message processing unit as described in claim any one of 45-51.
CN201380000740.9A 2013-06-26 2013-06-26 Data packet processing method and a data packet processing device and system Pending CN104396196A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/078036 WO2014205691A1 (en) 2013-06-26 2013-06-26 Data packet processing method and data packet processing device and system

Publications (1)

Publication Number Publication Date
CN104396196A true CN104396196A (en) 2015-03-04

Family

ID=52140796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380000740.9A Pending CN104396196A (en) 2013-06-26 2013-06-26 Data packet processing method and a data packet processing device and system

Country Status (2)

Country Link
CN (1) CN104396196A (en)
WO (1) WO2014205691A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018090611A1 (en) * 2016-11-21 2018-05-24 深圳市中兴微电子技术有限公司 Packet processing method and device, and computer storage medium
CN115190089A (en) * 2022-05-26 2022-10-14 中科驭数(北京)科技有限公司 Message storage method, device, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114340097A (en) * 2021-12-30 2022-04-12 合肥市芯海电子科技有限公司 Method and device for controlling lamp strip, chip and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863158A (en) * 2005-10-31 2006-11-15 华为技术有限公司 IP message fragment cache memory and forwarding method
CN102023961A (en) * 2009-09-10 2011-04-20 中兴通讯股份有限公司 Communication method based on shared memory and apparatus thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101031092A (en) * 2006-02-28 2007-09-05 华为技术有限公司 Method for processing speech message and message processor
CN100583828C (en) * 2007-02-14 2010-01-20 华为技术有限公司 Packet message processing method and device
US8549160B2 (en) * 2007-10-12 2013-10-01 Silent River, Llc Personal media relay for rebroadcasting streaming data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863158A (en) * 2005-10-31 2006-11-15 华为技术有限公司 IP message fragment cache memory and forwarding method
CN102023961A (en) * 2009-09-10 2011-04-20 中兴通讯股份有限公司 Communication method based on shared memory and apparatus thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RAPIDIO TRADE ASSOCAITION: "Data Streaming Logical Specification Rev2.2", 《RAPIDIO INTERCONNECT SPECIFICATION PART10:DATA STREAMING LOGICAL SPECIFICATION》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018090611A1 (en) * 2016-11-21 2018-05-24 深圳市中兴微电子技术有限公司 Packet processing method and device, and computer storage medium
CN115190089A (en) * 2022-05-26 2022-10-14 中科驭数(北京)科技有限公司 Message storage method, device, equipment and storage medium
CN115190089B (en) * 2022-05-26 2024-03-22 中科驭数(北京)科技有限公司 Message storage method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2014205691A1 (en) 2014-12-31

Similar Documents

Publication Publication Date Title
US20170031964A1 (en) Rollover Strategies in a N-Bit Dictionary Compressed Column Store
JP5475227B2 (en) Work scheduling method and apparatus for virtual file system provided in non-volatile data storage device
US5706461A (en) Method and apparatus for implementing virtual memory having multiple selected page sizes
WO2016011811A1 (en) Memory management method and apparatus, and storage medium
CN100426793C (en) Storage controller and control method
US20120221828A1 (en) Retrieving data in a storage system using thin provisioning
US20070274303A1 (en) Buffer management method based on a bitmap table
CN105593828A (en) Method for managing files, distributed storage system and management node
US7600093B2 (en) Device, method and computer program product for multi-level address translation
CN104102586B (en) A kind of method, apparatus of address of cache processing
TW201619829A (en) Method and apparatus for memory management
US20050268049A1 (en) Dynamic memory management
CN103778120B (en) Global profile mark generating method, generating means and corresponding distributed file system
TW201717026A (en) System and method for page-by-page memory channel interleaving
CN104396196A (en) Data packet processing method and a data packet processing device and system
CN112506823B (en) FPGA data reading and writing method, device, equipment and readable storage medium
US20130061009A1 (en) High Performance Free Buffer Allocation and Deallocation
CN111984425B (en) Memory management method, device and equipment for operating system
US11287996B2 (en) Method, device and computer program product for storing data
CN104572498A (en) Cache management method for message and device
EP2998867A1 (en) Data writing method and memory system
CN111290979B (en) Data transmission method, device and system
US9641440B2 (en) Method and apparatus for maintaining token
TW201717025A (en) System and method for page-by-page memory channel interleaving
US11409646B2 (en) Method for releasing memory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150304

RJ01 Rejection of invention patent application after publication