CN1710967A - Retransmission method of protocol data unit - Google Patents
Retransmission method of protocol data unit Download PDFInfo
- Publication number
- CN1710967A CN1710967A CN 200410048775 CN200410048775A CN1710967A CN 1710967 A CN1710967 A CN 1710967A CN 200410048775 CN200410048775 CN 200410048775 CN 200410048775 A CN200410048775 A CN 200410048775A CN 1710967 A CN1710967 A CN 1710967A
- Authority
- CN
- China
- Prior art keywords
- pdu
- teid
- sgsn
- pdp context
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种协议数据单元的转发方法,在通用分组无线业务(GPRS)服务支持节点(SGSN)收到用户设备(UE)的业务请求后,分配具有方向标识位,分组数据协议(PDP)上下文索引位的GPRS隧道协议(GTP)隧道终点标识(TEID)值,建立业务所需GTP隧道;当SGSN从GTP隧道收到一个协议数据单元(G-PDU)后,根据TEID中的方向标识值确定G-PDU的转发方向,判断出报文转发的目标网络节点,然后根据PDP上下文索引值找到PDP上下文中转发目标网络节点的地址,根据该地址将G-PDU转发到目标网络节点。应用本发明能够降低系统开销,提高SGSN中G-PDU的转发效率。
The invention discloses a forwarding method of a protocol data unit. After a general packet radio service (GPRS) service support node (SGSN) receives a service request from a user equipment (UE), it allocates a packet data protocol (PDP) with a direction identification bit. ) context index bit of the GPRS Tunneling Protocol (GTP) Tunnel Endpoint Identifier (TEID) value to establish the GTP tunnel required for the service; when the SGSN receives a protocol data unit (G-PDU) from the GTP tunnel, it The value determines the forwarding direction of the G-PDU, determines the target network node for message forwarding, and then finds the address of the forwarding target network node in the PDP context according to the PDP context index value, and forwards the G-PDU to the target network node according to the address. The application of the invention can reduce the overhead of the system and improve the forwarding efficiency of the G-PDU in the SGSN.
Description
技术领域technical field
本发明涉及宽带码分多址(WCDMA)通信系统中通用无线分组业务(GPRS)隧道承载技术领域,特别涉及一种GTP隧道中的协议数据单元转发方法。The invention relates to the technical field of General Radio Packet Service (GPRS) tunnel bearing in a Wideband Code Division Multiple Access (WCDMA) communication system, in particular to a protocol data unit forwarding method in a GTP tunnel.
背景技术Background technique
在WCDMA核心网(CN)中,GPRS隧道协议(GTP)技术应用于通用移动通信系统(UMTS)/GPRS核心网GPRS支持节点(GSN)间GTP控制平面和GTP用户平面的数据和信令传输,其中GSN包括GPRS服务支持节点(SGSN)和GPRS网关支持节点(GGSN)。同时计费协议GTP′也使用到了GTP技术,在无线网络控制器(RNC)和SGSN之间用户平面Iu接口中,使用GTP用户(GTP-U)协议作为数据传输承载技术。In the WCDMA core network (CN), the GPRS tunneling protocol (GTP) technology is applied to the data and signaling transmission of the GTP control plane and the GTP user plane between the Universal Mobile Telecommunications System (UMTS)/GPRS core network GPRS support node (GSN), Among them, GSN includes GPRS Serving Support Node (SGSN) and GPRS Gateway Support Node (GGSN). At the same time, the charging protocol GTP' also uses the GTP technology. In the user plane Iu interface between the radio network controller (RNC) and the SGSN, the GTP user (GTP-U) protocol is used as the data transmission bearer technology.
GPRS系统逻辑结构参照图1所示,CN130中的SGSN132通过Iu接口与通用移动通信系统地面无线接入网(UTRAN)120中的RNC122相联,然后RNC122与基站(Node B)121通过Iub接口相联,Node B121再通过Uu面与UE110相联,通过逻辑控制协议(LLC),建立SGSN132与UE110之间的连接,通过建立SGSN132与RNC122之间的GTP隧道,实现对用户数据传输承载。GPRS system logical structure is shown in Fig. 1 with reference to, and SGSN132 in CN130 is connected with RNC122 in Universal Mobile Communication System Terrestrial Radio Access Network (UTRAN) 120 by Iu interface, and then RNC122 is connected with base station (Node B) 121 by Iub interface The Node B121 connects with the UE110 through the Uu plane, establishes the connection between the SGSN132 and the UE110 through the logic control protocol (LLC), and realizes the transmission and bearing of user data by establishing the GTP tunnel between the SGSN132 and the RNC122.
CN130中,通过Gn/Gp接口,实现SGSN132与SGSN132的互联,通过建立GTP隧道,实现用户数据交换;通过Gn/Gp接口实现SGSN132与GGSN135相联,通过GTP隧道,实现了SGSN132和外部网络140中因特网(INTERNET)142之间建立通道,提供了UE110与因特网142的互联;SGSN132通过移动服务交换中心网关(GMSC)133可与外部网络140中的公共交换电话网(PSTN)、综合业务数字网(ISDN)等141建立联接;通过Gs接口,SGSN132向移动交换中心/访问位置寄存器(MSC/VLR)131发送地址信息,并从MSC/VLR131接收寻呼请求,实现分组型业务和非分组型业务的关联。In CN130, the interconnection between SGSN132 and SGSN132 is realized through the Gn/Gp interface, and user data exchange is realized by establishing a GTP tunnel; A channel is established between the Internet (INTERNET) 142 to provide the interconnection between the UE 110 and the Internet 142; the SGSN 132 can communicate with the public switched telephone network (PSTN) and the integrated services digital network ( ISDN) and other 141 to establish connections; through the Gs interface, SGSN132 sends address information to Mobile Switching Center/Visitor Location Register (MSC/VLR) 131, and receives paging requests from MSC/VLR131, realizing packet-type services and non-packet-type services associated.
归属位置寄存器(HLR)134中保存了GPRS用户数据和路由信息,SGSN132经Gn接口或GGSN135经Gc接口可实现对HLR134的访问。The home location register (HLR) 134 stores GPRS user data and routing information, and the SGSN132 can access the HLR134 via the Gn interface or the GGSN135 via the Gc interface.
通过上述的网络结构,建立起UE110与外部网络140的通信,而网络中SGSN的主要作用就是记录UE的当前位置信息,并实现与RNC、SGSN、GGSN之间的报文接收和发送。当UE向SGSN发起业务请求时,SGSN将根据业务类型,给业务所需的通信网络节点RNC、GGSN或SGSN分配隧道终点标识(TEID)值,建立GTP报文转发所需的GTP隧道。TEID作为隧道标识,用于标识GSN之间的数据承载隧道。在业务建立的同时,RNC、SGSN、GGSN内将为该业务创建一个分组数据协议(PDP)上下文,将该PDP上下文记录到本地的PDP上下文列表中。PDP上下文中记录了用户业务的用户接入点名称(APN)、序列号、GGSN/SGSN/RNC的网络协议(IP)地址、服务质量(Qos)等一系列相关参数,为GTP报文转发提供信息。Through the above network structure, the communication between UE110 and external network 140 is established, and the main function of SGSN in the network is to record the current location information of UE, and realize the message receiving and sending between RNC, SGSN and GGSN. When the UE initiates a service request to the SGSN, the SGSN will assign the Tunnel Endpoint Identifier (TEID) value to the communication network node RNC, GGSN or SGSN required for the service according to the service type, and establish the GTP tunnel required for GTP packet forwarding. As a tunnel identifier, TEID is used to identify the data bearing tunnel between GSNs. At the same time when the service is established, a packet data protocol (PDP) context will be created for the service in RNC, SGSN, and GGSN, and the PDP context will be recorded in the local PDP context list. The PDP context records a series of related parameters such as the user access point name (APN), serial number, GGSN/SGSN/RNC network protocol (IP) address, service quality (Qos) and other related parameters of the user service, providing for GTP message forwarding information.
当SGSN收到GTP报文后,通过查看报文中的消息类型(Message Type)判断收到的GTP报文是否为GTP协议数据单元(G-PDU),如果不是,该报文为本地接收报文,不需要进行转发。如果是G-PDU,需要进行转发。通过查看G-PDU中的TEID值判断G-PDU的转发方向,并根据PDP上下文中记录的G-PDU转发所需目标地址,将G-PDU转发到目标地址。After the SGSN receives the GTP message, it judges whether the received GTP message is a GTP protocol data unit (G-PDU) by checking the message type (Message Type) in the message, if not, the message is a locally received message The text does not need to be forwarded. If it is a G-PDU, it needs to be forwarded. Determine the forwarding direction of the G-PDU by checking the TEID value in the G-PDU, and forward the G-PDU to the target address according to the target address required for G-PDU forwarding recorded in the PDP context.
对于TEID的分配算法,普遍做法是从0开始,逐一分配,当到达全1后,再从0开始分配,如果期间有PDP释放,被释放的TEID值回收用于下次分配。由于RNC只存在与SGSN间的上行GTP隧道,GGSN只存在与SGSN间的下行GTP隧道,对应于同一个PDP上下文,它们只有一个方向的GTP隧道。而对于SGSN来说,存在与GGSN、RNC、SGSN的GTP报文交换,也就是说,同一时刻,可能存在对应同一PDP上下文,SGSN需要分别建立与GGSN、RNC、SGSN之间的GTP隧道。如果将SGSN与GGSN、RNC、SGSN间的GTP隧道,简单分配成相同值,当SGSN收到G-PDU报文后,可以根据输入GTP报文的源IP地址判断该报文是上行报文还是下行报文,确定报文的转发目标网络节点。For the TEID allocation algorithm, the general practice is to start from 0 and allocate one by one. When all 1s are reached, the allocation starts from 0. If there is a PDP release during the period, the released TEID value is recycled for the next allocation. Since the RNC only has an uplink GTP tunnel with the SGSN, and the GGSN only has a downlink GTP tunnel with the SGSN, corresponding to the same PDP context, they have only one direction of the GTP tunnel. For SGSN, there is GTP message exchange with GGSN, RNC, and SGSN, that is, at the same time, there may be corresponding to the same PDP context, and SGSN needs to establish GTP tunnels with GGSN, RNC, and SGSN respectively. If the GTP tunnels between the SGSN and the GGSN, RNC, and SGSN are simply assigned the same value, when the SGSN receives the G-PDU message, it can judge whether the message is an uplink message or an uplink message according to the source IP address of the input GTP message. The downlink message determines the forwarding target network node of the message.
采用这种方法,SGSN每次收到G-PDU报文后,不但要根据TEID值找到PDP上下文,还需要根据PDP上下文中保存的RNC/GGSN的IP地址来判断该报文是上行报文还是下行报文,影响转发效率。而且,PDP上下文中的GGSN IP地址只是SGSN向GGSN发送报文的目的IP地址,并没有指明该地址是GGSN向SGSN发送报文的源地址。当报文的源地址与PDP上下文中存储的GGSN地址不符时,SGSN无法判断该报文是上行报文还是下行报文。如果是UE进行SGSN间的无线网络子系统服务重分配(SRNSRelocation)时,UE原来接入的SGSN向新接入的SGSN发送的转发重分配请求(Forward Relocation Request)消息中并没有带有原接入SGSN的用户面IP地址,这样,当新接入的SGSN接收到原来接入的SGSN发送来的报文时,无法判断该报文的方向。With this method, each time the SGSN receives a G-PDU message, it not only needs to find the PDP context according to the TEID value, but also needs to judge whether the message is an uplink message or an uplink message according to the IP address of the RNC/GGSN saved in the PDP context. Downlink packets affect forwarding efficiency. Moreover, the GGSN IP address in the PDP context is only the destination IP address of the message sent by the SGSN to the GGSN, and does not indicate that this address is the source address of the message sent by the GGSN to the SGSN. When the source address of the message does not match the GGSN address stored in the PDP context, the SGSN cannot determine whether the message is an uplink message or a downlink message. If the UE performs radio network subsystem service redistribution (SRNSRelocation) between SGSNs, the Forward Relocation Request (Forward Relocation Request) message sent by the originally accessed SGSN of the UE to the newly accessed SGSN does not contain the original connection information. In this way, when the newly accessed SGSN receives the message sent by the originally accessed SGSN, it cannot determine the direction of the message.
现有技术中,为了判断SGSN收到的报文方向,将SGSN与GGSN、RNC、SGSN之间的GTP隧道简单的分配为不同TEID值后,为TEID建立一个索引表,在表中记录每个TEID值对应的GTP报文方向和PDP上下文索引。当收到G-PDU时,根据TEID值查找索引表中记录的GTP报文的方向和PDP上下文索引,再根据PDP上下文索引找到PDP上下文,取出G-PDU转发目标地址,将G-PDU转发到目标地址。具体的G-PDU转发流程如图2中所示:In the prior art, in order to determine the direction of the message received by the SGSN, the GTP tunnel between the SGSN and the GGSN, RNC, and SGSN is simply assigned to different TEID values, and an index table is established for the TEID, and each TEID is recorded in the table. GTP packet direction and PDP context index corresponding to the TEID value. When a G-PDU is received, look up the direction of the GTP message and the PDP context index recorded in the index table according to the TEID value, then find the PDP context according to the PDP context index, take out the G-PDU forwarding target address, and forward the G-PDU to target address. The specific G-PDU forwarding process is shown in Figure 2:
步骤201:SGSN分别给RNC与SGSN之间、GGSN与SGSN之间、SGSN与SGSN之间的GTP隧道分配TEID值,为TEID值建立索引表,记录每个TEID值所对应的GTP报文方向和PDP上下文索引。Step 201: The SGSN assigns TEID values to the GTP tunnels between the RNC and the SGSN, between the GGSN and the SGSN, and between the SGSN and the SGSN, respectively, establishes an index table for the TEID values, and records the GTP message direction and direction corresponding to each TEID value. PDP context index.
举个例子,GGSN、SGSN、RNC中创建的PDP上下文的索引为PDP上下文2,RNC与SGSN间的GTP隧道TEID值分配为1000;GGSN与SGSN间的GTP隧道TEID值分配为1001;SGSN与SGSN间的GTP隧道TEID分配为1002,则索引表中记录的TEID值与报文方向和PDP上下文索引的对应关系参照图3中所示:从RNC到SGSN的报文方向为上行,对应于RNC与SGSN间的GTP隧道TEID值1000记录GTP报文方向为上行,PDP上下文索引为PDP上下文2;从GGSN到SGSN的报文方向为下行,对应于GGSN与SGSN间的GTP隧道TEID值1001记录GTP报文方向为下行,PDP上下文索引为PDP上下文2;从SGSN到SGSN的报文方向为切换,对应于SGSN与SGSN间的GTP隧道TEID值1002记录GTP报文方向为切换,PDP上下文索引为PDP上下文2。For example, the index of the PDP context created in GGSN, SGSN, and RNC is PDP context 2, and the TEID value of the GTP tunnel between RNC and SGSN is allocated as 1000; the TEID value of the GTP tunnel between GGSN and SGSN is allocated as 1001; The GTP tunnel TEID allocation between the GTP tunnels is 1002, then the corresponding relationship between the TEID value recorded in the index table and the message direction and PDP context index is shown in Figure 3: the message direction from RNC to SGSN is uplink, corresponding to RNC and The TEID value of the GTP tunnel between SGSNs is 1000, which records the direction of GTP packets as uplink, and the PDP context index is PDP context 2; The direction of the message is downlink, and the PDP context index is PDP context 2; the direction of the message from SGSN to SGSN is handover, corresponding to the GTP tunnel TEID value 1002 between SGSN and SGSN, and the direction of the GTP message is handover, and the PDP context index is PDP context 2.
当收到G-PDU,根据TEID值找到索引表中对应的PDP上下文索引为PDP上下文2后,即可直接到PDP上下文列表中查找索引为PDP上下文2的PDP上下文中记录的G-PDU转发所需参数。When a G-PDU is received, after finding the corresponding PDP context index in the index table as PDP context 2 according to the TEID value, you can directly go to the PDP context list to search for the G-PDU forwarding record recorded in the PDP context whose index is PDP context 2 Parameters are required.
分配完TEID值,索引表中记录了每个TEID值对应的GTP报文方向和PDP上下文索引,建立了GTP隧道,开始GTP报文的接收和转发。After allocating TEID values, the index table records the GTP message direction and PDP context index corresponding to each TEID value, establishes a GTP tunnel, and starts receiving and forwarding GTP messages.
步骤202~203:SGSN接收到GTP报文,查看报文中的消息类型,判断GTP报文是否是G-PDU,如果不是,为本地接收报文,不需要对报文进行转发,退出转发流程;如果为G-PDU,则需要对报文进行转发,进行步骤204。Steps 202-203: SGSN receives the GTP message, checks the message type in the message, and judges whether the GTP message is a G-PDU, if not, receives the message locally, does not need to forward the message, and exits the forwarding process ; If it is a G-PDU, the message needs to be forwarded, go to
步骤204~205:根据G-PDU中的TEID值查看索引表,判断TEID值为上行TEID值、下行TEID值、还是切换TEID值。如果TEID值为上行TEID,则转发目标为GGSN,进行步骤206;如果TEID值为下行TEID值,则转发目标为RNC,进行步骤207;如果TEID值为切换TEID值,则转发目标为RNC,进行步骤208。Steps 204-205: Check the index table according to the TEID value in the G-PDU, and determine whether the TEID value is an uplink TEID value, a downlink TEID value, or a switching TEID value. If the TEID value is the uplink TEID, then the forwarding target is GGSN, proceed to
步骤206:查看索引表中上行TEID值对应的PDP上下文索引,然后进行步骤209。Step 206: Check the PDP context index corresponding to the uplink TEID value in the index table, and then go to
步骤207:查看索引表中下行TEID值对应的PDP上下文索引,然后进行步骤210。Step 207: Check the PDP context index corresponding to the downlink TEID value in the index table, and then go to
步骤208:查看索引表中切换TEID值对应的PDP上下文索引,然后进行步骤211。Step 208: Check the PDP context index corresponding to the switching TEID value in the index table, and then go to
步骤209:根据上行TEID值对应的PDP上下文索引在PDP上下文中找到目标GGSN地址,然后进行步骤212。Step 209: Find the target GGSN address in the PDP context according to the PDP context index corresponding to the uplink TEID value, and then go to
步骤210:根据下行TEID值对应的PDP上下文索引在PDP上下文中找到目标RNC地址,然后进行步骤213。Step 210: Find the target RNC address in the PDP context according to the PDP context index corresponding to the downlink TEID value, and then go to
步骤211:根据切换TEID值对应的PDP上下文索引在PDP上下文中找到目标RNC地址,然后进行步骤214。Step 211: Find the target RNC address in the PDP context according to the PDP context index corresponding to the handover TEID value, and then go to
步骤212:将上行G-PDU转发到目标GGSN地址,完成一个上行G-PDU报文的转发流程。Step 212: forward the uplink G-PDU to the target GGSN address, and complete the forwarding process of an uplink G-PDU message.
步骤213:将下行G-PDU转发到目标RNC地址,完成一个下行G-PDU报文的转发流程。Step 213: forward the downlink G-PDU to the address of the target RNC, and complete the forwarding process of a downlink G-PDU message.
步骤214:将切换G-PDU转发到目标RNC地址,完成一个切换G-PDU报文的转发流程。Step 214: forward the handover G-PDU to the target RNC address, and complete a handover G-PDU message forwarding process.
依照上述方法,建立GTP隧道时,需要给GTP隧道的TEID建立索引表,并在索引表中记录每个TEID对应的报文方向和PDP上下文索引。当SGSN收到G-PDU报文后,需要先查看索引表中接收到的G-PDU的TEID所对应的报文方向和PDP上下文索引,确定G-PDU的转发目标网络节点,然后再根据PDP上下文索引找到PDP上下文中转发目标网络节点的地址,增加了系统开销,降低了SGSN中G-PDU的转发效率。According to the above method, when establishing a GTP tunnel, it is necessary to establish an index table for the TEID of the GTP tunnel, and record the message direction and PDP context index corresponding to each TEID in the index table. When the SGSN receives the G-PDU message, it needs to check the message direction and PDP context index corresponding to the TEID of the received G-PDU in the index table to determine the forwarding target network node of the G-PDU, and then according to the PDP The context index finds the address of the forwarding target network node in the PDP context, which increases the system overhead and reduces the forwarding efficiency of the G-PDU in the SGSN.
发明内容Contents of the invention
有鉴于此,本发明的主要目的在于提供一种协议数据单元的转发方法,降低系统开销,提高SGSN中G-PDU的转发效率。In view of this, the main purpose of the present invention is to provide a protocol data unit forwarding method, reduce system overhead, and improve G-PDU forwarding efficiency in SGSN.
根据上述目的,本发明提供了一种协议数据单元的转发方法,该方法包含以下步骤:According to above-mentioned object, the present invention provides a kind of forwarding method of protocol data unit, and this method comprises the following steps:
A、建立GTP隧道时,给GTP隧道分配具有方向标识位和分组数据协议PDP上下文索引位的TEID值;A, when setting up the GTP tunnel, assign the TEID value with the direction identification bit and the packet data protocol PDP context index bit to the GTP tunnel;
B、接收到G-PDU后,根据G-PDU的TEID值中的方向标识位确定报文转发方向,判断出报文转发的目标网络节点;B. After receiving the G-PDU, determine the message forwarding direction according to the direction identification bit in the TEID value of the G-PDU, and determine the target network node for message forwarding;
C、根据TEID中的PDP上下文索引值查找到PDP上下文中由步骤B判断出的目标网络节点的地址,根据该地址将G-PDU转发到目标网络节点。C. Find the address of the target network node in the PDP context determined in step B according to the PDP context index value in the TEID, and forward the G-PDU to the target network node according to the address.
该方法中,所述步骤A具体为:通用分组无线业务GPRS服务支持节点SGSN给SGSN与GPRS网关支持节点GGSN之间、SGSN与无线网络控制器RNC之间、SGSN与SGSN之间的GTP隧道,分别分配具有方向标识位和PDP上下文索引位的TEID值,建立GTP隧道;In the method, the step A is specifically: the general packet radio service GPRS service support node SGSN provides the GTP tunnel between the SGSN and the GPRS gateway support node GGSN, between the SGSN and the radio network controller RNC, between the SGSN and the SGSN, Assign the TEID value with the direction identification bit and the PDP context index bit respectively, and establish the GTP tunnel;
步骤B中,当SGSN收到G-PDU后,根据G-PDU中TEID的方向标识位确定G-PDU的转发方向,判断出转发的目标网络节点。In step B, after receiving the G-PDU, the SGSN determines the forwarding direction of the G-PDU according to the direction identification bit of the TEID in the G-PDU, and determines the forwarding target network node.
所述步骤A中TEID值的方向标识位可以为两位;步骤B中根据TEID值的两位方向标识位确定G-PDU的转发方向。The direction identification bit of the TEID value in the step A may be two bits; in step B, the forwarding direction of the G-PDU is determined according to the two direction identification bits of the TEID value.
进一步,所述步骤A中TEID值的方向标识位为20到21两位;步骤B中根据TEID值的20到21两位方向标识位确定G-PDU的转发方向。Further, the direction identification bit of the TEID value in the step A is 20 to 21 bits; in step B, the forwarding direction of the G-PDU is determined according to the 20 to 21 direction identification bits of the TEID value.
所述步骤A中TEID值的PDP上下文标识位为0到19位;步骤C中根据TEID值的0到19位PDP上下文索引值查找PDP上下文。The PDP context identification bit of the TEID value in the step A is 0 to 19 bits; in step C, the PDP context is searched according to the PDP context index value of the TEID value 0 to 19 bits.
由上述方案可以看出,建立GTP隧道时,给不同的GTP隧道分配具有方向标识位和PDP上下文索引位的TEID值,使得当接收到G-PDU后,直接根据G-PDU的TEID值中的方向标识位确定报文转发方向,判断报文转发的目标网络节点为RNC还是SGSN,然后根据TEID中的PDP上下文索引值直接找到PDP上下文中G-PDU转发的目标网络节点地址,根据该地址,将G-PDU转发到目标网络节点。这样,就不需要为了判断GTP报文的方向给不同的TEID建立索引表,也就减少了接收到G-PDU报文后查看索引表找到对应于TEID的报文转发方向和PDP上下文索引的步骤,降低了系统开销,提高了SGSN中G-PDU的转发效率。It can be seen from the above scheme that when GTP tunnels are established, different GTP tunnels are assigned TEID values with direction identification bits and PDP context index bits, so that when a G-PDU is received, the TEID value in the TEID value of the G-PDU The direction identification bit determines the message forwarding direction, judges whether the target network node for message forwarding is RNC or SGSN, and then directly finds the target network node address for G-PDU forwarding in the PDP context according to the PDP context index value in the TEID, according to the address, Forward the G-PDU to the target network node. In this way, there is no need to establish index tables for different TEIDs in order to determine the direction of the GTP message, which reduces the steps of checking the index table after receiving the G-PDU message to find the message forwarding direction and PDP context index corresponding to the TEID , reducing system overhead and improving the forwarding efficiency of G-PDU in SGSN.
附图说明Description of drawings
图1为GPRS系统逻辑结构图;Fig. 1 is a logical structural diagram of the GPRS system;
图2为现有技术中G-PDU的转发流程图;Fig. 2 is the forwarding flowchart of G-PDU in the prior art;
图3为索引表中TEID值与报文方向和PDP上下文索引的对应关系示意图;Fig. 3 is a schematic diagram of the corresponding relationship between the TEID value and the message direction and the PDP context index in the index table;
图4为依照本发明实施例的G-PDU转发流程图;FIG. 4 is a flowchart of G-PDU forwarding according to an embodiment of the present invention;
图5为依照本发明的实施例TEID值分配方法示意图。FIG. 5 is a schematic diagram of a method for assigning TEID values according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,以下举实施例,并参照附图,对本发明进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the following examples are given and the present invention is further described in detail with reference to the accompanying drawings.
本发明的核心思想是:建立GTP隧道时,给不同的GTP隧道分配具有方向标识位和PDP上下文索引位的TEID值,使得接收到G-PDU后,根据TEID值中的方向标识位确定报文转发方向,判断出报文转发的目标网络节点,然后根据TEID中的PDP上下文索引值找到PDP上下文中报文转发的目标网络节点地址,根据该地址,将G-PDU转发到目标网络节点。The core idea of the present invention is: when establishing a GTP tunnel, assign a TEID value having a direction identification bit and a PDP context index bit to different GTP tunnels, so that after receiving a G-PDU, the message is determined according to the direction identification bit in the TEID value The forwarding direction determines the target network node for message forwarding, and then finds the address of the target network node for message forwarding in the PDP context according to the PDP context index value in the TEID, and forwards the G-PDU to the target network node according to the address.
举本发明的一个较佳实施例。当UE进行SGSN间的无线网络子系统服务重分配时,需要新接入的SGSN建立起与UE原来接入的SGSN之间的GTP隧道,获得对UE的管理信息,创建新的PDP上下文。同时新的SGSN为了进行对UE的服务,还需要与GGSN、RNC分别建立起GTP隧道进行GTP报文的接收和发送。新的SGSN对建立的每个GTP隧道进行TEID值分配和GTP报文的转发过程如图4所示:Give a preferred embodiment of the present invention. When the UE redistributes radio network subsystem services between SGSNs, the newly accessed SGSN needs to establish a GTP tunnel with the original SGSN accessed by the UE to obtain management information for the UE and create a new PDP context. At the same time, in order to serve the UE, the new SGSN also needs to establish GTP tunnels with the GGSN and the RNC to receive and send GTP messages. The new SGSN performs TEID value distribution and GTP packet forwarding process for each established GTP tunnel as shown in Figure 4:
步骤401:SGSN给每个GTP隧道分配TEID值。TEID值的分配方法如图5所示,首先用TEID值的0到19位作为PDP上下文索引位,填入SGSN为该业务创建的PDP上下文索引值,然后用TEID值的20到21两位作为GTP报文的方向标识位,填入方向标识值。将RNC与SGSN间GTP隧道的方向标识位填入00,表示SGSN收到的来自RNC的GTP报文方向为上行;将GGSN与SGSN间GTP隧道的方向标识位填入01,表示SGSN收到的来自GGSN的GTP报文方向为下行;UE原来接入的SGSN到SGSN间GTP隧道的方向标识位填入10,表示SGSN收到的来自UE原理接入的SGSN的GTP报文方向为下行切换。分配完TEID值,建立起GTP报文转发所需GTP隧道。Step 401: The SGSN assigns a TEID value to each GTP tunnel. The distribution method of TEID value is shown in Figure 5. First, use the 0 to 19 bits of the TEID value as the PDP context index bits, fill in the PDP context index value created by the SGSN for the service, and then use the 20 to 21 bits of the TEID value as the PDP context index bits. The direction identification bit of the GTP packet, fill in the direction identification value. Fill in the direction identification bit of the GTP tunnel between the RNC and the SGSN with 00, indicating that the direction of the GTP message received by the SGSN from the RNC is uplink; fill in the direction identification bit of the GTP tunnel between the GGSN and the SGSN with 01, indicating that the direction of the GTP message received by the SGSN is uplink; The direction of the GTP message from the GGSN is downlink; the direction identifier bit of the GTP tunnel between the SGSN originally accessed by the UE and the SGSN is filled with 10, indicating that the direction of the GTP message received by the SGSN from the SGSN originally accessed by the UE is downlink handover. After the TEID value is allocated, the GTP tunnel required for GTP packet forwarding is established.
步骤402~403:SGSN接收GTP报文,查看GTP报文中的消息类型,判断收到的GTP报文是否为G-PDU。如果不是G-PDU,GTP报文为本地接收报文,不需要进行转发,退出转发流程;如果为G-PDU,需要对报文进行转发,进行步骤404。Steps 402-403: The SGSN receives the GTP message, checks the message type in the GTP message, and judges whether the received GTP message is a G-PDU. If it is not a G-PDU, the GTP message is a locally received message and does not need to be forwarded, and the forwarding process is exited; if it is a G-PDU, the message needs to be forwarded, and step 404 is performed.
步骤404:判断G-PDU中TEID的20到21两位方向标识值为00、01、还是10。如果为00,收到的G-PDU为上行报文,转发目标为GGSN,则进行步骤405;如果为01,收到的G-PDU为下行报文,转发目标为RNC,则进行步骤406;如果为10,收到的G-PDU为下行切换报文,转发目标为RNC,则进行步骤407。Step 404: Determine whether the 20 to 21 two-digit direction identification value of the TEID in the G-PDU is 00, 01, or 10. If it is 00, the received G-PDU is an uplink message, and the forwarding target is GGSN, then proceed to step 405; if it is 01, the received G-PDU is a downlink message, and the forwarding target is RNC, then perform step 406; If it is 10, the received G-PDU is a downlink handover message, and the forwarding target is RNC, then go to step 407.
步骤405:根据G-PDU中TEID的0到19位PDP上下文索引值找到PDP上下文列表中的PDP上下文,取出PDP上下文中上行G-PDU转发目标的GGSN地址,然后进行步骤408。Step 405: Find the PDP context in the PDP context list according to the 0 to 19 PDP context index value of the TEID in the G-PDU, take out the GGSN address of the uplink G-PDU forwarding target in the PDP context, and then proceed to step 408.
步骤406:根据TEID的0到19位PDP上下文索引值找到PDP上下文列表中的PDP上下文,取出PDP上下文中下行G-PDU转发目标的RNC地址,然后进行步骤409。Step 406: Find the PDP context in the PDP context list according to the PDP context index value of 0 to 19 bits of the TEID, take out the RNC address of the downlink G-PDU forwarding target in the PDP context, and then proceed to step 409.
步骤406:根据TEID的0到19位PDP上下文索引值找到PDP上下文列表中的PDP上下文,取出PDP上下文中下行切换G-PDU转发目标的RNC地址,然后进行步骤410。Step 406: Find the PDP context in the PDP context list according to the PDP context index value of 0 to 19 bits of the TEID, take out the RNC address of the downlink switching G-PDU forwarding target in the PDP context, and then proceed to step 410.
步骤417:将上行G-PDU转发到目标GGSN,完成一个上行G-PDU的转发流程。Step 417: forward the uplink G-PDU to the target GGSN, and complete an uplink G-PDU forwarding process.
步骤416:将下行G-PDU转发到目标RNC,完成一个下行G-PDU的转发流程。Step 416: forward the downlink G-PDU to the target RNC, and complete a downlink G-PDU forwarding process.
步骤417:将下行切换G-PDU转发到目标RNC,完成一个下行切换G-PDU的转发流程。Step 417: Forward the downlink handover G-PDU to the target RNC, and complete a forwarding process of the downlink handover G-PDU.
上述的实施例中,建立GTP报文接收和发送所需GTP隧道时,SGSN给不同的GTP隧道分配了20到21位为方向标识位和0到19位为PDP上下文索引位的TEID值,当SGSN收到G-PDU后,根据TEID中的20到21两位中的值确定G-PDU的转发方向,判断出报文转发的目标网络节点,然后根据TEID中0到19位的PDP上下文索引值找到PDP上下文中的目标网络节点地址,根据该地址将G-PDU转发到目标网络节点,这样,就不需要给TEID建立索引表,也就减少了查看TEID索引表确定报文的方向和找到PDP上下文索引的步骤,降低了系统开销,提高了G-PDU的转发效率。In the above-mentioned embodiment, when setting up the required GTP tunnel for receiving and sending the GTP message, the SGSN assigns 20 to 21 bits as the direction identification bit and 0 to 19 bits as the TEID value of the PDP context index bit to different GTP tunnels. After receiving the G-PDU, the SGSN determines the forwarding direction of the G-PDU according to the value of the 20 to 21 bits in the TEID, determines the target network node for message forwarding, and then according to the PDP context index of the 0 to 19 bits in the TEID value to find the target network node address in the PDP context, and forward the G-PDU to the target network node according to the address. In this way, there is no need to build an index table for the TEID, which reduces the need to check the TEID index table to determine the direction of the message and find The step of PDP context index reduces system overhead and improves the forwarding efficiency of G-PDU.
以上所举较佳实施例,对本发明的目的、技术方案和优点进行了进一步详细说明,所应理解的是,以上所述仅为本发明的实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换等,均应包含在本发明的范围之内。The preferred embodiments cited above have further described the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above descriptions are only examples of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement, etc. within the spirit and principle of the present invention shall be included within the scope of the present invention.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100487752A CN100372390C (en) | 2004-06-18 | 2004-06-18 | A forwarding method of a protocol data unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2004100487752A CN100372390C (en) | 2004-06-18 | 2004-06-18 | A forwarding method of a protocol data unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1710967A true CN1710967A (en) | 2005-12-21 |
| CN100372390C CN100372390C (en) | 2008-02-27 |
Family
ID=35707128
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2004100487752A Expired - Fee Related CN100372390C (en) | 2004-06-18 | 2004-06-18 | A forwarding method of a protocol data unit |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100372390C (en) |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101090362B (en) * | 2006-06-20 | 2010-04-14 | 中兴通讯股份有限公司 | A Method for Single Tunnel Negotiation in Packet Domain |
| WO2010066179A1 (en) * | 2008-12-08 | 2010-06-17 | 华为技术有限公司 | Data transmission method, system and device |
| WO2011011945A1 (en) * | 2009-07-29 | 2011-02-03 | 中兴通讯股份有限公司 | Message-sending method and serving gprs support node |
| WO2011057512A1 (en) * | 2009-11-13 | 2011-05-19 | 中兴通讯股份有限公司 | Method, operator edge device and system for ethernet service accessing bearing tunnels |
| CN101415013B (en) * | 2008-11-27 | 2011-09-28 | 普天信息技术研究院有限公司 | Method for identifying endpoint designation data packet |
| CN101136853B (en) * | 2007-09-27 | 2012-04-25 | 华为技术有限公司 | Data routing method |
| WO2012136097A1 (en) * | 2011-04-07 | 2012-10-11 | 中兴通讯股份有限公司 | Packet data network gateway and terminal mobility management system |
| CN104869668A (en) * | 2015-02-13 | 2015-08-26 | 北京集奥聚合科技有限公司 | Method for access platform to support GTP signaling |
| CN105379199A (en) * | 2014-06-16 | 2016-03-02 | 华为技术有限公司 | Service packet distribution method and apparatus |
| WO2017113354A1 (en) * | 2015-12-31 | 2017-07-06 | 华为技术有限公司 | Data packet transmission method and device |
| CN108377493A (en) * | 2016-11-21 | 2018-08-07 | 华为技术有限公司 | Connect method for building up, equipment and system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8218535B1 (en) * | 2000-07-04 | 2012-07-10 | Nokia Corporation | Method and device for attaching a user equipment to a telecommunication network |
| CN1180580C (en) * | 2001-04-19 | 2004-12-15 | 华为技术有限公司 | Mobile user packet data protocol relationship information query method |
-
2004
- 2004-06-18 CN CNB2004100487752A patent/CN100372390C/en not_active Expired - Fee Related
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101090362B (en) * | 2006-06-20 | 2010-04-14 | 中兴通讯股份有限公司 | A Method for Single Tunnel Negotiation in Packet Domain |
| CN101136853B (en) * | 2007-09-27 | 2012-04-25 | 华为技术有限公司 | Data routing method |
| CN101415013B (en) * | 2008-11-27 | 2011-09-28 | 普天信息技术研究院有限公司 | Method for identifying endpoint designation data packet |
| WO2010066179A1 (en) * | 2008-12-08 | 2010-06-17 | 华为技术有限公司 | Data transmission method, system and device |
| CN101990174B (en) * | 2009-07-29 | 2016-06-15 | 中兴通讯股份有限公司 | Message method and GPRS serving GPRS support node |
| WO2011011945A1 (en) * | 2009-07-29 | 2011-02-03 | 中兴通讯股份有限公司 | Message-sending method and serving gprs support node |
| CN101990174A (en) * | 2009-07-29 | 2011-03-23 | 中兴通讯股份有限公司 | Message sending method and SGSNs (Serving GPRS (General Packet Radio Service) Supporting Node) |
| WO2011057512A1 (en) * | 2009-11-13 | 2011-05-19 | 中兴通讯股份有限公司 | Method, operator edge device and system for ethernet service accessing bearing tunnels |
| US9894554B2 (en) | 2011-04-07 | 2018-02-13 | Zte Corporation | Packet data network gateway and terminal mobility management system |
| WO2012136097A1 (en) * | 2011-04-07 | 2012-10-11 | 中兴通讯股份有限公司 | Packet data network gateway and terminal mobility management system |
| CN105379199A (en) * | 2014-06-16 | 2016-03-02 | 华为技术有限公司 | Service packet distribution method and apparatus |
| CN105379199B (en) * | 2014-06-16 | 2019-07-09 | 华为技术有限公司 | Service message distribution method and device |
| CN104869668A (en) * | 2015-02-13 | 2015-08-26 | 北京集奥聚合科技有限公司 | Method for access platform to support GTP signaling |
| CN104869668B (en) * | 2015-02-13 | 2018-05-29 | 北京集奥聚合科技有限公司 | Method for access platform to support GTP signaling |
| WO2017113354A1 (en) * | 2015-12-31 | 2017-07-06 | 华为技术有限公司 | Data packet transmission method and device |
| US10554445B2 (en) | 2015-12-31 | 2020-02-04 | Huawei Technologies Co., Ltd. | Data packet sending method and apparatus |
| CN108377493A (en) * | 2016-11-21 | 2018-08-07 | 华为技术有限公司 | Connect method for building up, equipment and system |
| CN108377493B (en) * | 2016-11-21 | 2021-01-29 | 华为技术有限公司 | Connection establishment method, device and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN100372390C (en) | 2008-02-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1123272C (en) | Identifying Mobile Stations in Packet Radio Networks | |
| CN1183718C (en) | System and method for packet data servicing node (PDSN) initial assignment and reselection | |
| CN1451214A (en) | A technique for setting up calls in internet protocol mobile networks | |
| CN1177446C (en) | A realization method of packet data service from single information source to multiple receiving points | |
| CN1476258A (en) | Generation and Distribution Method of Temporary Mobile Group Identifier | |
| CN1856968A (en) | System and method for consistent forwarding of packets across wireless and wireline networks | |
| CN1406006A (en) | Method for identifying service quality of user's interface transmission network layer in wireless switch-in network | |
| CN1411232A (en) | Apparatus and method of connecting to special wireless internet pocket data communication system | |
| CN1710967A (en) | Retransmission method of protocol data unit | |
| CN1625152A (en) | Method for securing quality of transmitted group data service | |
| CN1612547A (en) | Method for providing mobile packet data service in mobile communication system | |
| CN1968501A (en) | Method and system for sensing user end access style in core network | |
| CN1241424C (en) | Method for building transmission load supporting in general mobile communication system | |
| CN1852549A (en) | Method for user terminal accessing in network | |
| CN1925672A (en) | Method for transferring user terminal in service universal grouping wireless business supporting node pool | |
| CN1722901A (en) | A method of serving radio network subsystem (SRNS) redirection | |
| CN1917697A (en) | Method for transferring user inside node pool of core network, and node | |
| CN100337435C (en) | Optimizing method of conversation management correcting process | |
| CN1725751A (en) | Distribution method of control plane tunnel endpoine identifier (TEID) and its system | |
| CN1960311A (en) | System and method of interconnection between network of universal mobile communication system and evolution network | |
| CN1262129C (en) | Resource allocation control device, resource allocation control method and mobile communication system | |
| CN1867181A (en) | Realization method for balancing load in wireless communication system | |
| CN1835475A (en) | Method of side activating general packet radio service network | |
| CN1741493A (en) | Universal block radio business service support internodal routing zone renewal method | |
| CN1738289A (en) | Data transmission method when routing area updates |
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 | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20180426 Address after: California, USA Patentee after: Global innovation polymerization LLC Address before: London, England Patentee before: GW partnership Co.,Ltd. Effective date of registration: 20180426 Address after: London, England Patentee after: GW partnership Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
| 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: 20080227 |