CN1327724C - Method for transmitting SABP news by ICP - Google Patents
Method for transmitting SABP news by ICP Download PDFInfo
- Publication number
- CN1327724C CN1327724C CNB2004100601531A CN200410060153A CN1327724C CN 1327724 C CN1327724 C CN 1327724C CN B2004100601531 A CNB2004100601531 A CN B2004100601531A CN 200410060153 A CN200410060153 A CN 200410060153A CN 1327724 C CN1327724 C CN 1327724C
- Authority
- CN
- China
- Prior art keywords
- message
- sabp
- tcp
- sending
- service area
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Communication Control (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及无线网络,尤指一种SABP(Service Area Broadcast Protocol,业务区广播协议)消息发送方法。The present invention relates to a wireless network, in particular to a SABP (Service Area Broadcast Protocol, Service Area Broadcast Protocol) message sending method.
背景技术Background technique
现有技术一:Prior art one:
以RNC(Radio Network Controller,无线网络控制器)发送SABP消息为例。参见图1,在小区广播业务中,RNC与CN(Core Network,核心网)之间的SABP消息的传输是建立在TCP(Transmission Control Protocol,传输控制协议)之上的。RNC在公共的消息驱动任务中触发SABP消息的TCP发送,如图2所示。Take the SABP message sent by RNC (Radio Network Controller, radio network controller) as an example. Referring to Fig. 1, in the cell broadcast service, the transmission of the SABP message between RNC and CN (Core Network, core network) is established on TCP (Transmission Control Protocol, transmission control protocol). The RNC triggers the TCP sending of the SABP message in a common message-driven task, as shown in FIG. 2 .
现有技术一的缺点如下:The shortcoming of prior art one is as follows:
1.如果TCP套接字(即TCP SOCKET)采用阻塞方式,如果TCP SOCKET连接不存在,需要在公共消息驱动任务中新建TCP SOCKET连接,如果发送与接收两端之间的链路不正常或者对端没有准备好,就可能导致任务阻塞在连接Connect()事件或发送Send()事件处。1. If the TCP socket (that is, TCP SOCKET) adopts blocking mode, if the TCP SOCKET connection does not exist, you need to create a new TCP SOCKET connection in the public message-driven task, if the link between the sending and receiving ends is abnormal or If the end is not ready, it may cause the task to block at the connection Connect () event or send Send () event.
2.如果TCP SOCKET采用非阻塞方式,如果TCP SOCKET连接不存在,新建连接并不能保证立即成功,这样会导致消息的丢失。2. If the TCP SOCKET adopts non-blocking mode, if the TCP SOCKET connection does not exist, the new connection cannot guarantee immediate success, which will lead to the loss of messages.
现有技术二:Prior art two:
在公共的消息驱动任务中缓存SABP消息,然后启动专用任务发送SABP消息,如图3所示。Buffer SABP messages in public message-driven tasks, and then start dedicated tasks to send SABP messages, as shown in Figure 3.
公共消息驱动任务与TCP SOCKET事件之间没有任何联系,仅负责把需要发送的消息放入缓存队列,由专用SEND任务从缓存队列中取出消息并交于TCPSOCKET事件进行发送。There is no connection between the public message-driven task and the TCP SOCKET event. It is only responsible for putting the message to be sent into the cache queue. The dedicated SEND task takes the message from the cache queue and submits it to the TCPSOCKET event for sending.
现有技术二的缺点如下:The shortcoming of prior art two is as follows:
1、RNC缓存每条SABP消息需要较大的内存开销。因为缓存的消息可以是经过编码的码流,并且消息大小取决于消息中的参数,因此无法估算缓存每条消息所需要的内存。假设每条消息编码后的大小为10k字节左右,如果同时缓存100条消息,则RNC需要1M内存的开销。1. The RNC needs a large memory overhead for caching each SABP message. Because cached messages can be encoded codestreams, and the message size depends on parameters in the message, it is not possible to estimate the memory required to cache each message. Assuming that the encoded size of each message is about 10k bytes, if 100 messages are buffered at the same time, the RNC needs 1M memory overhead.
2、每条消息缓存,增加了消息处理过程,增大了时延。2. Each message is cached, which increases the message processing process and increases the delay.
发明内容Contents of the invention
本发明提供一种高效并且可靠发送SABP消息的方法。The present invention provides an efficient and reliable method for sending SABP messages.
本发明提供的一种TCP发送业务区广播协议SABP消息的方法,包括下列步骤:A kind of method that TCP sends service area broadcast protocol SABP message provided by the invention comprises the following steps:
A)检测发送端与接收端之间的TCP套接字连接是否存在,若是,则在公共的消息驱动任务中发送业务区广播协议SABP消息;若否,继续下列步骤;A) detect whether the TCP socket connection between the sending end and the receiving end exists, if so, then send the service area broadcast protocol SABP message in the public message-driven task; if not, continue the following steps;
B)缓存业务区广播协议SABP消息于缓存队列中;B) cache the service area broadcast protocol SABP message in the cache queue;
C)向接收端发起TCP套接字连接建立请求;C) initiate a TCP socket connection establishment request to the receiving end;
D)检测TCP套接字连接是否成功;D) detect whether the TCP socket connection is successful;
E)若否,则转至步骤C,若是,则执行步骤F;E) if not, then go to step C, if so, then perform step F;
F)由另一任务从缓存队列中读取业务区广播协议SABP消息并发送。F) Another task reads the service area broadcast protocol SABP message from the cache queue and sends it.
根据本发明的上述方法,所述步骤D是采用套接字提供的Select()函数来实现的。According to the above method of the present invention, the step D is realized by using the Select() function provided by the socket.
根据本发明的上述方法,所述发送端为无线网络控制器,所述接收端为核心网。According to the above method of the present invention, the sending end is a radio network controller, and the receiving end is a core network.
根据本发明的上述方法,所述发送端为核心网,所述接收端为无线网络控制器。According to the above method of the present invention, the sending end is a core network, and the receiving end is a radio network controller.
根据本发明的上述方法,所述TCP套接字采用非阻塞方式According to the above method of the present invention, the TCP socket adopts non-blocking mode
附图说明Description of drawings
图1为现有技术中RNC与CN之间的SABP消息传输示意图。Fig. 1 is a schematic diagram of SABP message transmission between RNC and CN in the prior art.
图2为现有技术中SABP消息的TCP发送方法之一。Fig. 2 is one of the TCP sending methods of SABP message in the prior art.
图3为现有技术中SABP消息的TCP发送方法之二。Fig. 3 is the second TCP sending method of SABP message in the prior art.
图4为本发明SABP消息的TCP发送方法示意图。Fig. 4 is a schematic diagram of the TCP sending method of the SABP message of the present invention.
图5为本发明方法的流程图。Fig. 5 is a flowchart of the method of the present invention.
具体实施方式Detailed ways
以RNC向CN发送SABP消息为例。TCP SOCKET采用非阻塞方式。Take the SABP message sent by the RNC to the CN as an example. TCP SOCKET adopts non-blocking mode.
请参阅图4及图5,首先检测RNC与CN之间的TCP SOCKET连接是否存在,如果TCP SOCKET连接存在,RNC在公共的消息驱动任务中发送SABP消息;如果TCPSOCKET连接不存在,RNC缓存SABP消息于缓存队列中并在公共的消息驱动任务中向CN发起TCP SOCKET的连接建立请求,由另一个SEND任务检测TCP连接是否成功,若TCP连接成功后,再从缓存队列中读取消息并发送。若检测到TCP连接不成功,则继续向CN发起TCP SOCKET的连接建立请求。其中,检测TCP连接是否成功可通过调用SOCKET提供的Select()函数来实现。Please refer to Figure 4 and Figure 5, first check whether the TCP SOCKET connection between RNC and CN exists, if the TCP SOCKET connection exists, RNC sends the SABP message in the public message-driven task; if the TCP SOCKET connection does not exist, RNC caches the SABP message In the cache queue and initiate a TCP SOCKET connection establishment request to CN in the public message-driven task, another SEND task detects whether the TCP connection is successful, and if the TCP connection is successful, read the message from the cache queue and send it. If it detects that the TCP connection is unsuccessful, it will continue to initiate a TCP SOCKET connection establishment request to the CN. Among them, detecting whether the TCP connection is successful can be realized by calling the Select() function provided by SOCKET.
根据本发明的上述方法,公共消息驱动任务与TCP SOCKET事件之间直接存在联系,如果TCP连接存在,就可以直接发送消息而不必经过缓存这一环节。According to the above method of the present invention, there is a direct connection between the public message-driven task and the TCP SOCKET event, and if the TCP connection exists, the message can be directly sent without going through this link of buffering.
本发明方法也适用于CN侧SABP消息的发送机制。The method of the present invention is also applicable to the sending mechanism of the SABP message on the CN side.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求书的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present invention can easily think of changes or Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100601531A CN1327724C (en) | 2004-06-28 | 2004-06-28 | Method for transmitting SABP news by ICP |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100601531A CN1327724C (en) | 2004-06-28 | 2004-06-28 | Method for transmitting SABP news by ICP |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1717071A CN1717071A (en) | 2006-01-04 |
| CN1327724C true CN1327724C (en) | 2007-07-18 |
Family
ID=35822424
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2004100601531A Expired - Fee Related CN1327724C (en) | 2004-06-28 | 2004-06-28 | Method for transmitting SABP news by ICP |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1327724C (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101202704B (en) * | 2007-09-07 | 2010-08-18 | 深圳市同洲电子股份有限公司 | Method and system for transmitting data |
| CN101714991B (en) * | 2009-10-30 | 2012-06-20 | 清华大学 | Method for realizing heartbeat mechanism |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1997037303A1 (en) * | 1996-04-01 | 1997-10-09 | Openconnect Systems Incorporated | Web/emulator server and web browser terminal emulator for persistent connection to a legacy host system operation |
| WO2002015018A1 (en) * | 2000-08-11 | 2002-02-21 | 3Ware, Inc. | Architecture for providing block-level storage access over a computer network |
| CN1394033A (en) * | 2001-06-22 | 2003-01-29 | 华为技术有限公司 | Method for managing intelligent network by open interface of service management site |
-
2004
- 2004-06-28 CN CNB2004100601531A patent/CN1327724C/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1997037303A1 (en) * | 1996-04-01 | 1997-10-09 | Openconnect Systems Incorporated | Web/emulator server and web browser terminal emulator for persistent connection to a legacy host system operation |
| WO2002015018A1 (en) * | 2000-08-11 | 2002-02-21 | 3Ware, Inc. | Architecture for providing block-level storage access over a computer network |
| CN1394033A (en) * | 2001-06-22 | 2003-01-29 | 华为技术有限公司 | Method for managing intelligent network by open interface of service management site |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1717071A (en) | 2006-01-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6785259B2 (en) | Enhanced transmission of critical data | |
| JP4005508B2 (en) | Relocation of context information in header compression | |
| CN108023683B (en) | Method, device, chip and terminal for sending message | |
| KR100585230B1 (en) | Method and system for establishing TPC proxy to reduce packet loss and transmission delay in wired / wireless integrated internet protocol network | |
| JP4652358B2 (en) | Data packet number addition method for packet-switched data transmission | |
| CN1166097C (en) | Handover in Wireless Communication Networks | |
| JPH11243419A (en) | TCP layer rate control method | |
| CN101646204B (en) | Data transmission method and wireless access network element | |
| CN101262437B (en) | A method for state migration of stream control transmission protocol | |
| CN101588606B (en) | Method, system and relative device for operating capability negotiation continually | |
| CN103546917B (en) | Data transmission method and device | |
| CA2387913A1 (en) | Transmitting data reliably and efficiently | |
| CN101340634B (en) | Implementing method for duplication removing protection of MMS forwarding message | |
| US20180063010A1 (en) | Optimizing traffic by controlling keep-alives | |
| JP2003503892A (en) | Method and apparatus in a wireless communication system | |
| US7327704B2 (en) | Method and apparatus for facilitating dormant mode, packet data mobile handoffs | |
| CN100431303C (en) | Method for link detection when implementing multi-link protocol | |
| CN1327724C (en) | Method for transmitting SABP news by ICP | |
| CN100461882C (en) | A method for retrying network elements in a short message system | |
| CN105591975A (en) | Message processing method and apparatus | |
| CN1984025B (en) | Method and store-and-forward device for releasing invalidly occupied resources | |
| CN101494588B (en) | A fast routing opening method for air interface | |
| CN110121193A (en) | A kind of inter-layer data transmission method, device, medium and equipment | |
| CN100562194C (en) | Control method and system for mobile terminal to continuously receive short messages | |
| JP3730228B2 (en) | Protocol conversion apparatus and protocol conversion method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070718 Termination date: 20200628 |