CN106713187A - Message transmission method and device - Google Patents
Message transmission method and device Download PDFInfo
- Publication number
- CN106713187A CN106713187A CN201510794304.4A CN201510794304A CN106713187A CN 106713187 A CN106713187 A CN 106713187A CN 201510794304 A CN201510794304 A CN 201510794304A CN 106713187 A CN106713187 A CN 106713187A
- Authority
- CN
- China
- Prior art keywords
- message
- base station
- length
- fragment
- probe messages
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9057—Arrangements for supporting packet reassembly or resequencing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
An embodiment of the invention provides a message transmission method and a message transmission device. The message transmission method comprises the steps of: reading reassembly function indicating information in a preset detection list, so as to know whether a base station corresponding to a message to be transmitted has a message reassembly function; if the base station does not have the message reassembly function, acquiring a maximum transmission unit MTU of the base station from the detection list; fragmenting the message to be transmitted, and generating fragmented messages; packing IP header, GTPU header and UDP header on the generated fragmented messages; transmitting the fragmented messages packaged with the IP header, the GTPU header and the UDP header to the base station; removing the IP header, the GTPU header and the UDP header in the received fragmented messages by means of the base station, and transmitting the fragmented messages from which the IP header, the GTPU header and the UDP header are removed to a message receiving end; and reassembling the received fragmented messages by means of the message receiving end. According to the message transmission method and the message transmission device, the implementation of networking is not affected by whether or not the base station has the message reassembly function, and the message transmission method and the message transmission device have greater networking convenience.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of message transmitting method and a kind of message are passed
Defeated device.
Background technology
Evolution block core net (Evolved Packet Core, EPC), i.e. 4G core nets, with core
Heart net convergentization, function of exchange routeization, network element number are minimized, and protocol hierarchy is optimized, network is flat
The features such as graduation.
Message transmission procedure based on EPC is:The message transmissions of transmission are needed to after EPC, EPC pairs
The message carries out GTPU encapsulation, and encapsulating the message length after GTPU may exceed EPC most
Big transmission unit (Maximum Transmission Unit, MTU), and EPC cannot conveying length surpass
The message of its MTU value is crossed, thus, EPC can carry out burst to the message, then pass fragment message
Base station (eNodeB, eNB) is transported to, message weight is carried out according to the segmental identification in fragment message by base station
Group, message sink (user equipment (UE)) is transferred to after obtaining complete message.
In actual applications, it is not that each base station is respectively provided with message due to performance and the difference of function
Recombination function, for the base station without Packet reassembling function, due to that cannot enter to fragment message
Row restructuring, fragment message can be dropped, and cause message transmissions mistake.
In order to avoid causing the problem of message transmissions mistake due to recombination function of the base station without message,
Version and function to base station generally in networking are limited, for example, the used base station of limitation has
Have recombination function or without recombination function, however, this way cannot compatible different manufacturers base station,
And limited by existing base station functions, thus, this way is unfavorable for the realization of networking.
The content of the invention
In view of the above problems, it is proposed that the embodiment of the present invention overcomes above mentioned problem or extremely to provide one kind
A kind of message transmitting method for partially solving the above problems and a kind of corresponding message transmitting device.
In order to solve the above problems, the embodiment of the invention discloses a kind of message transmitting method, including:
The recombination function configured information in preset detection list is read, it is corresponding with message to be transmitted to know
Base station whether have Packet reassembling function;
If the base station does not have Packet reassembling function, the base station is obtained from the detection list
MTU MTU;
To the message fragment to be transmitted, fragment message is generated;
Fragment message to being generated encapsulates IP, GTPU and UDP heads;Be packaged with IP,
MTU of the length of the fragment message of GTPU and UDP less than or equal to the base station
MTU;
The fragment message for being packaged with IP, GTPU and UDP is sent to the base station;
Be used in the fragment message that will receive IP, GTPU and UDP of the base station peels off,
And the fragment message of IP, GTPU and UDP will be peeled off send to message sink;The report
Literary receiving terminal is used to recombinate received fragment message.
Preferably, the detection list is preset in the following manner:
Create detection list;
To probe messages burst, burst probe messages are generated;
The burst probe messages that will be generated are sent to base station;
If being not received by the sound that the base station returns for the burst probe messages in Preset Time
Message is answered, then recombination function configured information of the base station without Packet reassembling function will be indicated to write institute
State detection list in;
If receiving the response report that the base station returns for the burst probe messages in Preset Time
Text, then judge whether the length of the probe messages is identical with the length of the response message;
If so, will then indicate the base station there is the recombination function configured information write-in institute of Packet reassembling function
State detection list in;
The spy is write using the length of the probe messages as the MTU MTU of the base station
Survey in list;
If it is not, will then indicate recombination function configured information of the base station without Packet reassembling function to write
In the detection list.
Preferably, methods described also includes:
If the length of the probe messages is differed with the length of the response message, repeat to the base
Stand transmission probe messages, until the length phase of length and the corresponding response message of transmitted probe messages
The length of the probe messages for together, and using last time sending is write as the MTU MTU of base station
Enter it is described detection list in;Wherein, afterwards message send the length of the corresponding probe messages of operation with it is preceding
One time message sends the difference of the length for operating corresponding probe messages equal to the first predetermined threshold value.
Preferably, it is described to the message fragment to be transmitted, include the step of generation fragment message:
A piece of fragment message is separated from the message to be transmitted;
Judge remaining message length whether more than the second predetermined threshold value;Second predetermined threshold value with IP,
The length summation of GTPU and UDP is equal to the MTU MTU of the base station;
If so, then separate fragment message from remaining message relay is continuous, until the length of remaining message be less than or
Equal to the second predetermined threshold value;Wherein, the length of the fragment message for being separated is equal to second predetermined threshold value.
Preferably, it is described to the message fragment to be transmitted, include the step of generation fragment message:
The length value of the message to be transmitted and the predetermined threshold value are divided by, quotient and remainder is obtained;
If the remainder is 0, using the quotient as burst quantity N;
If the remainder is not 0, using the quotient and 1 and as burst quantity N;
The message to be transmitted is divided into N number of fragment message.
The embodiment of the invention discloses a kind of message transmitting device, including:
Detection list read module, for reading the recombination function configured information in preset detection list,
To know whether base station corresponding with message to be transmitted has Packet reassembling function;
MTU MTU acquisition modules, if not having Packet reassembling function for the base station,
The MTU MTU of the base station is then obtained from the detection list;
Message fragment module, for the message fragment to be transmitted, generating fragment message;
Package module, for encapsulating IP, GTPU and UDP heads to the fragment message for being generated;
The length of fragment message of IP, GTPU and UDP is packaged with less than or equal to the base station
MTU MTU;
Message sending module, for by the burst report for being packaged with IP, GTPU and UDP
Text is sent to the base station;
Be used in the fragment message that will receive IP, GTPU and UDP of the base station peels off,
And the fragment message of IP, GTPU and UDP will be peeled off send to message sink;The report
Literary receiving terminal is used to recombinate received fragment message.
Preferably, the detection list is preset in the following manner:
Create detection list;
To probe messages burst, burst probe messages are generated;
The burst probe messages that will be generated are sent to base station;
If being not received by the sound that the base station returns for the burst probe messages in Preset Time
Message is answered, then recombination function configured information of the base station without Packet reassembling function will be indicated to write institute
State detection list in;
If receiving the response report that the base station returns for the burst probe messages in Preset Time
Text, then judge whether the length of the probe messages is identical with the length of the response message;
If so, will then indicate the base station there is the recombination function configured information write-in institute of Packet reassembling function
State detection list in;
The spy is write using the length of the probe messages as the MTU MTU of the base station
Survey in list;
If it is not, will then indicate recombination function configured information of the base station without Packet reassembling function to write
In the detection list.
Preferably, described device also includes:
If the length of the probe messages is differed with the length of the response message, repeat to the base
Stand transmission probe messages, until the length phase of length and the corresponding response message of transmitted probe messages
The length of the probe messages for together, and using last time sending is write as the MTU MTU of base station
Enter it is described detection list in;Wherein, afterwards message send the length of the corresponding probe messages of operation with it is preceding
One time message sends the difference of the length for operating corresponding probe messages equal to the first predetermined threshold value.
Preferably, the message fragment module includes:
First message fragment submodule, for separating a piece of fragment message from the message to be transmitted;
Length judge module, for judging the length of remaining message whether more than the second predetermined threshold value;It is described
Length summation of second predetermined threshold value with IP, GTPU and UDP is equal to the maximum of the base station
Transmission unit MTU;
Second message fragment submodule, for when remaining message length be more than the second predetermined threshold value when, then
Repeat to separate fragment message from remaining message, until the length of remaining message is less than or equal to the second default threshold
Value;Wherein, the length of the fragment message for being separated is equal to second predetermined threshold value.
Preferably, the message fragment module includes:
Quotient and remainder acquisition submodule, for by the length value of the message to be transmitted and the default threshold
Value is divided by, and obtains quotient and remainder;
First burst quantity determination sub-module, for when the remainder be 0 when, then using the quotient as
Burst quantity N;
Second burst quantity determination sub-module, for when the remainder is not, then by the quotient and 1
And as burst quantity N;
Message fragment submodule, for the message to be transmitted to be divided into N number of fragment message.
The embodiment of the present invention includes advantages below:
The embodiment of the present invention can include recombination function and indicate letter with preset detection list, in detection list
Breath, can know whether base station has Packet reassembling work(by the recombination function configured information detected in list
Can, for the base station without Packet reassembling function, gateway SGW can treat transmitting message and enter
Row burst, then IP, GTPU and UDP heads are encapsulated, and fragment message is sent to base station, this
Sample, just not comprising there is segmental identification, base station no longer needs to carry out message the fragment message that base station receives
Reorganization operation, the restructuring of message transfers to the message sink to carry out, even if base station does not have Packet reassembling function
The normal transmission of message is not interfered with yet, therefore, in embodiments of the present invention, no matter whether base station has
Packet reassembling function does not influence the realization of networking, and the embodiment of the present invention has bigger networking convenience.
Brief description of the drawings
The step of Fig. 1 is a kind of message transmitting method embodiment of the invention flow chart;
Fig. 2 is a kind of structured flowchart of message transmitting device embodiment of the invention.
Specific embodiment
To enable the above objects, features and advantages of the present invention more obvious understandable, below in conjunction with the accompanying drawings
The present invention is further detailed explanation with specific embodiment.
One of the core concepts of the embodiments of the present invention is, the embodiment of the present invention can with preset detection list,
Include recombination function configured information in detection list, by detecting the recombination function configured information in list
Can know whether base station has Packet reassembling function, for the base station without Packet reassembling function, clothes
Business gateway SGW can treat transmitting message carries out burst, then encapsulates IP, GTPU and UDP
Head, and fragment message is sent to base station, so, the fragment message that base station receives is just not comprising having point
Piece is identified, and base station no longer needs to carry out the reorganization operation of message, and the restructuring of message transfers to message sink to enter
OK, even if base station does not interfere with the normal transmission of message without Packet reassembling function yet, therefore, at this
In inventive embodiments, no matter whether base station there is Packet reassembling function not influence the realization of networking, this hair
Bright embodiment has bigger networking convenience.
Reference picture 1, flow chart the step of show a kind of message transmitting method embodiment of the invention, tool
Body may include steps of:
Step 101, reads the recombination function configured information in preset detection list, with know with it is to be passed
Whether the corresponding base station of defeated message has Packet reassembling function;
Evolution block core net EPC generally includes packet data gateway (Packet Data Network
Gateway, PGW) and gateway (Serving GateWay, SGW).
By taking downlink message as an example, the message transmission procedure based on EPC is:Descending message to be transmitted is from outer
Portion's IP network comes downwards to packet data gateway PGW, and packet data gateway PGW will by S5/S8 interfaces
, to gateway SGW, gateway SGW will be descending by S1 interfaces for descending message transmissions to be transmitted
Message transmissions to be transmitted are sent to message sink (such as descending message to be transmitted to base station, then by base station
User equipment (UE)).
In embodiments of the present invention, when message transmissions to be transmitted are to gateway SGW, gateway
SGW reads the recombination function configured information in preset detection list, to know whether base station has report
Literary recombination function.
In embodiments of the present invention, the detection list can be preset in the following manner:
Sub-step S11, creates detection list;
In embodiments of the present invention, the effect of detection list is to record recombination function configured information and base station
MTU MTU.
Recombination function configured information can include a pair of IP letters between each base station and gateway SGW
Whether breath and the corresponding base station of each pair of IP information have the information of recombination function, are indicated from recombination function
Would know that whether the corresponding base station of message to be transmitted has Packet reassembling function in information.
The MTU MTU (Maximum Transmission Unit) of base station refers to base station institute energy
The maximum length of the single message of enough transmission.
Sub-step S12, to probe messages burst, generates burst probe messages;
Sub-step S13, the burst probe messages that will be generated are sent to base station;
In embodiments of the present invention, probe messages can encapsulate GTPU, UDP and IP heads
ICMP (Internet Control Message Protocol) message, the length of the probe messages should
MTU MTU more than EPC, so, gateway SGW will be to the probe messages
Burst, generates burst probe messages, and each burst probe messages for being generated are respectively provided with segmental identification.
After generation fragment message, the burst probe messages that will can be generated are sent to base station.
In gateway SGW, GTPU routing tables (PATH tables), PATH can be pre-created
There are a pair of IP information of each base station and gateway SGW, the PATH tables are by GTPU's in table
Echo Request and Echo Response (Echo is asked and responded) come dynamic monitoring and maintenance.
Gateway SGW can be in PATH tables IP information, burst probe messages are sent out respectively
Deliver to each base station.
Base station can return to response message after burst probe messages are received for the burst probe messages,
If Packet reassembling function is supported in base station, the length of the response message of return is consistent with the length of probe messages
, if base station does not support Packet reassembling function, the length of the response message of return and the length of probe messages
Differ, or response message cannot be returned.
Sub-step S14, if the base station is not received by Preset Time detects report for the burst
The response message that text is returned, then will indicate recombination function of the base station without Packet reassembling function to indicate
In the information write-in detection list;
Sub-step S15, if the base station is received in Preset Time being returned for the burst probe messages
The response message for returning, then judge the length of the probe messages and the response message length whether phase
Together;
It should be noted that Preset Time can set according to actual needs, as an example, Preset Time
Can be 10s, 20s etc..
If gateway SGW is not received by response message in Preset Time, show that base station does not have
Recombination function, by the recombination function configured information write-in detection list for indicating base station without recombination function
In.
If gateway SGW receives response message in Preset Time, need to judge probe messages
Length it is whether identical with the length of response message.
Sub-step S16, if so, then referring to the recombination function for indicating the base station and there is Packet reassembling function
Show information write-in it is described detection list in;
Sub-step S17, using the length of the probe messages as the base station MTU MTU
In the write-in detection list;
Sub-step S18, if it is not, will then indicate recombination function of the base station without Packet reassembling function
In the configured information write-in detection list.
If the length of probe messages is identical with the length of response message, illustrate that base station has Packet reassembling work(
Can, then will indicate base station have recombination function recombination function configured information write-in detection list in, and will
The length of probe messages is stated in detection list as the MTU MTU write-ins of base station.
If the length of probe messages is differed with the length of response message, illustrate that base station does not have Packet reassembling
Function, then by the recombination function configured information write-in detection list for indicating base station without recombination function.
If base station does not have Packet reassembling function, now, the detection operation that cannot be also based on first time is known
The MTU MTU of base station, thus, the present invention implements to include:Repeat to the base
Stand transmission probe messages, until the length phase of length and the corresponding response message of transmitted probe messages
The length of the probe messages for together, and using last time sending is write as the MTU MTU of base station
In entering to detect list.
Wherein, a message sends the length of the corresponding probe messages of operation and a preceding message sends behaviour afterwards
The difference for making the length of corresponding probe messages is equal to the first predetermined threshold value.
The probe messages sent since for the second time (encapsulate GTPU, UDP and IP
ICMP length) should be less than the MTU MTU of EPC, so, gateway SGW
Would not to probe messages burst, therefore, it is no longer just fragment message to send probe messages to base station,
Also, after the length of probe messages that once sends and the length of the preceding fragment message for once sending difference
Equal to the first predetermined threshold value.
First predetermined threshold value can sets itself according to actual needs, as an example, the first predetermined threshold value can
Being 100 bytes, 200 bytes, it should be ensured that, the length of probe messages for sending is started for the second time
Degree should be less than the MTU MTU of EPC, i.e., the burst probe messages institute for sending for the first time is right
After the length of the probe messages answered subtracts predetermined threshold value, its value should be less than the MTU of EPC
MTU, for example, the MTU MTU of EPC is 1500 bytes, the probe messages of first time
Length is 1536 bytes, then, the first predetermined threshold value should be more than or equal to 36 bytes.
For example, it is assumed that the MTU MTU of EPC is 1500 bytes, the detection report of first time
Literary length is 1536 bytes, and for 1400 bytes, (i.e. first presets the second probe messages length of transmission
Threshold value is 136 bytes), the length of the response message of return is not equal to 1400 bytes, then continue to send the
Three probe messages (length is 1264 bytes), the like, sending, the 4th probe messages are (long
It is 1128 bytes to spend) after, the length of the response message of return is identical with probe messages length, then write
The MTU MTU of the base station in detection list is 1128 bytes.
Step 102, if the base station does not have Packet reassembling function, obtains from the detection list
The MTU MTU of the base station;
Step 103, to the message fragment to be transmitted, generates fragment message;
In embodiments of the present invention, if base station does not have Packet reassembling function, obtained from detection list
The MTU MTU of base station, treats transmitting message burst, generates fragment message.
In embodiments of the present invention, burst can be in the following manner carried out, therefore, step 103 can be with
Including following sub-step:
Sub-step S21, a piece of fragment message is separated from the message to be transmitted;
Whether sub-step S22, judge remaining message length more than the second predetermined threshold value;Described second presets
Length summation of the threshold value with IP, GTPU and UDP is equal to the MTU of the base station
MTU;
Sub-step S23, if so, then continue to separate fragment message from remaining message, until remaining message
Length is less than or equal to second predetermined threshold value;Wherein, the length of the fragment message for being separated is equal to institute
State the second predetermined threshold value.
The embodiment of the present invention can first separate a piece of fragment message from message to be transmitted, judge remaining message
Whether length is more than the second predetermined threshold value, if so, then continue to separate fragment message from remaining message, until
The length of remaining message is less than or equal to the second predetermined threshold value.
Wherein, length summation of second predetermined threshold value with IP, GTPU and UDP is equal to described
The MTU MTU of base station, the fragment message for being separated (not including last remaining message)
Length be equal to the second predetermined threshold value.
For example, it is assumed that the second predetermined threshold value is 1200 bytes, message length to be transmitted is 3200 bytes,
Message to be transmitted is then separated the fragment message that a leaf length is 1200 bytes first, now, residue report
Literary length is 2000 bytes, and more than the second predetermined threshold value, it is 1200 bytes to continue to separate a leaf length
Fragment message, now, remaining message length is 800 bytes, to be passed to this less than the second predetermined threshold value
Defeated message fragment is finished.
In embodiments of the present invention, burst can also be in the following manner carried out, therefore, step 103 can
With including following sub-step:
Sub-step S31, the length value of the message to be transmitted is divided by with predetermined threshold value, obtain quotient and
Remainder;
Sub-step S32, if the remainder is 0, using the quotient as burst quantity N;
Sub-step S33, if the remainder is not 0, using the quotient and 1 and as burst quantity
N;
Sub-step S34, N number of fragment message is divided into by the message to be transmitted.
With the predetermined threshold value can be divided by the length value of message to be transmitted by the embodiment of the present invention, obtain business
Value and remainder, if remainder is 0, using quotient as burst quantity N, if remainder is not 0, by business
Value with 1 and as burst quantity N.
Wherein, predetermined threshold value is relevant with the MTU of GTPU, UDP, IP and EPC, in advance
If the length of threshold value can sets itself according to actual needs, therefore, to assure that, predetermined threshold value and GTPU
Head, UDP and IP necks total length should be less than or equal to the MTU of EPC.
As an example it is supposed that the length of message to be transmitted is 3200 bytes, predetermined threshold value is 1200 bytes,
The quotient and remainder of acquisition are respectively 2 and 800, are not 0 due to remainder, then burst quantity N is 3,
Now, the message to be transmitted of 3200 byte lengths is divided into 3 fragment messages, to 3 be divided into
The specific length of fragment message is not restricted, it is only necessary to ensure that the length of 3 fragment messages is respectively less than or waits
In the byte of predetermined threshold value 1200.
Step 104, the fragment message to being generated encapsulates IP, GTPU and UDP heads;
Step 105, by the fragment message for being packaged with IP, GTPU and UDP send to
The base station;
Step 106, IP, GTPU in the fragment message will be received by the base station and UDP
Head is peeled off, and will be peeled the fragment message of IP, GTPU and UDP off and sent to message sink;
Step 107, is recombinated by the message sink to received fragment message.
The embodiment of the present invention can encapsulate IP, GTPU and UDP heads to the fragment message for generating,
The fragment message that IP, GTPU and UDP will be packaged with is sent to base station, wherein, it is packaged with
Maximum transmitted list of the length of the fragment message of IP, GTPU and UDP less than or equal to base station
First MTU.
Because the embodiment of the present invention is first to treat transmitting message burst, then encapsulate IP, GTPU and
UDP heads, thus, in the fragment message of generation and in the absence of segmental identification, base station is receiving burst report
Wen Hou, can't recombinate to fragment message, the IP in the fragment message that base station will directly can receive
Head, GTPU and UDP peel off, and the burst report of IP, GTPU and UDP will be peeled off
Text is sent to message sink.
Received fragment message is recombinated by message sink, to obtain complete message.
In embodiments of the present invention, for the base station with Packet reassembling function, then can be to report to be transmitted
First after encapsulation text IP, GTPU and UDP, then carry out burst, and by fragment message send to
Base station, now, the fragment message that base station receives has segmental identification, and base station can be according to segmental identification
Fragment message is recombinated, complete message is obtained, and be by complete message transmissions to the message sink
Can.
The embodiment of the present invention can include recombination function and indicate letter with preset detection list, in detection list
Breath, can know whether base station has Packet reassembling work(by the recombination function configured information detected in list
Can, for the base station without Packet reassembling function, gateway SGW can treat transmitting message and enter
Row burst, then IP, GTPU and UDP heads are encapsulated, and fragment message is sent to base station, this
Sample, just not comprising there is segmental identification, base station no longer needs to carry out message the fragment message that base station receives
Reorganization operation, the restructuring of message transfers to the message sink to carry out, even if base station does not have Packet reassembling function
The normal transmission of message is not interfered with yet, therefore, in embodiments of the present invention, no matter whether base station has
Packet reassembling function does not influence the realization of networking, and the embodiment of the present invention has bigger networking convenience.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as one it is
The combination of actions of row, but those skilled in the art should know, and the embodiment of the present invention is not by described
Sequence of movement limitation because according to the embodiment of the present invention, some steps can using other orders or
Person is carried out simultaneously.Secondly, those skilled in the art should also know, embodiment described in this description
Preferred embodiment is belonged to, necessary to the involved action not necessarily embodiment of the present invention.
Reference picture 2, shows a kind of structured flowchart of message transmitting device embodiment of the invention, specifically
Such as lower module can be included:
Detection list read module 201, letter is indicated for reading the recombination function in preset detection list
Breath, to know whether base station corresponding with message to be transmitted has Packet reassembling function;
MTU MTU acquisition modules 202, if not having Packet reassembling work(for the base station
Can, then the MTU MTU of the base station is obtained from the detection list;
Message fragment module 203, for the message fragment to be transmitted, generating fragment message;
Package module 204, for encapsulating IP, GTPU and UDP to the fragment message for being generated
Head;The length for being packaged with the fragment message of IP, GTPU and UDP is less than or equal to the base
The MTU MTU for standing;
Message sending module 205, for by it is described be packaged with IP, GTPU and UDP point
Piece message is sent to the base station;
Wherein, IP, the GTPU and UDP stripping that base station is used in the fragment message that will be received
Fall, and the fragment message of IP, GTPU and UDP will be peeled off to send to message sink, report
Literary receiving terminal is used to recombinate received fragment message.
In a kind of preferred embodiment of the invention, the detection list is preset in the following manner:
Create detection list;
To probe messages burst, burst probe messages are generated;
The burst probe messages that will be generated are sent to base station;
If being not received by the sound that the base station returns for the burst probe messages in Preset Time
Message is answered, then recombination function configured information of the base station without Packet reassembling function will be indicated to write institute
State detection list in;
If receiving the response report that the base station returns for the burst probe messages in Preset Time
Text, then judge whether the length of the probe messages is identical with the length of the response message;
If so, will then indicate the base station there is the recombination function configured information write-in institute of Packet reassembling function
State detection list in;
The spy is write using the length of the probe messages as the MTU MTU of the base station
Survey in list;
If it is not, will then indicate recombination function configured information of the base station without Packet reassembling function to write
In the detection list.
In a kind of preferred embodiment of the invention, described device also includes:
If the length of the probe messages is differed with the length of the response message, repeat to the base
Stand transmission probe messages, until the length phase of length and the corresponding response message of transmitted probe messages
The length of the probe messages for together, and using last time sending is write as the MTU MTU of base station
In entering to detect list;Wherein, afterwards message send the length of the corresponding probe messages of operation with it is preceding once
The difference that message sends the length of the corresponding probe messages of operation is equal to the first predetermined threshold value.
In the present invention is implemented, the message fragment module includes:
First message fragment submodule, for separating a piece of fragment message from the message to be transmitted;
Length judge module, for judging the length of remaining message whether more than the second predetermined threshold value;It is described
Length summation of second predetermined threshold value with IP, GTPU and UDP is equal to the maximum of the base station
Transmission unit MTU;
Second message fragment submodule, for when remaining message length be more than the second predetermined threshold value when, then
Repeat to separate fragment message from remaining message, until the length of remaining message is less than or equal to the second default threshold
Value;Wherein, the length of the fragment message for being separated is equal to second predetermined threshold value.
In one kind of the invention is preferable to carry out, the message fragment module includes:
Quotient and remainder acquisition submodule, for by the length value of the message to be transmitted and the default threshold
Value is divided by, and obtains quotient and remainder;
First burst quantity determination sub-module, for when the remainder be 0 when, then using the quotient as
Burst quantity N;
Second burst quantity determination sub-module, for when the remainder is not, then by the quotient and 1
And as burst quantity N;
Message fragment submodule, for the message to be transmitted to be divided into N number of fragment message.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparing of description
Simply, the relevent part can refer to the partial explaination of embodiments of method.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, dress
Put or computer program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, completely
The form of the embodiment in terms of software implementation or combination software and hardware.And, the embodiment of the present invention
Can use can be situated between in one or more computers for wherein including computer usable program code with storage
The computer journey implemented in matter (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of sequence product.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and meter
The flow chart and/or block diagram of calculation machine program product is described.It should be understood that can be by computer program instructions
Realize each flow and/or square frame and flow chart and/or the square frame in flow chart and/or block diagram
The combination of flow and/or square frame in figure.Can provide these computer program instructions to all-purpose computer,
The processor of special-purpose computer, Embedded Processor or other programmable data processing terminal equipments is producing
One machine so that by the computing device of computer or other programmable data processing terminal equipments
Instruction produce for realizing in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The device of the function of being specified in multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable datas to process
In the computer-readable memory that terminal device works in a specific way so that storage is in the computer-readable
Instruction in memory is produced and includes the manufacture of command device, and command device realization is in flow chart one
The function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can also be loaded into computer or other programmable data processing terminals set
It is standby upper so that execution series of operation steps is in terms of producing on computer or other programmable terminal equipments
The treatment that calculation machine is realized, so as to the instruction performed on computer or other programmable terminal equipments provides use
In realization in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames
The step of function of specifying.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art are once
Basic creative concept is known, then other change and modification can be made to these embodiments.So,
Appended claims are intended to be construed to include preferred embodiment and fall into the institute of range of embodiment of the invention
Have altered and change.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms
It is used merely to make a distinction an entity or operation with another entity or operation, and not necessarily requires
Or imply between these entities or operation there is any this actual relation or order.And, art
Language " including ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion so that
Process, method, article or terminal device including a series of key elements not only include those key elements, and
Also include other key elements for being not expressly set out, or also include for this process, method, article or
The intrinsic key element of person's terminal device.In the absence of more restrictions, by sentence " including
It is individual ... " limit key element, it is not excluded that at the process including the key element, method, article or end
Also there is other identical element in end equipment.
Above to a kind of message transmitting method provided by the present invention and a kind of message transmitting device, carry out
It is discussed in detail, specific case used herein is set forth to principle of the invention and implementation method,
The explanation of above example is only intended to help and understands the method for the present invention and its core concept;Meanwhile, it is right
In those of ordinary skill in the art, according to thought of the invention, in specific embodiment and range of application
On will change, in sum, this specification content should not be construed as limiting the invention.
Claims (10)
1. a kind of message transmitting method, it is characterised in that including:
The recombination function configured information in preset detection list is read, it is corresponding with message to be transmitted to know
Base station whether have Packet reassembling function;
If the base station does not have Packet reassembling function, the base station is obtained from the detection list
MTU MTU;
To the message fragment to be transmitted, fragment message is generated;
Fragment message to being generated encapsulates IP, GTPU and UDP heads;Be packaged with IP,
MTU of the length of the fragment message of GTPU and UDP less than or equal to the base station
MTU;
The fragment message for being packaged with IP, GTPU and UDP is sent to the base station;
Be used in the fragment message that will receive IP, GTPU and UDP of the base station peels off,
And the fragment message of IP, GTPU and UDP will be peeled off send to message sink;The report
Literary receiving terminal is used to recombinate received fragment message.
2. method according to claim 1, it is characterised in that the detection list is by following
Mode is preset:
Create detection list;
To probe messages burst, burst probe messages are generated;
The burst probe messages that will be generated are sent to base station;
If being not received by the sound that the base station returns for the burst probe messages in Preset Time
Message is answered, then recombination function configured information of the base station without Packet reassembling function will be indicated to write institute
State detection list in;
If receiving the response report that the base station returns for the burst probe messages in Preset Time
Text, then judge whether the length of the probe messages is identical with the length of the response message;
If so, will then indicate the base station there is the recombination function configured information write-in institute of Packet reassembling function
State detection list in;
The spy is write using the length of the probe messages as the MTU MTU of the base station
Survey in list;
If it is not, will then indicate recombination function configured information of the base station without Packet reassembling function to write
In the detection list.
3. method according to claim 2, it is characterised in that also include:
If the length of the probe messages is differed with the length of the response message, repeat to the base
Stand transmission probe messages, until the length phase of length and the corresponding response message of transmitted probe messages
The length of the probe messages for together, and using last time sending is write as the MTU MTU of base station
Enter it is described detection list in;Wherein, afterwards message send the length of the corresponding probe messages of operation with it is preceding
One time message sends the difference of the length for operating corresponding probe messages equal to the first predetermined threshold value.
4. method according to claim 1, it is characterised in that described to the message to be transmitted
The step of burst, generation fragment message, includes:
A piece of fragment message is separated from the message to be transmitted;
Judge remaining message length whether more than the second predetermined threshold value;Second predetermined threshold value with IP,
The length summation of GTPU and UDP is equal to the MTU MTU of the base station;
If so, then separate fragment message from remaining message relay is continuous, until the length of remaining message be less than or
Equal to the second predetermined threshold value;Wherein, the length of the fragment message for being separated is equal to second predetermined threshold value.
5. method according to claim 1, it is characterised in that described to the message to be transmitted
The step of burst, generation fragment message, includes:
The length value of the message to be transmitted and the predetermined threshold value are divided by, quotient and remainder is obtained;
If the remainder is 0, using the quotient as burst quantity N;
If the remainder is not 0, using the quotient and 1 and as burst quantity N;
The message to be transmitted is divided into N number of fragment message.
6. a kind of message transmitting device, it is characterised in that including:
Detection list read module, for reading the recombination function configured information in preset detection list,
To know whether base station corresponding with message to be transmitted has Packet reassembling function;
MTU MTU acquisition modules, if not having Packet reassembling function for the base station,
The MTU MTU of the base station is then obtained from the detection list;
Message fragment module, for the message fragment to be transmitted, generating fragment message;
Package module, for encapsulating IP, GTPU and UDP heads to the fragment message for being generated;
The length of fragment message of IP, GTPU and UDP is packaged with less than or equal to the base station
MTU MTU;
Message sending module, for by the burst report for being packaged with IP, GTPU and UDP
Text is sent to the base station;
Be used in the fragment message that will receive IP, GTPU and UDP of the base station peels off,
And the fragment message of IP, GTPU and UDP will be peeled off send to message sink;The report
Literary receiving terminal is used to recombinate received fragment message.
7. installation method according to claim 6, it is characterised in that the detection list is by following
Mode is preset:
Create detection list;
To probe messages burst, burst probe messages are generated;
The burst probe messages that will be generated are sent to base station;
If being not received by the sound that the base station returns for the burst probe messages in Preset Time
Message is answered, then recombination function configured information of the base station without Packet reassembling function will be indicated to write institute
State detection list in;
If receiving the response report that the base station returns for the burst probe messages in Preset Time
Text, then judge whether the length of the probe messages is identical with the length of the response message;
If so, will then indicate the base station there is the recombination function configured information write-in institute of Packet reassembling function
State detection list in;
The spy is write using the length of the probe messages as the MTU MTU of the base station
Survey in list;
If it is not, will then indicate recombination function configured information of the base station without Packet reassembling function to write
In the detection list.
8. device according to claim 7, it is characterised in that also include:
If the length of the probe messages is differed with the length of the response message, repeat to the base
Stand transmission probe messages, until the length phase of length and the corresponding response message of transmitted probe messages
The length of the probe messages for together, and using last time sending is write as the MTU MTU of base station
Enter it is described detection list in;Wherein, afterwards message send the length of the corresponding probe messages of operation with it is preceding
One time message sends the difference of the length for operating corresponding probe messages equal to the first predetermined threshold value.
9. device according to claim 6, it is characterised in that the message fragment module includes:
First message fragment submodule, for separating a piece of fragment message from the message to be transmitted;
Length judge module, for judging the length of remaining message whether more than the second predetermined threshold value;It is described
Length summation of second predetermined threshold value with IP, GTPU and UDP is equal to the maximum of the base station
Transmission unit MTU;
Second message fragment submodule, for when remaining message length be more than the second predetermined threshold value when, then
Repeat to separate fragment message from remaining message, until the length of remaining message is less than or equal to the second default threshold
Value;Wherein, the length of the fragment message for being separated is equal to second predetermined threshold value.
10. device according to claim 6, it is characterised in that the message fragment module includes:
Quotient and remainder acquisition submodule, for by the length value of the message to be transmitted and the default threshold
Value is divided by, and obtains quotient and remainder;
First burst quantity determination sub-module, for when the remainder be 0 when, then using the quotient as
Burst quantity N;
Second burst quantity determination sub-module, for when the remainder is not, then by the quotient and 1
And as burst quantity N;
Message fragment submodule, for the message to be transmitted to be divided into N number of fragment message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510794304.4A CN106713187B (en) | 2015-11-17 | 2015-11-17 | A kind of message transmitting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510794304.4A CN106713187B (en) | 2015-11-17 | 2015-11-17 | A kind of message transmitting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106713187A true CN106713187A (en) | 2017-05-24 |
CN106713187B CN106713187B (en) | 2019-09-17 |
Family
ID=58932307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510794304.4A Active CN106713187B (en) | 2015-11-17 | 2015-11-17 | A kind of message transmitting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106713187B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107592566A (en) * | 2017-09-22 | 2018-01-16 | 四川长虹电器股份有限公司 | The method of android system intelligent television communication |
CN110636551A (en) * | 2018-06-25 | 2019-12-31 | 上海华为技术有限公司 | Method and device for avoiding message fragmentation |
CN111182016A (en) * | 2018-11-12 | 2020-05-19 | 中移(杭州)信息技术有限公司 | PPPoE dialing message transmission method and device |
CN111903098A (en) * | 2018-03-22 | 2020-11-06 | 华为技术有限公司 | Method, device and system for processing message fragment |
CN114205307A (en) * | 2021-12-02 | 2022-03-18 | 中国联合网络通信集团有限公司 | Data packet transmission method, RLC entity and storage medium |
CN114629974A (en) * | 2022-05-10 | 2022-06-14 | 新华三技术有限公司 | Message transmission method, device and equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007274056A (en) * | 2006-03-30 | 2007-10-18 | Oki Electric Ind Co Ltd | Datagram reassembling apparatus |
CN101207571A (en) * | 2007-12-12 | 2008-06-25 | 华为技术有限公司 | Apparatus and method for forwarding packets |
CN102404186A (en) * | 2010-09-09 | 2012-04-04 | 杭州华三通信技术有限公司 | Method and device for message fragmentation reassembly |
CN102957590A (en) * | 2011-08-29 | 2013-03-06 | 盛科网络(苏州)有限公司 | Message slicing method and device |
-
2015
- 2015-11-17 CN CN201510794304.4A patent/CN106713187B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007274056A (en) * | 2006-03-30 | 2007-10-18 | Oki Electric Ind Co Ltd | Datagram reassembling apparatus |
CN101207571A (en) * | 2007-12-12 | 2008-06-25 | 华为技术有限公司 | Apparatus and method for forwarding packets |
CN102404186A (en) * | 2010-09-09 | 2012-04-04 | 杭州华三通信技术有限公司 | Method and device for message fragmentation reassembly |
CN102957590A (en) * | 2011-08-29 | 2013-03-06 | 盛科网络(苏州)有限公司 | Message slicing method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107592566A (en) * | 2017-09-22 | 2018-01-16 | 四川长虹电器股份有限公司 | The method of android system intelligent television communication |
CN111903098A (en) * | 2018-03-22 | 2020-11-06 | 华为技术有限公司 | Method, device and system for processing message fragment |
CN111903098B (en) * | 2018-03-22 | 2022-01-28 | 华为技术有限公司 | Method, device and system for processing message fragment |
US11411892B2 (en) | 2018-03-22 | 2022-08-09 | Huawei Technologies Co., Ltd. | Packet fragment processing method and apparatus and system |
CN110636551A (en) * | 2018-06-25 | 2019-12-31 | 上海华为技术有限公司 | Method and device for avoiding message fragmentation |
WO2020001355A1 (en) * | 2018-06-25 | 2020-01-02 | 华为技术有限公司 | Method and device for avoiding packet fragmentation |
CN110636551B (en) * | 2018-06-25 | 2022-05-17 | 上海华为技术有限公司 | Method and device for avoiding message fragmentation |
US11394656B2 (en) | 2018-06-25 | 2022-07-19 | Huawei Technologies Co., Ltd. | Method and apparatus for avoiding packet fragmentation |
CN111182016A (en) * | 2018-11-12 | 2020-05-19 | 中移(杭州)信息技术有限公司 | PPPoE dialing message transmission method and device |
CN114205307A (en) * | 2021-12-02 | 2022-03-18 | 中国联合网络通信集团有限公司 | Data packet transmission method, RLC entity and storage medium |
CN114205307B (en) * | 2021-12-02 | 2023-07-18 | 中国联合网络通信集团有限公司 | Data packet transmission method, RLC entity and storage medium |
CN114629974A (en) * | 2022-05-10 | 2022-06-14 | 新华三技术有限公司 | Message transmission method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106713187B (en) | 2019-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106713187A (en) | Message transmission method and device | |
CN105591912B (en) | A kind of selection method and device of forward-path | |
CN107342952A (en) | Service link selects control method and equipment | |
CN107370674A (en) | A kind of method, apparatus and system of data transfer | |
US10609633B2 (en) | Method for triggering registrar protocol interaction, access point, and station | |
EP3096563B1 (en) | Method and system for realizing network access via wifi | |
CN107040549A (en) | A kind of TCP packet splicings processing method, server and system | |
CN107508907A (en) | A kind of data transmission method and device | |
CN111294235A (en) | Data processing method, device, gateway and readable storage medium | |
CN110740481A (en) | Data processing method, apparatus and computer storage medium based on quality of service | |
CN105847101A (en) | Data transmission method based on vehicle bus | |
CN107426042A (en) | A kind of message transmitting method and transmission equipment | |
CN105282094B (en) | A kind of collecting method and system | |
CN102238064B (en) | Data transmission method, device and system | |
CN106533803A (en) | CPE (Customer Premise Equipment) configuration method and device based on TR069 protocol | |
CN106681734A (en) | Response method and device for function interface call | |
CN106789387A (en) | A kind of chain circuit detecting method and device for SDN | |
CN108063986A (en) | Frame number bearing method, the apparatus and system of multichannel passive optical network | |
CN110581792B (en) | Message transmission method and device | |
CN111371736B (en) | iOAM information processing method, iOAM information processing device and computer readable storage medium | |
CN104486787B (en) | A kind of link failure method and device | |
CN111315026B (en) | Channel selection method, device, gateway and computer readable storage medium | |
US9992767B2 (en) | Data transmission method and device | |
CN109067922A (en) | A kind of data transmission method and device | |
CN107078837A (en) | A kind of agreement frame transmission method, device, node device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |