WO2013166899A1 - 一种短消息传输的方法、装置及系统 - Google Patents

一种短消息传输的方法、装置及系统 Download PDF

Info

Publication number
WO2013166899A1
WO2013166899A1 PCT/CN2013/074122 CN2013074122W WO2013166899A1 WO 2013166899 A1 WO2013166899 A1 WO 2013166899A1 CN 2013074122 W CN2013074122 W CN 2013074122W WO 2013166899 A1 WO2013166899 A1 WO 2013166899A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
segmentation
messages
receiving
response message
Prior art date
Application number
PCT/CN2013/074122
Other languages
English (en)
French (fr)
Inventor
舒兵
李方向
房明
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013166899A1 publication Critical patent/WO2013166899A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for short message transmission.
  • SMS Short Messaging Service
  • MS mobile station
  • SC Short Message Service Center
  • SMS is characterized by the use of a store-and-forward mechanism to store and forward short messages through the SC. That is to say, the short message is not directly transmitted from the transmitting end to the receiving end, but the short message is forwarded through the SC. If the receiving end is not connected (for example, the phone is turned off), the short message will be sent when the receiving end is connected again.
  • the SMS has the function of sending a message confirmation, and the sender can receive a response message that the short message is successfully sent (successful transmission means that the short message has been received by the SC;).
  • the short message service includes the following two basic modes:
  • MO Mobile Originated
  • MT Mobile Terminated
  • the short message is transmitted from the SC to the MS.
  • the longest byte of a text message sent at one time is specified as 140 bytes, regardless of the MT service or the MO service. Short messages can be longer text messages, but when the length of the message exceeds When the byte is fixed, it needs to be split into multiple segments, and the length of each segment cannot exceed the specified byte.
  • FIG. 1 it is a schematic flowchart of a short message segment transmission method in the prior art.
  • the MS When transmitting the MO service in the CS domain, the MS first establishes an RR connection and a MM (Mobility Management) connection with the Mobile Switching Center (MSC), and then establishes a CM (Connection Management) layer with the SC. Connected, then the MS sends the segmented short messages to the SC one by one in sequence.
  • the CM layer is also referred to as a Control Protocol (CP) layer when used for short message transmission.
  • CP Control Protocol
  • Step 1 Send the first segment:
  • the MS generates relay layer data signaling RP-DATA in the RL (Relay Layer), the RP-DATA carries the first segment message; the RP layer in the CM layer After the DATA is packaged into the control layer data signaling CP-DATA, it is sent to the network side (label 1 shown in FIG. 1); wherein, when the RL layer is used for short message transmission, it is also called short message relay layer (Short Message).
  • Relay Layer referred to as SM-RL
  • the CM layer on the network side After receiving the CP-DATA, the CM layer on the network side transmits the RP-DATA carried in the CP-DATA to the RL layer, and returns the response message control layer of the CM layer to the MS.
  • the correct response signaling CP-ACK (ie, label 2) ;
  • the RL layer on the network side After receiving the RP-DATA, the RL layer on the network side returns the RB layer's response message relay layer correct response signaling RP-ACK; the RP-ACK is packetized into CP-DATA at the CM layer and transmitted to the MS (see Figure 1). The number shown is 3);
  • the MS sends a response message CP-ACK to the network side after receiving the CP-DATA carrying the RP-ACK returned by the network side (refer to the number 4 shown in Figure 1). ), notify the network side that the short message has been sent.
  • each time the MS sends a CP-DATA it will receive a response message indicating whether the CP-DATA message is successfully received.
  • the MS sends an RP-DATA it also receives a response message indicating whether the RP-DATA message was successfully received.
  • Step 2 send the next segment message: If there are still segmented short messages to be sent, then MS Before sending a CP-ACK (label 4 as shown in FIG. 1), it needs to send a connection management service request message CM Service Request (label 5 shown in FIG. 1) to the network side, and apply for a new short message transmission to the network side. After receiving the response message CM Service Accept (as shown in Figure 6) of the request sent by the network side, the MS first sends a CP-ACK to the network side (label 4 shown in Figure 1). Then, the next segmentation message is sent, and then the network side and the MS respond according to the above rules until all segments of a short message are sent.
  • CM Service Request label 5 shown in FIG. 1
  • the MS After receiving the response message CM Service Accept (as shown in Figure 6) of the request sent by the network side, the MS first sends a CP-ACK to the network side (label 4 shown in Figure 1). Then, the next segmentation message is sent, and then the network side
  • the existing short message segment transmission method has the following disadvantages: When a short message needs to be segmented, the MS performs signaling interaction with the receiving end every time a piece of content is transmitted, and the signaling overhead is large; Too much, the back and forth delay increases, which causes the delay of the entire short message transmission to be too large. The signaling of non-transmission content wastes the transmission resources of the network and reduces the transmission efficiency of short messages.
  • aspects of the present invention provide a method, an apparatus, and a system for short message transmission, which can save transmission resources of a network and improve transmission efficiency of short messages.
  • An aspect of the present invention provides a method for short message transmission, including: transmitting, by means of continuous transmission, N segment messages belonging to the same short message to a receiving end; N is an integer, and N > 2; Receiving a response message returned by the receiving end.
  • Another aspect of the present invention provides a method for short message transmission, comprising: receiving, by means of continuous reception, N pieces of segmented messages belonging to the same short message; N being an integer, and ⁇ > 2; receiving When at least two of the N segmented messages are received, a response message is returned to the sending end according to the receiving condition of the at least two segmented messages.
  • Another aspect of the present invention provides an apparatus for sending a short message, including: a segmentation message sending unit, configured to send, by means of continuous transmission, N segmentation messages belonging to the same short message to a receiving end; N is an integer, and ⁇ > 2; a response message receiving unit, configured to receive a response message returned by the receiving end.
  • Another aspect of the present invention provides a device for receiving short messages, including: segmented message connection a receiving unit, configured to receive N segmented messages belonging to the same short message by using continuous receiving; N is an integer, N >2; a response message sending unit, configured to receive the N segmented messages When at least two segmentation messages are received, a response message is returned to the sender according to the reception status of the at least two segmentation messages.
  • Another aspect of the present invention provides a system for short message transmission, comprising: a device for short message transmission and a device for short message reception.
  • the embodiment of the invention can effectively reduce the signaling message in the short message segment transmission process, save the transmission resource of the network, and improve the transmission efficiency of the short message.
  • FIG. 1 is a schematic flow chart of a prior art short message segment transmission method
  • FIG. 2 is a schematic flow chart of a method for short message transmission in an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of another method for short message transmission in the embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another method for short message transmission in the embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a method for transmitting a short message in response to an RL layer according to an embodiment of the present invention;
  • FIG. 7 is a schematic flow chart of a short message transmission method replied at a CM layer according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a method for short message transmission according to an embodiment of the present invention
  • FIG. 9 is a schematic flowchart of another method for short message transmission according to an embodiment of the present invention
  • FIG. 10(A) is a schematic structural diagram of another apparatus for sending short messages according to an embodiment of the present invention
  • FIG. 10(B) is a schematic structural diagram of another apparatus for transmitting short messages according to an embodiment of the present invention
  • a schematic structural diagram of an apparatus for receiving short messages in an embodiment of the invention
  • FIG. 11(A) is a schematic structural diagram of another apparatus for receiving short messages according to an embodiment of the present invention
  • FIG. 11(B) is a schematic structural diagram of another apparatus for receiving short messages according to an embodiment of the present invention
  • FIG. 12 is a schematic structural diagram of a system for short message transmission according to an embodiment of the present invention.
  • the short message to be transmitted is a long text message whose text length exceeds a specified byte (for example, more than 140 bytes).
  • a specified byte for example, more than 140 bytes.
  • a method for short message transmission includes the following steps:
  • N is an integer, and ⁇ >2.
  • the continuous sending refers to that the transmitting end directly enters the sending of the next segmented message after completing the sending of a segmented message, and does not need to wait for the response message of the receiving end.
  • the response message is used to indicate whether the at least two segmentation messages are successfully received. If the response message indicates that the segmentation message has failed to be received, after receiving the response message, the response message further includes:
  • the segmentation message indicating the failure of the response message indicated by the response message is resent to the receiving end; or Sending the N segmentation messages to the receiving end;
  • the segmentation message indicating the failure of the response message and the subsequent segments are represented by continuous transmission.
  • the message is continuously sent to the receiving end.
  • the response message includes the following two response modes:
  • Mode 1 All response modes, used to indicate the reception of N segmented messages, can be used
  • the two message structures, Al and A2 are as follows.
  • Structure A1 indicating the reception status of the N segmentation messages by message type
  • the response message is a correct response message (for example, RP-ACK signaling), indicating that all of the N segmented messages are successfully received;
  • the response message is an error response message (eg, relay layer error response signaling)
  • Structure A2 The reception of the N segmented messages is represented by message content.
  • the response message may be in the form of a list, reflecting the reception status of each of the N segmented messages; or only the segmented message that is successfully received in the list, and the segmented message that is not reflected For the reception failure; or only the segmentation message that failed to receive is reflected in the list, and the segmentation message that is not reflected is regarded as the reception success.
  • the response message when the response message only reflects the segmentation message that fails to receive, the specific message structure is as follows:
  • the RP-Message Type is a mandatory field with a length of 1/2 byte. The value of this field is used to indicate the type of the message, for example, RP-ACK, or RP-ERROR.
  • the RP-Message Reference is a mandatory field with a length of 1/2 byte. The value of this field is used to indicate the sequence number of the failed segment. Among them, there are several segment messages that fail to receive.
  • the message reference field forms a message reference list, that is, responds to the segmentation message that fails to receive in the form of a list;
  • the error cause (RP-Cause) field is a mandatory field with a length of 2 ⁇ 3 bytes. This field contains the reason for the segmentation message receiving error, for example, the receiver fails to parse the segmentation message, or the segmentation message is lost, or , segmentation message verification failure, etc.;
  • User data RP-User Data
  • this field contains user data and information indicating the type and length of the user data; the user data refers to the received by the receiving end. The content of the segmentation message.
  • the mandatory field means that the field must exist in the message structure; the optional field means that the field may exist in the message structure, and may not exist.
  • Mode 2 Partial response mode, used to indicate the reception of partial segments in N segmented messages.
  • the partial response mode can use the message structure in the structure A2, and details are not described herein. It should be noted that the response message may be combined with the foregoing two manners to express the reception status of the segmentation message. For example, when all the N segmentation messages are successfully received, the structure A1 in the mode 1 can be fed back to the transmitting end. When the receiving end fails to receive the segmentation message for the first time, the mode 2 can be used to feedback the partial segmentation message. The receiving situation is sent to the sender.
  • the short message includes an X component segment message
  • the N segment messages are an i-th group, X>2, K i ⁇ X, and all of X and X are integers.
  • the method further includes: sending the segmentation message in the (i+1)th group to the receiving end by using a continuous transmission manner.
  • the MS needs to transmit a short message with a byte length of 2000 to the SC.
  • the MS splits the short message into 15 segmented messages, each of which does not exceed 140 bytes in length. And 15 segmentation messages are divided into two groups, the first group includes 8 segmentation messages, and the second group includes 7 segmentation messages.
  • the MS uses the continuous transmission mode to first send the first segment of the segmentation message to the SC; the SC uses the continuous reception mode to receive the first segment of the segmentation message and feed back the response message to the MS.
  • the MS After the response message indicates that all the 8 segmentation messages of the first group are successfully received, the MS sends the segmentation messages of the second group to the SC in a continuous transmission manner; the SC uses the continuous reception mode to receive The second group of 7 segmentation messages, and feedback response messages to the MS. Until all the 7 segment messages of the second group are successfully received, the short message is sent.
  • the method for short message transmission further includes: when sending the last one of the N segmented messages, starting a sending timer; if the sending timer expires After the response message returned by the receiving end is still not received, an error report message is sent, and the report segmentation message is sent incorrectly. Then, the sender performs error processing, such as resending the segmentation message, and if the number of retransmissions exceeds a certain value and still reports an error, the message is stopped. Alternatively, you can do other error handling.
  • the short message service when the short message service is in the MO mode, the short message is transmitted from the MS to the network side, the sending end is the MS, and the receiving end is the network side; when the short message service is in the MT mode, the short message is transmitted from the network side.
  • the sender is the network side, and the receiver is the MS.
  • the transmitting end uses the continuous sending mode, and does not need to wait for the response message of the receiving end after each segment message is sent, which reduces the number of signaling interactions and improves the transmission efficiency of the short message.
  • another method for short message transmission includes the following steps:
  • N is an integer, and ⁇ > 2.
  • step S32 the response message is used to indicate whether at least two segmentation messages are successfully received; when the at least two segmentation messages are N segmentation messages, the response message is continuously receiving the N Returning after the segmentation message, or returning after the receiving timer expires, or returning after receiving the segmentation message with sequence number N; the receiving timer is started when the segmentation message is received for the first time;
  • the response message is returned when the first segmentation message reception fails, or, after receiving the preset segmentation Returns when the number of messages is P; P is an integer, and P ⁇ N.
  • step S32 when receiving at least two segmentation messages of the N segmentation messages, returning a response cancellation according to the reception status of the at least two segmentation messages Information to the sender, including:
  • RL layer When the relay layer (RL layer) receives at least two of the N segmentation messages, a response message is returned to the sender according to the reception status of the at least two segmentation messages.
  • step S32 when receiving at least two segmentation messages of the N segmentation messages, returning a response message to the sending according to the receiving condition of the at least two segmentation messages End, including:
  • RL layer Receiving at least two segmentation messages of the N segmentation messages at a relay layer (RL layer), and transmitting a segmentation response message to a connection management layer; the segmentation response message is used to indicate whether the segmentation message is successfully received ;
  • a response message is returned to the sender according to the received at least two segment response messages.
  • the generation of the response message is exemplified by the structure A1 as follows.
  • the correct response message RP-ACK is used, indicating that the at least two segmentation messages are all correctly received; if at least one segmentation message exists in the N segmentation messages
  • the error response message RP-ERROR is used, and the sender resends all N segmentation messages after receiving the response message RP-ERROR.
  • the receiving end can return a response message after receiving multiple segmentation messages, and simultaneously reply to the reception of multiple segmentation messages, effectively reducing signaling messages during short message segment transmission, and saving network. Transmission resources to improve the transmission efficiency of short messages.
  • FIG. 4 another method for short message transmission according to an embodiment of the present invention is provided.
  • the timing at which the receiving end returns the response message is: The receiving end returns a response message after continuously receiving N segmentation messages.
  • the process of short message transmission is as follows:
  • the sending end establishes a communication connection with the receiving end. For example, when transmitting the MO service in the CS domain, the MS needs to establish an RR connection and an MM connection with the MSC, and then establish a CM layer connection with the SC.
  • the sending end sends the first segment message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (1) at the RL layer, and the RP-DATA (1) carries the first segmentation message; and then packs the RP-DATA (1) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment) is sent to the receiving end through the communication connection established in step S40.
  • the sending end sends a second segmentation message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (2) at the RL layer, and the RP-DATA (2) carries the second segmentation message; then packs the RP-DATA (2) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment 2) is sent to the receiving end through the communication connection established in step S40.
  • the sending end sends a third segment message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (3) at the RL layer, and the RP-DATA (3) carries a third segmentation message; then packs the RP-DATA (3) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment 3) is sent to the receiving end through the communication connection established in step S40.
  • step S43 the transmitting end starts a sending timer when the third segment message is sent, and is used to wait for the receiving end to return a response message. If the response message returned by the receiving end is not received after the sending timer expires, an error report message is sent, and the segmentation message is sent incorrectly. Then, the sender performs error processing, such as resending the segmentation message, and if the number of retransmissions exceeds a certain value and still reports an error, the message is stopped. Alternatively, you can do other error handling.
  • the receiving end After receiving the three segmentation messages continuously, the receiving end returns a response message to the sending end according to the receiving condition of each segment.
  • step S48 is performed to remove the communication connection established in step S40.
  • the receiving end returns an error response message CP-DATA (RP-ERROR 1-3), indicating that the first segment and the second segment fail to receive, and the third segment message is successfully received, and the transmitting end is continuous.
  • CP-DATA RP-ERROR 1-3
  • the sender sends the (i+1)th segment segment message, that is, executes S41 to S43, and does not need to perform step S48.
  • the sending end resends the first segmentation message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (1) at the RL layer, and the RP-DATA (1) carries the first segmentation message; and then packs the RP-DATA (1) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment) is sent to the receiving end through the communication connection established in step S40.
  • the sending end resends the second segmentation message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (2) at the RL layer, and the RP-DATA (2) carries the second segmentation message; then packs the RP-DATA (2) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment 2) is sent to the receiving end through the communication connection established in step S40.
  • step S46 when the second segment message is sent, the sending end starts a sending timer, and is used to wait for the receiving end to return a response message. If the response message returned by the receiving end is not received after the sending timer expires, an error report message is sent, and the segmentation message is sent incorrectly.
  • the receiving end After receiving the first segment message and the second segment message continuously, the receiving end returns a response message to the sending end according to the receiving condition of each segment.
  • the receiving end returns a response message CP-DATA (RP-ACK 1-2), and the response message includes information that the first segment message and the second segment message are successfully received. At this point, the short message is sent successfully, and step S48 is performed.
  • the transmitting end continues to retransmit the segmentation message that failed to be received to the receiving end until the receiving end successfully receives the message. There are some segmentation messages.
  • step S48 The communication connection established in step S40 is removed.
  • the transmitting end when the transmitting end continuously transmits N segmented messages, it only needs to set a timer for the last (ie, the Nth) segmentation message (for example, the timer TRIM, TR1N or TR1* described in 3GPP TS 24011). ), there is no need to set a timer when transmitting the 1st through N-1th segmented messages. Moreover, after receiving the response message returned by the sending end, the receiving end retransmits the segmentation message that failed to be received at one time, and only needs to set a timer for the last segmented message of the retransmission.
  • the Nth segmentation message for example, the timer TRIM, TR1N or TR1* described in 3GPP TS 24011.
  • the sending end may wait until the sending timer expires, re-establish a connection with the receiving end, and resend the N segmented messages.
  • the flow of the above S40 S44 is repeated; when the segmented message is lost, the receiving end does not receive all the N segmented messages, the receiving end may return a response message after the receiving timer expires, or may receive the sequence number.
  • a reply message is returned after the segmentation message of N.
  • Each segmentation message may include: a specific value of N, a sequence number of the current segmentation message, and information such as how many groups the short message is divided into. For example, in the embodiment shown in FIG.
  • the short message is sent in the order of the sequence number. If the second segment message is lost during the transmission, the receiving end can receive the third segment message according to the receiving. The segmentation message arrives to determine that the second segmentation message is lost.
  • FIG. 5 another method for short message transmission according to an embodiment of the present invention is provided. In this embodiment, the timing at which the receiving end returns the response message is: The receiving end returns a response message when the first segmentation message reception fails.
  • the process of short message transmission is as follows:
  • the sending end establishes a communication connection with the receiving end.
  • the MS when transmitting the MO service in the CS domain, the MS needs to establish an RR connection and an MM connection with the MSC, and then establish a CM layer connection with the SC.
  • the sending end sends the first segment message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (1) at the RL layer, and the RP-DATA (1) carries the first segmentation message; and then packs the RP-DATA (1) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment) is sent to the receiving end through the communication connection established in step S50.
  • the sending end sends a second segmentation message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (2) at the RL layer, and the RP-DATA (2) carries the second segmentation message; then packs the RP-DATA (2) into the CM layer data signaling at the CM layer.
  • CP-DATA (segment2) is sent to the receiving end through the communication connection established in step S50.
  • the receiving end continuously receives the first segmentation message and the second segmentation message, and when receiving the second segmentation message, the first time the reception fails; the receiving end returns a response message to the sending end.
  • the receiving end returns a response message CP-DATA (RP-ERROR 1-2), and the response message includes information that the first segmentation message is successfully received and the second segmentation message is received.
  • the sending end After receiving the response message, the sending end knows that the first segment message is successfully received, and the second segment message fails to be received, and the sending end starts from the second segment message in a continuous transmission manner, and continues to send the segment message downward. , that is, execute S54 ⁇ S55.
  • the sending end sends a second segmentation message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (2) at the RL layer, and the RP-DATA (2) carries the second segmentation message; then packs the RP-DATA (2) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment 2) is sent to the receiving end through the communication connection established in step S50.
  • the sending end sends a third segment message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (3) at the RL layer, and the RP-DATA (3) carries the third segmentation message; then packs the RP-DATA (3) into a CM layer data message at the CM layer.
  • CP-DATA (segment3) be sent to the receiving end through the communication connection established in step S50.
  • step S55 when sending the third segmentation message, the sending end starts a sending timer, which is used to wait for the receiving end to return a response message. If the response message returned by the receiving end is not received after the sending timer expires, an error report message is sent, and the segmentation message is sent incorrectly.
  • the receiving end returns a response message CP-DATA (RP-ACK 2-3), and the response message includes information that the first segment message and the second segment message are successfully received. At this point, the short message was sent successfully.
  • step S57 when the short message includes an X component segment message, and the three segment messages are the i-th group, X > 2, 1 i ⁇ X (i and X are integers), then, when After the three segment messages are successfully received, the sender sends the i+1th segment message, and step S57 does not need to be performed.
  • a short message transmission method for responding at an RL layer according to an embodiment of the present invention is provided.
  • the sending end continuously transmits three segmented messages as an example, which specifically includes the following steps: S61.
  • the receiving end receives the first segmentation message CP-DATA (segment1) at the CM layer.
  • the receiving end transmits the RP-DATA (1) carried in the CP-DATA (segment) to the RL layer at the CM layer.
  • the receiving end generates a first segment response message RP-ACK (1) according to the receiving condition of the first segment message, where the RP-ACK (1) is used to indicate that the first segment message is successfully received.
  • the receiving end receives the second segmentation message CP-DATA (segment2) at the CM layer.
  • the receiving end transmits the RP-DATA (2) carried in the CP-DATA (segment2) to the RL layer at the CM layer.
  • the receiving end generates a second segment response message RP-ACK (2) according to the receiving condition of the second segment message, where the RP-ACK (2) is used to indicate that the second segment message is successfully received.
  • the receiving end receives the third segmentation message CP-DATA (segment3) at the CM layer.
  • the receiving end transmits the RP-DATA (3) carried in the CP-DATA (segment3) to the RL layer at the CM layer.
  • the receiving end generates a third segment response message RP-ACK (3) according to the receiving condition of the third segment message, where the RP-ACK (3) is used to indicate that the third segment message is successfully received.
  • the receiving end responds to the segmentation message RP-ACK (1), RP-ACK (2), and The RP-ACK (3) is merged to obtain the response message RP-ACK 1-3.
  • RP-ACK 1-3 includes information that the first segmentation message, the second segmentation message, and the third segmentation message are successfully received.
  • the receiving end transmits the response message RP-ACK 1-3 to the CM layer at the RL layer.
  • the receiving end packs the response message RP-ACK 1-3 into the CM layer data signaling CP-DATA (RP-ACK1 -3) at the CM layer, and transmits it to the CM layer of the transmitting end.
  • the transmitting end After receiving the response message CP-DATA (RP-ACKl-3) at the CM layer, the transmitting end transmits the RP-ACK1-3 carried in the RL layer to the RL layer.
  • S63, S66, and S69 may be omitted, and in S610, a response message is generated according to the reception status of each segmented message.
  • the short message service when the short message service is in the MO mode, the short message is transmitted from the MS to the network side.
  • the response is combined by the RL layer of the SC. That is, in steps S63, S66, and S69, the SC generates segmentation response messages RP-ACK(1), RP-ACK(2), and RP-ACK(3) at the RL layer; in step S610, the SC is at the RL layer pair.
  • the segmentation response messages RP-ACK (1), RP-ACK (2), and RP-ACK (3) are combined to generate a response message RP-ACK 1-3.
  • the response is merged by the RL layer of the MSC.
  • the SC will RP-ACK(1), RP-ACK(2) and RP-ACK(3) are sent to the RL layer of the MSC; in step S610, the MSC responds to the segmentation messages RP-ACK(1), RP-ACK(2) and RP-ACK at the RL layer ( 3) Combine and generate response message RP-ACK 1-3.
  • the MSC may be replaced by an SGSN (Serving GPRS Support Node) or an SMS-GMSC (SMS-Gateway MSC, Short Message Service Gateway Mobile Switching Center). Referring to FIG. 7, a short message transmission method for responding at the CM layer according to an embodiment of the present invention is provided. This embodiment is described by taking the example that the sending end continuously transmits three segmented messages, and specifically includes the following steps:
  • the receiving end receives the first segmentation message CP-DATA (segment1) at the CM layer. 572. The receiving end transmits the RP-DATA (1) carried in the CP-DATA (segment) to the RL layer at the CM layer.
  • the receiving end generates a first segment response message RP-ACK (1) at the RL layer according to the receiving condition of the first segment message, and transmits the RP-ACK (1) to the CM layer.
  • RP-ACK first segment response message
  • (1) is used to indicate that the first segment message is successfully received.
  • the receiving end receives the second segmentation message CP-DATA (segment2) at the CM layer.
  • the receiving end transmits the RP-DATA (2) carried in the CP-DATA (segment2) to the RL layer at the CM layer.
  • the receiving end generates a second segment response message RP-ACK (2) at the RL layer according to the receiving condition of the second segment message, and transmits the RP-ACK (2) to the CM layer.
  • RP-ACK a second segment response message
  • the receiving end receives the third segmentation message CP-DATA (segment3) at the CM layer.
  • the receiving end transmits the RP-DATA (3) carried in the CP-DATA (segment3) to the RL layer at the CM layer.
  • the receiving end generates a third segment response message RP-ACK (3) at the RL layer according to the receiving condition of the third segment message, and transmits the RP-ACK (3) to the CM layer.
  • RP-ACK segment response message
  • (3) is used to indicate that the third segment message is successfully received.
  • the receiving end is at the CM layer, and the segment response messages RP-ACK (1), RP-ACK (2), and RP-ACK (3) are packed, and the generated response message CP-DATA includes RP-ACK (1). , RP-ACK ( 2 ) and RP-ACK ( 3 ). That is, the CP-DATA message contains information that the first segmentation message, the second segmentation message, and the third segmentation message are successfully received.
  • the response message CP-DATA is transmitted to the CM layer of the transmitting end.
  • the short message is transmitted from the MS to the network side.
  • the response is merged by the CM layer of the SC. That is, in steps S73, S76, and S79, after the RL layer generates the segment response messages RP-ACK (1), RP-ACK (2), and RP-ACK (3), the SC will RP-ACK (1), RP. -ACK ( 2 ) and RP-ACK ( 3 ) are transmitted to the SC CM layer; in step S710, the SC packs the segment response messages RP-ACK(1), RP-ACK(2) and RP-ACK(3) at the CM layer to generate a response message CP-DATA.
  • the response is merged by the CM layer of the MSC. That is, in steps S73, S76, and S79, after the RL layer generates the segment response messages RP-ACK(1), RP-ACK(2), and RP-ACK(3), the SC will RP-ACK(1), RP. -ACK ( 2 ) and RP-ACK ( 3 ) are transmitted to the MSC
  • step S710 the MSC packages the segment response messages RP-ACK(1), RP-ACK(2) and RP-ACK(3) at the CM layer to generate a response message CP-DATA.
  • the MSC may be replaced by an SGSN or an SMS-GMSC.
  • FIG. 8 another method for short message transmission according to an embodiment of the present invention is provided. This embodiment assumes that a short message can be split into five segmented messages and divided into two groups. The first group includes a first segmentation message, a second segmentation message, and a third segmentation message, and the second group includes a fourth segmentation message, and a fifth segmentation message.
  • the process of short message transmission is as follows:
  • the sending end establishes a communication connection with the receiving end.
  • the sending end sends the first segment message to the receiving end.
  • the sending end sends a second segmentation message to the receiving end.
  • the sending end sends a third segment message to the receiving end.
  • the transmitting end starts the sending timer when the third segment message is sent, and is used to wait for the receiving end to return a response message. If the response message returned by the receiving end is not received after the sending timer expires, an error report message is sent, and the segmentation message is sent incorrectly.
  • the receiving end After receiving the three segmentation messages continuously, the receiving end returns a response message to the sending end according to the receiving condition of each segment.
  • the receiving end returns a response message, which includes information about whether the first segmentation message, the second segmentation message, and the third segmentation message are successfully received.
  • a response message which includes information about whether the first segmentation message, the second segmentation message, and the third segmentation message are successfully received.
  • This embodiment assumes that the first segmentation message and the second segmentation message are failed to be received, the third segmentation message is successfully received, and the receiving end returns a response message CP-DATA (RP-ERROR 1-3).
  • the sender receives the failure to receive the first segment message and the second segment message, and then resends the first segment message and the second segment message to the receiving end in a continuous transmission manner, that is, executing S85 ⁇ S86.
  • the sending end resends the first segmentation message to the receiving end.
  • the sending end resends the second segmentation message to the receiving end.
  • the transmitting end starts the sending timer when the second segment message is sent, and is used to wait for the receiving end to return a response message.
  • the receiving end After receiving the first segment message and the second segment message continuously, the receiving end returns a response message to the sending end according to the receiving condition of each segment.
  • the receiving end returns a response message, where the response message includes information about whether the first segmentation message and the second segmentation message are successfully received.
  • the response message includes information about whether the first segmentation message and the second segmentation message are successfully received.
  • the sending end sends a fourth segment message to the receiving end.
  • the sending end sends a fifth segment message to the receiving end.
  • the transmitting end starts the sending timer when the fifth segment message is sent, and is used to wait for the receiving end to return a response message.
  • the receiving end After receiving the fourth segment message and the fifth segment message continuously, the receiving end returns a response message to the sending end according to the receiving condition of each segment.
  • the receiving end returns a response message CP-DATA (RP-ACK 4-5), and the response message includes information that the fourth segmentation message and the fifth segmentation message are successfully received.
  • the second group of segmented messages is sent successfully, and the short message is sent.
  • step S80 The communication connection established in step S80 is removed.
  • FIG. 9 another method for short message transmission according to an embodiment of the present invention is provided; For example, the difference between this embodiment is as follows: After the CM layer packs the RP-DATA or RP-ACK into CP-DATA and sends it to the peer CM layer, the peer end is required to return a response message of the CM layer.
  • the method for transmitting the short message includes the following steps:
  • the sending end establishes a communication connection with the receiving end.
  • the sending end sends the first segment message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (1) at the RL layer, and the RP-DATA (1) carries the first segmentation message; and then packs the RP-DATA (1) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment) is sent to the receiving end through the communication connection established in step S90.
  • the receiving end returns a CM layer response CP-ACK to the transmitting end.
  • the sending end sends a second segmentation message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (2) at the RL layer, and the RP-DATA (2) carries the second segmentation message; then packs the RP-DATA (2) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment 2) is sent to the receiving end through the communication connection established in step S90.
  • the receiving end returns a CM layer response CP-ACK to the transmitting end.
  • the sending end sends a third segment message to the receiving end.
  • the transmitting end constructs data signaling RP-DATA (3) at the RL layer, and the RP-DATA (3) carries a third segmentation message; then packs the RP-DATA (3) into CM layer data at the CM layer.
  • the signaling CP-DATA (segment 3) is sent to the receiving end through the communication connection established in step S90.
  • step S95 when sending the third segmentation message, the transmitting end starts a sending timer, which is used to wait for the receiving end to return a response message. If the response message returned by the receiving end is not received after the sending timer expires, an error report message is sent, and the segmentation message is sent incorrectly.
  • the receiving end returns a CM layer response CP-ACK to the transmitting end.
  • the receiving end After receiving the three segmentation messages continuously, the receiving end returns a response message to the sending end according to the receiving situation of each segment; the response message includes the first segment message, the second segment message, and the third segment. Whether the segment message receives successful information, and the response message is packetized into CP-DATA at the receiving end's CM layer, and then transmitted to the CM layer of the transmitting end.
  • This embodiment assumes that the first segmentation message, the second segmentation message, and the third segmentation message are all successfully received.
  • the transmitting end After receiving the CP-DATA in step S97, the transmitting end returns a CM layer response CP-ACK to the receiving end, and the short message transmission ends.
  • S92, S94, S96, and S98 only return a response CP-ACK for each CP-DATA message according to the existing protocol, and does not include information on whether the segmentation message is successfully received.
  • the embodiment of the present invention further provides a short message sending apparatus, a short message receiving apparatus, and a short message transmission system, which can implement the short message transmission method in the foregoing embodiment.
  • FIG. 10 is a device for sending a short message according to an embodiment of the present invention.
  • the device for sending a short message includes:
  • the segmentation message sending unit 101 is configured to send, by means of continuous transmission, N segmentation messages belonging to the same short message to the receiving end; N is an integer, N>2;
  • the response message receiving unit 102 receives the response message returned by the receiving end.
  • the segmentation message sending unit 101 When the short message includes an X component segment message, and the N segment messages are the i-th group, X>2, li ⁇ X (i and X are integers), the segmentation message sending unit 101 Also used for:
  • the segmentation message in the (i+1)th group is sent to the receiving by means of continuous transmission. end.
  • the response message is used to indicate whether at least two of the N segmentation messages are successfully received.
  • the device for sending the short message further includes the
  • the apparatus for sending a short message further includes: a retransmission unit 103, as shown in FIG. 10(A).
  • the retransmission unit 103 is configured to: when the at least two segmentation messages are the N segmentation messages, resend the segmentation message that is failed to be received by the response message by using a continuous transmission manner Or the receiving end; or, resending the N segmentation messages to the receiving end; or, when the at least two segmentation messages are partial segmentation messages in the N segmentation messages, And sending the segmentation message indicating the failure of the response message and the subsequent segmentation message to the receiving end continuously.
  • the apparatus for sending the short message further includes: an error reporting unit 104.
  • the error reporting unit 104 is configured to: when the segmentation message sending unit 101 sends the last segmentation message, start a sending timer; if the sending timer expires, the response message receiving unit 102 still does not receive The response message returned by the receiving end sends an error report message, and the report segmentation message is sent incorrectly.
  • FIG. 11 is a device for receiving a short message according to an embodiment of the present invention.
  • the device for receiving the short message includes:
  • the segmentation message receiving unit 111 is configured to receive N segmentation messages belonging to the same short message by using continuous reception; N is an integer, N>2;
  • the response message sending unit 112 is configured to, when receiving the at least two segment messages of the N segment messages, return a response message to the sending end according to the receiving condition of the at least two segment messages.
  • the response message is used to indicate whether the at least two segmentation messages are successfully received; when the at least two segmentation messages are the N segmentation messages, the response message is to continuously receive the N Returning after the segmentation message, or returning after the receiving timer expires, or returning after receiving the Nth segmentation message; the receiving timer is started when the first segmentation message is received;
  • the response message is returned when the segmentation message reception fails for the first time, or a preset segmentation message is received. Returns when the number P; P is an integer, and P ⁇ N.
  • the response message sending unit includes:
  • the first relay layer response unit 1121 is configured to, when the segmentation message receiving unit 111 receives at least two segmentation messages of the N segmentation messages, return a response according to the reception condition of the at least two segmentation messages. Message.
  • the response message sending unit includes:
  • a second relay layer response unit 1122 configured to: when the segmentation message receiving unit 111 receives at least two of the N segmentation messages, transmit a segmentation response message to the connection management layer; The message is used to indicate whether the segmentation message is successfully received;
  • the second connection management layer response unit 1123 is configured to return a response message according to the received at least two segmentation response messages at the connection management layer.
  • a system for short message transmission includes a device 121 for short message transmission and a device 122 for short message reception.
  • the device 121 for transmitting the short message is the device for transmitting the short message in the embodiment of FIG. 10, FIG. 10(A) or FIG. 10(B), and the device 122 for receiving the short message is the above-mentioned FIG. 11 (A) or FIG. 11 (B) means for receiving short messages in the embodiment.
  • the method, device and system for short message transmission provided by the embodiments of the present invention, after the short message segmentation, the transmitting end uses a continuous transmission manner to send a plurality of segmented messages one by one to the receiving end; the receiving end can receive more After a short message segmentation, a response message is sent, and the reception of multiple segmentation messages is replied at the same time, which can reduce signaling messages during short message segment transmission, save network transmission resources, and improve transmission efficiency of short messages.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

本发明公开了一种短消息传输的方法,包括:采用连续发送的方式,将属于同一条短消息的N个分段消息发送给接收端;N为整数,且N≥2;接收所述接收端返回的应答消息;所述应答消息用于表示所述N个分段消息中至少两个分段消息是否接收成功。本发明还公开了一种短消息发送的装置、短消息接收的装置及短消息传输的系统。采用本发明实施例,能够节省网络的传输资源,提高短消息的传输效率。

Description

一种短消息传输的方法、 装置及系统 本申请要求于 2012年 5月 9日提交中国专利局、 申请号为
201210142101.3、 发明名称为 "一种短消息传输的方法、 装置及系统" 的中国 专利申请的优先权, 全部内容通过 )用结合在本申请中。
技术领域
本发明涉及通信技术领域, 尤其涉及一种短消息传输的方法、 装置及系 统。
背景技术
短消息服务( Short Messaging Service, 简称 SMS )是目前普及率非常高 的一种通信业务。 SMS是通过移动台( Mobile Station, 简称 MS )与短消息服 务中心 ( Short Message Service Center, 简称 SC或 SMSC )之间的信息交换, 实现点到点(Point To Point, 简称 P2P )的消息传送。 SMS的特点是釆用存储 转发机制, 通过 SC对短消息进行存储和转发来完成。 也就是说, 短消息并不 是直接从发送端传送到接收端, 而是通过 SC对短消息进行转发。 如果接收 端处于未连接状态(例如电话已关闭 ),则短消息会在接收端再次连接时发送。 且 SMS具有消息发送确认的功能, 发送端可以收到短消息是否发送成功的应 答消息 (发送成功是指短消息已被 SC接收到;)。
由于短消息是通过 SC进行存储转发的, 因此短消息业务包括下面的两种 基本模式:
MO ( Mobile Originated, 移动台发起), 是指短消息从 MS传送到 SC; MT ( Mobile Terminated, 移动台终止), 是指短消息从 SC传送到 MS。 目前, 不管是 MT业务还是 MO业务, 一次发送的文本消息的最长字节 指定为 140 字节。 短消息可以是较长的文本消息, 但是当消息的长度超过指 定的字节时, 需要拆分成多段发送, 每一段的长度不能超过指定的字节。 参见图 1 , 是现有技术的短消息分段传输方法的流程示意图。 在 CS域传 输 MO业务时,首先 MS与移动交换中心( Mobile Switching Center,简称 MSC ) 建立 RR联接及 MM ( Mobility Management, 移动性管理)联接, 再与 SC建 立 CM ( Connection Management, 联接管理)层联接, 然后 MS将分段的短消 息按顺序逐条地发送给 SC。 其中, CM层在用于短消息传输时, 又称为控制 协议( Control Protocol , 简称 CP )层。 短消息分段传输的流程如下:
步骤 1、 发送第一个分段: MS在 RL ( Relay Layer, 中继层)生成中继层 数据信令 RP-DATA,该 RP-DATA承载有第一分段消息;在 CM层将 RP-DATA 打包成控制层数据信令 CP-DATA后, 发送给网络侧(如图 1所示的标号①); 其中, RL层用于短消息传输时, 又称为短消息中继层(Short Message Relay Layer, 简称 SM-RL );
网络侧的 CM层收到 CP-DATA后, 将 CP-DATA中承载的 RP-DATA传 输到 RL层,并向 MS返回 CM层的应答消息控制层正确应答信令 CP-ACK(即 标号②);
网络侧的 RL层收到 RP-DATA后, 返回 RL层的应答消息中继层正确应 答信令 RP-ACK; 该 RP-ACK在 CM层打包成 CP-DATA后, 传送给 MS (如 图 1所示的标号③);
如果没有下一分段的短消息需要发送, 那么 MS 收到网络侧返回的承载 有 RP-ACK的 CP-DATA后, 直接向网络侧发送应答消息 CP-ACK (如图 1所 示的标号④), 通知网络侧该条短消息发送完毕。
其中, 在 CM层, MS每发送一个 CP-DATA, 都会收到一个应答消息, 该应答消息用于表示 CP-DATA消息是否接收成功。 在 RL层, MS每发送一 个 RP-DATA, 也会收到一个应答消息, 该应答消息用于表示 RP-DATA消息 是否接收成功。
步骤 2、 发送下一分段消息: 如果还有分段的短消息需要发送, 那么 MS 需要在发送 CP-ACK (如图 1 所示的标号④)之前, 向网络侧发送联接管理 服务请求消息 CM Service Request (如图 1所示的标号⑤), 向网络侧申请新 的短消息传输服务; 在收到网络侧下发的接受请求的应答消息 CM Service Accept (如图 1所示的标号⑥)后, MS先向网络侧发送 CP-ACK (如图 1所 示的标号④), 然后再发送下一条分段消息, 随后网络侧和 MS按照上述的规 则进行应答, 直到将一条短消息的全部分段发送完成为止。 现有的短消息分段传输方法存在以下缺点: 当短消息需要分段传输时, MS每传输一个分段内容, 都要和接收端之间进行信令交互, 信令开销大; 由 于信令太多, 来回时延增加, 从而导致整条短消息传输的时延太大。 非传内 容的信令浪费了网络的传输资源, 降低短消息的传输效率。
发明内容
本发明的多个方面提供一种短消息传输的方法、 装置及系统, 能够节省 网络的传输资源, 提高短消息的传输效率。
本发明的一个方面提供了一种短消息传输的方法, 包括: 釆用连续发送 的方式, 将属于同一条短消息的 N个分段消息发送给接收端; N为整数, 且 N > 2; 接收所述接收端返回的应答消息。
本发明的另一个方面提供了一种短消息传输的方法, 包括: 釆用连续接 收的方式, 接收属于同一条短消息的 N个分段消息; N为整数, 且^^ > 2; 在 接收所述 N个分段消息中至少两个分段消息时, 根据所述至少两个分段消息 的接收情况返回一条应答消息给发送端。
本发明的另一个方面提供了一种短消息发送的装置, 包括: 分段消息发 送单元, 用于釆用连续发送的方式, 将属于同一条短消息的 N个分段消息发 送给接收端; N为整数, 且^^ > 2; 应答消息接收单元, 用于接收所述接收端 返回的应答消息。
本发明的另一个方面提供了一种短消息接收的装置, 包括: 分段消息接 收单元, 用于釆用连续接收的方式,接收属于同一条短消息的 N个分段消息; N为整数, N > 2; 应答消息发送单元, 用于在接收所述 N个分段消息中至 少两个分段消息时, 根据所述至少两个分段消息的接收情况返回一条应答消 息给发送端。
本发明的另一个方面提供了一种短消息传输的系统, 包括: 短消息发送 的装置和短消息接收的装置。
本发明实施例可以有效减少短消息分段传输过程中的信令消息, 节省网 络的传输资源, 提高短消息的传输效率。
附图说明
图 1是现有技术的短消息分段传输方法的流程示意图;
图 2是本发明实施例中一种短消息传输的方法的流程示意图;
图 3是本发明实施例中另一种短消息传输的方法的流程示意图; 图 4是本发明实施例中另一种短消息传输的方法的流程示意图; 图 5是本发明实施例中另一种短消息传输的方法的流程示意图; 图 6是本发明实施例中一种在 RL层应答的短消息传输方法的流程示意 图;
图 7是本发明实施例中一种在 CM层应答的短消息传输方法的流程示意 图;
图 8是本发明实施例中又一种短消息传输的方法的流程示意图; 图 9是本发明实施例中又一种短消息传输的方法的流程示意图; 图 10是本发明实施例中一种短消息发送的装置的结构示意图;
图 10 ( A )是本发明实施例中另一种短消息发送的装置的结构示意图; 图 10 ( B )是本发明实施例中另一种短消息发送的装置的结构示意图; 图 11是本发明实施例中一种短消息接收的装置的结构示意图;
图 11 ( A )是本发明实施例中另一种短消息接收的装置的结构示意图; 图 11 ( B )是本发明实施例中又一种短消息接收的装置的结构示意图; 图 12是本发明实施例中一种短消息传输的系统的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的范围。
在本发明实施例中, 4叚设待发送的短消息是较长的文本消息, 其文本长 度超过指定的字节 (例如, 超过 140字节)。 在发送短消息时, 需要将短消息 拆分成多段发送, 且每一段的长度不能超过指定的字节。
参见图 2, 本发明实施例提供的一种短消息传输的方法, 包括以下步骤:
521、釆用连续发送的方式,将属于同一条短消息的 N个分段消息发送给 接收端; N为整数, 且^^ > 2。
其中, 所述连续发送是指发送端在完成一个分段消息的发送后, 直接进 入下一个分段消息的发送, 不需要等待接收端的应答消息。
522、 接收所述接收端返回的应答消息。
其中, 所述应答消息用于表示所述至少两个分段消息是否接收成功; 若 所述应答消息表示有分段消息接收失败, 则在接收所述应答消息之后, 还包 括:
当所述至少两个分段消息为所述 N个分段消息时,釆用连续发送的方式, 将所述应答消息表示的接收失败的分段消息重新发送给所述接收端; 或者, 将所述 N个分段消息重新发送给所述接收端;
当所述至少两个分段消息为所述 N个分段消息中部分分段消息时, 釆用 连续发送的方式, 将所述应答消息表示的接收失败的分段消息及其后的分段 消息, 连续发送给所述接收端。 其中, 所述应答消息包括如下两种应答方式:
方式 1 : 全部应答方式, 用于表示 N个分段消息的接收情况, 可以釆用
Al、 A2两种消息结构, 具体如下所述。
结构 A1 : 以消息类型来表示所述 N个分段消息的接收情况;
例如, 应答消息为正确应答消息(例如, RP-ACK信令), 表示 N个分段 消息全部接收成功; 应答消息为错误应答消息 (例如, 中继层错误应答信令
RP-ERROR ), 表示 N个分段消息全部或部分接收失败; 当发送端收到的应答 消息为错误应答消息时, 则需要重传全部 N个分段消息。
结构 A2: 以消息内容来表示所述 N个分段消息的接收情况。
例如, 应答消息可以釆用列表的形式, 反映所述 N个分段消息中每个分 段消息的接收情况; 或者在列表中只反映接收成功的分段消息, 而没有反映 的分段消息视为接收失败; 或者在列表中只反映接收失败的分段消息, 而没 有反映的分段消息视为接收成功。
其中, 当所述应答消息只反映接收失败的分段消息时, 具体消息结构如 下:
Figure imgf000007_0001
其中, 消息类型 (RP-Message Type )为必选字段, 长度为 1/2字节; 本 字段的值, 用于表示消息的类型, 如, RP-ACK, 或者 RP-ERROR;
消息参考 (RP-Message Reference ) 为必选字段, 长度为 1/2字节; 本字 段的值, 用于指示接收失败分段的序号; 其中, 有几个分段消息接收失败就 有几个消息参考字段, 形成一个消息参考列表, 即以列表的形式反应接收失 败的分段消息;
错误原因 (RP-Cause ) 字段为必选字段, 长度为 2~3 字节; 本字段包含 分段消息接收错误的原因, 如, 接收端解析分段消息失败, 或者, 分段消息 丟失, 或者, 分段消息校验失败等; 用户数据(RP-User Data )为可选字段, 长度不超过 234字节; 本字段包 含用户数据, 以及指示该用户数据的类型和长度的信息; 所述用户数据是指 接收端所接收到的分段消息的内容。
必选字段是指消息结构中该字段必须存在; 而可选字段是指消息结构中 该字段有可能存在, 有可能不存在。
方式 2: 部分应答方式, 用于表示 N个分段消息中部分分段的接收情况。 其中, 部分应答方式可以釆用结构 A2中的消息结构, 此处不再赘述。 需要说明的是, 所述应答消息可以结合上述两种方式来表达分段消息的 接收情况。 例如, 当 N个分段消息全部接收成功时, 可以釆用方式 1中的结 构 A1反馈给发送端; 当接收端首次出现分段消息接收失败时, 可以釆用方式 2, 反馈部分分段消息的接收情况给发送端。
在另一个实施方式中, 所述短消息包括 X组分段消息, 且所述 N个分段 消息为第 i组, X > 2, K i<X, i和 X均为整数时, 则在所述应答消息指示所 述接收端成功接收所述 N个分段消息之后, 还包括: 釆用连续发送的方式, 将第 i+1组中的分段消息发送给所述接收端。
例如,以 MO模式为例, MS需要将字节长度为 2000的短消息传送给 SC。 MS将短消息拆分为 15个分段消息, 每个分段消息的长度不超过 140字节。 且 15个分段消息分成两组, 第一组包括 8个分段消息, 第二组包括 7个分段 消息。 MS釆用连续发送的方式, 先将第一组的 8个分段消息发送给 SC; SC 釆用连续接收的方式, 接收第一组的 8个分段消息, 并向 MS反馈应答消息。 当应答消息指示第一组的 8个分段消息全部接收成功之后, MS同样釆用连续 发送的方式, 将第二组的 7个分段消息发送给 SC; SC釆用连续接收的方式, 接收第二组的 7个分段消息, 并向 MS反馈应答消息。 直到第二组的 7个分 段消息全部接收成功, 短消息发送完毕。
此外, 本实施例提供的短消息传输的方法, 还包括: 当发送所述 N个分 段消息中最后一个分段消息时, 启动发送定时器; 若在所述发送定时器超时 后仍未收到所述接收端返回的应答消息, 则发出错误报告信息, 报告分段消 息发送出错。 然后, 发送端进行错误处理, 例如重新发送分段消息, 如果重 发次数超过特定值仍然报告错误, 则停止发送消息。 或者, 还可以作其他的 出错处理。
需要说明的是, 当短消息业务为 MO模式时, 短消息从 MS传送到网络 侧, 发送端为 MS, 所述接收端为网络侧; 当短消息业务为 MT模式, 短消息 从网络侧传送到 MS , 发送端为网络侧, 所述接收端为 MS。
基于上述实施例, 发送端釆用连续发送的方式, 不需要在每发送一个分 段消息后都要等待接收端的应答消息, 减少了信令交互次数, 提高短消息的 传输效率。 参见图 3 ,本发明实施例提供的另一种短消息传输的方法,包括以下步骤:
531、 釆用连续接收的方式, 接收属于同一条短消息的 N个分段消息; N 为整数, 且^^ > 2。
532、在接收所述 N个分段消息中至少两个分段消息时,根据所述至少两 个分段消息的接收情况返回一条应答消息给发送端。
在步骤 S32中, 所述应答消息用于表示至少两个分段消息是否接收成功; 当所述至少两个分段消息为 N个分段消息时, 所述应答消息是在连续接 收所述 N个分段消息后返回, 或者, 在接收定时器超时后返回, 或者, 在接 收到序号为 N的分段消息后返回; 所述接收定时器是在首次接收到分段消息 时启动;
当所述至少两个分段消息为所述 N个分段消息中部分分段消息时, 所述 应答消息是在首次发生分段消息接收失败时返回, 或者, 在接收到预设置的 分段消息个数 P时返回; P为整数, 且 P<N。
在一个实施方式中, 在步骤 S32中, 所述在接收所述 N个分段消息中至 少两个分段消息时, 根据所述至少两个分段消息的接收情况返回一条应答消 息给发送端, 包括:
在中继层(RL层)接收所述 N个分段消息中至少两个分段消息时, 根据 所述至少两个分段消息的接收情况返回一条应答消息给发送端。
在另一个实施方式中, 在步骤 S32中, 所述在接收所述 N个分段消息中 至少两个分段消息时, 根据所述至少两个分段消息的接收情况返回一条应答 消息给发送端, 包括:
在中继层(RL层)接收所述 N个分段消息中至少两个分段消息, 并传送 分段应答消息到联接管理层; 所述分段应答消息用于表示分段消息是否接收 成功;
在联接管理层 CM层)根据接收到的所述至少两个分段应答消息返回一 条应答消息给发送端。
其中, 所述应答消息的生成以结构 A1为例说明如下。
若所述 N个分段消息全部接收成功, 则釆用正确应答消息 RP-ACK, 表 示所述至少两个分段消息全部正确接收; 若所述 N个分段消息中存在至少一 个分段消息接收失败时, 则釆用错误应答消息 RP-ERROR, 发送端在收到应 答消息 RP-ERROR后, 重新发送所有 N个分段消息。
釆用上述实施例, 接收端可以在接收多个分段消息后, 返回一条应答消 息, 同时回复多个分段消息的接收情况, 有效减少短消息分段传输过程中的 信令消息, 节省网络的传输资源, 提高短消息的传输效率。 参见图 4本发明实施例提供的另一种短消息传输的方法。 在本实施例中, 接收端返回应答消息的时机为: 接收端在连续接收 N个分段消息后返回应答 消息。
本实施例仅以 N=3为例进行说明。 假设一条短消息拆分成三段, 包括第 一分段消息、 第二分段消息和第三分段消息, 短消息传输的流程如下:
S40、 发送端与接收端建立通信连接。 例如, 在 CS域传输 MO业务时, 首先 MS需要与 MSC建立 RR联接及 MM联接, 再与 SC建立 CM层联接。
541、 发送端向接收端发送第一分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 1 ), 所述 RP-DATA ( 1 )承载 有第一分段消息; 然后在 CM层将所述 RP-DATA ( 1 )打包成 CM层数据信 令 CP-DATA ( segmentl ), 再通过步骤 S40建立的通信连接发送给接收端。
542、 发送端向接收端发送第二分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 2 ), 所述 RP-DATA ( 2 )承载 有第二分段消息; 然后在 CM层将所述 RP-DATA ( 2 )打包成 CM层数据信 令 CP-DATA ( segment2 ), 再通过步骤 S40建立的通信连接发送给接收端。
543、 发送端向接收端发送第三分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 3 ), 所述 RP-DATA ( 3 )承载 有第三分段消息; 然后在 CM层将所述 RP-DATA ( 3 )打包成 CM层数据信 令 CP-DATA ( segment3 ), 再通过步骤 S40建立的通信连接发送给接收端。
此外, 在步骤 S43 , 发送端在发送第三分段消息时, 启动发送定时器, 用 于等待接收端返回应答消息。 若在发送定时器超时后仍未收到所述接收端返 回的应答消息, 则发出错误报告信息, 报告分段消息发送出错。 然后, 发送 端进行错误处理, 例如重新发送分段消息, 如果重发次数超过特定值仍然报 告错误, 则停止发送消息。 或者, 还可以作其他的出错处理。
544、 接收端在连续接收三个分段消息后, 根据各分段的接收情况, 向发 送端返回应答消息。
若三个分段消息全部接收正确, 接收端返回正确应答消息 CP-DATA ( RP-ACK 1-3 ), 该应答消息包含第一分段消息、 第二分段消息和第三分段消 息全部接收成功的信息, 短消息传输完毕, 执行步骤 S48 , 拆除步骤 S40建立 的通信连接。
在本实施例中, 假设第一分段消息和第二分段消息接收失败, 第三分段 消息接收成功, 接收端返回错误应答消息 CP-DATA ( RP-ERROR 1-3 ), 指示 所述第一分段、 第二分段接收失败, 第三分段消息接收成功, 则发送端以连 续传输的方式, 将第一分段消息和第二分段消息重新发送给接收端, 即执行 S45~S46。
需要说明的是, 当所述短消息包括 X组分段消息, 且所述三个分段消息 为第 i组, X > 2, K i<X, i和 X均为整数时, 那么, 当所述三个分段消息接 收成功后, 发送端发送第 i+1组分段消息, 即执行 S41 S43 , 不需要执行步骤 S48。
545、 发送端向接收端重新发送第一分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 1 ), 所述 RP-DATA ( 1 )承载 有第一分段消息; 然后在 CM层将所述 RP-DATA ( 1 )打包成 CM层数据信 令 CP-DATA ( segmentl ), 再通过步骤 S40建立的通信连接发送给接收端。
546、 发送端向接收端重新发送第二分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 2 ), 所述 RP-DATA ( 2 )承载 有第二分段消息; 然后在 CM层将所述 RP-DATA ( 2 )打包成 CM层数据信 令 CP-DATA ( segment2 ), 再通过步骤 S40建立的通信连接发送给接收端。
此外, 在步骤 S46中, 发送端在发送第二分段消息时, 启动发送定时器, 用于等待接收端返回应答消息。 若在发送定时器超时后仍未收到所述接收端 返回的应答消息, 则发出错误报告信息, 报告分段消息发送出错。
547、 接收端在连续接收第一分段消息和第二分段消息后, 根据各分段的 接收情况, 向发送端返回应答消息。
接收端返回应答消息 CP-DATA ( RP-ACK 1-2 ), 该应答消息包含第一分 段消息和第二分段消息接收成功的信息。 至此, 短消息发送成功, 执行步骤 S48。
需要说明的是, 若接收端返回的应答消息指示有分段消息接收失败, 则 发送端继续向接收端重传所述接收失败的分段消息, 直到接收端成功接收所 有的分段消息为止。
S48、 拆除步骤 S40建立的通信连接。
需要指出的是, 发送端在连续传输 N个分段消息时, 只需针对最后一个 (即第 N个)分段消息设置定时器(例如 3GPP TS 24011所述的定时器 TRIM, TR1N或 TR1* ),在传输第 1个至第 N-1个分段消息时不用设置定时器。而且, 接收端收到发送端返回的应答消息后, 在一次性重传接收失败的分段消息, 也只需针对重传的最后一个分段消息设置定时器。
在上述实施例中, 当链路错误导致发送端没有收到接收端返回的应答消 息时, 发送端可以等到发送定时器超时后, 重新与接收端建立连接, 并重新 将 N个分段消息发送给接收端, 即重复上述 S40 S44的流程; 当分段消息丟 失导致接收端没有收到全部 N个分段消息时, 接收端可以在接收定时器超时 后返回应答消息, 也可以在收到序号为 N的分段消息后返回应答消息。 其中, 每个分段消息可以包括: N 的具体数值, 当前分段消息的序号, 以及短消息 分成多少个组等信息。 例如, 在图 4 所示实施例中, 分短消息是按照序号顺 序发送的, 假设在传输过程中第二分段消息丟失, 那么接收端在接收到第三 分段消息时, 就可以根据接收到的分段消息判断出第二分段消息丟失。 参见图 5,本发明实施例提供的另一种短消息传输的方法。在本实施例中, 接收端返回应答消息的时机为: 接收端在首次发生分段消息接收失败时返回 应答消息。
本实施例仅以 N=3为例进行说明。 假设一条短消息拆分成三段, 包括第 一分段消息、 第二分段消息和第三分段消息。 短消息传输的流程如下:
550、 发送端与接收端建立通信连接。
例如, 在 CS域传输 MO业务时, 首先 MS需要与 MSC建立 RR联接及 MM联接, 再与 SC建立 CM层联接。
551、 发送端向接收端发送第一分段消息。 发送端在 RL层构造数据信令 RP-DATA ( 1 ), 所述 RP-DATA ( 1 )承载 有第一分段消息; 然后在 CM层将所述 RP-DATA ( 1 )打包成 CM层数据信 令 CP-DATA ( segmentl ), 再通过步骤 S50建立的通信连接发送给接收端。
552、 发送端向接收端发送第二分段消息;
发送端在 RL层构造数据信令 RP-DATA ( 2 ), 所述 RP-DATA ( 2 )承载 有第二分段消息; 然后在 CM层将 RP-DATA ( 2 )打包成 CM层数据信令 CP-DATA ( segment2 ), 再通过步骤 S50建立的通信连接发送给接收端。
553、 接收端连续接收第一分段消息和第二分段消息, 且在接收第二分段 消息时, 首次发生接收失败; 接收端向发送端返回应答消息。
接收端返回应答消息 CP-DATA ( RP-ERROR 1-2 ), 该应答消息包含第一 分段消息接收成功和第二分段消息接收失败的信息。
发送端收到应答消息后, 获知第一分段消息接收成功, 而第二分段消息 接收失败, 则发送端以连续传输的方式, 从第二分段消息开始, 继续往下发 送分段消息, 即执行 S54~S55。
554、 发送端向接收端发送第二分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 2 ), 所述 RP-DATA ( 2 )承载 有第二分段消息; 然后在 CM层将所述 RP-DATA ( 2 )打包成 CM层数据信 令 CP-DATA ( segment2 ), 再通过步骤 S50建立的通信连接发送给接收端。
555、 发送端向接收端发送第三分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 3 ), 该 RP-DATA ( 3 )承载有 第三分段消息; 然后在 CM层将所述 RP-DATA ( 3 )打包成 CM层数据信令 CP-DATA ( segment3 ), 再通过步骤 S50建立的通信连接发送给接收端。
此外, 在步骤 S55中, 发送端在发送第三分段消息时, 启动发送定时器, 用于等待接收端返回应答消息。 若在发送定时器超时后仍未收到所述接收端 返回的应答消息, 则发出错误报告信息, 报告分段消息发送出错。
556、 接收端在连续接收第二分段消息和第三分段消息后, 向发送端返回 应答消息。
接收端返回应答消息 CP-DATA ( RP-ACK 2-3 ), 该应答消息包含第一分 段消息、 第二分段消息均接收成功的信息。 至此, 短消息发送成功。
S57、 拆除步骤 S50建立的通信连接。
其中, 当所述短消息包括 X组分段消息, 且所述三个分段消息为第 i组, X > 2, 1 i<X ( i和 X均为整数) 时, 那么, 当所述三个分段消息接收成功 后, 发送端发送第 i+1组分段消息, 不需要执行步骤 S57。 参见图 6, 本发明实施例提供的一种在 RL层应答的短消息传输方法。 本 实施例仅发送端连续传输三个分段消息为例进行说明, 具体包括以下步骤: S61、 接收端在 CM层接收第一分段消息 CP-DATA ( segmentl )。
562、 接收端在 CM层将 CP-DATA ( segmentl ) 中承载的 RP-DATA ( 1 ) 传输到 RL层。
563、 接收端根据第一分段消息的接收情况, 在 RL层生成第一分段响应 消息 RP-ACK ( 1 ); RP-ACK ( 1 )用于表示第一分段消息接收成功。
564、 接收端在 CM层接收第二分段消息 CP-DATA ( segment2 )。
565、 接收端在 CM层将 CP-DATA ( segment2 ) 中承载的 RP-DATA ( 2 ) 传输到 RL层。
566、 接收端根据第二分段消息的接收情况, 在 RL层生成第二分段响应 消息 RP-ACK ( 2 ); RP-ACK ( 2 )用于表示第二分段消息接收成功。
567、 接收端在 CM层接收第三分段消息 CP-DATA ( segment3 )。
568、 接收端在 CM层将 CP-DATA ( segment3 ) 中承载的 RP-DATA ( 3 ) 传输到 RL层。
569、 接收端根据第三分段消息的接收情况, 在 RL层生成第三分段响应 消息 RP-ACK ( 3 ); RP-ACK ( 3 )用于表示第三分段消息接收成功。
S610、 接收端在 RL层对分段响应消息 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )进行合并, 获得应答消息 RP-ACK 1-3。 RP-ACK 1-3包含第一 分段消息、 第二分段消息和第三分段消息接收成功的信息。
5611、 接收端在 RL层将应答消息 RP-ACK 1-3传送至 CM层。
5612、 接收端在 CM层将应答消息 RP-ACK 1-3打包成 CM层数据信令 CP-DATA(RP-ACK1 -3) , 再传输至发送端的 CM层。
5613、 发送端在 CM层接收到应答消息 CP-DATA(RP-ACKl-3)后, 将其 中承载的 RP-ACK1-3传输至 RL层。
具体实施时, 可以省略上述的 S63、 S66和 S69, 在 S610中根据每个分 段消息的接收情况生成应答消息。
需要说明的是, 当短消息业务为 MO模式时, 短消息从 MS传送到网络 侧。 在一个实施方式中, 由 SC的 RL层合并应答。 即在步骤 S63、 S66和 S69 中, SC在 RL层生成分段响应消息 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 ); 在步骤 S610中, SC在 RL层对分段响应消息 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )进行合并, 生成应答消息 RP-ACK 1-3。
在另一个实施方式中, 由 MSC的 RL层合并应答。 在步骤 S63、 S66和 S69中, SC在 RL层生成分段响应消息 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )之后, 将 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )发送到 MSC的 RL层;在步骤 S610中, MSC在 RL层对分段响应消息 RP-ACK( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )进行合并, 生成应答消息 RP-ACK 1-3。 其中, 所述 MSC可以由 SGSN ( Serving GPRS Support Node, GPRS业务支持节点)或 SMS-GMSC ( SMS-Gateway MSC, 短消息服务网关移动交换中心)来替代。 参见图 7, 是本发明实施例提供的一种在 CM层应答的短消息传输方法。 本实施例仅以发送端连续传输三个分段消息为例进行说明, 具体包括以下步 骤:
S71、 接收端在 CM层接收第一分段消息 CP-DATA ( segmentl )。 572、 接收端在 CM层将 CP-DATA ( segmentl ) 中承载的 RP-DATA ( 1 ) 传输到 RL层。
573、 接收端根据第一分段消息的接收情况, 在 RL层生成第一分段响应 消息 RP-ACK ( 1 ), 并将该 RP-ACK ( 1 )传送至 CM层。 其中, 该 RP-ACK
( 1 )用于表示第一分段消息接收成功。
574、 接收端在 CM层接收第二分段消息 CP-DATA ( segment2 )。
575、 接收端在 CM层将 CP-DATA ( segment2 ) 中承载的 RP-DATA ( 2 ) 传输到 RL层。
576、 接收端根据第二分段消息的接收情况, 在 RL层生成第二分段响应 消息 RP-ACK ( 2 ), 并将该 RP-ACK ( 2 )传送至 CM层。 其中, 该 RP-ACK
( 2 )用于表示第二分段消息接收成功。
577、 接收端在 CM层接收第三分段消息 CP-DATA ( segment3 )。
578、 接收端在 CM层将 CP-DATA ( segment3 ) 中承载的 RP-DATA ( 3 ) 传输到 RL层。
579、 接收端根据第三分段消息的接收情况, 在 RL层生成第三分段响应 消息 RP-ACK ( 3 ), 并将该 RP-ACK ( 3 )传送至 CM层。 其中, 该 RP-ACK
( 3 )用于表示第三分段消息接收成功。
5710、 接收端在 CM层, 对分段响应消息 RP-ACK ( 1 )、 RP-ACK ( 2 ) 和 RP-ACK ( 3 )进行打包, 生成的应答消息 CP-DATA包含 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )。 即 CP-DATA消息包含第一分段消息、 第二分 段消息和第三分段消息接收成功的信息。
5711、 将应答消息 CP-DATA传输至发送端的 CM层。
需要说明的是, 当短消息业务为 MO模式时, 短消息从 MS传送到网络 侧。在一个实施方式中, 由 SC的 CM层合并应答。 即在步骤 S73、 S76和 S79 中, SC在 RL层生成分段响应消息 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )之后, 将 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )传送到 SC的 CM层;在步骤 S710中, SC在 CM层对分段响应消息 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )进行打包, 生成应答消息 CP-DATA。
在另一个实施方式中, 由 MSC的 CM层合并应答。 即在步骤 S73、 S76 和 S79中, SC在 RL层生成分段响应消息 RP-ACK( 1 )、RP-ACK( 2 )和 RP-ACK ( 3 )之后, 将 RP-ACK ( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )传送到 MSC的
CM层;在步骤 S710中, MSC在 CM层对分段响应消息 RP-ACK( 1 )、 RP-ACK ( 2 )和 RP-ACK ( 3 )进行打包, 生成应答消息 CP-DATA。 其中, 所述 MSC 可以由 SGSN或 SMS-GMSC来替代。 参见图 8, 是本发明实施例提供的又一种短消息传输的方法。 本实施例假 设一条短消息可拆分成 5 个分段消息, 且划分为两组。 第一组包括第一分段 消息、 第二分段消息和第三分段消息, 第二组包括第四分段消息、 和第五分 段消息。 短消息传输的流程如下:
580、 发送端与接收端建立通信连接。
581、 发送端向接收端发送第一分段消息。
582、 发送端向接收端发送第二分段消息。
583、 发送端向接收端发送第三分段消息。
其中, 在步骤 S83中, 发送端在发送第三分段消息时, 启动发送定时器, 用于等待接收端返回应答消息。 若在发送定时器超时后仍未收到所述接收端 返回的应答消息, 则发出错误报告信息, 报告分段消息发送出错。
584、 接收端在连续接收三个分段消息后, 根据各分段的接收情况, 向发 送端返回应答消息。
具体的, 如图 8 所示, 接收端返回应答消息, 包含第一分段消息、 第二 分段消息和第三分段消息是否接收成功的信息。 本实施例假设第一分段消息 和第二分段消息接收失败, 第三分段消息接收成功, 接收端返回应答消息 CP-DATA ( RP-ERROR 1-3 )。 发送端收到应答消息后, 获知第一分段消息和第二分段消息接收失败, 则以连续传输的方式, 将第一分段消息和第二分段消息重新发送给接收端, 即执行 S85~S86。
585、 发送端向接收端重新发送第一分段消息。
586、 发送端向接收端重新发送第二分段消息。
其中, 在步骤 S86, 发送端在发送第二分段消息时, 启动发送定时器, 用 于等待接收端返回应答消息。
587、 接收端在连续接收第一分段消息和第二分段消息后, 根据各分段的 接收情况, 向发送端返回应答消息。
具体的, 如图 8 所示, 接收端返回应答消息, 该应答消息包含第一分段 消息和第二分段消息是否接收成功的信息。 本实施例假设第一分段消息和第 二分段消息接收成功, 即, 返回应答消息 CP-DATA ( RP-ACK 1-2 )。
至此, 第一组分段消息发送成功。 然后, 发送端开始发送第二组分段消 息, 执行 S88~S810。
588、 发送端向接收端发送第四分段消息。
589、 发送端向接收端发送第五分段消息。
其中, 在步骤 S89, 发送端在发送第五分段消息时, 启动发送定时器, 用 于等待接收端返回应答消息。
5810、 接收端在连续接收第四分段消息和第五分段消息后, 根据各分段 的接收情况, 向发送端返回应答消息。
具体的, 如图 8所示, 接收端返回应答消息 CP-DATA ( RP-ACK 4-5 ), 该应答消息包含第四分段消息和第五分段消息接收成功的信息。 至此, 第二 组分段消息发送成功, 短消息发送完毕。
5811、 拆除步骤 S80建立的通信连接。 参见图 9, 是本发明实施例提供的又一种短消息传输的方法; 与上述实施 例相比, 本实施例的不同点在于: 在 CM层将 RP-DATA或 RP-ACK打包成 CP-DATA, 并发送到对端的 CM层后, 都要求对端返回一个 CM层的应答消 息。
本实施例仅以连续传输三个分段消息为例进行说明, 短消息传输的方法 包括以下步骤:
590、 发送端与接收端建立通信连接。
591、 发送端向接收端发送第一分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 1 ), 所述 RP-DATA ( 1 )承载 有第一分段消息; 然后在 CM层将所述 RP-DATA ( 1 )打包成 CM层数据信 令 CP-DATA ( segmentl ), 再通过步骤 S90建立的通信连接发送给接收端。
592、 接收端向发送端返回 CM层应答 CP-ACK。
593、 发送端向接收端发送第二分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 2 ), 所述 RP-DATA ( 2 )承载 有第二分段消息; 然后在 CM层将所述 RP-DATA ( 2 )打包成 CM层数据信 令 CP-DATA ( segment2 ), 再通过步骤 S90建立的通信连接发送给接收端。
594、 接收端向发送端返回 CM层应答 CP-ACK。
595、 发送端向接收端发送第三分段消息。
发送端在 RL层构造数据信令 RP-DATA ( 3 ), 所述 RP-DATA ( 3 )承载 有第三分段消息; 然后在 CM层将所述 RP-DATA ( 3 )打包成 CM层数据信 令 CP-DATA ( segment3 ), 再通过步骤 S90建立的通信连接发送给接收端。
此外, 在步骤 S95中, 发送端在发送第三分段消息时, 启动发送定时器, 用于等待接收端返回应答消息。 若在发送定时器超时后仍未收到所述接收端 返回的应答消息, 则发出错误报告信息, 报告分段消息发送出错。
596、 接收端向发送端返回 CM层应答 CP-ACK。
597、 接收端在连续接收三个分段消息后, 根据各分段的接收情况, 向发 送端返回应答消息; 该应答消息包含第一分段消息、 第二分段消息和第三分 段消息是否接收成功的信息, 且该应答消息在接收端的 CM 层打包成 CP-DATA后, 传送至发送端的 CM层。
本实施例假设第一分段消息、 第二分段消息和第三分段消息均接收成功。
598、 发送端接收到步骤 S97中的 CP-DATA后, 向接收端返回 CM层应 答 CP-ACK, 短消息传输结束。
599、 拆除步骤 S90建立的通信连接。
需要说明的是, S92、 S94、 S96和 S98只是按照现有的协议规定对每个 CP-DATA消息返回一个应答 CP-ACK,不包含分段消息是否接收成功的信息。 本发明实施例还提供一种短消息发送的装置、 短消息接收的装置及短消 息传输的系统, 能够实现上述实施例中的短消息传输的方法。
参见图 10 , 是本发明实施例提供的一种短消息发送的装置; 所述短消息 发送的装置包括:
分段消息发送单元 101 , 用于釆用连续发送的方式, 将属于同一条短消息 的 N个分段消息发送给接收端; N为整数, N > 2;
应答消息接收单元 102 , 接收所述接收端返回的应答消息。
当所述短消息包括 X组分段消息,且所述 N个分段消息为第 i组, X > 2 , l i<X ( i和 X均为整数) 时, 所述分段消息发送单元 101还用于:
在所述应答消息接收单元接收的应答消息指示所述接收端成功接收所述 N个分段消息之后,釆用连续发送的方式,将第 i+1组中的分段消息发送给所 述接收端。
所述应答消息用于表示所述 N个分段消息中至少两个分段消息是否接收 成功; 当所述应答消息表示有分段消息接收失败时, 所述短消息发送的装置 还包括所述短消息发送的装置还包括: 重传单元 103 , 如图 10 ( A )所示。
重传单元 103 , 用于当所述至少两个分段消息为所述 N个分段消息时, 釆用连续发送的方式, 将所述应答消息表示的接收失败的分段消息重新发送 给所述接收端; 或者, 将所述 N个分段消息重新发送给所述接收端; 或, 当所述至少两个分段消息为所述 N个分段消息中部分分段消息时, 釆用 连续发送的方式, 将所述应答消息表示的接收失败的分段消息及其后的分段 消息, 连续发送给所述接收端。
可选的, 如图 10 ( B ) 所示, 所述短消息发送的装置还包括: 错误报告 单元 104。
错误报告单元 104,用于在所述分段消息发送单元 101发送最后一个分段 消息时, 启动发送定时器; 若在所述发送定时器超时后, 所述应答消息接收 单元 102仍未收到所述接收端返回的应答消息, 则发出错误报告信息, 报告 分段消息发送出错。
需要指出的是, 图 10、 图 10 ( A )和图 10 ( B )所示的短消息发送的装 置可以是 MS, 也可以是网络侧中的 SC。 参见图 11 , 是本发明实施例提供的一种短消息接收的装置; 所述短消息 接收的装置, 包括:
分段消息接收单元 111 , 用于釆用连续接收的方式, 接收属于同一条短消 息的 N个分段消息; N为整数, N > 2;
应答消息发送单元 112, 用于在接收所述 N个分段消息中至少两个分段 消息时, 根据所述至少两个分段消息的接收情况返回一条应答消息给发送端。
所述应答消息用于表示所述至少两个分段消息是否接收成功; 当所述至 少两个分段消息为所述 N个分段消息时, 所述应答消息是在连续接收所述 N 个分段消息后返回, 或者在接收定时器超时后返回, 或者在接收到第 N个分 段消息后返回; 所述接收定时器是在接收到第一个分段消息时启动;
当所述至少两个分段消息为所述 N个分段消息中部分分段消息时, 所述 应答消息是在首次发生分段消息接收失败时返回, 或者在接收到预设置的分 段消息个数 P时返回; P为整数, 且 P<N。 可选的, 如图 11 (A) 所示, 所述应答消息发送单元包括:
第一中继层应答单元 1121, 用于在分段消息接收单元 111接收所述 N个 分段消息中至少两个分段消息时, 根据所述至少两个分段消息的接收情况返 回一条应答消息。
可选的, 如图 11 (B) 所示, 所述应答消息发送单元包括:
第二中继层应答单元 1122, 用于在分段消息接收单元 111接收所述 N个 分段消息中至少两个分段消息时, 传送分段应答消息到联接管理层; 所述分 段应答消息用于表示分段消息是否接收成功;
第二联接管理层应答单元 1123, 用于在联接管理层根据接收到的所述至 少两个分段应答消息返回一条应答消息。
需要指出的是, 图 11、 图 11 (A)和图 11 (B)所示的短消息接收的装 置可以是 MS,也可以是网络侧中的 SC,或者 SC和 MSC,或者 SC和 SGSN, 或者 SC和 SMS-GMSC。 参见图 12, 是本发明实施例提供的一种短消息传输的系统, 包括短消息 发送的装置 121和短消息接收的装置 122。 其中, 所述短消息发送的装置 121 为上述图 10、 图 10 (A)或图 10 (B) 实施例中的短消息发送的装置, 所述 短消息接收的装置 122为上述图 11、 图 11 (A)或图 11 (B) 实施例中的短 消息接收的装置。 本发明实施例提供的短消息传输的方法、 装置及系统, 在短消息分段后, 发送端釆用连续传输的方式, 将多个分段消息逐个发送给接收端; 接收端可 以在接收多个短消息分段后, 发送一条应答消息, 同时回复多个分段消息的 接收情况, 能够减少短消息分段传输过程中的信令消息, 节省网络的传输资 源, 提高短消息的传输效率。 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存 己忆体 ( Random Access Memory, RAM )等。
以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这些改进和润饰也视为本发明的保护范围。

Claims

权 利 要 求
1、 一种短消息传输的方法, 其特征在于, 包括:
釆用连续发送的方式, 将属于同一条短消息的 N个分段消息发送给接收 端; N为整数, 且^^ > 2;
接收所述接收端返回的应答消息。
2、 如权利要求 1所述的短消息传输的方法, 其特征在于, 所述应答消息 用于表示所述 N个分段消息中至少两个分段消息是否接收成功; 若所述应答 消息表示有分段消息接收失败, 则在接收所述应答消息之后, 还包括:
当所述至少两个分段消息为所述 N个分段消息时,釆用连续发送的方式, 将所述应答消息表示的接收失败的分段消息重新发送给所述接收端; 或者, 将所述 N个分段消息重新发送给所述接收端;
当所述至少两个分段消息为所述 N个分段消息中部分分段消息时, 釆用 连续发送的方式, 将所述应答消息表示的接收失败的分段消息及其后的分段 消息, 连续发送给所述接收端。
3、 如权利要求 1所述的短消息传输的方法, 其特征在于, 当所述短消息 包括 X组分段消息, 且所述 N个分段消息为第 i组, 且 X > 2, K i<X, i和 X均为整数时, 则在所述应答消息指示所述接收端成功接收所述 N个分段消 息之后, 还包括:
釆用连续发送的方式, 将第 i+1组中的分段消息发送给所述接收端。
4、 如权利要求 1~3任一项所述的短消息传输的方法, 其特征在于, 所述 方法还包括:
当发送所述 N个分段消息中最后一个分段消息时, 启动发送定时器; 若在所述发送定时器超时后仍未收到所述接收端返回的应答消息, 则发 出错误报告信息, 报告分段消息发送出错。
5、 一种短消息传输的方法, 其特征在于, 包括:
釆用连续接收的方式, 接收属于同一条短消息的 N个分段消息; N为整 数, 且^ 2;
在接收所述 N个分段消息中至少两个分段消息时, 根据所述至少两个分 段消息的接收情况返回一条应答消息给发送端。
6、 如权利要求 5所述的短消息传输的方法, 其特征在于, 所述应答消息 用于表示所述至少两个分段消息是否接收成功;
当所述至少两个分段消息为 N个分段消息时, 所述应答消息是在连续接 收所述 N个分段消息后返回, 或者, 在接收定时器超时后返回, 或者, 在接 收到序号为 N的分段消息后返回; 所述接收定时器是在首次接收到分段消息 时启动;
当所述至少两个分段消息为所述 N个分段消息中部分分段消息时, 所述 应答消息是在首次发生分段消息接收失败时返回, 或者, 在接收到预设置的 分段消息个数 P时返回; P为整数, 且 P<N。
7、 如权利要求 5或 6所述的短消息传输的方法, 其特征在于, 在中继层 接收所述 N个分段消息中至少两个分段消息, 根据所述至少两个分段消息的 接收情况返回一条应答消息给发送端。
8、 如权利要求 5或 6所述的短消息传输的方法, 其特征在于, 所述在接 收所述 N个分段消息中至少两个分段消息时, 根据所述至少两个分段消息的 接收情况返回一条应答消息给发送端, 包括:
在中继层接收所述 N个分段消息中至少两个分段消息, 并传送分段应答 消息到联接管理层; 所述分段应答消息用于表示分段消息是否接收成功; 在联接管理层根据接收到的所述至少两个分段应答消息返回一条应答消 息给发送端。
9、 一种短消息发送的装置, 其特征在于, 包括:
分段消息发送单元,用于釆用连续发送的方式,将属于同一条短消息的 N 个分段消息发送给接收端; N为整数, 且^^ > 2;
应答消息接收单元, 用于接收所述接收端返回的应答消息。
10、 如权利要求 9 所述的短消息发送的装置, 其特征在于, 所述应答消 息用于表示所述 N个分段消息中至少两个分段消息是否接收成功; 当所述应 答消息表示有分段消息接收失败时, 所述短消息发送的装置还包括:
重传单元, 用于当所述至少两个分段消息为所述 N个分段消息时, 釆用 连续发送的方式, 将所述应答消息表示的接收失败的分段消息重新发送给所 述接收端; 或者, 将所述 N个分段消息重新发送给所述接收端; 或,
当所述至少两个分段消息为所述 N个分段消息中部分分段消息时, 釆用 连续发送的方式, 将所述应答消息表示的接收失败的分段消息及其后的分段 消息, 连续发送给所述接收端。
11、 如权利要求 9 所述的短消息发送的装置, 其特征在于, 当所述短消 息包括 X组分段消息, 且所述 N个分段消息为第 i组, X > 2, K i<X, i和 X 均为整数时, 所述分段消息发送单元还用于在所述应答消息接收单元接收的 应答消息指示所述接收端成功接收所述 N个分段消息之后, 釆用连续发送的 方式, 将第 i+1组中的分段消息发送给所述接收端。
12、 如权利要求 9~11任一项所述的短消息发送的装置, 其特征在于, 所 述装置还包括:
错误报告单元, 用于在所述分段消息发送单元发送最后一个分段消息时, 启动发送定时器; 若在所述发送定时器超时后, 所述应答消息接收单元仍未 收到所述接收端返回的应答消息, 则发出错误报告信息, 报告分段消息发送 出错。
13、 一种短消息接收的装置, 其特征在于, 包括:
分段消息接收单元, 用于釆用连续接收的方式, 接收属于同一条短消息 的 N个分段消息; N为整数, 且^^ > 2;
应答消息发送单元, 用于在接收所述 N个分段消息中至少两个分段消息 时, 根据所述至少两个分段消息的接收情况返回一条应答消息给发送端。
14、 如权利要求 13所述的短消息接收的装置, 其特征在于, 所述应答消 息用于表示所述至少两个分段消息是否接收成功;
当所述至少两个分段消息为所述 N个分段消息时, 所述应答消息是在连 续接收所述 N个分段消息后返回, 或者在接收定时器超时后返回, 或者在接 收到第 N个分段消息后返回; 所述接收定时器是在接收到第一个分段消息时 启动;
当所述至少两个分段消息为所述 N个分段消息中部分分段消息时, 所述 应答消息是在首次发生分段消息接收失败时返回, 或者在接收到预设置的分 段消息个数 P时返回; P为整数, 且 P<N。
15、 如权利要求 13或 14所述的短消息接收的装置, 其特征在于, 所述 应答消息发送单元包括:
第一中继层应答单元, 用于在分段消息接收单元接收所述 N个分段消息 中至少两个分段消息时, 根据所述至少两个分段消息的接收情况返回一条应 答消息给发送端。
16、 如权利要求 13或 14所述的短消息接收的装置, 其特征在于, 所述 应答消息发送单元包括:
第二中继层应答单元, 用于在分段消息接收单元接收所述 N个分段消息 中至少两个分段消息时, 传送分段应答消息到联接管理层; 所述分段应答消 息用于表示分段消息是否接收成功; 和,
第二联接管理层应答单元, 用于在联接管理层根据接收到的所述至少两 个分段应答消息返回一条应答消息给发送端。
17、 一种短消息传输的系统, 其特征在于, 包括:
如权利要求 9~12中任意一项所述的短消息发送的装置; 和,
如权利要求 13~16中任意一项所述的短消息接收的装置。
PCT/CN2013/074122 2012-05-09 2013-04-12 一种短消息传输的方法、装置及系统 WO2013166899A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210142101.3 2012-05-09
CN201210142101.3A CN103391521B (zh) 2012-05-09 2012-05-09 一种短消息传输的方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2013166899A1 true WO2013166899A1 (zh) 2013-11-14

Family

ID=49535662

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/074122 WO2013166899A1 (zh) 2012-05-09 2013-04-12 一种短消息传输的方法、装置及系统

Country Status (2)

Country Link
CN (1) CN103391521B (zh)
WO (1) WO2013166899A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426623A (zh) * 2022-08-30 2022-12-02 哲库科技(北京)有限公司 一种信息传输方法、终端设备及网络设备

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682826A (zh) * 2017-09-28 2018-02-09 努比亚技术有限公司 一种信息传输方法、短信中心、终端和存储介质
CN110225471A (zh) * 2019-06-06 2019-09-10 浙江省机电设计研究院有限公司 一种应用多条短信数据融合的情报板信息发布方法
CN114189819A (zh) * 2020-09-14 2022-03-15 中兴通讯股份有限公司 信息处理方法、装置、系统及存储介质
CN113259874B (zh) * 2021-07-07 2021-10-26 中兴通讯股份有限公司 消息处理方法、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174930A (zh) * 2006-11-03 2008-05-07 华为技术有限公司 一种中继系统中自动重传请求的实现方法和装置
CN101615986A (zh) * 2008-06-27 2009-12-30 华为技术有限公司 一种数据传输方法、装置及通信系统
US20100210292A1 (en) * 2009-02-16 2010-08-19 Eloy Johan Lambertus Nooren Extending a text message with content
CN102263625A (zh) * 2006-12-25 2011-11-30 华为技术有限公司 通信系统中传输确认/非确认信息的方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478377A (zh) * 2008-01-02 2009-07-08 华为技术有限公司 一种消息响应方法及设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174930A (zh) * 2006-11-03 2008-05-07 华为技术有限公司 一种中继系统中自动重传请求的实现方法和装置
CN102263625A (zh) * 2006-12-25 2011-11-30 华为技术有限公司 通信系统中传输确认/非确认信息的方法
CN101615986A (zh) * 2008-06-27 2009-12-30 华为技术有限公司 一种数据传输方法、装置及通信系统
US20100210292A1 (en) * 2009-02-16 2010-08-19 Eloy Johan Lambertus Nooren Extending a text message with content

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426623A (zh) * 2022-08-30 2022-12-02 哲库科技(北京)有限公司 一种信息传输方法、终端设备及网络设备

Also Published As

Publication number Publication date
CN103391521A (zh) 2013-11-13
CN103391521B (zh) 2017-06-06

Similar Documents

Publication Publication Date Title
JP4354918B2 (ja) Mac層リセット後にノードbバッファデータを効率的に回復するためのシステム
US8830944B1 (en) Method for acknowledging RLC data packet transmission and RLC AM entity sender
TWI387256B (zh) 改善傳輸時間間隔集束傳輸之方法及通訊裝置
CN106330414B (zh) 一种报文传输方法及装置
TWI259674B (en) Method and apparatus for reducing transmission errors in a third generation cellular system
CN101939936B (zh) 电信系统中的方法和设备
WO2013166899A1 (zh) 一种短消息传输的方法、装置及系统
RU2449474C1 (ru) Способ выполнения защиты от дублирования сообщений о переадресации при взаимодействии мультимедийных сообщений и межсетевой шлюз мультимедийных сообщений
JP2016532337A (ja) ページング方法、ネットワーク装置及び通信システム
JP4354924B2 (ja) Mmsメッセージの分割伝送及び自動再伝送方法
EP2299618B1 (en) Method and system for transmitting and receiving management message in communication network
WO2022083371A1 (zh) 一种数据传输方法和装置
WO2012062051A1 (zh) 一种下发多媒体消息的方法和系统
CN111757553A (zh) 一种提高冗余分组数据会话性能的方法和设备
CN110891326B (zh) 一种控制面连接重建方法、通信设备、目标基站及源基站
CN102123360A (zh) 无线消息传递方法及移动站
CN115623577A (zh) 同步数据的传输方法及装置
CN115397034A (zh) 服务请求的传输方法、装置、设备及介质
CN115499108A (zh) 一种基于udp协议的闭环网络通信方法及系统
WO2012022074A1 (zh) 用户信息的查询方法及多媒体消息中心
JP2001144800A (ja) 送達確認方法及び送達確認受信端末並びに送達確認システム
WO2016127297A1 (zh) 一种rlc数据包重传方法及基站
WO2015096104A1 (zh) 一种数据发送的方法、装置及系统

Legal Events

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

Ref document number: 13787491

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13787491

Country of ref document: EP

Kind code of ref document: A1