CN102780618A - Method and device for data message transmission - Google Patents

Method and device for data message transmission Download PDF

Info

Publication number
CN102780618A
CN102780618A CN2012102560761A CN201210256076A CN102780618A CN 102780618 A CN102780618 A CN 102780618A CN 2012102560761 A CN2012102560761 A CN 2012102560761A CN 201210256076 A CN201210256076 A CN 201210256076A CN 102780618 A CN102780618 A CN 102780618A
Authority
CN
China
Prior art keywords
packet slice
fragment
length
message
slice
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.)
Granted
Application number
CN2012102560761A
Other languages
Chinese (zh)
Other versions
CN102780618B (en
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
Priority to CN201210256076.1A priority Critical patent/CN102780618B/en
Publication of CN102780618A publication Critical patent/CN102780618A/en
Application granted granted Critical
Publication of CN102780618B publication Critical patent/CN102780618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

An embodiment of the invention provides a method and a device for data message transmission and relates to the field of communication. The method and the device can reduce cache distributed for users, a step in the prior art of recombining message fragments is omitted, and power consumption and cost of a chip are reduced. The method includes that a first message fragment which comprises a fragment start field and a fragment end field is received; and if the fragment end field comprises first identification, the first message fragment is converted into a first message slice of a corresponding format or a message slice of a corresponding format according to the fragment start field and the fragment end field and according to a preset rule. Whether the length of the message slice is larger than a preset value is judged according to the length of the message slice. If the length of the message slice is larger than the preset value, the message slice is used as the first message slice. The first message slice is sent to a buffer.

Description

A kind of data message transmission method and device
Technical field
The present invention relates to the communications field, relate in particular to a kind of data message transmission method and device.
Background technology
In data communication network; Between network processing unit and modem chip; According to G.int (Interface between the link layer and the physical layer for digital subscriber line transceivers; Interface between digital subscriber line transceiver link layer and physical layer) standard, a long data message has been cut into a lot of message fragments and has transmitted.
In the prior art, after receiving a plurality of message fragments, need carry out buffer memory and reorganization to a plurality of message fragments, the data message after will recombinating again is converted into packet slice, and packet slice is sent to buffer.Because the maximum length of Ethernet protocol specified data message is 1518 bytes, if each user provides a buffer memory so, is used for a plurality of message fragments are recombinated; Then need a lot of storage resources; This makes chip area increase, and power consumption increases, and cost increases.
Summary of the invention
Embodiments of the invention provide a kind of data message transmission method and device, can be reduced to the buffer memory that the user distributes, and exempt prior art need be to the step of message fragment reorganization, and then reduced the power consumption and the cost of chip.
For achieving the above object, embodiments of the invention adopt following technical scheme:
On the one hand, a kind of data message transmission method that the embodiment of the invention provides comprises:
Receive the first message fragment, the said first message fragment comprises that fragment start field and fragment stop field;
If stopping field, said segment comprises first sign; Then stop field according to said fragment start field and said fragment; According to preset rules; Convert the said first message fragment first packet slice of corresponding format to, said first sign is used to last message fragment of showing that the said first message fragment is a data message, perhaps
Stop field according to said fragment start field and said fragment; According to preset rules; The said first message fragment is converted to the packet slice of corresponding format; Whether the length of judging said packet slice according to the length of said packet slice greater than preset value, if the length of said packet slice is greater than preset value, with said packet slice as first packet slice;
Said first packet slice is sent to buffer.
On the one hand, a kind of data message transmitting device that the embodiment of the invention provides comprises:
Receiver is used to receive the first message fragment, and the said first message fragment comprises that fragment start field and fragment stop field;
Processor; Be used for comprising first sign if said segment stops field; Then stop field,, the said first message fragment is converted to first packet slice of corresponding format according to preset rules according to said fragment start field and said fragment; Said first sign is used to last message fragment of showing that the said first message fragment is a data message, perhaps
Stop field according to said fragment start field and said fragment; According to preset rules; The said first message fragment is converted to the packet slice of corresponding format; Whether the length of judging said packet slice according to the length of said packet slice greater than preset value, if the length of said packet slice is greater than preset value, with said packet slice as first packet slice;
Transmitter is used for said first packet slice is sent to buffer.
A kind of data message transmission method and device that the embodiment of the invention provides through after receiving the first message fragment, comprise first sign if segment stops field; Then stop field according to fragment start field and fragment; According to preset rules, convert the first message fragment first packet slice of corresponding format to, perhaps stop field according to fragment start field and fragment; According to preset rules; Convert the first message fragment packet slice of corresponding format to, whether the length of judging packet slice according to the length of packet slice is greater than preset value, if the length of packet slice is greater than preset value; Packet slice as first packet slice, and then is sent to buffer with first packet slice.Through this scheme, can be through the sign in the message fragment, according to preset rules; Convert the message fragment first packet slice of corresponding format to, perhaps, according to preset rules; After the message fragment being converted to the packet slice of corresponding format, when the length of judging packet slice during greater than preset value, with this packet slice as first packet slice; And then first packet slice is sent to buffer; Owing to be provided with preset value, when satisfying condition, directly first packet slice is sent to buffer, therefore reduced the buffer memory that data transmission device distributes for the user; And exempt prior art need be to the step of message fragment reorganization, and then reduced the power consumption and the cost of chip.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the data message transmission method schematic flow sheet one of the embodiment of the invention;
Fig. 2 is the data message transmission method schematic flow sheet two of the embodiment of the invention;
Fig. 3 is the structural representation of the message fragment of the embodiment of the invention;
Fig. 4 is the structural representation of the packet slice of the embodiment of the invention;
Fig. 5 is the data message transmitting device structural representation of the embodiment of the invention.
Embodiment
In below describing, in order to explain rather than, to have proposed the detail such as particular system structure, interface, technology, so that thorough the present invention in order to limit.Yet, not it will be clear to one skilled in the art that in having other embodiment of these details and can realize the present invention yet.In other situation, omit detailed description, in order to avoid unnecessary details hinders description of the invention to well-known device, circuit and method.
The various technology of describing among this paper can be used for various wireless communication systems, for example current 2G, 3G communication system and next generation communication system; Global system for mobile communications (GSM, Global System for Mobile communications) for example, code division multiple access (CDMA; Code Division Multiple Access) system, time division multiple access (TDMA, Time Division Multiple Access) system; WCDMA (WCDMA, Wideband Code Division MultiDle Access Wireless), frequency division multiple access (FDMA; Frequency Division Multiple Addressing) system, OFDM (OFDMA, Orthogonal Frequency-Division Multiple Access) system; Single Carrier Frequency Division Multiple Access (SC-FDMA) system, GPRS (GPRS, General Packet Radio Service) system; Long Term Evolution (LTE, Long Term Evolution) system, and other these type of communication systems.
In addition, among this paper term " system " and " network " in this article often by interchangeable use.Term among this paper " and/or ", only be a kind of incidence relation of describing affiliated partner, can there be three kinds of relations in expression, for example, and A and/or B, can represent: individualism A exists A and B, these three kinds of situation of individualism B simultaneously.In addition, character "/" among this paper, generally represent forward-backward correlation to as if a kind of " or " relation.
A kind of data message transmission method that the embodiment of the invention provides, as shown in Figure 1, this method comprises:
S101, data message transmitting device receive the first message fragment, and the first message fragment comprises that fragment start field and fragment stop field.
In the data communication network of the embodiment of the invention; Come a long data message of automatic network; In network processing unit, be cut into a lot of message fragments according to the G.int standard, as shown in Figure 2, all comprise fragment start field 101 (Start of Fragment in each message fragment; SoF), fragment stop field 102 (End of Fragment, EoF), length field 103 and data 104.Comprise first sign if fragment stops field 102, for example EoF=1 shows that then current message fragment is last message fragment of data message; If fragment start field 101 comprises second sign, for example SoF=1 shows that then current message fragment is first message fragment of data message; Comprise the 3rd sign if fragment stops field 102, for example, EoF=0 shows that then current message fragment is not last message fragment of data message; If fragment start field 101 comprises the 4th sign, for example, SoF=0 shows that then current message fragment is not last message fragment of data message; Comprise first sign if fragment stops field 102, for example EoF=1, and fragment start field 101 comprises second sign, and for example SoF=1 shows that then current message fragment is a complete data message.
Need to prove that the length of message fragment is arranged on 64 bytes usually to 256 bytes, be set to other length and also allow that still, the message fragment that is set to other length need not and not be the emphasis that the present invention pays close attention to basically.It is pointed out that for a data message order that the message fragment is sent can not entanglement.
In the embodiment of the invention, the data message transmitting device receives the first message fragment from network processing unit, and the first message fragment comprises that fragment start field and fragment stop field.
S102,, segment comprises first sign if stopping field; The data message transmitting device then stops field according to fragment start field and fragment, according to preset rules, the first message fragment is converted to first packet slice of corresponding format; First sign is used to show that the first message fragment is last message fragment of data message; Perhaps, the data message transmitting device stops field according to fragment start field and fragment, according to preset rules; The first message fragment is converted to the packet slice of corresponding format; Whether the length of judging packet slice according to the length of packet slice greater than preset value, if the length of packet slice is greater than preset value, with packet slice as first packet slice.
Need to prove that the difference of message fragment and packet slice comprises at least:
(1) message fragment (Fragment) is inequality with the form of packet slice (Cell).
The form of message fragment is described in the step S101 of the foregoing description, repeats no more here;
As shown in Figure 3, packet slice comprises sequence-number field 201, and (Start of Packet, SoP), section stops field 203, and (End of Packet is EoP) with data 204 for section start field 202.Comprise the termination sign if section stops field 202, for example, EoP=1 shows that then current packet slice is last packet slice of data message; If section start field 201 comprises origin identification, for example, SoP=1 shows that then current packet slice is first packet slice of data message; If section stops field 202 and comprises and stop sign, for example, EoP=1, and section start field 201 comprises origin identification, for example, SoP=1 shows that then current packet slice is a complete data message.
(2) transmission means of message fragment and packet slice is inequality.
The transmission means of message fragment does, a plurality of message fragments arranged according to its sequencing transmit, and receiving terminal is reassembled as complete data message according to the sequencing that receives with the message fragment;
The transmission means of packet slice does, a plurality of packet slices are distributed on a plurality of transmission lines, and receiving terminal is reassembled as complete data message through the sequence number of the sequence-number field in the packet slice with packet slice.
S103, data message transmitting device are sent to buffer with first packet slice.
A kind of data message transmission method that the embodiment of the invention provides through after receiving the first message fragment, comprises first sign if segment stops field; Then stop field according to fragment start field and fragment; According to preset rules, convert the first message fragment first packet slice of corresponding format to, perhaps stop field according to fragment start field and fragment; According to preset rules; Convert the first message fragment packet slice of corresponding format to, whether the length of judging packet slice according to the length of packet slice is greater than preset value, if the length of packet slice is greater than preset value; Packet slice as first packet slice, and then is sent to buffer with first packet slice.Through this scheme, can be through the sign in the message fragment, according to preset rules; Convert the message fragment first packet slice of corresponding format to, perhaps, according to preset rules; After the message fragment being converted to the packet slice of corresponding format, when the length of judging packet slice during greater than preset value, with this packet slice as first packet slice; And then first packet slice is sent to buffer; Owing to be provided with preset value, when satisfying condition, directly first packet slice is sent to buffer, therefore reduced the buffer memory that data transmission device distributes for the user; And exempt prior art need be to the step of message fragment reorganization, and then reduced the power consumption and the cost of chip.
The embodiment of the invention also provides a kind of dispatching method, and is as shown in Figure 4, and this method comprises:
S201, data message transmitting device receive the first message fragment, and the first message fragment comprises that fragment start field and fragment stop field.
In the data communication network of the embodiment of the invention; Come a long data message of automatic network; In network processing unit, be cut into a lot of message fragments according to the G.int standard, as shown in Figure 2, all comprise fragment start field 101 (Start of Fragment in each message fragment 10; SoF), fragment stop field 102 (End of Fragment, EoF), length field 103 and data 104.Comprise first sign if fragment stops field 102, for example EoF=1 shows that then current message fragment is last message fragment of data message; If fragment start field 101 comprises second sign, for example SoF=1 shows that then current message fragment is first message fragment of data message; Comprise the 3rd sign if fragment stops field 102, for example, EoF=0 shows that then current message fragment is not last message fragment of data message; If fragment start field 101 comprises the 4th sign, for example, SoF=0 shows that then current message fragment is not last message fragment of data message; Comprise first sign if fragment stops field 102, for example EoF=1, and fragment start field 101 comprises second sign, and for example SoF=1 shows that then current message fragment is a complete data message.
Need to prove that the length of message fragment is arranged on 64 bytes usually to 256 bytes, be set to other length and also allow that still, the message fragment that is set to other length need not and not be the emphasis that the present invention pays close attention to basically.It is pointed out that for a data message order that the message fragment is sent can not entanglement.
In the embodiment of the invention, the data message transmitting device receives the first message fragment from network processing unit, and the first message fragment comprises that fragment start field and fragment stop field.
S202, if the fragment start field in comprise second the sign; And fragment stops comprising the 3rd sign in the field; The data message transmitting device then converts the first message fragment into second packet slice of corresponding format; Second packet slice comprises the section start field, and in the section start field, origin identification is set.
Wherein, Second sign is used to show that the first message fragment is first message fragment of data message; The 3rd sign is used to show that the first message fragment is not last message fragment of data message, and origin identification is used to show that second packet slice is first packet slice of data message.
If comprise second sign in the fragment start field of the first message fragment that receives, for example, SoF=1; And fragment stops field and comprises the 3rd sign; For example, EoF=0 shows that then the first current message fragment is first message fragment of data message; The data message transmitting device then converts the first message fragment into second packet slice of corresponding format; Second packet slice comprises the section start field, and the data message transmitting device is provided with origin identification in the section start field of second packet slice, with first packet slice that shows that this second packet slice is a data message.The difference of message fragment and packet slice has been described in the foregoing description, has been repeated no more here.
Whether the length that S203, data message transmitting device judge second packet slice according to the length of second packet slice is greater than first preset value.
The data message transmitting device is after converting the first message fragment second packet slice of corresponding format into, and whether the length that can judge second packet slice according to the length of second packet slice is greater than first preset value.
S204, if the length of second packet slice greater than first preset value, the data message transmitting device with second packet slice as first packet slice.
The data message transmitting device as first packet slice, and then is sent to buffer with first packet slice with second packet slice after the length of judging second packet slice is greater than first preset value, first preset value can be 448 bytes.
S205, if the length of second packet slice smaller or equal to first preset value, the data message transmitting device continues to receive the second message fragment, the second message fragment comprises fragment start field and fragment termination field.
A kind of situation arranged side by side with step S204; The data message transmitting device is after the length of judging second packet slice is smaller or equal to first preset value; Can continue to receive the second message fragment, while buffer memory second packet slice, the second message fragment comprises that fragment start field and fragment stop field.
S206, if the fragment start field of the second message fragment comprises the 4th sign; And the fragment of the second message fragment stops field and comprises the 3rd sign; The data message transmitting device then converts the second message fragment into the 3rd packet slice of corresponding format, and the 4th sign is used to show that the second message fragment is not first message fragment of data message.
The message fragment that the data message transmitting device receives possibly be first message fragment of data message; Possibly be the message fragment of the centre of data message, possibly be last message fragment of data message, also possibly be a complete data message; The situation that step S202 to S205 has described message fragment that the data message transmitting device receives when being first message fragment of data message; Below, the message fragment that step S206 to S207 receives the data message transmitting device is that the situation of message fragment of the centre of data message is described, promptly the fragment start field of the second message fragment comprises the 4th sign; For example; SoF=0, and the fragment of the second message fragment stops field and comprises the 3rd sign, for example; EoF=0, data message transmitting device then convert the second message fragment into the 3rd packet slice of corresponding format.Wherein, the section start field of the 3rd packet slice stops field with section can not be provided with any sign, to show the 3rd packet slice neither first packet slice of data message, last packet slice that neither data message.
S207, according to the length of the 3rd packet slice whether greater than second preset value; If the length of the 3rd packet slice is greater than second preset value; With second packet slice and the 3rd packet slice as first packet slice; Perhaps according to the length of the length of the 3rd packet slice and second packet slice with whether greater than first preset value; If the length of the length of the 3rd packet slice and second packet slice and greater than first preset value, with second packet slice and the 3rd packet slice as first packet slice.
After the data message transmitting device converts the second message fragment the 3rd packet slice of corresponding format into; Whether the length that can judge the 3rd packet slice is greater than second preset value; Or judge the 3rd message fragment length and buffer memory second packet slice length with whether greater than first preset value; If the length of the 3rd packet slice is greater than second preset value; Or the length of the length of the 3rd packet slice and second packet slice and greater than first preset value, the data message transmitting device as first packet slice, and then is sent to buffer with first packet slice with second packet slice and the 3rd packet slice.Wherein, second preset value can be 224 bytes.
Here, need to why first preset value can be 448 bytes, second preset value can make an explanation for 224 bytes; It is 448 bytes that the message fragment of two 224 bytes links together; If there is the message fragment of an EoF=1 to arrive again, and length is 63 bytes, and the message fragment of this EoF=1 can not independently become a packet slice; Must be appended on the previous packet slice; And the length of previous packet slice has reached 448 bytes, so the final lengths of packet slice is 448+63=511, because the network protocol specifies packet slice must be just legal between 64 byte to 512 bytes; Therefore first preset value is 448 bytes, and second preset value is that 224 bytes just in time can satisfy this condition.
S208, if the fragment start field of the second message fragment comprises the 4th sign; And fragment stops field and comprises first sign; The data message transmitting device then converts the second message fragment into the 4th packet slice of corresponding format, and the 4th packet slice comprises that section stops field.
The message fragment that step S208 to S211 receives the data message transmitting device is that the situation of last message fragment of data message is described; If the fragment start field of the second message fragment comprises the 4th sign, for example, SoF=0; And fragment stops field and comprises first sign; For example, EoF=1, data message transmitting device then convert the second message fragment into the 4th packet slice of corresponding format.
S209, according to the length of the length of the 4th packet slice and second packet slice and whether greater than the 3rd preset value.
The data message transmitting device after converting the second message fragment the 4th packet slice of corresponding format to, can judge the 4th packet slice length and buffer memory second packet slice length with whether greater than the 3rd preset value.
S210, if the length of the length of the 4th packet slice and first packet slice and greater than the 3rd preset value; After the data message transmitting device is sent to buffer with second packet slice; Stop being provided with in the field in the section of the 4th packet slice and stop sign, with the 4th packet slice as first packet slice.
Wherein, stop sign and be used to show that the 4th packet slice is last packet slice of data message.
If the length of the length of the 4th packet slice and first packet slice and greater than the 3rd preset value; After the data message transmitting device is sent to buffer with second packet slice; Section at the 4th packet slice stops being provided with in the field termination sign; The 4th packet slice as first packet slice, and then is sent to buffer with first packet slice.Wherein, The 3rd preset value can be 512 bytes, one of ordinary skill in the art will readily recognize that and the foregoing description in also to propose the network protocol specifies packet slice must be between 64 byte to 512 bytes just legal; Therefore why the 3rd preset value is set to 512 bytes, repeats no more here.It is understandable that; Send to first packet slice of buffer as needs; Owing to increased judgement to packet slice length; Its maximum length is 512 bytes, and the required storage resources of buffer memory packet slice is very little, the buffer memory that is provided with when promptly being 1518 bytes less than the maximum length of prior art data message.
S211, if the length of the length of the 4th packet slice and first packet slice and smaller or equal to the 3rd preset value; The data message transmitting device stops being provided with in the field in the section of second packet slice and stops sign, with second packet slice and the 4th packet slice as first packet slice.
A kind of situation arranged side by side with step S210; The data message transmitting device the length of the length of judging the 4th packet slice and first packet slice and smaller or equal to the 3rd preset value after; Meeting stops being provided with in the field termination sign in the section of second packet slice of buffer memory; And with second packet slice and the 4th packet slice as first packet slice; This termination sign is used to show that current packet slice is last packet slice of data message, and then the data message device is sent to buffer with first packet slice.
S212, if comprise second sign in the fragment start field of the first message fragment, and fragment stops comprising first sign in the field that the data message transmitting device converts the first message fragment into first packet slice of corresponding format.
The section start field of first packet slice is provided with origin identification, stops field in the section of first packet slice and is provided with and stops sign, and this situation shows that first packet slice is a complete data message.
S213, data message transmitting device are sent to buffer with first packet slice.
A kind of data message transmission method that the embodiment of the invention provides through after receiving the first message fragment, comprises first sign if segment stops field; Then stop field according to fragment start field and fragment; According to preset rules, convert the first message fragment first packet slice of corresponding format to, perhaps stop field according to fragment start field and fragment; According to preset rules; Convert the first message fragment packet slice of corresponding format to, whether the length of judging packet slice according to the length of packet slice is greater than preset value, if the length of packet slice is greater than preset value; Packet slice as first packet slice, and then is sent to buffer with first packet slice.Through this scheme, can be through the sign in the message fragment, according to preset rules; Convert the message fragment first packet slice of corresponding format to, perhaps, according to preset rules; After the message fragment being converted to the packet slice of corresponding format, when the length of judging packet slice during greater than preset value, with this packet slice as first packet slice; And then first packet slice is sent to buffer; Owing to be provided with preset value, when satisfying condition, directly first packet slice is sent to buffer, therefore reduced the buffer memory that data transmission device distributes for the user; And exempt prior art need be to the step of message fragment reorganization, and then reduced the power consumption and the cost of chip.
The embodiment of the invention provides a kind of data message transmitting device 1, and is as shown in Figure 3, comprising:
Receiver 10 is used to receive the first message fragment, and the said first message fragment comprises that fragment start field and fragment stop field;
Processor 11; Be used for comprising first sign if said segment stops field; Then stop field,, the said first message fragment is converted to first packet slice of corresponding format according to preset rules according to said fragment start field and said fragment; Said first sign is used to last message fragment of showing that the said first message fragment is a data message, perhaps
Stop field according to said fragment start field and said fragment; According to preset rules; The said first message fragment is converted to the packet slice of corresponding format; Whether the length of judging said packet slice according to the length of said packet slice greater than preset value, if the length of said packet slice is greater than preset value, with said packet slice as first packet slice;
Transmitter 12 is used for said first packet slice is sent to buffer.
Further; Said processor 11; Specifically be used for if said fragment start field comprises second sign, and said fragment stops field and comprise the 3rd sign, then the said first message fragment is converted into second packet slice of corresponding format; Said second packet slice comprises the section start field; And in said section start field, origin identification is set, said second sign is used to first message fragment of showing that the said first message fragment is said data message, and said the 3rd sign is used to show that the said first message fragment is not last message fragment of said data message; Said origin identification is used to first packet slice of showing that said second packet slice is said data message; And whether the length of judging said second packet slice according to the length of said second packet slice greater than first preset value, if the length of said second packet slice is greater than said first preset value, with said second packet slice as said first packet slice.
Further, said receiver 10 also is used for if the length of said second packet slice smaller or equal to said first preset value, continues to receive the second message fragment, and the said second message fragment comprises that fragment start field and fragment stop field.
Further; Said processor 11; Also be used for if the said fragment start field of the said second message fragment comprises the 4th sign; And the said fragment of the said second message fragment stops field and comprises said the 3rd sign, then the said second message fragment is converted into the 3rd packet slice of corresponding format, and said the 4th sign is used to show that the said second message fragment is not first message fragment of said data message; And according to the length of said the 3rd packet slice whether greater than second preset value; If the length of said the 3rd packet slice is greater than said second preset value, will said second packet slice and the 3rd packet slice as said first packet slice, perhaps according to the length of the length of said the 3rd packet slice and said second packet slice and whether greater than said first preset value; If the length of the length of said the 3rd packet slice and said second packet slice and greater than said first preset value, with said second packet slice and the 3rd packet slice as said first packet slice.
Further; Said processor 11; Also be used for if the said fragment start field of the said second message fragment comprises said the 4th sign, and said fragment stops field and comprise said first sign, then the said second message fragment is converted into the 4th packet slice of corresponding format; Said the 4th packet slice comprises that section stops field; And according to the length of the length of said the 4th packet slice and said second packet slice with whether greater than the 3rd preset value, if the length of the length of said the 4th packet slice and said first packet slice and greater than said the 3rd preset value, said second packet slice is sent to said buffer after; Section at said the 4th packet slice stops being provided with in the field termination sign; As said first packet slice, wherein, said termination sign is used to last packet slice of showing that said the 4th packet slice is a data message with said the 4th packet slice.
Further; Said processor 11; Also be used for according to the length of the length of said the 4th packet slice and said second packet slice with whether greater than the 3rd preset value; If the length of the length of said the 4th packet slice and said first packet slice and smaller or equal to said the 3rd preset value, stop being provided with in the field in the section of said second packet slice and stop identifying, with said second packet slice and the 4th packet slice as said first packet slice.
Further, said first preset value is 448 bytes, and said second preset value is 224 bytes, and said the 3rd preset value is 512 bytes.
A kind of data message transmitting device that the embodiment of the invention provides through after receiving the first message fragment, comprises first sign if segment stops field; Then stop field according to fragment start field and fragment; According to preset rules, convert the first message fragment first packet slice of corresponding format to, perhaps stop field according to fragment start field and fragment; According to preset rules; Convert the first message fragment packet slice of corresponding format to, whether the length of judging packet slice according to the length of packet slice is greater than preset value, if the length of packet slice is greater than preset value; Packet slice as first packet slice, and then is sent to buffer with first packet slice.Through this scheme, can be through the sign in the message fragment, according to preset rules; Convert the message fragment first packet slice of corresponding format to, perhaps, according to preset rules; After the message fragment being converted to the packet slice of corresponding format, when the length of judging packet slice during greater than preset value, with this packet slice as first packet slice; And then first packet slice is sent to buffer; Owing to be provided with preset value, when satisfying condition, directly first packet slice is sent to buffer, therefore reduced the buffer memory that data transmission device distributes for the user; And exempt prior art need be to the step of message fragment reorganization, and then reduced the power consumption and the cost of chip.
The those skilled in the art can be well understood to; For the convenience described with succinct; Only the division with above-mentioned each functional module is illustrated, and in the practical application, can as required the above-mentioned functions distribution be accomplished by different functional; The internal structure that is about to device is divided into different functional, to accomplish all or part of function of above description.The system of foregoing description, the concrete course of work of device and unit can repeat no more at this with reference to the corresponding process among the preceding method embodiment.
In several embodiment that the application provided, should be understood that, the system that is disclosed, apparatus and method can realize through other mode.For example, device embodiment described above only is schematically, for example; The division of said module or unit; Only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can combine or can be integrated into another system; Or some characteristics can ignore, or do not carry out.Another point, the coupling each other that shows or discuss or directly coupling or communication to connect can be through some interfaces, the INDIRECT COUPLING of device or unit or communication connect, and can be electrically, machinery or other form.
Said unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of unit wherein of reality.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
If said integrated unit is realized with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding; Part or all or part of of this technical scheme that technical scheme of the present invention contributes to prior art in essence in other words can come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) or processor (processor) carry out all or part of step of the said method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of said claim.

Claims (14)

1. a data message transmission method is characterized in that, comprising:
Receive the first message fragment, the said first message fragment comprises that fragment start field and fragment stop field;
If stopping field, said segment comprises first sign; Then stop field according to said fragment start field and said fragment; According to preset rules; Convert the said first message fragment first packet slice of corresponding format to, said first sign is used to last message fragment of showing that the said first message fragment is a data message, perhaps
Stop field according to said fragment start field and said fragment; According to preset rules; The said first message fragment is converted to the packet slice of corresponding format; Whether the length of judging said packet slice according to the length of said packet slice greater than preset value, if the length of said packet slice is greater than preset value, with said packet slice as first packet slice;
Said first packet slice is sent to buffer.
2. data message transmission method according to claim 1 is characterized in that,
Said according to said fragment start field and said fragment termination field; According to preset rules; Convert the said first message fragment packet slice of corresponding format to, whether the length of judging said packet slice according to the length of said packet slice is greater than preset value, if the length of said packet slice is greater than preset value; Said packet slice as first packet slice, being comprised:
If said fragment start field comprises second sign; And said fragment stops field and comprises the 3rd sign; Then the said first message fragment is converted into second packet slice of corresponding format; Said second packet slice comprises the section start field, and in said section start field, origin identification is set, and said second sign is used to first message fragment of showing that the said first message fragment is said data message; Said the 3rd sign is used to show that the said first message fragment is not last message fragment of said data message, and said origin identification is used to first packet slice of showing that said second packet slice is said data message;
Whether the length of judging said second packet slice according to the length of said second packet slice greater than first preset value, if the length of said second packet slice is greater than said first preset value, with said second packet slice as said first packet slice.
3. data message transmission method according to claim 2 is characterized in that, said method also comprises:
Whether the length of judging said second packet slice according to the length of said second packet slice is greater than first preset value; If the length of said second packet slice is smaller or equal to said first preset value; Continue to receive the second message fragment, the said second message fragment comprises that fragment start field and fragment stop field.
4. data message transmission method according to claim 3 is characterized in that, after the said reception second message fragment, said method also comprises:
If the said fragment start field of the said second message fragment comprises the 4th sign; And the said fragment of the said second message fragment stops field and comprises said the 3rd sign; Then the said second message fragment is converted into the 3rd packet slice of corresponding format, said the 4th sign is used to show that the said second message fragment is not first message fragment of said data message;
According to the length of said the 3rd packet slice whether greater than second preset value, if the length of said the 3rd packet slice is greater than said second preset value, with said second packet slice and the 3rd packet slice as said first packet slice, perhaps
According to the length of the length of said the 3rd packet slice and said second packet slice with whether greater than said first preset value; If the length of the length of said the 3rd packet slice and said second packet slice and greater than said first preset value, with said second packet slice and the 3rd packet slice as said first packet slice.
5. data message transmission method according to claim 3 is characterized in that, after the said reception second message fragment, said method also comprises:
If the said fragment start field of the said second message fragment comprises said the 4th sign; And said fragment stops field and comprises said first sign; Then the said second message fragment is converted into the 4th packet slice of corresponding format, said the 4th packet slice comprises that section stops field;
According to the length of the length of said the 4th packet slice and said second packet slice with whether greater than the 3rd preset value; If the length of the length of said the 4th packet slice and said first packet slice and greater than said the 3rd preset value; After said second packet slice is sent to said buffer; Section at said the 4th packet slice stops being provided with in the field termination sign; As said first packet slice, wherein, said termination sign is used to last packet slice of showing that said the 4th packet slice is a data message with said the 4th packet slice.
6. data message transmission method according to claim 5 is characterized in that, said method also comprises:
According to the length of the length of said the 4th packet slice and said second packet slice with whether greater than the 3rd preset value; If the length of the length of said the 4th packet slice and said first packet slice and smaller or equal to said the 3rd preset value; Stop being provided with in the field in the section of said second packet slice and stop sign, with said second packet slice and the 4th packet slice as said first packet slice.
7. according to any described data message transmission method among the claim 1-6, it is characterized in that said first preset value is 448 bytes, said second preset value is 224 bytes, and said the 3rd preset value is 512 bytes.
8. a data message transmitting device is characterized in that, comprising:
Receiver is used to receive the first message fragment, and the said first message fragment comprises that fragment start field and fragment stop field;
Processor; Be used for comprising first sign if said segment stops field; Then stop field,, the said first message fragment is converted to first packet slice of corresponding format according to preset rules according to said fragment start field and said fragment; Said first sign is used to last message fragment of showing that the said first message fragment is a data message, perhaps
Stop field according to said fragment start field and said fragment; According to preset rules; The said first message fragment is converted to the packet slice of corresponding format; Whether the length of judging said packet slice according to the length of said packet slice greater than preset value, if the length of said packet slice is greater than preset value, with said packet slice as first packet slice;
Transmitter is used for said first packet slice is sent to buffer.
9. data message transmitting device according to claim 8 is characterized in that,
Said processor; Specifically be used for if said fragment start field comprises second sign; And said fragment stops field and comprises the 3rd sign; Then the said first message fragment is converted into second packet slice of corresponding format, said second packet slice comprises the section start field, and in said section start field, origin identification is set; Said second sign is used to first message fragment of showing that the said first message fragment is said data message; Said the 3rd sign is used to show that the said first message fragment is not last message fragment of said data message, and said origin identification is used to first packet slice of showing that said second packet slice is said data message, and whether the length of judging said second packet slice according to the length of said second packet slice is greater than first preset value; If the length of said second packet slice is greater than said first preset value, with said second packet slice as said first packet slice.
10. data message transmitting device according to claim 9; It is characterized in that; Said receiver; Also be used for if the length of said second packet slice smaller or equal to said first preset value, continues to receive the second message fragment, the said second message fragment comprises that fragment start field and fragment stop field.
11. data message transmitting device according to claim 10 is characterized in that,
Said processor; Also be used for if the said fragment start field of the said second message fragment comprises the 4th sign; And the said fragment of the said second message fragment stops field and comprises said the 3rd sign; Then the said second message fragment is converted into the 3rd packet slice of corresponding format; Said the 4th sign is used to show that the said second message fragment be first message fragment of said data message, and according to the length of said the 3rd packet slice whether greater than second preset value, as if the length of said the 3rd packet slice greater than said second preset value; With said second packet slice and the 3rd packet slice as said first packet slice; Perhaps according to the length of the length of said the 3rd packet slice and said second packet slice with whether greater than said first preset value, if the length of the length of said the 3rd packet slice and said second packet slice and greater than said first preset value, with said second packet slice and the 3rd packet slice as said first packet slice.
12. data message transmitting device according to claim 10 is characterized in that,
Said processor; Also be used for if the said fragment start field of the said second message fragment comprises said the 4th sign; And said fragment stops field and comprises said first sign; Then the said second message fragment is converted into the 4th packet slice of corresponding format, said the 4th packet slice comprises that section stops field, and according to the length of the length of said the 4th packet slice and said second packet slice and whether greater than the 3rd preset value; If the length of the length of said the 4th packet slice and said first packet slice and greater than said the 3rd preset value; After said second packet slice is sent to said buffer, stops being provided with in the field in the section of said the 4th packet slice and stop sign, with said the 4th packet slice as said first packet slice; Wherein, said termination sign is used to last packet slice of showing that said the 4th packet slice is a data message.
13. data message transmitting device according to claim 11 is characterized in that,
Said processor; Also be used for according to the length of the length of said the 4th packet slice and said second packet slice with whether greater than the 3rd preset value; If the length of the length of said the 4th packet slice and said first packet slice and smaller or equal to said the 3rd preset value; Stop being provided with in the field in the section of said second packet slice and stop sign, with said second packet slice and the 4th packet slice as said first packet slice.
14. any described data message transmitting device is characterized in that said first preset value is 448 bytes according to Claim 8-13, said second preset value is 224 bytes, and said the 3rd preset value is 512 bytes.
CN201210256076.1A 2012-07-23 2012-07-23 Method and device for data message transmission Active CN102780618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210256076.1A CN102780618B (en) 2012-07-23 2012-07-23 Method and device for data message transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210256076.1A CN102780618B (en) 2012-07-23 2012-07-23 Method and device for data message transmission

Publications (2)

Publication Number Publication Date
CN102780618A true CN102780618A (en) 2012-11-14
CN102780618B CN102780618B (en) 2014-11-19

Family

ID=47125379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210256076.1A Active CN102780618B (en) 2012-07-23 2012-07-23 Method and device for data message transmission

Country Status (1)

Country Link
CN (1) CN102780618B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953892A (en) * 2017-02-14 2017-07-14 北京时间股份有限公司 A kind of method for obtaining file, apparatus and system
CN111224967A (en) * 2019-12-30 2020-06-02 视联动力信息技术股份有限公司 Data processing method and device, electronic equipment and storage medium
CN116996600A (en) * 2023-07-18 2023-11-03 南京金阵微电子技术有限公司 Ethernet chip self-adaptive resource management method, chip, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816042A (en) * 2005-01-31 2006-08-09 华为技术有限公司 Method for transmission of data between processors
CN101022405A (en) * 2006-06-23 2007-08-22 华为技术有限公司 Universal framing rule packaging method
CN102104548A (en) * 2011-03-02 2011-06-22 中兴通讯股份有限公司 Method and device for receiving and processing data packets
WO2012055168A1 (en) * 2010-10-27 2012-05-03 Hangzhou H3C Technologies Co., Ltd. Forwarding messages in a fibre channel network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816042A (en) * 2005-01-31 2006-08-09 华为技术有限公司 Method for transmission of data between processors
CN101022405A (en) * 2006-06-23 2007-08-22 华为技术有限公司 Universal framing rule packaging method
WO2012055168A1 (en) * 2010-10-27 2012-05-03 Hangzhou H3C Technologies Co., Ltd. Forwarding messages in a fibre channel network
CN102104548A (en) * 2011-03-02 2011-06-22 中兴通讯股份有限公司 Method and device for receiving and processing data packets

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953892A (en) * 2017-02-14 2017-07-14 北京时间股份有限公司 A kind of method for obtaining file, apparatus and system
CN111224967A (en) * 2019-12-30 2020-06-02 视联动力信息技术股份有限公司 Data processing method and device, electronic equipment and storage medium
CN111224967B (en) * 2019-12-30 2023-09-26 视联动力信息技术股份有限公司 Data processing method and device, electronic equipment and storage medium
CN116996600A (en) * 2023-07-18 2023-11-03 南京金阵微电子技术有限公司 Ethernet chip self-adaptive resource management method, chip, device and medium
CN116996600B (en) * 2023-07-18 2024-04-02 南京金阵微电子技术有限公司 Ethernet chip self-adaptive resource management method, chip, device and medium

Also Published As

Publication number Publication date
CN102780618B (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN103037314B (en) The method of pocket transmission news on the mobile terminal in autonomous network
CN101867617A (en) File uploading method base on mobile terminal and system and uploading server thereof
CN104994590A (en) Data transmission method and device
CN111405684A (en) Method for connecting to network access device, terminal and computer readable storage medium
CN106603400A (en) Data transmission method based on narrow band Internet of things and gateway
US20120278433A1 (en) Method for transmitting and receiving multimedia information and terminal
CN106941724A (en) Data processing method and device
CN101854202A (en) Data transmission method, equipment and system
CN102355694A (en) Data distribution method and device in wireless heterogeneous network and wireless network controller
CN103973778A (en) Information pushing method and device
CN103929755A (en) Communication method and device
CN104703126B (en) Wireless network broadcast information transmission system and its method based on iBeacon
CN101894092A (en) Multi-core CPU and inter-core communication method thereof
CN106793123A (en) A kind of mini time slot configuration and application method and intelligent terminal
CN103581257A (en) Data distribution method and device based on internet protocol
CN102780618B (en) Method and device for data message transmission
CN106612559A (en) Timeslot scheduling method and apparatus
CN101465847B (en) Method and device for transmitting MAC message
CN1758801B (en) Apparatus and method for message transmission in a mobile communication terminal
CN105511587A (en) Radio frequency chain control method and device
CN107846709B (en) Wireless communication device and wireless communication method based on LoRa
CN108702335B (en) Method and apparatus for transmitting and receiving data packet in multimedia system
CN102082726B (en) Data processing method, device and transmission system
CN102740284A (en) Method for constructing communication links between multi-mode radio remote unit (RRU) and base band unit (BBU), multi-mode RRU and BBU
CN109639713B (en) IQ data frame and transmission and receiving method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant