[go: up one dir, main page]

CN106817726A - Data message sends the processing method and processing device for receiving - Google Patents

Data message sends the processing method and processing device for receiving Download PDF

Info

Publication number
CN106817726A
CN106817726A CN201510867635.6A CN201510867635A CN106817726A CN 106817726 A CN106817726 A CN 106817726A CN 201510867635 A CN201510867635 A CN 201510867635A CN 106817726 A CN106817726 A CN 106817726A
Authority
CN
China
Prior art keywords
packet voice
message
data message
treatment
receiving device
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.)
Withdrawn
Application number
CN201510867635.6A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510867635.6A priority Critical patent/CN106817726A/en
Priority to PCT/CN2016/098730 priority patent/WO2017088557A1/en
Publication of CN106817726A publication Critical patent/CN106817726A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets

Landscapes

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

Abstract

The processing method and processing device for receiving is sent the invention discloses a kind of data message, wherein, the processing method that data message sends includes:Before sending datagram, determine whether data message to be sent carries out message and wrap treatment;The data message that will be determined to carry out message and wrap treatment carries out message and wraps treatment to generate corresponding and packet voice, wherein, and in packet voice be provided with and packet voice identification field and and packet voice at least include and packet voice head and with carry out message and wrap the corresponding some attached bags of data message for the treatment of;By and packet voice and do not carry out message and wrap treatment data message add transmit queue in to be sent.The transport overhead of data message can not only be reduced by the present invention and then bandwidth availability ratio is improved, simultaneously, data message in the present invention is not also limited and needs to use identical transmission property and the destination address just to merge, thus the present invention also accordingly expands the scope of application of data message merging.

Description

Data message sends the processing method and processing device for receiving
Technical field
The processing method and dress for receiving are sent the present invention relates to communication technical field, more particularly to data message Put.
Background technology
The heading of transmission of IP data message is fixed overhead between general network element in the prior art, and no matter The expense of many small messages heads of the payload of data message can not all be omitted, thus can cause the link bandwidth to have Effect utilization rate is relatively low.By taking mobile communication base site sub-system (BSS) as an example, when BSS network elements RNC with When IUB interfaces between NodeB are transmitted using ethernet link, the service message such as voice message is general all It is very short, such as including 14 byte MAC headers, 20 byte IP, 8 byte UDP, 4 byte MAC Layer inspection, and 7 bytes are leading, 1 byte frame delimiter, when the payload of data message is less than 54 During byte, then bandwidth availability ratio during data-message transmission does not just reach 50%.
Current solutions are mainly using IPHC (Internet Protocol Header Compression, IP Head compression) send out full head message and compress head message being spaced, but the method is more suitable for the direct-connected scene of point-to-point, And it is not suitable for needing the ethernet link or other networking modes of traversing switch and router, thus need Prior art is improved.
The content of the invention
The processing method and processing device for receiving is sent it is a primary object of the present invention to provide a kind of data message, Aim to solve the problem that how to reduce the transport overhead of data message to improve the technical problem of bandwidth availability ratio.
To achieve the above object, the present invention provides the processing method that a kind of data message sends, the data The processing method that message sends includes:
Before sending datagram, determine whether data message to be sent carries out message and wrap treatment;
To determine to carry out message and wrap treatment data message carry out message and wrap treatment with generate it is corresponding simultaneously Packet voice, wherein, and be provided with packet voice and packet voice identification field and simultaneously packet voice at least include simultaneously Packet voice head and with carry out message and wrap the corresponding some attached bags of data message for the treatment of, attached bag is at least Destination address identification field including data message;
By and packet voice and do not carry out message and wrap treatment data message add transmit queue in pending Send.
Preferably, it is described will determine carry out message and wrap treatment data message carry out message and wrap treatment with Generation is corresponding and packet voice includes:
Application length be default maximum frame length MFL's and bag buffering area and opening timing device carries out timing;
To filling and packet voice head in described and bag buffering area, wherein, and be provided with and wrap in packet voice head Message identification field;
When and packet voice current length be less than MFL when and/or timer time reach before, and packet voice The some attached bags of filling are arranged in order after head, wherein, after attached bag at least also removes heading including data message Payload field and attached bag length field;
When and the current length of packet voice reached more than or equal to MFL and/or timer time when, update simultaneously The CRC CRC of the current simultaneously packet voice of relevant field and generation in packet voice head simultaneously should CRC is filled into current and packet voice, obtains transmissible and packet voice.
Preferably, it is described to determine whether data message to be sent carries out message and wrap the mode for the treatment of at least Including:Whether source MAC or source IP address according to judging in data message correspond to what is specified MAC Address or IP address are determined;
Described and packet voice mark at least includes MAC Address or IP address or the UDP port number specified; The network of IP address or receiving device of the destination address mark of the data message at least including receiving device Number or the identifier corresponding with the IP address of receiving device.
Further, to achieve the above object, the present invention also provides the treatment side that a kind of data message is received Method, the processing method that the data message is received includes:
When message is received, it is determined that the message for being received whether be can unpack and packet voice, wherein, And be provided with packet voice and packet voice identification field and at least include and packet voice head and with carry out message And wrap the corresponding some attached bags of the data message for the treatment of;
If it is determined that being can unpack and packet voice, then judge to be somebody's turn to do and in packet voice with the presence or absence of this reception of correspondence The attached bag of end equipment;
If in the presence of the attached bag of this receiving device of correspondence in this and packet voice being carried out into message and is unpacked treatment To obtain the data message of this receiving device of correspondence;
By and packet voice in correspondence this receiving device attached bag carry out message unpack treatment obtained by data With to be received in message addition receiving queue.
Preferably, the attached bag by this receiving device of correspondence in this and packet voice carries out message and unpacks place Manage is included with obtaining the data message of corresponding this receiving device:
Apply for buffering area of unpacking;
To filling heading in the buffering area of unpacking, wherein, source address and destination in the heading Location corresponds to the address of the source address and this receiving device in simultaneously packet voice head respectively;
The attached bag of corresponding this receiving device is filled after the heading filled in the buffering area of unpacking Load simultaneously updates the relevant field in filled heading to obtain the datagram of this receiving device of correspondence Text, wherein, attached bag at least the destination address identification field including data message, data message remove message The length field of payload field and attached bag after head.
Preferably, the side for judging the attached bag in this and packet voice with the presence or absence of correspondence this receiving device Formula at least includes:
According to the destination address mark and the purpose of this receiving device of data message in attached bag in simultaneously packet voice Address judged, wherein, the length according to attached bag determines whether next attached bag is that correspondence this receiving terminal sets Standby attached bag.
Preferably, it is described when message is received, it is determined that whether the message for being received can unpack and wrap Message includes:
When message is received, it is determined that simultaneously with the presence or absence of simultaneously packet voice mark in packet voice, if in the presence of, It is defined as and packet voice;
When being defined as and after packet voice, calculate this and the CRC of packet voice and judge the CRC obtained by calculating Whether it is consistent with the CRC entrained by this and packet voice, if meeting, it is determined that for can unpacking and wrap report Text.
Preferably, it is described by and packet voice in the attached bag of correspondence this receiving device carry out message and unpack treatment Resulting data message is added in receiving queue with after to be received, the treatment that the data message is received Method also includes:
When this receiving device has subordinate's receiving device and subordinate receiving device is supported to process and wrap report Wen Shi, the attached bag of corresponding this receiving device is deleted from simultaneously packet voice and simultaneously packet voice is updated corresponding Relevant field after, by renewal after and packet voice add transmit queue in to be sent;
When this receiving device has subordinate's receiving device and subordinate's receiving device is not supported to process and wrap During message, will not currently carry out unpack all attached bags for the treatment of of message carries out message and unpacks treatment, obtains right Answer subordinate's receiving device data message and by the data message add transmit queue in to be sent.
Further, the present invention also provides the processing unit that a kind of data message sends, the data message The processing unit of transmission includes:
And bag determining module, for before sending datagram, determining whether data message to be sent enters Row message simultaneously wraps treatment;
And packet handing module, carry out message and wrap for that will determine to carry out message and wrap the data message for the treatment of Treatment to generate corresponding and packet voice, wherein, and be provided with packet voice and packet voice identification field and And packet voice at least include and packet voice head and with carry out message and wrap treatment data message it is corresponding Some attached bags, the attached bag at least destination address identification field including data message;
Message sending module, for by and packet voice and do not carry out message and wrap the data message for the treatment of adding Enter in transmit queue with to be sent.
Preferably, described and packet handing module includes:
Attached bag quantity control unit, for apply length be default maximum frame length MFL's and bag buffering area simultaneously Opening timing device carries out timing to control the quantity of simultaneously packet voice neutron packet;
And packet voice head fills unit, for being filled and packet voice head in described and bag buffering area, wherein, And be provided with packet voice head and packet voice identification field;
Attached bag fills unit, for when and packet voice current length be less than MFL when and/or timer time Before arrival, some attached bags of filling are arranged in order after simultaneously packet voice head, wherein, attached bag at least also includes number Remove the length field of payload field and attached bag after heading according to message;
And packet voice generation unit, for working as the current length of simultaneously packet voice more than or equal to MFL and/or determining When device time when reaching, update and the relevant field in packet voice head and generation be current and packet voice follow Simultaneously be filled into the CRC in current and packet voice by ring redundancy check code CRC, obtains transmissible and wraps Message.
Further, the present invention also provides the processing unit that a kind of data message is received, the data message The processing unit of reception includes:
Unpack determining module, for when message is received, it is determined that whether the message for being received is to unpack And packet voice, wherein, and be provided with packet voice and packet voice identification field and at least include and wrap report Literary head and with carry out message and wrap the corresponding some attached bags of data message for the treatment of;
Judge module, for when it is determined that the message for being received be can unpack and during packet voice, judge this simultaneously With the presence or absence of the attached bag of this receiving device of correspondence in packet voice;
Unpack processing module, for when and packet voice in there is the attached bag of correspondence this receiving device when, will The attached bag of this receiving device of correspondence carries out message and unpacks treatment to obtain correspondence this reception in this and packet voice The data message of end equipment;
Message receiver module, tears open for the attached bag of this receiving device of correspondence in simultaneously packet voice to be carried out into message With to be received in data message addition receiving queue obtained by bag treatment.
Preferably, the processing module of unpacking includes:
Application unit, for applying for buffering area of unpacking;
Data message head fills unit, for filling heading in the buffering area of unpacking, wherein, should Source address and destination address in heading are corresponded to and source address and this receiving terminal in packet voice head respectively The address of equipment;
Data message generation unit, for filling right after the heading filled in the buffering area of unpacking The relevant field answered the load of the attached bag of this receiving device and update in filled heading is right to obtain The data message of this receiving device is answered, wherein, the attached bag at least destination address including data message is identified Field, data message remove the length field of payload field and attached bag after heading.
Preferably, the processing unit that the data message is received also includes:
First transmission processe module, for there is subordinate's receiving device and subordinate connects when this receiving device When receiving end equipment supports treatment and packet voice, the attached bag of corresponding this receiving device is deleted from simultaneously packet voice Update and after the relevant field of packet voice except and corresponding, by renewal after and packet voice adds transmit queue In with to be sent;
Second transmission processe module, for there is subordinate's receiving device and subordinate connects when this receiving device Receiving end equipment does not support treatment and during packet voice, will not currently carry out unpack all attached bags for the treatment of of message and enters Row message is unpacked treatment, is obtained the data message of correspondence subordinate receiving device and is added the data message With to be sent in transmit queue.
In the present invention, by by multiple data messages carry out and wrap treatment with share one simultaneously packet voice head, So as to reduce the actual transmissions expense of each data message, namely heading is relatively reduced entirely simultaneously Expense in packet voice, and then the relative bandwidth availability ratio that improve message transmissions.Additionally, in the present invention Treatment is only carried out and wrapped to data message in need, and data message can come from same transmitting terminal, Can also be that, from different multiple transmitting terminals, namely the present invention supports the message multiplexing of multiple destination addresses, Various networking modes of transmitting terminal and receiving terminal are also supported simultaneously such that it is able to more neatly in networking Data message carry out and wrap treatment, so as to improve the bandwidth availability ratio of message transmissions in networking.
Brief description of the drawings
Fig. 1 is that the cascade network of BSS network elements RNC and NodeB in application scenarios embodiment of the invention is illustrated Figure;
Fig. 2 is the schematic flow sheet of the embodiment of processing method one that data message of the present invention sends;
Fig. 3 is the refinement schematic flow sheet of step S120 in Fig. 2;
Fig. 4 is the structural representation of the present invention and the embodiment of packet voice neutron packet one;
Fig. 5 is the structural representation of the present invention and the embodiment of packet voice one;
Fig. 6 is the structural representation of the present invention and another embodiment of packet voice;
Fig. 7 is the schematic flow sheet of the preferred embodiment of processing method one that data message of the present invention sends;
Fig. 8 is the schematic flow sheet of the embodiment of processing method one that data message of the present invention is received;
Fig. 9 is the structural representation of the resulting embodiment of data message one after treatment of unpacking in the present invention;
Figure 10 is the refinement schematic flow sheet of step S230 in Fig. 8;
Figure 11 is the schematic flow sheet of another embodiment of processing method that data message of the present invention is received;
Figure 12 is the schematic flow sheet of the preferred embodiment of processing method one that data message of the present invention is received;
Figure 13 is the high-level schematic functional block diagram of the embodiment of processing unit one that data message of the present invention sends;
Figure 14 be Figure 13 in and packet handing module refinement high-level schematic functional block diagram;
Figure 15 is the high-level schematic functional block diagram of the embodiment of processing unit one that data message of the present invention is received;
Figure 16 is the refinement high-level schematic functional block diagram of processing module of being unpacked in Figure 15;
Figure 17 is the high-level schematic functional block diagram of another embodiment of processing unit that data message of the present invention is received.
The realization of the object of the invention, functional characteristics and advantage will be done further referring to the drawings in conjunction with the embodiments Explanation.
Specific embodiment
It should be appreciated that specific embodiment described herein is only used to explain the present invention, it is not used to limit The present invention.
The present invention is by the way that multiple data messages are carried out and wraps treatment, so as to reach reduction message header overhead, And then to the utilization rate of bandwidth during relative raising message transmissions.In addition, it is contemplated that what distinct device was constituted The difference of the networking mode of transmitting terminal and receiving terminal, message provided by the present invention and bag processing mode and Message processing mode of unpacking can be flexibly applied to a variety of networkings, so as to lift message transfers net Bandwidth availability ratio.Present networking topology has type trunk, cascade shape, star, tree-like, annular, netted Etc., for purposes of illustration only, being only illustrated with level link group network in the present invention, other networking modes It is similar, therefore do not do and excessively repeat.
Fig. 1 is the cascade network of BSS network elements RNC and NodeB in application scenarios embodiment of the invention Schematic diagram.In BSS systems, RNC is connected with higher level equipment NodeB1, is used therebetween The physical layer link of IUB interfaces can be ethernet link, or E1/T1, STM-1 link.On Level equipment NodeB1 be connected with its next stage equipment NodeB2 again, NodeB2 again with its subordinate equipment NodeBN is connected, so as to form cascade network as shown in Figure 1.It should be noted that being typically different chain Host-host protocol of the road corresponding to it is different, thus supports and wrap (multiplexing packet) to process in the presence of some links, Such as ethernet link, and some are not supported and wrap treatment, such as E1/T1 links.Specifically with branch in the present invention The ethernet link for holding and wrapping treatment is illustrated.Furthermore, it is necessary to further illustrate, this hair In bright, do not limited with the setting of sending ending equipment for receiving end equipment, RNC and NodeB as shown in Figure 1 Both can be transmitting terminal, while can also be receiving terminal, be configured with specific reference to actual networking requirements.
Reference picture 2, Fig. 2 is the schematic flow sheet of the embodiment of processing method one that data message of the present invention sends. In the present embodiment, the processing method that the data message sends includes:
Step S110, before sending datagram, determines whether data message to be sent carries out message simultaneously Bag treatment;
In the present embodiment, before sending datagram, such as in a communications system, network element in core system MSC, HLR, VLR, AUC, SGSN, GGSN directly or indirectly can send each to RNC Kind of data message, expense shared by different its heading of data message is different.Such as, RNC and NodeB Between the voice message that is transmitted using ethernet link, if byte number is big shared by the heading of voice message In the payload of message, then the bandwidth availability ratio when voice message is transmitted can be greatly reduced.Therefore, It needs to be determined that whether data message to be sent carries out message and wraps treatment.
In the present embodiment, whether the data message for determining to be sent carries out message and wraps the mode for the treatment of Do not limit, preferably whether correspond to specify according to the source MAC or source IP address judged in data message MAC Address or IP address be determined.Such as some sending ending equipments only send the shorter number of length It is according to message or all shorter by the data message transmitted by a certain interface, thus can fixation will be a certain Arbitrary data message transmitted by equipment or a certain interface is all carried out and wraps treatment.Or by judging number The ratio for accounting for whole data message length according to the length of heading in message is judged, if ratio is more than 50%, it is determined that needs are carried out and wrap treatment.
In addition, it is necessary to further illustrate, the attribute of different pieces of information message is not limited in the present embodiment It is whether identical or whether be all sent to same destination address, namely support that any message belongs in the present embodiment Property and message address multiple data messages simultaneously wrap treatment.
Step S120, will determine carry out message and wrap treatment data message carry out message and wrap treatment with life Into corresponding and packet voice, wherein, and simultaneously packet voice identification field and simultaneously packet voice are provided with packet voice At least include and packet voice head and with carry out message and wrap the corresponding some sons of data message for the treatment of Bag, the attached bag at least destination address identification field including data message;
Under normal circumstances, in arbitrary networking all without only existing a data message for meeting and wrapping treatment, Therefore, can carry out and wrap treatment by by least two data messages in the present embodiment, even if also each data Message shares a heading, and each data message is connected to and after packet voice head in the form of attached bag, from And a bigger and packet voice is formed, and packet voice includes and packet voice head and some attached bags, wherein, Attached bag with carry out message and wrap treatment data message it is corresponding, namely attached bag and corresponding datagram stationery There is identical transmission payload.In the present embodiment, for and wrap the mode for the treatment of and do not limit, with specific reference to reality Needs are configured.
It is just further, since typically can simultaneously there is data message and simultaneously packet voice in networking transmission network In being mutually distinguishable, packet voice identification field in the lump preferably is set in each and packet voice in the present embodiment. Preferably, and packet voice mark at least includes the MAC Address specified or IP address or UDP port number. A few sending ending equipment only specified in such as whole networking transmission network can be carried out and wrap place Reason, thus the sending ending equipment that this can be specified MAC Address or the UDP that is used of IP address or transmission Port numbers are identified as simultaneously packet voice.
Step S130, by and packet voice and do not carry out message and wrap treatment data message add send team With to be sent in row.
In the present embodiment, when completing one and after packet voice, it is necessary to by this and packet voice is added to transmission team In row with etc. it is to be sent, simultaneously as in the presence of some data messages and message need not be carried out and treatment is wrapped, Therefore, directly can not will carry out message and wrap the data message for the treatment of to be also added in transmit queue with pending Send, wherein, the implementation that the message in transmit queue is sent is identical with prior art manner, Therefore do not do and excessively repeat.
In the present embodiment, by by multiple data messages carry out and wrap treatment with share one simultaneously packet voice head, So as to reduce the actual transmissions expense of each data message, namely heading is relatively reduced entirely simultaneously Expense in packet voice, and then the relative bandwidth availability ratio that improve message transmissions.Additionally, in the present invention Treatment is only carried out and wrapped to data message in need, and data message can come from same transmitting terminal, Can also be that, from different multiple transmitting terminals, namely the present invention supports the message multiplexing of multiple destination addresses, Various networking modes of transmitting terminal and receiving terminal are also supported simultaneously such that it is able to more neatly in networking Data message carry out and wrap treatment, so as to improve the bandwidth availability ratio of message transmissions in networking.
Reference picture 3, Fig. 3 is the refinement schematic flow sheet of step S120 in Fig. 2.Based on above-described embodiment, In the present embodiment, above-mentioned steps S120 includes:
Step S1201, application length be default maximum frame length MFL's and bag buffering area and opening timing device Carry out timing;
In the present embodiment, it is contemplated that the real-time of message transmissions and transmission size requirements, therefore, by control System storage and the size of the buffering area of packet voice and timer is set controls the complete of and packet voice Into, specifically for control and packet voice neutron packet quantity, additionally, the time point of opening timing device also may be used To be configured according to actual needs, such as filled in simultaneously bag buffering area and row is opened again after packet voice head.
Step S1202, to filling and packet voice head in described and bag buffering area, wherein, and in packet voice head It is provided with and packet voice identification field;
Two kinds of this implementation, and packet voice head mainly includes MAC headings and IP headings, wherein, MAC The MAC Address of the source MAC correspondence transmitting terminal in heading, the source IP address in IP headings Correspond to the IP address of transmitting terminal;In addition, for the target MAC (Media Access Control) address in MAC headings and The setting of the purpose IP address in IP headings is configured with specific reference to actual conditions, for example, can correspond to and set It is set to the multicast address of networking or the address of receiving device.
In addition, in the present embodiment, for ease of carrying out area to transmitted in network and packet voice and data message Point, preferably set and packet voice identification field in simultaneously packet voice head.For the setting that simultaneously packet voice is identified Do not limit, for example, can be MAC Address or the IP address specified, such as the source MAC couple and in packet voice head Address or source IP address are specified to be identified as simultaneously packet voice, so as to the word of heading can accordingly be reduced Section length.Alternatively, it is also possible to add UDP headings in simultaneously packet voice head, wherein, UDP headings It is provided with the UDP port number specified.
Step S1203, when and packet voice current length be less than MFL when and/or timer time reach before, The some attached bags of filling are arranged in order after simultaneously packet voice head, wherein, attached bag is at least also gone including data message Fall the length field of the payload field after heading and attached bag;
In the present embodiment, can be reduced to after the treatment that unpack for ease of attached bag and bag before processing number According to message, so that the accurate transmission to data message is realized, therefore, need to be provided with data in attached bag The destination address identification field and data message of message remove the payload field after heading, meanwhile, it is It is easy to carry out length statistics to whole and packet voice, while also allow for distinguishing the affiliated length range of each attached bag, Therefore, the length field of attached bag is additionally provided with attached bag, as shown in Figure 4.Flag corresponds to datagram The destination address identification field of text, SubLen corresponds to the length field of attached bag, and Data corresponds to datagram Text removes the payload field after heading.
Step S1204, when and the current length of packet voice arrived more than or equal to MFL and/or timer time Up to when, update and the relevant field in packet voice head and generation is current and CRC of packet voice Simultaneously be filled into the CRC in current and packet voice by code CRC, obtains transmissible and packet voice.
In the present embodiment, when the MFL or timer time for reaching setting in the length of simultaneously packet voice are reached, Need pair and the relevant field in packet voice head be updated, such as massage head checking sum and, message length etc.. Additionally, to further ensure that and wrap consistent correctness of after the treatment and packet voice in transmitting terminal and receiving terminal, The simultaneously CRC CRC of packet voice is also generated in the present embodiment and as simultaneously packet voice A part be transmitted together, as shown in Figure 5,6 and packet voice structural representation.
The schematic flow sheet of the preferred embodiment of processing method one that the data message shown in reference picture 7 sends.
S11, a message is sent, including sending datagram, packet message, packet voice etc., the present invention In and wrap treatment preferred pin to the less data message of message length;
S12, judge whether that requirement is carried out and wraps treatment, if otherwise performing S13, if then performing S14;
S13, the message that will need not be carried out and wrap treatment are put into transmit queue;
S14, opening timing device and one length of application for MFL buffering area is for depositing and wraps place Data during reason;
S15, to buffering area fill heading, heading include ethernet mac head and IP heads, MAC Source MAC in head is the MAC Address of transmitting terminal, and source IP address is the IP address of transmitting terminal, And also include and wrap mark in the heading of the filling;
S16, the length Length=Length+subLen, wherein Length for calculating and preserving current and packet voice Initial value be 0, subLen be attached bag length, the load of attached bag including attached bag, sub-packet length field and Attached bag destination address identification field, wherein, such as destination address mark can be the IP ground of receiving device Uniquely identified in location or the network number of receiving device, or other networks, for being connect with other Receiving end equipment is distinguished;
Whether S17, the length Length of the current simultaneously packet voice of judgement are less than MFL, if performing S18, S21 is performed if not;
Destination address identification field, the length of attached bag of attached bag are sequentially filled after S18, in the buffer heading The payload field of degree field and attached bag, wherein, the load of attached bag is the load after correspondence message removal heading Lotus;
S19, judge whether the timing of timer reaches, if then performing S21, if otherwise performing S20;
S20, judge whether to send next message, if then returning to S16, if otherwise returning to S19;
S21, update and the massage head checking sum in packet voice head and and the field such as packet voice length, or also CRC check code can be generated and filled it into and packet voice afterbody;
S22, by generate and bag be put into transmit queue with to be sent;
S23, cancellation timer timing;
S24, determine whether to send next message, if then returning to S14, if otherwise continuing executing with this Step.
In the present embodiment, timer and parameter MFL (Max Frame Length, maximum frame length) by with To control multiplex data and bag completion.When first message for needing and wrapping is produced, timing Device starts timing, and message is put into multiplex data buffering area.The follow-up message for needing and wrapping is also multiple successively In using the multiplex data buffering area, until timer to or the total length that simultaneously wraps more than MFL when and wrap Terminate, whole multiplex data and wrap and can be put into transmit queue.When next needs and the message that wraps is again During generation, timer timing again repeats above-mentioned flow.
Reference picture 8, Fig. 8 is the schematic flow sheet of the embodiment of processing method one that data message of the present invention is received. Each embodiment of processing method that data message based on the invention described above sends, in the present embodiment, the number The processing method received according to message includes:
Step S210, when message is received, it is determined that whether the message for being received can unpack and wrap report Text, wherein, and be provided with packet voice and packet voice identification field and at least include and packet voice head and With carry out message and wrap the corresponding some attached bags of data message for the treatment of;
In the present embodiment, the message received by receiving device had both been likely to be data message, packet report Text etc., while it could also be possible that simultaneously packet voice, accordingly, it would be desirable to first judge whether the message for receiving is simultaneously Packet voice, yet with and packet voice in transmit process it is possible that deviation and have influence on and packet voice Accuracy so that again judge and packet voice whether can carry out treatment of unpacking, namely judge and wrap Whether message meets the requirement of receiving terminal, such as length requirement etc..
Preferably, when message is received, it is determined that simultaneously with the presence or absence of simultaneously packet voice mark in packet voice, if In the presence of, it is determined that for and packet voice;When being defined as and after packet voice, the CRC of this and packet voice is calculated simultaneously Judge whether the CRC obtained by calculating is consistent with the CRC entrained by this and packet voice, if meeting, Then be defined as unpacking and packet voice.Wherein, and packet voice mark with CRC check code in above-mentioned number Explained in the embodiment of the processing method sent according to message, therefore no longer done excessive superfluous in the present embodiment State.
Step S220, however, it is determined that be can unpack and packet voice, then judge to be somebody's turn to do and whether there is in packet voice The attached bag of corresponding this receiving device;
In the present embodiment, can by carrying out and in bag processing procedure, and a certain field wrapped in add The mark of corresponding sign receiving device carries out judgement confirmation in order to receiving terminal.Wherein, the mark can Be in the IP address of receiving device or the network number of receiving device, or other networks it is unique Mark, for other receiving devices distinguish.
In the present embodiment, it is contemplated that and many height of this receiving device of correspondence are there may be in packet voice Bag, therefore, being defined as unpacking and after packet voice, can disposably will and packet voice in correspondence All attached bags of receiving device identify, then carry out treatment of unpacking together again.In addition it is also possible to It is being defined as unpacking and circular treatment is carried out after packet voice, such as first to recognize an attached bag and carry out Unpack after processing, then recognize next attached bag, specific processing mode is configured according to actual needs.
Preferably, the mode bag of the attached bag in this and packet voice with the presence or absence of correspondence this receiving device is judged Include:According to the destination address mark and the purpose of this receiving device of data message in attached bag in simultaneously packet voice Address judged, wherein, the length according to attached bag is used to determine whether next attached bag is this reception of correspondence The attached bag of end equipment.
Step S230, if in the presence of by correspondingly the attached bag of this receiving device is reported in this and packet voice Text unpacks treatment to obtain the data message of this receiving device of correspondence;
In the present embodiment, and the structure of packet voice mainly includes and packet voice head and some attached bags, wherein, Attached bag for corresponding data message carry out and wrap treatment after it is resulting, therefore, for attached bag in the present embodiment Treatment of unpacking is and wraps the reverse process for the treatment of, namely attached bag unpack treatment and data message and at bag Reason is corresponding, therefore the treatment of unpacking of attached bag is exactly the process that attached bag is reduced to corresponding data message, tool Body processing mode of unpacking is not limited, and is specifically set according to actual needs.
Step S240, by and packet voice in correspondence this receiving device attached bag carry out message unpack treatment institute With to be received in the data message addition receiving queue for obtaining.
Carrying out as shown in Figure 9 is unpacked resulting data message form after treatment.In the present embodiment, number The treatment received according to message is corresponding with the treatment that data message sends, because multiple data messages are carried out simultaneously After bag treatment can expense shared by heading, and then the relative transmission quantity that improve for payload, Namely improve transmission bandwidth utilization rate, the place that the treatment that data message is received specifically sends with data message Reason is engaged, and can correctly be sent from transmitting terminal to receiving terminal while with data message is received with being reached, Ensure the lifting of transmission bandwidth utilization rate.
Reference picture 10, Figure 10 is the refinement schematic flow sheet of step S230 in Fig. 8.Based on above-mentioned implementation Example, in the present embodiment, above-mentioned steps S230 includes:
Step S2301, applies for buffering area of unpacking;
In the present embodiment, buffering area of unpacking is used to store the datagram for carrying out this receiving terminal corresponding to attached bag The assembling data of text, the heading, load including data message etc..
Step S2302, to filling heading in the buffering area of unpacking, wherein, the source ground in the heading Location and destination address correspond to the address of the source address and this receiving device in simultaneously packet voice head respectively;
In the present embodiment, the data message of this receiving terminal is processed for ease of this receiving device, needed The heading of formed data message of unpacking is processed accordingly, also will be in the heading Source address and destination address correspond to the ground of the source address and this receiving device in simultaneously packet voice head respectively Location.Wherein, the source MAC ground in the heading of data message in the corresponding simultaneously packet voice head of source MAC Location, the source IP address in the heading of data message in the corresponding simultaneously packet voice head of source IP address, data message Heading in target MAC (Media Access Control) address correspondence this receiving device target MAC (Media Access Control) address, data message The purpose IP address of this receiving device of purpose IP address correspondence in heading.
Step S2303, fills corresponding this receiving terminal and sets after the heading filled in the buffering area of unpacking Relevant field in the load and the filled heading of renewal of standby attached bag is set with obtaining corresponding this receiving terminal Standby data message, wherein, attached bag at least destination address identification field, datagram including data message Text removes the length field of payload field and attached bag after heading.
In the present embodiment, the processing procedure of unpacking for simultaneously packet voice neutron packet is substantially exactly to split attached bag To be assembled into the process of corresponding data message.The load of attached bag is filled after filling heading in buffering area of unpacking Lotus, namely data message removes the load after heading when corresponding to carry out and wrap treatment.In the present embodiment, The treatment that data message is received is corresponding with the treatment that data message sends, because multiple data messages are carried out And wrap after treatment can expense shared by heading, and then the relative transmission quantity that improve for payload, Namely improve transmission bandwidth utilization rate, the place that the treatment that data message is received specifically sends with data message Reason is engaged, and can correctly be sent from transmitting terminal to receiving terminal while with data message is received with being reached, Ensure the lifting of transmission bandwidth utilization rate.
Reference picture 11, Figure 11 is that the flow of another embodiment of processing method that data message of the present invention is received is shown It is intended to.Based on above-described embodiment, in the present embodiment, after above-mentioned steps S240, the data message connects The processing method of receipts also includes:
Step S250, when this receiving device has subordinate's receiving device and subordinate's receiving device support Process and during packet voice, by the attached bag of correspondence this receiving device from and packet voice in delete and accordingly more After the relevant field of new and packet voice, by renewal after and packet voice add in transmit queue with to be sent;
Step S260, when this receiving device has subordinate's receiving device and subordinate's receiving device is not propped up Hold treatment and during packet voice, will not currently carry out unpack all attached bags for the treatment of of message carries out message and unpack place Reason, obtain correspondence subordinate receiving device data message and by the data message add in transmit queue with It is to be sent.
In the present embodiment, the execution sequence of above-mentioned steps S250 and S260 is not limited.
It is different in view of the message transmissions mode corresponding to different networking modes, than cascade as shown in Figure 1 In networking mode, first device NodeB2 in the presence of NodeB1 equipment, and be simultaneously likely to deposit in packet voice In the message of NodeB2 equipment, therefore, when this receiving device has subordinate's receiving device and subordinate connects When receiving end equipment supports treatment and packet voice, the attached bag of corresponding this receiving device is deleted from simultaneously packet voice Except and corresponding relevant field (such as inspection and field, message length field, the mesh for updating simultaneously packet voice Address field etc.) after, by renewal after and packet voice add in transmit queue to be sent to next stage Equipment carries out treatment of unpacking.
If additionally, this receiving device there is subordinate's receiving device but subordinate's receiving device does not support place Manage and packet voice, then will not currently carry out unpack all attached bags for the treatment of of message carries out message and unpack treatment, Obtain the data message of correspondence subordinate receiving device and add in transmit queue with pending the data message Give corresponding subordinate's receiving device.It should be noted that issuing the data message of subordinate equipment The destination address of heading needs to be updated to the address of subordinate equipment.Also will be in the MAC header of heading Target MAC (Media Access Control) address is updated to subordinate equipment MAC Address, and purpose IP address are updated to subordinate in IP The IP address of equipment.
The schematic flow sheet of the preferred embodiment of processing method one that the data message shown in reference picture 12 is received.
S31, receive a message, the message that receiving terminal is received include data message, packet message and Packet voice etc.;
Whether S32, the message that receives of judgement are and packet voice S33 to be performed if not, if performing S34;
S33, processed by common Message processing flow;
S34, the length field Length taken out in simultaneously packet voice head;
Whether the length Length of S35, judgement and packet voice is less than the receivable maximum message segment frame of this receiving terminal MFL long, if otherwise performing S36, if then performing S37;
S36, failure is unpacked, abandon whole and packet voice, now and packet voice length violation splice grafting receiving end Receive and require;
S37, length subLen and destination address the mark flag that attached bag is read using pointer reading manner;
S38, read after, calculate current and packet voice length Length=Length-subLen, and will refer to Pin points to next attached bag, such as determine next attached bag by the length subLen of attached bag;
S39, subordinate equipment is judged whether, or be also an option that and judge whether subordinate equipment is supported simultaneously Bag;If then performing S40, if otherwise performing S41;Wherein, if this receiving device has subordinate equipment, Even if in the absence of the datagram of this receiving device of correspondence in received by this receiving device and packet voice Text, namely can be retransmited after all attached bags in simultaneously packet voice unpack and process by this receiving terminal To corresponding subordinate equipment;
Whether S40, the flag of the attached bag for obtaining correspond to the mark of this receiving device, such as correspond to MAC Address, IP address or other identifiers etc., if then performing S41, if otherwise performing S46;
S41, one freebuf of application are for the various data unpacked of storage to generate complete data Message;
S42, heading is filled in the buffer, and the load of attached bag is refilled after heading, wherein, The destination address of heading is the address corresponding to purpose address mark flag, namely this receiving device Address, the load of attached bag corresponds to the load of data message;
S43, update the data message heading relevant field, such as massage head checking sum and, message length Etc. field;
S44, by correspondence this receiving terminal attached bag unpack after generate data message be added in receiving queue with Treat that this receiving terminal is received;
It is S45, optional, if there is subordinate equipment and subordinate equipment is also supported and wrapped, will and packet voice in The attached bag for solving is deleted and other attached bags behind the deletion attached bag all moves forward;
Whether S46, judgement and packet voice current length Length are more than zero, if then return performing S37, If otherwise performing S47;
After S47, renewal unpacking and heading in packet voice relevant field, such as update destination address For subordinate equipment address, update message checking and field, message length field etc.;
S48, by through unpacking treatment after and packet voice be added in the transmit queue of this receiving device with It is sent to subordinate equipment.
Reference picture 13, Figure 13 is the functional module of the embodiment of processing unit one that data message of the present invention sends Schematic diagram.In the present embodiment, the processing unit that the data message sends includes:
And bag determining module 110, for whether before sending datagram, determining data message to be sent Carry out message and wrap treatment;
In the present embodiment, before sending datagram, such as in a communications system, network element in core system MSC, HLR, VLR, AUC, SGSN, GGSN directly or indirectly can send each to RNC Kind of data message, expense shared by different its heading of data message is different.Such as, RNC and NodeB Between the voice message that is transmitted using ethernet link, if byte number is big shared by the heading of voice message In the payload of message, then the bandwidth availability ratio when voice message is transmitted can be greatly reduced.Therefore, Need to pass through and bag determining module 110 determines whether data message to be sent carries out message and wrap treatment.
In the present embodiment, determine whether data message to be sent is reported for simultaneously bag determining module 110 Mode that is literary and wrapping treatment is not limited, preferably according to source MAC or the source IP ground judged in data message Whether location corresponds to the MAC Address specified or IP address is determined.Such as some sending ending equipments The shorter data message or all shorter by the data message transmitted by a certain interface of length is sent, because This can be fixed all carries out the arbitrary data message transmitted by a certain equipment or a certain interface and wraps place Reason.Or carried out by judging that the length of heading in data message accounts for the ratio of whole data message length Judge, if ratio is more than 50%, it is determined that needs are carried out and wrap treatment.
In addition, it is necessary to further illustrate, the attribute of different pieces of information message is not limited in the present embodiment It is whether identical or whether be all sent to same destination address, namely support that any message belongs in the present embodiment Property and message address multiple data messages simultaneously wrap treatment.
And packet handing module 120, carry out message simultaneously for that will determine to carry out message and wrap the data message for the treatment of Bag is processed to generate corresponding and packet voice, wherein, and be provided with packet voice and packet voice identification field And simultaneously packet voice at least include and packet voice head and with carry out message and wrap treatment data message it is corresponding Some attached bags, attached bag at least including data message destination address identification field;
Under normal circumstances, in arbitrary networking all without only existing a data message for meeting and wrapping treatment, Therefore, at least two data messages can be carried out and wraps place by simultaneously packet handing module 120 in the present embodiment Reason, even if also each data message shares a heading, and each data message is connected in the form of attached bag And after packet voice head, so as to form a bigger and packet voice, and packet voice include and packet voice head with And some attached bags, wherein, attached bag with carry out message and wrap treatment data message it is corresponding, namely attached bag There is identical transmission payload with corresponding data message.In the present embodiment, for and wrap the mode for the treatment of Do not limit, be configured with specific reference to being actually needed.
It is just further, since typically can simultaneously there is data message and simultaneously packet voice in networking transmission network In being mutually distinguishable, packet voice identification field in the lump preferably is set in each and packet voice in the present embodiment. Preferably, and packet voice mark at least includes the MAC Address specified or IP address or UDP port number. A few sending ending equipment only specified in such as whole networking transmission network can be carried out and wrap place Reason, thus the sending ending equipment that this can be specified MAC Address or the UDP that is used of IP address or transmission Port numbers are identified as simultaneously packet voice.
Message sending module 130, for by and packet voice and do not carry out message and wrap the data message for the treatment of With to be sent in addition transmit queue.
In the present embodiment, when completing one and after packet voice, message sending module 130 should simultaneously packet voice Be added in transmit queue with etc. it is to be sent, simultaneously as in the presence of some data messages and need not carry out Message simultaneously wraps treatment, therefore, can directly by do not carry out message and wrap treatment data message be also added to hair Send in queue with to be sent, wherein, the implementation that the message in transmit queue is sent with it is existing Technical approach is identical, therefore does not do and excessively repeat.
In addition, it is necessary to illustrate, the processing unit that data message of the invention sends may be provided at each hair In sending end equipment, or the transmission path that message source can also be arranged on as a single equipment On, specific set-up mode is configured according to actual needs.
In the present embodiment, by by multiple data messages carry out and wrap treatment with share one simultaneously packet voice head, So as to reduce the actual transmissions expense of each data message, namely heading is relatively reduced entirely simultaneously Expense in packet voice, and then the relative bandwidth availability ratio that improve message transmissions.Additionally, in the present invention Treatment is only carried out and wrapped to data message in need, and data message can come from same transmitting terminal, Can also be that, from different multiple transmitting terminals, namely the present invention supports the message multiplexing of multiple destination addresses, Various networking modes of transmitting terminal and receiving terminal are also supported simultaneously such that it is able to more neatly in networking Data message carry out and wrap treatment, so as to improve the bandwidth availability ratio of message transmissions in networking.
Reference picture 14, Figure 14 be Figure 13 in and packet handing module refinement high-level schematic functional block diagram.It is based on Above-described embodiment, in the present embodiment, described and packet handing module 120 includes:
Attached bag quantity control unit 1201, for applying for that length is that default maximum frame length MFL's and wraps buffering Simultaneously opening timing device carries out timing to control the quantity of simultaneously packet voice neutron packet in area;
In the present embodiment, it is contemplated that the real-time of message transmissions and transmission size requirements, therefore, attached bag number Amount control unit 1201 is controlled by controlling the size and setting timer of the buffering area of storage and packet voice The completion of system one and packet voice, specifically for control and the quantity of packet voice neutron packet, additionally, opening The time point of timer can also be configured according to actual needs, such as filled simultaneously in simultaneously bag buffering area Row is opened again after packet voice head.
And packet voice head fills unit 1202, for being filled and packet voice head in described and bag buffering area, Wherein, and in packet voice head it is provided with and packet voice identification field;
Two kinds of this implementation, and packet voice head mainly includes MAC headings and IP headings, wherein, MAC The MAC Address of the source MAC correspondence transmitting terminal in heading, the source IP address in IP headings Correspond to the IP address of transmitting terminal;In addition, for the target MAC (Media Access Control) address in MAC headings and The setting of the purpose IP address in IP headings is configured with specific reference to actual conditions, for example, can correspond to and set It is set to the multicast address of networking or the address of receiving device.
In addition, in the present embodiment, for ease of carrying out area to transmitted in network and packet voice and data message Point, preferably set and packet voice identification field in simultaneously packet voice head.For the setting that simultaneously packet voice is identified Do not limit, for example, can be MAC Address or the IP address specified, such as the source MAC couple and in packet voice head Address or source IP address are specified to be identified as simultaneously packet voice, so as to the word of heading can accordingly be reduced Section length.Alternatively, it is also possible to add UDP headings in simultaneously packet voice head, wherein, UDP headings It is provided with the UDP port number specified.
Attached bag fills unit 1203, for when and packet voice current length be less than MFL when and/or timing Before the device time reaches, some attached bags of filling are arranged in order after simultaneously packet voice head, wherein, attached bag is at least also Remove the length field of payload field and attached bag after heading including data message;
In the present embodiment, can be reduced to after the treatment that unpack for ease of attached bag and bag before processing number According to message, so that the accurate transmission to data message is realized, therefore, need to be provided with data in attached bag The destination address identification field and data message of message remove the payload field after heading, meanwhile, it is It is easy to carry out length statistics to whole and packet voice, while also allow for distinguishing the affiliated length range of each attached bag, Therefore, the length field of attached bag is additionally provided with attached bag, as shown in Figure 4.Flag corresponds to datagram The destination address identification field of text, SubLen corresponds to the length field of attached bag, and Data corresponds to datagram Text removes the payload field after heading.
And packet voice generation unit 1204, for when and packet voice current length more than or equal to MFL and / or timer time when reaching, updates and the relevant field in packet voice head and generation is current and packet voice CRC CRC and the CRC is filled into current and packet voice, obtain transmissible And packet voice.
In the present embodiment, when the MFL or timer time for reaching setting in the length of simultaneously packet voice are reached, Need pair and the relevant field in packet voice head be updated, such as massage head checking sum and, message length etc.. Additionally, to further ensure that and wrap consistent correctness of after the treatment and packet voice in transmitting terminal and receiving terminal, The simultaneously CRC CRC of packet voice is also generated in the present embodiment and as simultaneously packet voice A part is transmitted together.
Reference picture 15, Figure 15 is the functional module of the embodiment of processing unit one that data message of the present invention is received Schematic diagram.In the present embodiment, the processing unit that the data message is received includes:
Determining module of unpacking 210, for when message is received, it is determined that whether the message for being received is removable Bag and packet voice, wherein, and be provided with packet voice and packet voice identification field and at least include and wrap Heading and with carry out message and wrap the corresponding some attached bags of data message for the treatment of;
In the present embodiment, the message received by receiving device had both been likely to be data message, packet report Text etc., while it could also be possible that simultaneously packet voice, accordingly, it would be desirable to first be judged by determining module 210 of unpacking The message for receiving whether be and packet voice, yet with and packet voice in transmit process it is possible that Deviation and have influence on and packet voice accuracy so that again judge and packet voice whether can be torn open Bag treatment, namely judge and whether packet voice meets the requirement of receiving terminal, such as length requirement etc..
Preferably, when message is received, determining module of unpacking 210 determines and whether there is in packet voice And packet voice identify, if in the presence of, it is determined that for and packet voice;When unpacking, determining module 210 is defined as simultaneously After packet voice, calculate this and the CRC of packet voice and judge whether the CRC obtained by calculating simultaneously wraps with this CRC entrained by message is consistent, if meeting, determining module of unpacking 210 determines to be somebody's turn to do and packet voice is Can unpack and packet voice.Wherein, and packet voice mark with CRC check code above-mentioned data message send out Explained in the embodiment of the processing method sent, therefore no longer done in the present embodiment and excessively repeat.
Judge module 220, for when it is determined that the message for being received be can unpack and during packet voice, judging should And with the presence or absence of the attached bag of this receiving device of correspondence in packet voice;
In the present embodiment, can by carrying out and in bag processing procedure, and a certain field wrapped in add The mark of corresponding sign receiving device carries out judgement confirmation in order to receiving terminal.Wherein, the mark can Be in the IP address of receiving device or the network number of receiving device, or other networks it is unique Mark, for other receiving devices distinguish.
In the present embodiment, it is contemplated that and many height of this receiving device of correspondence are there may be in packet voice Bag, therefore, being defined as unpacking and after packet voice, can disposably will and packet voice in correspondence All attached bags of receiving device identify, then carry out treatment of unpacking together again.In addition it is also possible to It is being defined as unpacking and circular treatment is carried out after packet voice, such as first to recognize an attached bag and carry out Unpack after processing, then recognize next attached bag, specific processing mode is configured according to actual needs.
Preferably, the mode bag of the attached bag in this and packet voice with the presence or absence of correspondence this receiving device is judged Include:According to the destination address mark and the purpose of this receiving device of data message in attached bag in simultaneously packet voice Address judged, wherein, the length according to attached bag is used to determine whether next attached bag is this reception of correspondence The attached bag of end equipment.
Processing module of unpacking 230, for when and packet voice in exist correspondence this receiving device attached bag when, The attached bag for corresponding to this receiving device in this and packet voice is carried out into message to unpack treatment to obtain correspondingly originally connecing The data message of receiving end equipment;
In the present embodiment, and the structure of packet voice mainly includes and packet voice head and some attached bags, wherein, Attached bag for corresponding data message carry out and wrap treatment after it is resulting, therefore, for attached bag in the present embodiment Treatment of unpacking is and wraps the reverse process for the treatment of, namely attached bag unpack treatment and data message and at bag Reason is corresponding, therefore the treatment of unpacking of attached bag is exactly the process that attached bag is reduced to corresponding data message, tool Body processing mode of unpacking is not limited, and is specifically set according to actual needs.
Message receiver module 240, for the attached bag of this receiving device of correspondence in simultaneously packet voice to be carried out into message With to be received in the data message addition receiving queue unpacked obtained by processing.
In addition, it is necessary to illustrate, the processing unit that data message of the invention is received may be provided at and respectively connect In receiving end equipment, or the transmission path that message sink can also be arranged on as a single equipment On, specific set-up mode is configured according to actual needs.
In the present embodiment, the treatment that data message is received is corresponding with the treatment that data message sends, due to Multiple data messages carry out and wrap after treatment can expense shared by heading, and then relative improve for having The transmission quantity of load is imitated, namely improves transmission bandwidth utilization rate, the treatment that data message is received is specific The treatment sent with data message is engaged, and can correctly be sent from transmitting terminal to receiving terminal and connect to reach While receiving data message, it is ensured that the lifting of transmission bandwidth utilization rate.
Reference picture 16, Figure 16 is the refinement high-level schematic functional block diagram of processing module of being unpacked in Figure 15.It is based on Above-described embodiment, in the present embodiment, the processing module 230 of unpacking includes:
Application unit 2301, for applying for buffering area of unpacking;
In the present embodiment, buffering area of unpacking is used to store the datagram for carrying out this receiving terminal corresponding to attached bag The assembling data of text, the heading, load including data message etc..
Data message head fills unit 2302, for filling heading in the buffering area of unpacking, wherein, Source address and destination address in the heading are corresponded to and the source address in packet voice head and this reception respectively The address of end equipment;
In the present embodiment, the data message of this receiving terminal is processed for ease of this receiving device, needed The heading of formed data message of unpacking is processed accordingly, also will be in the heading Source address and destination address correspond to the ground of the source address and this receiving device in simultaneously packet voice head respectively Location.Wherein, the source MAC ground in the heading of data message in the corresponding simultaneously packet voice head of source MAC Location, the source IP address in the heading of data message in the corresponding simultaneously packet voice head of source IP address, data message Heading in target MAC (Media Access Control) address correspondence this receiving device target MAC (Media Access Control) address, data message The purpose IP address of this receiving device of purpose IP address correspondence in heading.
Data message generation unit 2303, for being filled out after the heading filled in the buffering area of unpacking Fill the load of the attached bag for corresponding to this receiving device and update the relevant field in filled heading to obtain To the data message for corresponding to this receiving device, wherein, the attached bag at least destination address including data message Identification field, data message remove the length field of payload field and attached bag after heading.
In the present embodiment, the processing procedure of unpacking for simultaneously packet voice neutron packet is substantially exactly to split attached bag To be assembled into the process of corresponding data message.The load of attached bag is filled after filling heading in buffering area of unpacking Lotus, namely data message removes the load after heading when corresponding to carry out and wrap treatment.In the present embodiment, The treatment that data message is received is corresponding with the treatment that data message sends, because multiple data messages are carried out And wrap after treatment can expense shared by heading, and then the relative transmission quantity that improve for payload, Namely improve transmission bandwidth utilization rate, the place that the treatment that data message is received specifically sends with data message Reason is engaged, and can correctly be sent from transmitting terminal to receiving terminal while with data message is received with being reached, Ensure the lifting of transmission bandwidth utilization rate.
Reference picture 17, Figure 17 is the function mould of another embodiment of processing unit that data message of the present invention is received Block schematic diagram.Based on above-described embodiment, in the present embodiment, the processing unit that the data message is received is also Including:
First transmission processe module 250, for there is subordinate's receiving device and subordinate when this receiving device When receiving device supports treatment and packet voice, by the attached bag of corresponding this receiving device from simultaneously packet voice Delete and simultaneously updated and after the relevant field of packet voice corresponding, by renewal after and packet voice add and send team With to be sent in row;
Second transmission processe module 260, for there is subordinate's receiving device and subordinate when this receiving device Receiving device does not support treatment and during packet voice, will not currently carry out message and unpacks all attached bags for the treatment of Carry out message to unpack treatment, obtain the data message of correspondence subordinate receiving device and add the data message Enter in transmit queue with to be sent.
In the present embodiment, it is contemplated that the message transmissions mode corresponding to different networking modes is different, such as Fig. 1 In shown cascade network mode, first device NodeB2 in the presence of NodeB1 equipment, and simultaneously packet voice In also likely to be present the message of NodeB2 equipment, therefore, set when this receiving device has subordinate's receiving terminal When standby and subordinate's receiving device supports treatment and packet voice, by the attached bag of corresponding this receiving device from simultaneously Deleted in packet voice and (such as inspection and field, message are long in the corresponding relevant field for updating simultaneously packet voice Degree field, destination address field (DAF) etc.) after, by renewal after and packet voice add in transmit queue with pending Giving next stage equipment carries out treatment of unpacking.
If additionally, this receiving device there is subordinate's receiving device but subordinate's receiving device does not support place Manage and packet voice, then will not currently carry out unpack all attached bags for the treatment of of message carries out message and unpack treatment, Obtain the data message of correspondence subordinate receiving device and add in transmit queue with pending the data message Give corresponding subordinate's receiving device.It should be noted that issuing the data message of subordinate equipment The destination address of heading needs to be updated to the address of subordinate equipment.Also will be in the MAC header of heading Target MAC (Media Access Control) address is updated to subordinate equipment MAC Address, and purpose IP address are updated to subordinate in IP The IP address of equipment.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every The equivalent structure or equivalent flow conversion made using description of the invention and accompanying drawing content, or directly or Connect and be used in other related technical fields, be included within the scope of the present invention.

Claims (13)

1. a kind of processing method that data message sends, it is characterised in that the place that the data message sends Reason method includes:
Before sending datagram, determine whether data message to be sent carries out message and wrap treatment;
To determine to carry out message and wrap treatment data message carry out message and wrap treatment with generate it is corresponding simultaneously Packet voice, wherein, and be provided with packet voice and packet voice identification field and simultaneously packet voice at least include simultaneously Packet voice head and with carry out message and wrap the corresponding some attached bags of data message for the treatment of, attached bag is at least Destination address identification field including data message;
By and packet voice and do not carry out message and wrap treatment data message add transmit queue in pending Send.
2. the processing method that data message as claimed in claim 1 sends, it is characterised in that described to incite somebody to action It is determined that the data message for carrying out message and wrapping treatment carries out message and wraps treatment to generate corresponding and packet voice Including:
Application length be default maximum frame length MFL's and bag buffering area and opening timing device carries out timing;
To filling and packet voice head in described and bag buffering area, wherein, and be provided with and wrap in packet voice head Message identification field;
When and the current length of packet voice be less than MFL when and/or before timer time reaches, and wrap report The some attached bags of filling are arranged in order after literary head, wherein, attached bag at least also removes heading including data message Payload field afterwards and the length field of attached bag;
When and the current length of packet voice reached more than or equal to MFL and/or timer time when, update And the relevant field and the CRC CRC of the current simultaneously packet voice of generation in packet voice head are simultaneously The CRC is filled into current and packet voice, transmissible and packet voice is obtained.
3. the processing method that data message as claimed in claim 2 sends, it is characterised in that described true Whether fixed data message to be sent carries out message and wrap the mode for the treatment of at least includes:According to judging data Whether source MAC or source IP address in message correspond to the MAC Address specified or IP address is entered Row determines;
Described and packet voice mark at least includes MAC Address or IP address or the UDP port number specified; The net of IP address or receiving device of the destination address mark of the data message at least including receiving device Network number or the identifier corresponding with the IP address of receiving device.
4. a kind of processing method that data message is received, it is characterised in that the place that the data message is received Reason method includes:
When message is received, it is determined that the message for being received whether be can unpack and packet voice, wherein, And be provided with packet voice and packet voice identification field and at least include and packet voice head and with carry out message And wrap the corresponding some attached bags of the data message for the treatment of;
If it is determined that being can unpack and packet voice, then judge to be somebody's turn to do and in packet voice with the presence or absence of this reception of correspondence The attached bag of end equipment;
If in the presence of the attached bag of this receiving device of correspondence in this and packet voice being carried out into message and is unpacked treatment To obtain the data message of this receiving device of correspondence;
By and packet voice in correspondence this receiving device attached bag carry out message unpack treatment obtained by data With to be received in message addition receiving queue.
5. the processing method that data message as claimed in claim 4 is received, it is characterised in that described to incite somebody to action The attached bag of this receiving device of correspondence carries out message and unpacks treatment to obtain correspondence this reception in this and packet voice The data message of end equipment includes:
Apply for buffering area of unpacking;
To filling heading in the buffering area of unpacking, wherein, source address and destination in the heading Location corresponds to the address of the source address and this receiving device in simultaneously packet voice head respectively;
The attached bag of corresponding this receiving device is filled after the heading filled in the buffering area of unpacking Load simultaneously updates the relevant field in filled heading to obtain the datagram of this receiving device of correspondence Text, wherein, attached bag at least the destination address identification field including data message, data message remove message The length field of payload field and attached bag after head.
6. the processing method that data message as claimed in claim 5 is received, it is characterised in that described to sentence The mode of the attached bag in this and packet voice with the presence or absence of correspondence this receiving device of breaking at least includes:
According to the destination address mark and the purpose of this receiving device of data message in attached bag in simultaneously packet voice Address judged, wherein, the length according to attached bag is used to determine whether next attached bag is this reception of correspondence The attached bag of end equipment.
7. the processing method that the data message as any one of claim 4-6 is received, its feature exists In, it is described when message is received, it is determined that the message for being received whether be can unpack and packet voice include:
When message is received, it is determined that simultaneously with the presence or absence of simultaneously packet voice mark in packet voice, if in the presence of, It is defined as and packet voice;
When being defined as and after packet voice, calculate this and the CRC of packet voice and judge the CRC obtained by calculating Whether it is consistent with the CRC entrained by this and packet voice, if meeting, it is determined that for can unpacking and wrap report Text.
8. the processing method that data message as claimed in claim 7 is received, it is characterised in that described to incite somebody to action And in packet voice correspondence this receiving device attached bag carry out message unpack treatment obtained by data message add Enter in receiving queue so that after to be received, the processing method that the data message is received also includes:
When this receiving device has subordinate's receiving device and subordinate receiving device is supported to process and wrap report Wen Shi, the attached bag of corresponding this receiving device is deleted from simultaneously packet voice and simultaneously packet voice is updated corresponding Relevant field after, by renewal after and packet voice add transmit queue in to be sent;
When this receiving device has subordinate's receiving device and subordinate's receiving device is not supported to process and wrap During message, will not currently carry out unpack all attached bags for the treatment of of message carries out message and unpacks treatment, obtains right Answer subordinate's receiving device data message and by the data message add transmit queue in to be sent.
9. a kind of processing unit that data message sends, it is characterised in that the place that the data message sends Reason device includes:
And bag determining module, for before sending datagram, determining whether data message to be sent enters Row message simultaneously wraps treatment;
And packet handing module, carry out message and wrap for that will determine to carry out message and wrap the data message for the treatment of Treatment to generate corresponding and packet voice, wherein, and be provided with packet voice and packet voice identification field and And packet voice at least include and packet voice head and with carry out message and wrap treatment data message it is corresponding Some attached bags, the attached bag at least destination address identification field including data message;
Message sending module, for by and packet voice and do not carry out message and wrap the data message for the treatment of adding Enter in transmit queue with to be sent.
10. the processing unit that data message as claimed in claim 9 sends, it is characterised in that described And packet handing module includes:
Attached bag quantity control unit, for apply length be default maximum frame length MFL's and bag buffering area And opening timing device carries out timing to control the quantity of simultaneously packet voice neutron packet;
And packet voice head fills unit, for being filled and packet voice head in described and bag buffering area, wherein, And be provided with packet voice head and packet voice identification field;
Attached bag fills unit, for when and the current length of packet voice be less than MFL when and/or during timer Between reach before, and packet voice head after be arranged in order some attached bags of filling, wherein, attached bag at least also includes Data message removes the length field of payload field and attached bag after heading;
And packet voice generation unit, for when and packet voice current length more than or equal to MFL and/or When timer time is reached, update and the relevant field in packet voice head and generation are current and packet voice Simultaneously be filled into the CRC in current and packet voice by CRC CRC, obtain it is transmissible simultaneously Packet voice.
The processing unit that a kind of 11. data messages are received, it is characterised in that what the data message was received Processing unit includes:
Unpack determining module, for when message is received, it is determined that whether the message for being received is to unpack And packet voice, wherein, and be provided with packet voice and packet voice identification field and at least include and wrap report Literary head and with carry out message and wrap the corresponding some attached bags of data message for the treatment of;
Judge module, for when it is determined that the message for being received be can unpack and during packet voice, judge this simultaneously With the presence or absence of the attached bag of this receiving device of correspondence in packet voice;
Unpack processing module, for when and packet voice in there is the attached bag of correspondence this receiving device when, will The attached bag of this receiving device of correspondence carries out message and unpacks treatment to obtain correspondence this reception in this and packet voice The data message of end equipment;
Message receiver module, tears open for the attached bag of this receiving device of correspondence in simultaneously packet voice to be carried out into message With to be received in data message addition receiving queue obtained by bag treatment.
The processing unit that 12. data messages as claimed in claim 11 are received, it is characterised in that described Processing module of unpacking includes:
Application unit, for applying for buffering area of unpacking;
Data message head fills unit, for filling heading in the buffering area of unpacking, wherein, should Source address and destination address in heading are corresponded to and source address and this receiving terminal in packet voice head respectively The address of equipment;
Data message generation unit, for filling right after the heading filled in the buffering area of unpacking The relevant field answered the load of the attached bag of this receiving device and update in filled heading is right to obtain The data message of this receiving device is answered, wherein, the attached bag at least destination address including data message is identified Field, data message remove the length field of payload field and attached bag after heading.
The processing unit that 13. data message as described in claim 11 or 12 is received, it is characterised in that The processing unit that the data message is received also includes:
First transmission processe module, for there is subordinate's receiving device and subordinate connects when this receiving device When receiving end equipment supports treatment and packet voice, the attached bag of corresponding this receiving device is deleted from simultaneously packet voice Update and after the relevant field of packet voice except and corresponding, by renewal after and packet voice adds transmit queue In with to be sent;
Second transmission processe module, for there is subordinate's receiving device and subordinate connects when this receiving device Receiving end equipment does not support treatment and during packet voice, will not currently carry out unpack all attached bags for the treatment of of message and enters Row message is unpacked treatment, is obtained the data message of correspondence subordinate receiving device and is added the data message With to be sent in transmit queue.
CN201510867635.6A 2015-11-27 2015-11-27 Data message sends the processing method and processing device for receiving Withdrawn CN106817726A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510867635.6A CN106817726A (en) 2015-11-27 2015-11-27 Data message sends the processing method and processing device for receiving
PCT/CN2016/098730 WO2017088557A1 (en) 2015-11-27 2016-09-12 Processing method and apparatus for sending and receiving data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510867635.6A CN106817726A (en) 2015-11-27 2015-11-27 Data message sends the processing method and processing device for receiving

Publications (1)

Publication Number Publication Date
CN106817726A true CN106817726A (en) 2017-06-09

Family

ID=58763908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510867635.6A Withdrawn CN106817726A (en) 2015-11-27 2015-11-27 Data message sends the processing method and processing device for receiving

Country Status (2)

Country Link
CN (1) CN106817726A (en)
WO (1) WO2017088557A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600124A (en) * 2018-04-09 2018-09-28 上海电气泰雷兹交通自动化系统有限公司 Packet method is unpacked and organized to network based on security protocol
CN109996288A (en) * 2019-03-28 2019-07-09 京信通信系统(中国)有限公司 Data Cascading Methods, device, computer equipment and the storage medium of rlc layer
CN110381051A (en) * 2019-07-12 2019-10-25 苏州浪潮智能科技有限公司 A kind of method of packet parsing, system, equipment and computer readable storage medium
CN110401509A (en) * 2019-06-12 2019-11-01 广汽丰田汽车有限公司 For improving method, equipment, medium and the device of automobile CAN-bus efficiency of transmission
CN110445658A (en) * 2019-08-16 2019-11-12 中国银行股份有限公司 A kind of message processing method and system
CN110971537A (en) * 2019-12-19 2020-04-07 北京浪潮数据技术有限公司 Data transmission method, device, equipment and readable storage medium
CN111541749A (en) * 2020-04-14 2020-08-14 杭州涂鸦信息技术有限公司 Data communication method and system of embedded equipment and related equipment
WO2021109821A1 (en) * 2019-12-03 2021-06-10 华为技术有限公司 Network structure, method for sending packet between network elements in network, and receiving method
CN115348333A (en) * 2022-08-16 2022-11-15 南方电网电力科技股份有限公司 Data transmission method, system and equipment based on UDP (user Datagram protocol) double-end communication interaction

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117544555A (en) 2019-06-04 2024-02-09 华为技术有限公司 Method, device and system for collective communication
CN111488015A (en) * 2020-03-19 2020-08-04 成都理工大学 Temperature and humidity control method based on ARM11 platform
CN112532618B (en) * 2020-11-26 2023-02-28 国网山西省电力公司电力科学研究院 Non-transparent protocol conversion method and device for joint debugging test of stability control test system
CN114157401B (en) * 2021-12-03 2024-01-23 中国人民解放军国防科技大学 Retransmission buffer device supporting long and short message formats
CN116260779A (en) * 2023-02-13 2023-06-13 杭州迪普科技股份有限公司 Message transmission method, device and system for system channel

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020064190A1 (en) * 2000-11-30 2002-05-30 Sikora John J. Method for compressing packet headers within a trunking protocol for aggregating multiple information channels across a network
CN101136856A (en) * 2007-06-05 2008-03-05 中兴通讯股份有限公司 Inter-board combined packet transmission method and system
CN101415276A (en) * 2008-11-24 2009-04-22 中兴通讯股份有限公司 Method and equipment for sending and receiving data
CN101800750A (en) * 2010-03-03 2010-08-11 华为技术有限公司 Method, device and system for data transmission

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020064190A1 (en) * 2000-11-30 2002-05-30 Sikora John J. Method for compressing packet headers within a trunking protocol for aggregating multiple information channels across a network
CN101136856A (en) * 2007-06-05 2008-03-05 中兴通讯股份有限公司 Inter-board combined packet transmission method and system
CN101415276A (en) * 2008-11-24 2009-04-22 中兴通讯股份有限公司 Method and equipment for sending and receiving data
CN101800750A (en) * 2010-03-03 2010-08-11 华为技术有限公司 Method, device and system for data transmission

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600124B (en) * 2018-04-09 2020-10-13 上海电气泰雷兹交通自动化系统有限公司 Network unpacking and packing method based on safety protocol
CN108600124A (en) * 2018-04-09 2018-09-28 上海电气泰雷兹交通自动化系统有限公司 Packet method is unpacked and organized to network based on security protocol
CN109996288A (en) * 2019-03-28 2019-07-09 京信通信系统(中国)有限公司 Data Cascading Methods, device, computer equipment and the storage medium of rlc layer
CN109996288B (en) * 2019-03-28 2022-11-01 京信网络系统股份有限公司 Data cascading method and device of RLC layer, computer equipment and storage medium
CN110401509A (en) * 2019-06-12 2019-11-01 广汽丰田汽车有限公司 For improving method, equipment, medium and the device of automobile CAN-bus efficiency of transmission
CN110381051A (en) * 2019-07-12 2019-10-25 苏州浪潮智能科技有限公司 A kind of method of packet parsing, system, equipment and computer readable storage medium
CN110445658A (en) * 2019-08-16 2019-11-12 中国银行股份有限公司 A kind of message processing method and system
WO2021109821A1 (en) * 2019-12-03 2021-06-10 华为技术有限公司 Network structure, method for sending packet between network elements in network, and receiving method
US12425490B2 (en) 2019-12-03 2025-09-23 Huawei Technologies Co., Ltd. Network structure and method for sending/receiving packet between network elements in network
CN110971537A (en) * 2019-12-19 2020-04-07 北京浪潮数据技术有限公司 Data transmission method, device, equipment and readable storage medium
CN111541749A (en) * 2020-04-14 2020-08-14 杭州涂鸦信息技术有限公司 Data communication method and system of embedded equipment and related equipment
CN111541749B (en) * 2020-04-14 2023-05-02 杭州涂鸦信息技术有限公司 Data communication method and system of embedded equipment and related equipment
CN115348333A (en) * 2022-08-16 2022-11-15 南方电网电力科技股份有限公司 Data transmission method, system and equipment based on UDP (user Datagram protocol) double-end communication interaction
CN115348333B (en) * 2022-08-16 2024-06-04 南方电网电力科技股份有限公司 Data transmission method, system and equipment based on UDP double-end communication interaction

Also Published As

Publication number Publication date
WO2017088557A1 (en) 2017-06-01

Similar Documents

Publication Publication Date Title
CN106817726A (en) Data message sends the processing method and processing device for receiving
RU2310283C2 (en) System and method for bi-directional packet data transmission
KR100886551B1 (en) Apparatus and method for filtering traffic flow template packet according to internet protocol version in mobile communication system
US20120140686A1 (en) Method and apparatus for sending, receiving, and transmission of data packets (as amended)
JP2021528014A (en) Information transmission method and equipment
KR100388859B1 (en) Real time data transmission systems and methods
KR20090041345A (en) A multiplexing communication system comprising a transmission processing device and a reception processing device, and a multiplexing communication method
US9467535B2 (en) Data transmission method, network element device and communication system
CN101388825A (en) A method and device for transmitting GPRS tunnel protocol data packets
US20090059853A1 (en) Method and apparatus for transmitting and receiving packets in a mobile communication system
CN114025262B (en) Method for data intercommunication between edge ONTs in FTTR system, optical gateway and edge ONT equipment
US8248998B2 (en) Telecommunication network transmission divergence system and method
CN102215476A (en) Information transmission method and system for relay communication network
CN110072257B (en) Method for user intercommunication under MEC
KR20210154851A (en) Method, apparatus and system for controlling data radio bearer in multi-connection system
CN109510848A (en) A kind of communication system, conversation managing method, data transmission method for uplink and device
CN1820471B (en) Adaptive Connection Caching for Communication Networks
US20070183423A1 (en) Transporting call data via a packet data network
CN107333295B (en) Data distribution method and gateway
CN107231669A (en) A kind of data transmission device method and apparatus
US10136362B2 (en) Capability negotiation method, system and apparatus
EP2600643B1 (en) Method, system and related equipment for transmitting service type information
CN101352004B (en) Redirection of B-grade PDP data stream to A-grade PDP before establishing B-grade PDP context
CN113766584B (en) Method and device for processing change of auxiliary node cell
US8189475B2 (en) Transmission of digital information in a frame switched data network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170609