WO2011144123A2 - Subscription service processing method, gateway and system - Google Patents
Subscription service processing method, gateway and system Download PDFInfo
- Publication number
- WO2011144123A2 WO2011144123A2 PCT/CN2011/074904 CN2011074904W WO2011144123A2 WO 2011144123 A2 WO2011144123 A2 WO 2011144123A2 CN 2011074904 W CN2011074904 W CN 2011074904W WO 2011144123 A2 WO2011144123 A2 WO 2011144123A2
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- packet
- user
- path information
- forwarding path
- intermediate network
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/02—Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
- H04W8/04—Registration at HLR or HSS [Home Subscriber Server]
Definitions
- the embodiments of the present invention relate to communication technologies, and in particular, to a subscription service processing method, a gateway, and a system. Background technique
- Mobile users accessing the service server may require intermediate network element processing, such as network accelerators, firewalls, or virus filters.
- intermediate network element processing such as network accelerators, firewalls, or virus filters.
- the services provided by such intermediate network elements often require users to sign up, so that the user's service traffic is controlled to reach the service server according to the contract.
- the intermediate network element generally provides a small bandwidth. If all the packets are not selected and passed through the intermediate network element, the packets of all users cannot be carried.
- the GGSN (Gateway GPRS Support Node) is used to selectively process the loopback.
- the packets of the subscribers are selectively passed through the intermediate NEs to selectively process the services.
- the multiple routing loopback methods of the GGSN are as follows: Different intermediate network elements are attached to the interface of the GGSN. After receiving the packet, the GGSN determines that the packet belongs to the packet of the subscriber, and forwards the packet to an intermediate network element corresponding to the service contracted by the subscriber. The intermediate network element returns the packet after processing the packet.
- the GGSN forwards the packet to the next intermediate network element according to the forwarding policy, and the next intermediate network element processes the message and then returns the message to the GGSN, and so on, and the packet passes through all the intermediates corresponding to the subscription service. After processing by the network element, it is forwarded by the GGSN to the service server.
- the GGSN will process the same packet multiple times, which will have a greater impact on the performance of the GGSN.
- Embodiments of the present invention provide a subscription service processing method, a gateway, and a system, which are used to solve the existing In the technology, the gateway needs to process the same packet multiple times when processing the subscription service, which improves the performance of the gateway.
- An embodiment of the present invention provides a method for processing a subscription service, including:
- the gateway receives the message
- the gateway determines that the user to which the packet belongs is a subscription user, the gateway obtains the forwarding path information of the packet according to the subscription information of the user, where the forwarding path information includes all the intermediates that the packet will arrive in sequence.
- Path information of the network element
- the embodiment of the invention provides a gateway, including:
- a message receiving module configured to receive a message
- the path information obtaining module is configured to: when the user to which the packet belongs is a subscription user, obtain the forwarding path information of the packet according to the subscription information of the user, where the forwarding path information includes the packet to be sequentially Path information of all intermediate network elements that arrive;
- a packet sending module configured to send, according to the forwarding path information, a packet that includes the forwarding path information to the intermediate network element, so that the intermediate network element processes the packet.
- the embodiment of the present invention provides a subscription service processing system, including: a gateway and a plurality of intermediate network elements; and the gateway, after receiving the message, determining that the user to which the message belongs is a subscription user, according to the user
- the subscription information the forwarding path information of the packet is obtained, and the packet containing the forwarding path information is sent to the intermediate network element according to the forwarding path information;
- the forwarding path information includes the packet to be sequentially Path information of all intermediate network elements that arrive;
- the intermediate network element after processing the packet, deletes the self address in the forwarding path information, and sends the packet including the forwarding path information to the next hop intermediate network element indicated by the forwarding path information. Until all the intermediate network elements in the forwarding path information are processed.
- the gateway after receiving the message, obtains, for the message of the subscriber, each intermediate network corresponding to all the subscription services that arrive at the user in turn.
- the forwarding path information of the element is carried in the packet and sent to the first hop intermediate network element indicated by the forwarding path information in the packet.
- the packet includes the forwarding path information of the intermediate network element corresponding to all the subscription services of the user, and the packet can flow through all the intermediate network elements corresponding to all the subscription services of the user.
- the packet received by the gateway is an uplink packet
- the last hop intermediate network element receives the packet, and then sends the packet to the service server that provides the service service or the router that is connected to the service server.
- the gateway only needs to process once.
- the packet received by the gateway is a downlink packet
- the last hop intermediate network element receives the packet, and then forwards the packet to the gateway according to the indication of the path information, and the gateway sends the packet to the user equipment. Therefore, for the downlink message of the subscriber, the gateway only needs to process twice. Therefore, the gateway does not need to process the same packet of the subscribed user multiple times, which improves the performance of the gateway.
- FIG. 1 is a flowchart of a method for activating a subscription service according to an embodiment of the present invention
- FIG. 2 is a flowchart of a method for a gateway to obtain a service forwarding policy according to an embodiment of the present invention
- FIG. 3A is a flowchart of still another method for processing a subscription service according to an embodiment of the present invention
- FIG. 4A is a flowchart of still another method for processing a contracted service according to an embodiment of the present invention
- FIG. 4B is a schematic diagram of an application scenario of a method for processing a contracted service according to an embodiment of the present invention
- FIG. 5 is a schematic structural diagram of a gateway according to an embodiment of the present disclosure
- FIG. 6 is a schematic structural diagram of another gateway according to an embodiment of the present disclosure.
- FIG. 7 is a schematic structural diagram of still another gateway according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of a subscription service processing system according to an embodiment of the present invention. detailed description
- FIG. 1 is a flowchart of a method for processing a subscription service according to an embodiment of the present invention.
- the gateway may be a GGSN or a PGW (Packet Gate Way). As shown in FIG. 1, this embodiment includes:
- Step 11 The gateway receives the message.
- the packet may be an uplink packet sent by the user equipment to the service server, or may be a downlink packet sent by the service server to the user equipment.
- Step 12 The gateway determines the forwarding path information of the packet according to the subscription information of the user when the user to which the packet belongs is the subscription information, and the forwarding path information includes path information of all the intermediate network elements that the packet will arrive in sequence.
- a user can sign up for a business or sign up for multiple services.
- the gateway determines whether the user to which the packet belongs is subscribed to the user according to the user address in the packet. For example, when the packet is an uplink packet, the gateway searches for the user subscription information of the user to which the packet belongs according to the source address of the packet, and determines that the user to which the packet belongs is the subscription user. When the destination address of the packet is queried, the user to which the packet belongs is identified as the subscriber. For a packet belonging to a subscriber, the gateway can determine all intermediate network elements that the packet needs to pass according to all the subscribed services of the user. For a packet that does not belong to the subscriber, the gateway does not need to go through the intermediate NE processing. The gateway does not need to forward the packet to the intermediate NE.
- the gateway forwards the uplink packet to the router connected to the service server; for the downlink packet.
- the gateway forwards the downlink packet to the user equipment.
- the intermediate network element is a device that performs service processing and service forwarding. The difference between the service server and the intermediate network element is that the service server only processes the packets and does not forward the packets. The intermediate network element also needs to forward the packets to other network elements.
- the gateway obtains the forwarding path information including the path information of all the intermediate network elements that the packet will arrive in sequence according to the subscription information of the user. Specifically, when the gateway determines that the user to which the message belongs is a subscription user, the gateway determines the subscription service of the user according to the user address in the message.
- the gateway needs to obtain the service forwarding policy of all the subscribed services of the user, so as to obtain the address of the intermediate network element corresponding to all the subscribed services of the user. information.
- Each service forwarding policy includes a subscription service and address information of each intermediate network element corresponding to the subscription service.
- the gateway generates forwarding path information including all the intermediate network element address information, and adds the forwarding path information to the first hop intermediate network indicated by the forwarding path information, according to the address information of each intermediate network element corresponding to the service of all the subscribed services of the user. yuan.
- the upstream intermediate network element can obtain the address of the next-hop intermediate network element when forwarding the packet, and forward the packet to the intermediate network element.
- the gateway can save user subscription information and service forwarding policies.
- the user subscription information and service forwarding policy saved by the gateway may be obtained by the gateway from its own configuration, or may be obtained by the gateway from an external network element (for example, a PCRF). In addition, the gateway may not save user subscription information and service forwarding policies.
- the user subscription information stored in the external network element is used to determine whether the user to which the current packet belongs is a subscription user, and the service forwarding policy of the user is obtained from an external network element (for example, a PCRF).
- the address of each intermediate network element corresponding to all the subscription services of the user is obtained.
- Step 13 The gateway sends the packet containing the forwarding path information to the intermediate network element according to the forwarding path information, so that the intermediate network element processes the packet.
- the gateway sends the first hop intermediate network element indicated by the forwarding path information according to the forwarding path information. Send a packet containing the forwarding path information.
- the first-hop intermediate network element deletes its own address in the path information, and forwards the modified packet to the intermediate network element in the next hop according to the indication of the forwarding path information.
- the intermediate network element processes the received packet in turn, and each intermediate network element deletes its own address in the forwarding path information after processing the packet, and forwards the modified packet to the next hop intermediate network in the forwarding path information.
- the element receives the message until the last hop intermediate network element in the forwarding path information.
- the last hop intermediate network element continues to forward the packet to the service server after receiving the uplink packet of the service. Therefore, for the same upstream packet of the subscriber, the gateway only needs to process it once.
- the gateway is a necessary network element for the downlink packet to the user equipment.
- the downlink packet processed by the intermediate network element must pass the downlink packet.
- the gateway forwards to the user device. Therefore, the address of the last hop device in the forwarding path information needs to be set to the address of the gateway.
- the last intermediate network element forwards the packet to the gateway according to the indication of the forwarding path information, and the gateway sends the packet to the user equipment of the subscriber. Therefore, for the same downlink message of the subscriber, the gateway only needs to process twice.
- the gateway after receiving the packet, the gateway obtains the forwarding path information of each intermediate network element corresponding to all the subscription services of the user, and sends the forwarding path information in the packet.
- the packet includes the forwarding path information of the intermediate network element corresponding to all the subscription services of the user, and the packet can flow through all the intermediate network elements corresponding to all the subscription services of the user.
- the packet received by the gateway is an uplink packet
- the last hop intermediate network element receives the packet, and then sends the packet to the service server that provides the service service or the router that is connected to the service server. Therefore, for the uplink message of the subscriber, the gateway only needs to process once.
- the last hop intermediate network element receives the packet, and then forwards the packet to the gateway according to the indication of the forwarding path information, and the gateway sends the packet to the subscriber.
- User equipment Therefore, for the downlink message of the subscriber, the gateway only needs to process twice. Therefore, the gateway does not need to be the same for the signing user. A message is processed multiple times to improve the performance of the gateway.
- the gateway since the gateway forwards only the packets belonging to the subscribers to the intermediate network element, the packets of all users can be prevented from passing through the intermediate network elements, which reduces the load on the intermediate network elements.
- FIG. 2 is a flowchart of a method for a gateway to obtain a service forwarding policy according to an embodiment of the present invention. As shown in Figure 2, before step 11, it also includes:
- Step 21 The gateway receives an activation request sent by the user equipment, including the user identifier.
- Step 22 The gateway sends a policy request request including a user identifier to a Policy Charging Rules Function (PCRF).
- PCRF Policy Charging Rules Function
- Step 23 The gateway receives the user subscription information and the service forwarding policy corresponding to the user identifier sent by the PCRF.
- the PCRF After receiving the policy request request sent by the gateway, the PCRF obtains the user subscription information corresponding to the user identifier according to the user identifier, and determines the address of all the intermediate network elements corresponding to the subscription service, and the corresponding information includes the subscription service and the subscription service.
- the gateway receives the user subscription information and the service forwarding policy delivered by the PCRF through the Gx interface.
- the above-mentioned user subscription information and service forwarding policy may also be built in the gateway local. If the service forwarding policy is built in the gateway, the gateway does not need to receive the service activation request sent by the user equipment, and does not need to send a policy request request to the PCRF.
- the gateway can save the user subscription information in the user subscription information table as shown in Table 1.
- the service forwarding policy can be saved in the service forwarding table as shown in Table 2.
- a user can have one or more contracted services.
- a subscription service may correspond to an intermediate network element address or multiple intermediate network element addresses.
- Table 1 is the user signing information form.
- the gateway can query the user subscription information table according to the user address in the packet to determine whether the user to which the packet belongs is a subscription user.
- the gateway obtains the address information of all the intermediate network elements corresponding to all the subscription services of the user in the service forwarding table according to all the subscription services of the user.
- FIG. 3A is a flowchart of still another method for processing a contract service according to an embodiment of the present invention
- FIG. 3B is a diagram of an application scenario of another method for processing a contract service according to an embodiment of the present invention.
- the GGSN includes three interfaces: a Gn interface connected to the SGSN (Service GPRS Support Node), a Gx interface connected to the PCRF, and a Gi interface connected to the router or other intermediate network element.
- the intermediate network elements corresponding to the user's subscription service are Processl, Process3, and Process5.
- this embodiment includes:
- Step 1 The GGSN receives the uplink packet from the Gn interface to the service server, and the uplink packet includes the user identifier.
- Step 2 The GGSN processes the uplink packet, and determines whether the user to which the uplink packet belongs is a subscription user.
- the gateway can query the user subscription information according to the user address in the uplink packet, and when the user subscription information corresponding to the user address is queried, determine that the user to which the uplink packet belongs is a subscription user;
- the GGSN determines that the user to which the uplink packet belongs is not a subscription user, and the GGSN directly forwards the GGSN to the router directly connected to the corresponding service server through the Gi interface.
- Step 3 When the GGSN determines that the user to which the uplink packet belongs is the subscription user, the GGSN obtains the IP address of the intermediate network element corresponding to all the subscribed services of the user according to the services of all the subscribed services of the user, and generates the intermediate network element Processl in sequence. The forwarding path information of Process3 and Process5 is added to the uplink packet.
- the intermediate network element corresponding to all the subscription services of the user to which the uplink belongs is Processl.
- the forwarding path information generated by the GGSN is path information that sequentially reaches the intermediate network elements Processl, Process3, and Process5.
- the GGSN adds the forwarding path information to the routing options of the IP packet header.
- Step 4 The GGSN sends the uplink packet including the forwarding path information to the Gi interface.
- Step 5 The GGSN sends the uplink packet including the foregoing forwarding path information to the Process1 through the Gi interface.
- Step 6 After processing the uplink packet, Processl forwards the uplink packet to the intermediate network element Process3 according to the indication of the forwarding path information.
- Processl After processing the uplink packet, Processl deletes its own address in the forwarding path information and sends the uplink packet to the next intermediate network element Process3.
- Step 7 After processing the uplink packet, Process3 forwards the uplink packet to the intermediate network element Process5 according to the indication of the forwarding path information.
- Process3 After processing the uplink packet, Process3 deletes its own address in the forwarding path information and sends the uplink packet to the next intermediate network element Process5.
- Step 8 After processing the uplink packet, Process 5 forwards the uplink packet to the router connected to the service server.
- Process5 After processing the uplink packet, Process5 deletes its own address in the forwarding path information and sends the uplink packet to the router connected to the service server.
- the GGSN when the GGSN determines that the user to which the received uplink packet belongs is not the subscription user, the GGSN directly forwards the uplink packet to the router directly connected to the service server through the Gi interface. When it is determined that the user to which the received uplink packet belongs is a subscription user, the GGSN adds a forwarding path to the uplink packet. The information is sent to the first hop intermediate network element.
- FIG. 4A is a flowchart of still another method for processing a contracted service according to an embodiment of the present invention
- FIG. 4B is a schematic diagram of an application scenario of a method for processing a contracted service according to an embodiment of the present invention.
- This embodiment mainly describes the downlink traffic processing method of the contracted service. As shown in FIG. 4A, this embodiment includes:
- Step 1 The GGSN receives the downlink packet including the user identifier from the Gi interface.
- Step 2 The GGSN determines whether the user to which the downlink message belongs is a subscription user.
- the GGSN When the GGSN determines that the user to which the downlink packet belongs is not the subscription user, the GGSN directly performs step 9: internal processing the downlink packet, and then forwards the downlink packet to the user equipment through the Gn interface.
- Step 3 When the GGSN determines that the user to which the downlink message belongs is a subscription user, the GGSN obtains the IP address of the intermediate network element corresponding to all the subscribed services of the user according to the services of all the subscriptions of the user, and generates the intermediate network element sequentially.
- the forwarding path information of Process5, Process3, Processl, and GGSN is added to the downlink packet.
- the intermediate network elements corresponding to all the contracted services of the user to which the downlink belongs are Processl, Process3, and Process5.
- the GGSN generates forwarding path information that sequentially reaches the intermediate network elements Process5, Process3, and Processl, and the GGSN.
- the address of the last hop device in the above forwarding path information is the IP address of the GGSN.
- Step 4 The GGSN sends the downlink packet including the forwarding path information to the Gi interface.
- Step 5 The GGSN sends the downlink packet including the foregoing forwarding path information to the Process 5 through the Gi interface.
- Step 6 After processing the uplink packet, Process5 forwards the downlink message to the next hop intermediate cell Process3 according to the indication of the forwarding path information.
- Process5 After processing the downlink packet, Process5 deletes its own address in the forwarding path information and sends the downlink packet to the next intermediate network element Process3.
- Step 7 After processing the uplink packet, Process3 forwards the downlink message to the next hop intermediate cell Process 1 according to the indication of the forwarding path information.
- Process3 After processing the downlink packet, Process3 deletes its own address in the forwarding path information. The text is sent to the next intermediate network element Process 1.
- Step 8 After processing the uplink packet, Process 1 forwards the downlink packet to the GGSN according to the indication of the forwarding path information.
- Process 1 After processing the downlink packet, Process 1 deletes its own address in the forwarding path information and sends the downlink packet to the next intermediate network element GGSN.
- Step 9 The GGSN performs internal processing on the downlink packet.
- Step 10 The GGSN sends the downlink packet to the Gn interface.
- Step 11 The GGSN forwards the downlink packet to the SGGN through the Gn interface.
- the GGSN when the GGSN determines that the user to which the received downlink message belongs is not the subscription user, the GGSN forwards the uplink packet to the user equipment through the Gi interface. When it is determined that the user to which the received downlink message belongs is a subscription user, the GGSN adds the forwarding path information to the downlink packet and sends the information to the first hop intermediate network element. Upon receiving the downlink packet sent by the last intermediate network element, the GGSN forwards the packet to the SGGN through the Gn interface.
- FIG. 5 is a schematic structural diagram of a gateway according to an embodiment of the present invention. As shown in FIG. 5, the embodiment includes: a message receiving module 51, a path information acquiring module 52, and a message sending module 53.
- the message receiving module 51 is configured to receive the sent message.
- the path information obtaining module 52 is configured to: when determining that the user to which the message received by the message receiving module 51 belongs is a subscription user, obtain the forwarding path information of the packet according to the subscription information of the user, and the forwarding path information The path information of all intermediate network elements that the message will arrive in sequence is included.
- the message sending module 53 is configured to send, according to the forwarding path information acquired by the path information acquiring module 52, the packet containing the forwarding path information to the intermediate network element, so that the intermediate network element pairs the report The text is processed.
- the path information obtaining module 52 includes: a determining unit 521, an obtaining unit 522, and a generating unit 523.
- a determining unit 521 configured to determine, when the user to which the message belongs is a subscription user, according to the The user address in the packet determines the service that the user subscribes to.
- the obtaining unit 522 is configured to: when the determining unit 521 determines the service that the user subscribes to, obtain the address information of all the intermediate network elements corresponding to all the subscribed services of the user according to the services that are all signed by the user.
- the generating unit 523 is configured to generate forwarding path information including all the intermediate network element address information according to the address information of each intermediate network element acquired by the obtaining unit 522.
- the message sending module 53 is further configured to add the forwarding path information to the routing option of the IP packet header of the packet before sending the packet containing the forwarding path information to the intermediate network element. in.
- the message receiving module 51 is further configured to: when the packet is a downlink packet, receive a downlink packet sent by the last hop intermediate network element in the forwarding path information; when the packet is a downlink packet
- the last hop address information of the forwarding path information is an address of the gateway itself.
- the message sending module 53 is configured to forward, to the user equipment of the user, a downlink packet sent by the last hop intermediate network element received by the message receiving module 51.
- the path information obtaining module 52 determines that the user to which the message belongs is the signing user, and when the user to which the message belongs is the signing user, according to the signing of the user
- the information is obtained, and the forwarding path information of the packet is obtained, and the packet sending module 53 carries the forwarding path information in the packet and forwards the packet to the intermediate network element.
- the packet includes the path information of each intermediate network element corresponding to the subscription service, so that the message can flow through all the intermediate network elements corresponding to the service carried by the service.
- the last hop intermediate network element receives the packet and sends the packet to the service server that provides the service.
- the gateway only needs to be processed once.
- the last hop intermediate network element receives the packet, and then forwards the packet to the gateway according to the path information, and the gateway sends the packet to the user equipment. Therefore, for downstream packets, the gateway only needs to be processed twice. Therefore, the gateway does not need to process the same packet multiple times, which improves the performance of the gateway.
- the gateway since the gateway only forwards the packets belonging to the subscribers to the intermediate network element, the packets of all users can be avoided.
- the intermediate network element reduces the load on the intermediate network element.
- FIG. 7 is a schematic structural diagram of still another gateway according to an embodiment of the present invention. As shown in FIG. 7, further comprising: an activation request receiving module 54, a policy requesting module 55, and a policy receiving module 56.
- the activation request receiving module 54 is configured to receive a service activation request including a user identifier sent by the user equipment.
- the policy requesting module 55 is configured to send a policy request request including a user identifier to the PCRF after the activation request receiving module 54 receives the service activation request.
- the activation request receiving module 54 is further configured to receive the user subscription information and the service forwarding policy corresponding to the user identifier sent by the PCRF.
- the policy receiving module 56 is configured to receive user subscription information and a service forwarding policy corresponding to the user identifier sent by the policy and charging rule function entity.
- the path information obtaining module 52 determines, according to the user subscription information saved by the policy receiving module 56, the service corresponding to the service carried by the message stored by the policy receiving module 56, when the user to which the message received by the message receiving module 51 belongs is a subscription user.
- the service forwarding policy obtains forwarding path information of each intermediate network element corresponding to the service.
- the gateway saves the user subscription information and the service forwarding policy by processing the service activation request of the user equipment and the information sent by the PCRF. After receiving the packet, the gateway can query the locally saved user subscription information according to the user address in the packet, and determine that the user to which the packet belongs is the subscription user. When the gateway determines that the user to which the packet belongs is the subscription user, the service forwarding policy of the user is obtained, so that the addresses of all the intermediate network elements corresponding to all the subscription services of the user are obtained.
- FIG. 8 is a schematic structural diagram of a subscription service processing system according to an embodiment of the present invention. As shown in FIG. 8, the embodiment includes: a gateway 81 and a plurality of intermediate network elements 82.
- the gateway 81 is configured to: after receiving the packet, determine, according to the subscription information of the user, the forwarding path information of the packet according to the subscription information of the user, and determine, according to the forwarding path information, Transmitting, by the intermediate network element, a packet that includes the forwarding path information;
- the information includes path information of all intermediate network elements that the message will arrive in sequence;
- the intermediate network element 82 is configured to: after the packet is processed, delete the self address in the forwarding path information, and send the forwarding path information including the forwarding path information to the next hop intermediate network element indicated by the forwarding path information. The packet is processed until all intermediate network elements in the forwarding path information are processed.
- the packet is an uplink packet:
- the last hop intermediate network element indicated by the forwarding path is configured to send the uplink packet to the router connected to the service server when the packet is an uplink packet.
- the packet is a downlink packet:
- the gateway 81 is further configured to: if the packet is a downlink packet, set a last hop address information of the forwarding path information as an address of the gateway itself;
- the last hop intermediate network element indicated by the forwarding path information is configured to send a downlink packet to the gateway according to the forwarding path when the packet is a downlink packet;
- the gateway 81 is further configured to receive the downlink packet returned by the last hop intermediate network element indicated by the forwarding path information, and send the downlink packet to the user equipment of the user.
- the gateway 81 described above may be the gateway described in Figure 5, Figure 6, or Figure 7.
- the gateway For upstream packets, the gateway only needs to be processed once.
- the packet received by the gateway is a downlink packet
- the last hop intermediate network element receives the packet, and then forwards the packet to the gateway according to the path information, and the gateway sends the packet to the user equipment. Therefore, for downstream packets, the gateway only needs to be processed twice. Therefore, the gateway does not need to process the same packet multiple times, which improves the performance of the gateway.
- the gateway since the gateway forwards only the packets belonging to the subscriber to the intermediate network element, the user can prevent all users from passing through the intermediate network element, which reduces the load on the intermediate network element.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A subscription service processing method, gateway and system are provided by the embodiment of the present invention. The subscription service processing method includes: a gateway receives packets (11); when determining that the user the packets belong to is a subscription user, the gateway obtains, according to the user subscription information, the forwarding path information of the packets, wherein, the forwarding path information includes the path information on all the intermediate network elements the packets will reach in turn (12); the gateway transmits the packets including the forwarding path information to the intermediate network elements according to the forwarding path information, so that the intermediate network elements can process the packets (13). The intermediate network elements perform the processing in turn, transmit the path information, in which the addresses of their own are deleted, to the next network elements. The embodiment of present invention avoids the shortcoming that multiple processing to the same packet are required when the gateway processes the packets of the subscription user, improves the networking arrangement of intermediate processing network elements, therefore improving the gateway performance.
Description
签约业务处理方法和网关及系统 Contract business processing method and gateway and system
技术领域 Technical field
本发明实施例涉及通信技术, 尤其涉及一种签约业务处理方法和网关及 系统。 背景技术 The embodiments of the present invention relate to communication technologies, and in particular, to a subscription service processing method, a gateway, and a system. Background technique
移动用户访问业务服务器, 可能需要中间网元处理, 如网络加速器、 防 火墙或病毒过滤器。 此类中间网元提供的服务往往需要用户签约, 从而控制 用户的业务流量按照签约到达业务服务器。 由于中间网元一般提供的带宽较 小,如果所有报文都不加选择的通过中间网元, 则无法承载所有用户的报文。 Mobile users accessing the service server may require intermediate network element processing, such as network accelerators, firewalls, or virus filters. The services provided by such intermediate network elements often require users to sign up, so that the user's service traffic is controlled to reach the service server according to the contract. The intermediate network element generally provides a small bandwidth. If all the packets are not selected and passed through the intermediate network element, the packets of all users cannot be carried.
现有技术釆用 GGSN ( Gateway GPRS Support Node, 网关 GPRS支持节 点) 内部多次路由环回的方法, 将签约用户的报文选择性地通过中间网元, 达到选择性处理业务的目的。 GGSN的多次路由环回方法如下: GGSN的接 口上挂接有不同的中间网元。 GGSN接收到报文后, 确定该报文属于签约用 户的报文时, 将该报文转发给签约用户所签约的业务对应的一个中间网元, 该中间网元处理完该报文后返回给 GGSN, 由 GGSN再根据转发策略将该报 文转发给下一个中间网元处理, 下一个中间网元处理完该报文后再返回给 GGSN, 依次类推, 该报文经过签约业务对应的所有中间网元的处理后, 由 GGSN转发给业务服务器。 In the prior art, the GGSN (Gateway GPRS Support Node) is used to selectively process the loopback. The packets of the subscribers are selectively passed through the intermediate NEs to selectively process the services. The multiple routing loopback methods of the GGSN are as follows: Different intermediate network elements are attached to the interface of the GGSN. After receiving the packet, the GGSN determines that the packet belongs to the packet of the subscriber, and forwards the packet to an intermediate network element corresponding to the service contracted by the subscriber. The intermediate network element returns the packet after processing the packet. GGSN, the GGSN forwards the packet to the next intermediate network element according to the forwarding policy, and the next intermediate network element processes the message and then returns the message to the GGSN, and so on, and the packet passes through all the intermediates corresponding to the subscription service. After processing by the network element, it is forwarded by the GGSN to the service server.
然而, 如果中间网元过多, 签约用户报文的多次环回, 会导致 GGSN对 于同一个报文的多次处理, 从而会对 GGSN的性能造成较大的影响。 发明内容 However, if there are too many intermediate NEs and multiple loopbacks of the user's packets, the GGSN will process the same packet multiple times, which will have a greater impact on the performance of the GGSN. Summary of the invention
本发明实施例提供一种签约业务处理方法和网关及系统, 用以解决现有
技术中网关处理签约业务时需对同一报文进行多次处理的缺陷, 提高了网关 的性能。 Embodiments of the present invention provide a subscription service processing method, a gateway, and a system, which are used to solve the existing In the technology, the gateway needs to process the same packet multiple times when processing the subscription service, which improves the performance of the gateway.
本发明实施例提供一种签约业务处理方法, 包括: An embodiment of the present invention provides a method for processing a subscription service, including:
网关接收报文; The gateway receives the message;
所述网关确定所述报文所属的用户为签约用户时, 根据所述用户的签约 信息, 获取所述报文的转发路径信息, 所述转发路径信息包括所述报文将要 依次到达的所有中间网元的路径信息; When the gateway determines that the user to which the packet belongs is a subscription user, the gateway obtains the forwarding path information of the packet according to the subscription information of the user, where the forwarding path information includes all the intermediates that the packet will arrive in sequence. Path information of the network element;
根据所述转发路径信息向所述中间网元发送包含有所述转发路径信息的 报文, 以使得所述中间网元对所述报文进行处理。 Sending, by the forwarding path information, the packet including the forwarding path information to the intermediate network element, so that the intermediate network element processes the packet.
本发明实施例提供一种网关, 包括: The embodiment of the invention provides a gateway, including:
报文接收模块, 用于接收报文; a message receiving module, configured to receive a message;
路径信息获取模块, 用于确定所述报文所属的用户为签约用户时, 根据 所述用户的签约信息, 获取所述报文的转发路径信息, 所述转发路径信息包 括所述报文将要依次到达的所有中间网元的路径信息; The path information obtaining module is configured to: when the user to which the packet belongs is a subscription user, obtain the forwarding path information of the packet according to the subscription information of the user, where the forwarding path information includes the packet to be sequentially Path information of all intermediate network elements that arrive;
报文发送模块, 用于根据所述转发路径信息向所述中间网元发送包含有 所述转发路径信息的报文, 以使得所述中间网元对所述报文进行处理。 And a packet sending module, configured to send, according to the forwarding path information, a packet that includes the forwarding path information to the intermediate network element, so that the intermediate network element processes the packet.
本发明实施例提供一种签约业务处理系统, 包括: 网关和多个中间网元; 所述网关, 用于接收报文后, 确定所述报文所属的用户为签约用户时, 根据所述用户的签约信息, 获取所述报文的转发路径信息; 根据所述转发路 径信息向所述中间网元发送包含有所述转发路径信息的报文; 所述转发路径 信息包括所述报文将要依次到达的所有中间网元的路径信息; The embodiment of the present invention provides a subscription service processing system, including: a gateway and a plurality of intermediate network elements; and the gateway, after receiving the message, determining that the user to which the message belongs is a subscription user, according to the user The subscription information, the forwarding path information of the packet is obtained, and the packet containing the forwarding path information is sent to the intermediate network element according to the forwarding path information; the forwarding path information includes the packet to be sequentially Path information of all intermediate network elements that arrive;
所述中间网元, 用于处理报文后, 在所述转发路径信息中删除自身地址, 向所述转发路径信息指示的下一跳中间网元发送包括有所述转发路径信息的 报文, 直至所述转发路径信息中所有中间网元处理完毕。 The intermediate network element, after processing the packet, deletes the self address in the forwarding path information, and sends the packet including the forwarding path information to the next hop intermediate network element indicated by the forwarding path information. Until all the intermediate network elements in the forwarding path information are processed.
本发明实施例的签约业务处理方法和网关及系统, 网关接收到报文后, 对于签约用户的报文, 获取依次到达该用户的所有签约业务对应的各中间网
元的转发路径信息, 并将该转发路径信息携带在报文中发送给转发路径信息 指示的第一跳中间网元。 报文中包括该报文将要依次到达该用户的所有签约 业务对应的各中间网元的转发路径信息, 因此该报文可流经该用户的所有签 约业务对应的所有中间网元。 网关接收到的报文是上行报文时, 最后一跳中 间网元收到该报文后, 将该报文发送给提供业务服务的业务服务器, 或者与 业务服务器连接的路由器。 因此, 对于签约用户的上行报文, 网关只需要处 理一次。 网关接收到的报文是下行报文时, 最后一跳中间网元收到该报文后, 根据路径信息的指示将该报文转发给网关,由网关将该报文发送给用户设备。 因此, 对于签约用户的下行报文, 网关只需要处理两次。 因此, 网关不需要 对签约用户的同一个报文进行多次处理, 提高了网关的性能。 附图说明 The method and the gateway and the system for processing the subscription service according to the embodiment of the present invention, after receiving the message, the gateway obtains, for the message of the subscriber, each intermediate network corresponding to all the subscription services that arrive at the user in turn. The forwarding path information of the element is carried in the packet and sent to the first hop intermediate network element indicated by the forwarding path information in the packet. The packet includes the forwarding path information of the intermediate network element corresponding to all the subscription services of the user, and the packet can flow through all the intermediate network elements corresponding to all the subscription services of the user. When the packet received by the gateway is an uplink packet, the last hop intermediate network element receives the packet, and then sends the packet to the service server that provides the service service or the router that is connected to the service server. Therefore, for the uplink message of the subscriber, the gateway only needs to process once. When the packet received by the gateway is a downlink packet, the last hop intermediate network element receives the packet, and then forwards the packet to the gateway according to the indication of the path information, and the gateway sends the packet to the user equipment. Therefore, for the downlink message of the subscriber, the gateway only needs to process twice. Therefore, the gateway does not need to process the same packet of the subscribed user multiple times, which improves the performance of the gateway. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例提供的一种签约业务激活方法流程图; FIG. 1 is a flowchart of a method for activating a subscription service according to an embodiment of the present invention;
图 2为本发明实施例提供的一种网关获取业务转发策略的方法流程图; 图 3A为本发明实施例提供的又一种签约业务处理方法流程图; 图 3B为本发明实施例提供的又一种签约业务处理方法的应用场景图; 图 4A为本发明实施例提供的再一种签约业务处理方法流程图; 图 4B为本发明实施例提供的再一种签约业务处理方法的应用场景图; 图 5为本发明实施例提供的一种网关结构示意图; 2 is a flowchart of a method for a gateway to obtain a service forwarding policy according to an embodiment of the present invention; FIG. 3A is a flowchart of still another method for processing a subscription service according to an embodiment of the present invention; FIG. 4A is a flowchart of still another method for processing a contracted service according to an embodiment of the present invention; FIG. 4B is a schematic diagram of an application scenario of a method for processing a contracted service according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a gateway according to an embodiment of the present disclosure;
图 6为本发明实施例提供的另一种网关结构示意图; FIG. 6 is a schematic structural diagram of another gateway according to an embodiment of the present disclosure;
图 7为本发明实施例提供的又一种网关结构示意图; FIG. 7 is a schematic structural diagram of still another gateway according to an embodiment of the present disclosure;
图 8为本发明实施例提供的一种签约业务处理系统结构示意图。
具体实施方式 FIG. 8 is a schematic structural diagram of a subscription service processing system according to an embodiment of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明实施例提供的一种签约业务处理方法流程图。 本发明实施 例中网关可为 GGSN, 也可为 PGW ( Packet Gate Way, 分组数据网关)。 如 图 1所示, 本实施例包括: FIG. 1 is a flowchart of a method for processing a subscription service according to an embodiment of the present invention. In the embodiment of the present invention, the gateway may be a GGSN or a PGW (Packet Gate Way). As shown in FIG. 1, this embodiment includes:
步骤 11 :网关接收报文。 Step 11: The gateway receives the message.
报文可以是用户设备发送给业务服务器的上行报文, 也可以是业务服务 器发送给用户设备的下行报文。 The packet may be an uplink packet sent by the user equipment to the service server, or may be a downlink packet sent by the service server to the user equipment.
步骤 12:网关确定报文所属的用户为签约用户时, 根据用户的签约信息, 获取所述报文的转发路径信息, 转发路径信息包括该报文将要依次到达的所 有中间网元的路径信息。 签约了网络加速业务、 防火墙业务或病毒过滤业务的用户。 一个用户可签约 一个业务, 也可签约多个业务。 Step 12: The gateway determines the forwarding path information of the packet according to the subscription information of the user when the user to which the packet belongs is the subscription information, and the forwarding path information includes path information of all the intermediate network elements that the packet will arrive in sequence. A user who has signed up for a network acceleration service, a firewall service, or a virus filtering service. A user can sign up for a business or sign up for multiple services.
网关可根据报文中的用户地址, 确定报文所属的用户是否签约用户。 例 如, 报文为上行报文时, 网关根据报文的源地址, 查询到报文所属用户的用 户签约信息时, 确定报文所属的用户为签约用户; 报文为下行报文时, 根据 报文的目的地址, 查询到报文所属用户的用户签约信息时, 确定报文所属的 用户为签约用户。 对于属于签约用户的报文, 网关可根据该用户的所有签约 的业务确定该报文需要经过的所有中间网元。 对于不属于签约用户的报文, 由于不需要经过中间网元处理, 网关不需要将该报文转发给中间网元, 而是
直接转发给后续网元, 例如, 对于上行报文, 网关将上行报文转发给与业务 服务器相连的路由器; 对于下行报文。 网关将下行报文转发给用户设备。 其 中, 中间网元为进行业务处理和业务转发的设备。 业务服务器与中间网元的 区别在于, 业务服务器只处理报文, 不转发报文; 而中间网元处理报文还需 转发给其它网元。 The gateway determines whether the user to which the packet belongs is subscribed to the user according to the user address in the packet. For example, when the packet is an uplink packet, the gateway searches for the user subscription information of the user to which the packet belongs according to the source address of the packet, and determines that the user to which the packet belongs is the subscription user. When the destination address of the packet is queried, the user to which the packet belongs is identified as the subscriber. For a packet belonging to a subscriber, the gateway can determine all intermediate network elements that the packet needs to pass according to all the subscribed services of the user. For a packet that does not belong to the subscriber, the gateway does not need to go through the intermediate NE processing. The gateway does not need to forward the packet to the intermediate NE. Directly forwarded to the subsequent network element. For example, for the uplink packet, the gateway forwards the uplink packet to the router connected to the service server; for the downlink packet. The gateway forwards the downlink packet to the user equipment. The intermediate network element is a device that performs service processing and service forwarding. The difference between the service server and the intermediate network element is that the service server only processes the packets and does not forward the packets. The intermediate network element also needs to forward the packets to other network elements.
网关确定报文所属的用户为签约用户时, 根据用户的签约信息, 网关获 取包括该报文将要依次到达的所有中间网元的路径信息的转发路径信息。 具 体地, 进一步, 网关确定报文所属的用户为签约用户时, 根据报文中的用户 地址, 在签约信息中确定该用户所有签约的业务。 该用户签约有多个业务时, 该用户对应有多个业务转发策略, 网关需获取该用户的所有签约的业务的业 务转发策略,从而获取该用户的所有签约的业务对应的中间网元的地址信息。 每个业务转发策略包括签约业务和与该签约业务对应的各中间网元的地址信 息。 网关根据该用户的所有签约的业务对应的各中间网元的地址信息, 生成 包含上述所有中间网元地址信息的转发路径信息, 将该转发路径信息添加到 转发路径信息指示的第一跳中间网元。 由于报文中包括依次到达各中间网元 的地址, 因此上游中间网元在转发报文时可获取到下一跳中间网元的地址, 向下一跳中间网元转发该报文。 When the gateway determines that the user to which the packet belongs is the subscription user, the gateway obtains the forwarding path information including the path information of all the intermediate network elements that the packet will arrive in sequence according to the subscription information of the user. Specifically, when the gateway determines that the user to which the message belongs is a subscription user, the gateway determines the subscription service of the user according to the user address in the message. When the user subscribes to multiple services, the user has multiple service forwarding policies, and the gateway needs to obtain the service forwarding policy of all the subscribed services of the user, so as to obtain the address of the intermediate network element corresponding to all the subscribed services of the user. information. Each service forwarding policy includes a subscription service and address information of each intermediate network element corresponding to the subscription service. The gateway generates forwarding path information including all the intermediate network element address information, and adds the forwarding path information to the first hop intermediate network indicated by the forwarding path information, according to the address information of each intermediate network element corresponding to the service of all the subscribed services of the user. yuan. As the packet includes the address of the intermediate network element, the upstream intermediate network element can obtain the address of the next-hop intermediate network element when forwarding the packet, and forward the packet to the intermediate network element.
网关可保存用户签约信息和业务转发策略。 网关保存的用户签约信息和 业务转发策略, 可由网关从自身的配置中获取, 也可由网关从外部网元(例 如 PCRF )中获取。 另外, 网关也可不保存用户签约信息和业务转发策略。 而 是在每次接收到报文后, 通过外部网元中保存的用户签约信息确定当前报文 所属的用户是否为签约用户, 并从外部网元(例如 PCRF )获取该用户的业务 转发策略, 从而获取到该用户的所有签约业务对应的各中间网元的地址。 The gateway can save user subscription information and service forwarding policies. The user subscription information and service forwarding policy saved by the gateway may be obtained by the gateway from its own configuration, or may be obtained by the gateway from an external network element (for example, a PCRF). In addition, the gateway may not save user subscription information and service forwarding policies. After the packet is received, the user subscription information stored in the external network element is used to determine whether the user to which the current packet belongs is a subscription user, and the service forwarding policy of the user is obtained from an external network element (for example, a PCRF). The address of each intermediate network element corresponding to all the subscription services of the user is obtained.
步骤 13: 网关根据所述转发路径信息向所述中间网元发送包含有所述转 发路径信息的报文, 以使得所述中间网元对所述报文进行处理。 Step 13: The gateway sends the packet containing the forwarding path information to the intermediate network element according to the forwarding path information, so that the intermediate network element processes the packet.
网关根据所述转发路径信息, 向转发路径信息指示的第一跳中间网元发
送包含有所述转发路径信息的报文。 第一跳中间网元处理网关的报文后, 在 路径信息中删除掉自身地址, 根据转发路径信息的指示向下一跳中间网元转 发修改后的报文。 中间网元依次处理接收到的报文, 每个中间网元在处理报 文后, 在转发路径信息中删除掉自身地址, 将修改后的报文转发给转发路径 信息中的下一跳中间网元, 直至转发路径信息中最后一跳中间网元收到该报 文。 The gateway sends the first hop intermediate network element indicated by the forwarding path information according to the forwarding path information. Send a packet containing the forwarding path information. After processing the packet of the gateway, the first-hop intermediate network element deletes its own address in the path information, and forwards the modified packet to the intermediate network element in the next hop according to the indication of the forwarding path information. The intermediate network element processes the received packet in turn, and each intermediate network element deletes its own address in the forwarding path information after processing the packet, and forwards the modified packet to the next hop intermediate network in the forwarding path information. The element receives the message until the last hop intermediate network element in the forwarding path information.
报文是来自用户设备的上行报文时, 最后一跳中间网元收到该业务上行 报文后, 继续向业务服务器转发。 因此, 对于签约用户的同一上行报文, 网 关只需要处理一次。 When the packet is an upstream packet from the user equipment, the last hop intermediate network element continues to forward the packet to the service server after receiving the uplink packet of the service. Therefore, for the same upstream packet of the subscriber, the gateway only needs to process it once.
如果报文是来自业务服务器的下行报文时, 由于用户签约信息由网关获 取, 并且网关是下行报文通往用户设备的必经网元, 经过中间网元处理后的 下行报文, 必须通过网关转发到用户设备。 因此转发路径信息中最后一跳设 备的地址需要设定为网关的地址。 当最后一个中间网元收到该下行报文后根 据转发路径信息的指示将该报文转发给网关, 由网关将该报文发送给签约用 户的用户设备。 因此, 对于签约用户的同一下行报文, 网关只需要处理两次。 If the packet is a downlink packet from the service server, the user subscription information is obtained by the gateway, and the gateway is a necessary network element for the downlink packet to the user equipment. The downlink packet processed by the intermediate network element must pass the downlink packet. The gateway forwards to the user device. Therefore, the address of the last hop device in the forwarding path information needs to be set to the address of the gateway. After receiving the downlink packet, the last intermediate network element forwards the packet to the gateway according to the indication of the forwarding path information, and the gateway sends the packet to the user equipment of the subscriber. Therefore, for the same downlink message of the subscriber, the gateway only needs to process twice.
本发明实施例网关接收到报文后, 对于签约用户的报文, 获取依次到达 该用户的所有签约业务对应的各中间网元的转发路径信息, 并将该转发路径 信息携带在报文中发送给转发路径信息指示的第一跳中间网元。 报文中包括 该报文将要依次到达该用户的所有签约业务对应的各中间网元的转发路径信 息, 因此该报文可流经该用户的所有签约业务对应的所有中间网元。 网关接 收到的报文是上行报文时, 最后一跳中间网元收到该报文后, 将该报文发送 给提供业务服务的业务服务器, 或者与业务服务器连接的路由器。 因此, 对 于签约用户的上行报文, 网关只需要处理一次。 网关接收到的报文是下行报 文时, 最后一跳中间网元收到该报文后, 根据转发路径信息的指示将该报文 转发给网关, 由网关将该报文发送给签约用户的用户设备。 因此, 对于签约 用户的下行报文, 网关只需要处理两次。 因此, 网关不需要对签约用户的同
一个报文进行多次处理, 提高了网关的性能。 另外, 由于网关只将属于签约 用户的报文转发给中间网元处理, 可避免所有用户的报文都通过中间网元, 减轻了中间网元的负荷。 In the embodiment of the present invention, after receiving the packet, the gateway obtains the forwarding path information of each intermediate network element corresponding to all the subscription services of the user, and sends the forwarding path information in the packet. The first hop intermediate network element indicated by the forwarding path information. The packet includes the forwarding path information of the intermediate network element corresponding to all the subscription services of the user, and the packet can flow through all the intermediate network elements corresponding to all the subscription services of the user. When the packet received by the gateway is an uplink packet, the last hop intermediate network element receives the packet, and then sends the packet to the service server that provides the service service or the router that is connected to the service server. Therefore, for the uplink message of the subscriber, the gateway only needs to process once. When the packet received by the gateway is a downlink packet, the last hop intermediate network element receives the packet, and then forwards the packet to the gateway according to the indication of the forwarding path information, and the gateway sends the packet to the subscriber. User equipment. Therefore, for the downlink message of the subscriber, the gateway only needs to process twice. Therefore, the gateway does not need to be the same for the signing user. A message is processed multiple times to improve the performance of the gateway. In addition, since the gateway forwards only the packets belonging to the subscribers to the intermediate network element, the packets of all users can be prevented from passing through the intermediate network elements, which reduces the load on the intermediate network elements.
图 2为本发明实施例提供的一种网关获取业务转发策略的方法流程图。 如图 2所示, 在步骤 11之前还包括: FIG. 2 is a flowchart of a method for a gateway to obtain a service forwarding policy according to an embodiment of the present invention. As shown in Figure 2, before step 11, it also includes:
步骤 21: 网关接收用户设备发送的包括用户标识的激活请求。 Step 21: The gateway receives an activation request sent by the user equipment, including the user identifier.
步骤 22 : 网关向策略和计费规则功能实体 (Policy Charging Rules Function, 简称 PCRF )发送包括用户标识的策略申请请求。 Step 22: The gateway sends a policy request request including a user identifier to a Policy Charging Rules Function (PCRF).
步骤 23: 网关接收 PCRF发送的与用户标识对应的用户签约信息和业务 转发策略。 Step 23: The gateway receives the user subscription information and the service forwarding policy corresponding to the user identifier sent by the PCRF.
PCRF接收到网关的发送的策略申请请求后,根据其中的用户标识获取与 该用户标识对应的用户签约信息, 并确定签约业务对应的所有中间网元的地 址, 形成包括签约业务和该签约业务对应的中间网元的地址信息之间的对应 关系的业务转发策略。网关通过 Gx接口接收 PCRF下发的用户签约信息和业 务转发策略。 After receiving the policy request request sent by the gateway, the PCRF obtains the user subscription information corresponding to the user identifier according to the user identifier, and determines the address of all the intermediate network elements corresponding to the subscription service, and the corresponding information includes the subscription service and the subscription service. The service forwarding policy of the correspondence between the address information of the intermediate network elements. The gateway receives the user subscription information and the service forwarding policy delivered by the PCRF through the Gx interface.
另外, 网关本地也可内置上述用户签约信息和业务转发策略。 如果网关 本地内置有上述业务转发策略时, 网关不需要接收用户设备发送的业务激活 请求, 也不需向 PCRF发送策略申请请求。 In addition, the above-mentioned user subscription information and service forwarding policy may also be built in the gateway local. If the service forwarding policy is built in the gateway, the gateway does not need to receive the service activation request sent by the user equipment, and does not need to send a policy request request to the PCRF.
网关可将用户签约信息保存在如表 1所示的用户签约信息表中, 可将各 业务转发策略保存在如表 2所示的业务转发表中。 如表 1所示, 一个用户可 对应有一个或多个签约业务。 如表 2所示一个签约业务可对应一个中间网元 的地址或多个中间网元的地址。 The gateway can save the user subscription information in the user subscription information table as shown in Table 1. The service forwarding policy can be saved in the service forwarding table as shown in Table 2. As shown in Table 1, a user can have one or more contracted services. As shown in Table 2, a subscription service may correspond to an intermediate network element address or multiple intermediate network element addresses.
表 1为用户签约信息表 Table 1 is the user signing information form.
用户地址 签约业务 User address signing service
用户地址 1 签约业务^ 签约业务 C User Address 1 Contract Business ^ Contract Business C
用户地址 2 签约业务八、 签约业务^ 签约业务 C User address 2 Signing business 8. Signing business ^ Signing business C
用户地址 3 签约业务 A
表 2为业务转发表 User Address 3 Contract Business A Table 2 shows the service forwarding table.
网关可根据报文中用户地址查询上述用户签约信息表, 确定报文所属的 用户是否为签约用户。 网关确定该报文所属的用户为签约用户时, 根据该用 户的所有签约业务在上述业务转发表中, 获取到该用户的所有签约业务对应 的所有中间网元的地址信息。 The gateway can query the user subscription information table according to the user address in the packet to determine whether the user to which the packet belongs is a subscription user. When the gateway determines that the user to which the packet belongs is the subscription user, the gateway obtains the address information of all the intermediate network elements corresponding to all the subscription services of the user in the service forwarding table according to all the subscription services of the user.
图 3A为本发明实施例提供的又一种签约业务处理方法流程图, 图 3B为 本发明实施例提供的又一种签约业务处理方法的应用场景图。 如图 3B所示, GGSN包括三个接口: 与 SGSN ( Service GPRS Support Node, 服务 GPRS支 持节点 )相连的 Gn接口、与 PCRF相连的 Gx接口以及与路由器或其它中间 网元相连的 Gi接口。 用户的签约业务对应的中间网元分别为 Processl、 Process3和 Process5。 中间网元与业务服务器的区别在于: 中间网元处理报文 后继续向其它网元转发报文, 而业务服务器为提供服务的服务器, 不进行报 文转发。 如图 3A所示, 本实施例包括: FIG. 3A is a flowchart of still another method for processing a contract service according to an embodiment of the present invention, and FIG. 3B is a diagram of an application scenario of another method for processing a contract service according to an embodiment of the present invention. As shown in Figure 3B, the GGSN includes three interfaces: a Gn interface connected to the SGSN (Service GPRS Support Node), a Gx interface connected to the PCRF, and a Gi interface connected to the router or other intermediate network element. The intermediate network elements corresponding to the user's subscription service are Processl, Process3, and Process5. The difference between the intermediate network element and the service server is as follows: After the intermediate network element processes the message, it continues to forward the message to other network elements, and the service server is the server that provides the service, and does not forward the message. As shown in FIG. 3A, this embodiment includes:
步骤 1 : GGSN从 Gn接口接收到达业务服务器的上行报文, 上行报文包 括用户标识。 Step 1: The GGSN receives the uplink packet from the Gn interface to the service server, and the uplink packet includes the user identifier.
步骤 2: GGSN对该上行报文进行处理, 并判断该上行报文所属的用户 是否为签约用户。 Step 2: The GGSN processes the uplink packet, and determines whether the user to which the uplink packet belongs is a subscription user.
网关可根据该上行报文中用户地址查询用户签约信息, 在查询到与用户 地址对应的用户签约信息时, 确定该上行报文所属的用户为签约用户; 否贝' J , The gateway can query the user subscription information according to the user address in the uplink packet, and when the user subscription information corresponding to the user address is queried, determine that the user to which the uplink packet belongs is a subscription user;
GGSN确定该上行报文所属的用户不是签约用户, GGSN直接通过 Gi接口转 发给与相应业务服务器直连的路由器。
步骤 3: GGSN确定该上行报文所属的用户为签约用户时, 根据该用户 的所有签约的业务获取该用户的所有签约的业务对应的中间网元的 IP地址, 生成依次到达各中间网元 Processl、Process3和 Process5的转发路径信息并添 加到该上行报文中。 The GGSN determines that the user to which the uplink packet belongs is not a subscription user, and the GGSN directly forwards the GGSN to the router directly connected to the corresponding service server through the Gi interface. Step 3: When the GGSN determines that the user to which the uplink packet belongs is the subscription user, the GGSN obtains the IP address of the intermediate network element corresponding to all the subscribed services of the user according to the services of all the subscribed services of the user, and generates the intermediate network element Processl in sequence. The forwarding path information of Process3 and Process5 is added to the uplink packet.
该上行 文所属的用户的所有签约业务对应的中间网元为 Processl、 The intermediate network element corresponding to all the subscription services of the user to which the uplink belongs is Processl.
Process3 和 Process5。 GGSN 生成的转发路径信息为依次到达中间网元 Processl、 Process3和 Process5的路径信息。 GGSN将转发路径信息添加在 IP 报文头的路由选项中。 Process3 and Process5. The forwarding path information generated by the GGSN is path information that sequentially reaches the intermediate network elements Processl, Process3, and Process5. The GGSN adds the forwarding path information to the routing options of the IP packet header.
步骤 4: GGSN将包括上述转发路径信息的上行报文发送到 Gi接口。 步骤 5: GGSN通过 Gi接口向 Processl发送包括上述转发路径信息的上 行报文。 Step 4: The GGSN sends the uplink packet including the forwarding path information to the Gi interface. Step 5: The GGSN sends the uplink packet including the foregoing forwarding path information to the Process1 through the Gi interface.
步骤 6: Processl处理上行报文后,根据转发路径信息的指示向下一跳中 间网元 Process3转发上行艮文。 Step 6: After processing the uplink packet, Processl forwards the uplink packet to the intermediate network element Process3 according to the indication of the forwarding path information.
Processl 处理上行报文后, 在转发路径信息中删除自身地址, 将上行报 文发送到下一个中间网元 Process3。 After processing the uplink packet, Processl deletes its own address in the forwarding path information and sends the uplink packet to the next intermediate network element Process3.
步骤 7: Process3处理上行报文后,根据转发路径信息的指示向下一跳中 间网元 Process5转发上行艮文。 Step 7: After processing the uplink packet, Process3 forwards the uplink packet to the intermediate network element Process5 according to the indication of the forwarding path information.
Process3 处理上行报文后, 在转发路径信息中删除自身地址, 将上行报 文发送到下一个中间网元 Process5。 After processing the uplink packet, Process3 deletes its own address in the forwarding path information and sends the uplink packet to the next intermediate network element Process5.
步骤 8: Process5处理上行报文后, 向与业务服务器相连的路由器转发上 行报文。 Step 8: After processing the uplink packet, Process 5 forwards the uplink packet to the router connected to the service server.
Process5 处理上行报文后, 在转发路径信息中删除自身地址, 将上行报 文发送到与业务服务器相连的路由器。 After processing the uplink packet, Process5 deletes its own address in the forwarding path information and sends the uplink packet to the router connected to the service server.
本实施例 GGSN确定接收到的上行报文所属的用户不是签约用户时, 直 接通过 Gi接口将该上行报文转发给与业务服务器直连的路由器。在确定接收 到的上行报文所属的用户是签约用户时, GGSN在上行报文中添加转发路径
信息, 并发送给第一跳中间网元。 In this embodiment, when the GGSN determines that the user to which the received uplink packet belongs is not the subscription user, the GGSN directly forwards the uplink packet to the router directly connected to the service server through the Gi interface. When it is determined that the user to which the received uplink packet belongs is a subscription user, the GGSN adds a forwarding path to the uplink packet. The information is sent to the first hop intermediate network element.
图 4A为本发明实施例提供的再一种签约业务处理方法流程图, 图 4B为 本发明实施例提供的再一种签约业务处理方法的应用场景图。 本实施例主要 说明签约业务的下行流量处理方法。 如图 4A所示, 本实施例包括: FIG. 4A is a flowchart of still another method for processing a contracted service according to an embodiment of the present invention, and FIG. 4B is a schematic diagram of an application scenario of a method for processing a contracted service according to an embodiment of the present invention. This embodiment mainly describes the downlink traffic processing method of the contracted service. As shown in FIG. 4A, this embodiment includes:
步骤 1: GGSN从 Gi接口接收包括用户标识的下行报文。 Step 1: The GGSN receives the downlink packet including the user identifier from the Gi interface.
步骤 2: GGSN判断该下行报文所属的用户是否为签约用户。 Step 2: The GGSN determines whether the user to which the downlink message belongs is a subscription user.
GGSN确定该下行报文所属的用户不是签约用户时, 直接执行步骤 9:对 该下行报文进行内部处理, 之后通过 Gn接口转发给用户设备。 When the GGSN determines that the user to which the downlink packet belongs is not the subscription user, the GGSN directly performs step 9: internal processing the downlink packet, and then forwards the downlink packet to the user equipment through the Gn interface.
步骤 3: GGSN确定该下行报文所属的用户是签约用户时, 根据该用户 的所有签约的业务,获取该用户的所有签约的业务对应的中间网元的 IP地址, 生成依次到达各中间网元 Process5、 Process3和 Processl 以及 GGSN的转发 路径信息并添加到下行报文中。 Step 3: When the GGSN determines that the user to which the downlink message belongs is a subscription user, the GGSN obtains the IP address of the intermediate network element corresponding to all the subscribed services of the user according to the services of all the subscriptions of the user, and generates the intermediate network element sequentially. The forwarding path information of Process5, Process3, Processl, and GGSN is added to the downlink packet.
该下行 文所属的用户的所有签约业务对应的中间网元为 Processl、 Process3和 Process5。 GGSN生成依次到达各中间网元 Process5、 Process3和 Processl以及 GGSN的转发路径信息。 上述转发路径信息中最后一跳设备的 地址为 GGSN的 IP地址。 The intermediate network elements corresponding to all the contracted services of the user to which the downlink belongs are Processl, Process3, and Process5. The GGSN generates forwarding path information that sequentially reaches the intermediate network elements Process5, Process3, and Processl, and the GGSN. The address of the last hop device in the above forwarding path information is the IP address of the GGSN.
步骤 4: GGSN将包括上述转发路径信息的下行报文发送到 Gi接口。 步骤 5: GGSN通过 Gi接口向 Process5发送包括上述转发路径信息的下 行报文。 Step 4: The GGSN sends the downlink packet including the forwarding path information to the Gi interface. Step 5: The GGSN sends the downlink packet including the foregoing forwarding path information to the Process 5 through the Gi interface.
步骤 6: Process5处理上行报文后,根据转发路径信息的指示向下一跳中 间网元 Process3转发下行艮文。 Step 6: After processing the uplink packet, Process5 forwards the downlink message to the next hop intermediate cell Process3 according to the indication of the forwarding path information.
Process5 处理下行报文后, 在转发路径信息中删除自身地址, 将下行报 文发送到下一个中间网元 Process3。 After processing the downlink packet, Process5 deletes its own address in the forwarding path information and sends the downlink packet to the next intermediate network element Process3.
步骤 7: Process3处理上行报文后,根据转发路径信息的指示向下一跳中 间网元 Process 1转发下行艮文。 Step 7: After processing the uplink packet, Process3 forwards the downlink message to the next hop intermediate cell Process 1 according to the indication of the forwarding path information.
Process3 处理下行报文后, 在转发路径信息中删除自身地址, 将下行报
文发送到下一个中间网元 Process 1。 After processing the downlink packet, Process3 deletes its own address in the forwarding path information. The text is sent to the next intermediate network element Process 1.
步骤 8: Process 1 处理上行报文后, 根据转发路径信息的指示向 GGSN 转发该下行报文。 Step 8: After processing the uplink packet, Process 1 forwards the downlink packet to the GGSN according to the indication of the forwarding path information.
Process 1 处理下行报文后, 在转发路径信息中删除自身地址, 将下行报 文发送到下一个中间网元 GGSN。 After processing the downlink packet, Process 1 deletes its own address in the forwarding path information and sends the downlink packet to the next intermediate network element GGSN.
步骤 9: GGSN对该下行报文进行内部处理。 Step 9: The GGSN performs internal processing on the downlink packet.
步骤 10: GGSN将该下行报文发送到 Gn接口。 Step 10: The GGSN sends the downlink packet to the Gn interface.
步骤 11 : GGSN通过 Gn接口向 SGGN转发该下行报文。 Step 11: The GGSN forwards the downlink packet to the SGGN through the Gn interface.
本实施例 GGSN确定接收到的下行报文所属的用户不是签约用户时, 直 接通过 Gi接口将该上行报文转发给用户设备。在确定接收到的下行报文所属 的用户是签约用户时, GGSN在下行报文中添加转发路径信息, 并发送给第 一跳中间网元。 在接收到最后一个中间网元发送的下行报文时, GGSN对下 行报文处理后直接通过 Gn接口转发给 SGGN。 In this embodiment, when the GGSN determines that the user to which the received downlink message belongs is not the subscription user, the GGSN forwards the uplink packet to the user equipment through the Gi interface. When it is determined that the user to which the received downlink message belongs is a subscription user, the GGSN adds the forwarding path information to the downlink packet and sends the information to the first hop intermediate network element. Upon receiving the downlink packet sent by the last intermediate network element, the GGSN forwards the packet to the SGGN through the Gn interface.
图 5为本发明实施例提供的一种网关结构示意图。 如图 5所示, 本实施 例包括: 报文接收模块 51、 路径信息获取模块 52和报文发送模块 53。 FIG. 5 is a schematic structural diagram of a gateway according to an embodiment of the present invention. As shown in FIG. 5, the embodiment includes: a message receiving module 51, a path information acquiring module 52, and a message sending module 53.
报文接收模块 51 , 用于接收发送的报文。 The message receiving module 51 is configured to receive the sent message.
路径信息获取模块 52 , 用于确定报文接收模块 51接收到的报文所属的 用户为签约用户时, 根据所述用户的签约信息, 获取所述报文的转发路径信 息, 所述转发路径信息包括所述报文将要依次到达的所有中间网元的路径信 息。 The path information obtaining module 52 is configured to: when determining that the user to which the message received by the message receiving module 51 belongs is a subscription user, obtain the forwarding path information of the packet according to the subscription information of the user, and the forwarding path information The path information of all intermediate network elements that the message will arrive in sequence is included.
报文发送模块 53 , 用于根据路径信息获取模块 52获取到的转发路径信 息, 向所述中间网元发送包含有所述转发路径信息的报文, 以使得所述中间 网元对所述报文进行处理。 The message sending module 53 is configured to send, according to the forwarding path information acquired by the path information acquiring module 52, the packet containing the forwarding path information to the intermediate network element, so that the intermediate network element pairs the report The text is processed.
如图 6所示, 路径信息获取模块 52包括: 确定单元 521、 获取单元 522 和生成单元 523。 As shown in FIG. 6, the path information obtaining module 52 includes: a determining unit 521, an obtaining unit 522, and a generating unit 523.
确定单元 521 , 用于确定所述报文所属的用户为签约用户时, 根据所述
报文中的用户地址, 确定所述用户签约的业务。 a determining unit 521, configured to determine, when the user to which the message belongs is a subscription user, according to the The user address in the packet determines the service that the user subscribes to.
获取单元 522 , 用于确定单元 521确定所述用户签约的业务时, 根据所 述用户所有签约的业务, 获取所述用户的所有签约的业务对应的所有中间网 元的地址信息。 The obtaining unit 522 is configured to: when the determining unit 521 determines the service that the user subscribes to, obtain the address information of all the intermediate network elements corresponding to all the subscribed services of the user according to the services that are all signed by the user.
生成单元 523 , 用于根据获取单元 522获取的各中间网元的地址信息, 生成包含所述所有中间网元地址信息的转发路径信息。 The generating unit 523 is configured to generate forwarding path information including all the intermediate network element address information according to the address information of each intermediate network element acquired by the obtaining unit 522.
进一步, 报文发送模块 53 , 还用于向所述中间网元发送包含有所述转发 路径信息的报文之前, 将所述转发路径信息添加在所述报文的 IP报文头的路 由选项中。 Further, the message sending module 53 is further configured to add the forwarding path information to the routing option of the IP packet header of the packet before sending the packet containing the forwarding path information to the intermediate network element. in.
进一步, 报文接收模块 51 , 还用于在所述报文为下行报文时, 接收所述 转发路径信息中最后一跳中间网元发送的下行报文;所述报文为下行报文时, 所述转发路径信息的最后一跳地址信息为所述网关自身的地址。 报文发送模 块 53 , 用于向所述用户的用户设备转发报文接收模块 51接收到的最后一跳 中间网元发送的下行报文。 Further, the message receiving module 51 is further configured to: when the packet is a downlink packet, receive a downlink packet sent by the last hop intermediate network element in the forwarding path information; when the packet is a downlink packet The last hop address information of the forwarding path information is an address of the gateway itself. The message sending module 53 is configured to forward, to the user equipment of the user, a downlink packet sent by the last hop intermediate network element received by the message receiving module 51.
本发明实施例, 网关中报文接收模块 51接收到报文后, 路径信息获取模 块 52确定报文所属的用户为签约用户时, 报文所属的用户为签约用户时, 根 据所述用户的签约信息, 获取所述报文的转发路径信息, 报文发送模块 53将 该转发路径信息携带在报文中转发给中间网元。 报文中包括依次到达签约业 务对应的各中间网元的路径信息, 因此该报文可流经与其承载的业务对应的 所有中间网元。 网关接收到的报文是上行报文时, 最后一跳中间网元收到该 报文后, 将该报文发送给提供业务服务的业务服务器。 因此, 对于上行报文, 网关只需要处理一次。 网关接收到的报文是下行报文时, 最后一跳中间网元 收到该报文后, 根据路径信息的指示将该报文转发给网关, 由网关将该报文 发送给用户设备。 因此, 对于下行报文, 网关只需要处理两次。 因此, 网关 不需要对同一个报文进行多次处理, 提高了网关的性能。 另外, 由于网关只 将属于签约用户的报文转发给中间网元处理, 可避免所有用户的报文都通过
中间网元, 减轻了中间网元的负荷。 In the embodiment of the present invention, after the message receiving module 51 in the gateway receives the message, the path information obtaining module 52 determines that the user to which the message belongs is the signing user, and when the user to which the message belongs is the signing user, according to the signing of the user The information is obtained, and the forwarding path information of the packet is obtained, and the packet sending module 53 carries the forwarding path information in the packet and forwards the packet to the intermediate network element. The packet includes the path information of each intermediate network element corresponding to the subscription service, so that the message can flow through all the intermediate network elements corresponding to the service carried by the service. When the packet received by the gateway is an uplink packet, the last hop intermediate network element receives the packet and sends the packet to the service server that provides the service. Therefore, for upstream packets, the gateway only needs to be processed once. When the packet received by the gateway is a downlink packet, the last hop intermediate network element receives the packet, and then forwards the packet to the gateway according to the path information, and the gateway sends the packet to the user equipment. Therefore, for downstream packets, the gateway only needs to be processed twice. Therefore, the gateway does not need to process the same packet multiple times, which improves the performance of the gateway. In addition, since the gateway only forwards the packets belonging to the subscribers to the intermediate network element, the packets of all users can be avoided. The intermediate network element reduces the load on the intermediate network element.
图 7为本发明实施例提供的又一种网关结构示意图。 如图 7所示, 在图 5的基础上还包括: 激活请求接收模块 54、 策略请求模块 55和策略接收模块 56。 FIG. 7 is a schematic structural diagram of still another gateway according to an embodiment of the present invention. As shown in FIG. 7, further comprising: an activation request receiving module 54, a policy requesting module 55, and a policy receiving module 56.
激活请求接收模块 54 , 用于接收用户设备发送的包括用户标识的业务激 活清求。 The activation request receiving module 54 is configured to receive a service activation request including a user identifier sent by the user equipment.
策略请求模块 55 , 用于在激活请求接收模块 54接收到业务激活请求后, 向 PCRF发送包括用户标识的策略申请请求。 The policy requesting module 55 is configured to send a policy request request including a user identifier to the PCRF after the activation request receiving module 54 receives the service activation request.
激活请求接收模块 54, 还用于接收 PCRF发送的与用户标识对应的用户 签约信息和业务转发策略。 The activation request receiving module 54 is further configured to receive the user subscription information and the service forwarding policy corresponding to the user identifier sent by the PCRF.
策略接收模块 56, 用于接收策略和计费规则功能实体发送的与所述用户 标识对应的用户签约信息和业务转发策略。 The policy receiving module 56 is configured to receive user subscription information and a service forwarding policy corresponding to the user identifier sent by the policy and charging rule function entity.
路径信息获取模块 52根据策略接收模块 56保存的用户签约信息, 确定 报文接收模块 51接收到的报文所属的用户为签约用户时,根据策略接收模块 56保存的报文所承载的业务对应的业务转发策略, 获取依次到达所述业务对 应的各中间网元的转发路径信息。 The path information obtaining module 52 determines, according to the user subscription information saved by the policy receiving module 56, the service corresponding to the service carried by the message stored by the policy receiving module 56, when the user to which the message received by the message receiving module 51 belongs is a subscription user. The service forwarding policy obtains forwarding path information of each intermediate network element corresponding to the service.
通过上述各模块对用户设备的业务激活请求和 PCRF下发信息的处理, 网关保存有用户签约信息和业务转发策略。 从而网关接收到报文后, 可根据 该报文中用户地址查询本地保存的用户签约信息, 确定该报文所属的用户为 签约用户。 网关确定该报文所属的用户为签约用户时, 获取该用户的业务转 发策略, 从而获取到与该用户的所有签约业务对应的所有中间网元的地址。 The gateway saves the user subscription information and the service forwarding policy by processing the service activation request of the user equipment and the information sent by the PCRF. After receiving the packet, the gateway can query the locally saved user subscription information according to the user address in the packet, and determine that the user to which the packet belongs is the subscription user. When the gateway determines that the user to which the packet belongs is the subscription user, the service forwarding policy of the user is obtained, so that the addresses of all the intermediate network elements corresponding to all the subscription services of the user are obtained.
图 8为本发明实施例提供的一种签约业务处理系统结构示意图。 如图 8 所示, 本实施例包括: 网关 81和多个中间网元 82。 FIG. 8 is a schematic structural diagram of a subscription service processing system according to an embodiment of the present invention. As shown in FIG. 8, the embodiment includes: a gateway 81 and a plurality of intermediate network elements 82.
所述网关 81 ,用于接收报文后,确定所述报文所属的用户为签约用户时, 根据所述用户的签约信息, 获取所述报文的转发路径信息; 根据所述转发路 径信息向所述中间网元发送包含有所述转发路径信息的报文; 所述转发路径
信息包括所述报文将要依次到达的所有中间网元的路径信息; The gateway 81 is configured to: after receiving the packet, determine, according to the subscription information of the user, the forwarding path information of the packet according to the subscription information of the user, and determine, according to the forwarding path information, Transmitting, by the intermediate network element, a packet that includes the forwarding path information; The information includes path information of all intermediate network elements that the message will arrive in sequence;
所述中间网元 82, 用于处理所述报文后, 在所述转发路径信息中删除自 身地址, 向所述转发路径信息指示的下一跳中间网元发送包括有所述转发路 径信息的报文, 直至所述转发路径信息中所有中间网元处理完毕。 The intermediate network element 82 is configured to: after the packet is processed, delete the self address in the forwarding path information, and send the forwarding path information including the forwarding path information to the next hop intermediate network element indicated by the forwarding path information. The packet is processed until all intermediate network elements in the forwarding path information are processed.
进一步, 在所述报文为上行报文时: Further, when the packet is an uplink packet:
转发路径所指示的最后一跳中间网元, 用于在所述报文为上行报文时, 将所述上行报文发送给与业务服务器相连的路由器。 The last hop intermediate network element indicated by the forwarding path is configured to send the uplink packet to the router connected to the service server when the packet is an uplink packet.
进一步, 所述报文为下行报文时: Further, when the packet is a downlink packet:
所述网关 81 , 还用于若所述报文为下行报文, 将所述转发路径信息的最 后一跳地址信息设定为所述网关自身的地址; The gateway 81 is further configured to: if the packet is a downlink packet, set a last hop address information of the forwarding path information as an address of the gateway itself;
所述转发路径信息所指示的最后一跳中间网元, 用于在所述报文为下行 报文时, 根据所述转发路径所指示向所述网关发送下行报文; The last hop intermediate network element indicated by the forwarding path information is configured to send a downlink packet to the gateway according to the forwarding path when the packet is a downlink packet;
所述网关 81 , 还用于接收所述转发路径信息所指示的最后一跳中间网元 返回的下行报文, 向所述用户的用户设备发送所述下行报文。 The gateway 81 is further configured to receive the downlink packet returned by the last hop intermediate network element indicated by the forwarding path information, and send the downlink packet to the user equipment of the user.
上述网关 81可为图 5、 图 6或图 7中所述的网关。 The gateway 81 described above may be the gateway described in Figure 5, Figure 6, or Figure 7.
对于上行报文, 网关只需要处理一次。 网关接收到的报文是下行报文时, 最后一跳中间网元收到该报文后,根据路径信息的指示将该报文转发给网关, 由网关将该报文发送给用户设备。 因此, 对于下行报文, 网关只需要处理两 次。 因此, 网关不需要对同一个报文进行多次处理, 提高了网关的性能。 另 夕卜, 由于网关只将属于签约用户的报文转发给中间网元处理, 可避免所有用 户的^艮文都通过中间网元, 减轻了中间网元的负荷。 For upstream packets, the gateway only needs to be processed once. When the packet received by the gateway is a downlink packet, the last hop intermediate network element receives the packet, and then forwards the packet to the gateway according to the path information, and the gateway sends the packet to the user equipment. Therefore, for downstream packets, the gateway only needs to be processed twice. Therefore, the gateway does not need to process the same packet multiple times, which improves the performance of the gateway. In addition, since the gateway forwards only the packets belonging to the subscriber to the intermediate network element, the user can prevent all users from passing through the intermediate network element, which reduces the load on the intermediate network element.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM, RAM, 磁碟或者光盘等各种可以存储程序代码的介
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。
A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store various program codes. It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1、 一种签约业务处理方法, 其特征在于, 包括: A method for processing a contracted service, characterized in that it comprises:
网关接收报文; The gateway receives the message;
所述网关确定所述报文所属的用户为签约用户时, 根据所述用户的签约 信息, 获取所述报文的转发路径信息, 所述转发路径信息包括所述报文将要 依次到达的所有中间网元的路径信息; When the gateway determines that the user to which the packet belongs is a subscription user, the gateway obtains the forwarding path information of the packet according to the subscription information of the user, where the forwarding path information includes all the intermediates that the packet will arrive in sequence. Path information of the network element;
根据所述转发路径信息向所述中间网元发送包含有所述转发路径信息的 报文, 以使得所述中间网元对所述报文进行处理。 Sending, by the forwarding path information, the packet including the forwarding path information to the intermediate network element, so that the intermediate network element processes the packet.
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述用户的签约 信息, 获取所述报文的转发路径信息, 包括: The method according to claim 1, wherein the obtaining the forwarding path information of the packet according to the subscription information of the user includes:
根据所述报文中的用户地址, 确定所述用户签约的业务; Determining, according to the user address in the packet, the service subscribed by the user;
根据所述用户签约的业务, 获取所述用户的所有签约的业务对应的所有 中间网元的地址信息; Obtaining address information of all intermediate network elements corresponding to all the subscribed services of the user according to the service subscribed by the user;
生成包含所述所有中间网元地址信息的转发路径信息。 Transmitting forwarding path information including all the intermediate network element address information.
3、 根据权利要求 2所述的方法, 其特征在于, 所述方法还包括: 所述网关接收所述用户设备发送的包括用户标识的激活请求; The method according to claim 2, wherein the method further comprises: receiving, by the gateway, an activation request that is sent by the user equipment, including a user identifier;
所述网关向策略和计费规则功能实体发送包括所述用户标识的策略申请 请求; Transmitting, by the gateway, a policy request request including the user identifier to a policy and charging rule function entity;
所述网关接收所述策略和计费规则功能实体发送的与所述用户标识对应 的用户签约信息和业务转发策略, 所述业务转发策略包括所述用户的签约业 务与该签约业务对应的中间网元的地址信息。 The gateway receives the user subscription information and the service forwarding policy corresponding to the user identifier sent by the policy and the charging rule function entity, where the service forwarding policy includes an intermediate network corresponding to the subscription service of the user and the subscription service. Meta address information.
4、 根据权利要求 1-3任一项所述的方法, 其特征在于, 在向所述中间网 元发送包含有所述转发路径信息的报文之前, 还包括: The method according to any one of claims 1-3, further comprising: before transmitting the packet containing the forwarding path information to the intermediate network element, further comprising:
所述网关将所述转发路径信息添加在所述报文的 IP报文头的路由选项 中。 The gateway adds the forwarding path information to a routing option of an IP packet header of the packet.
5、 根据权利要求 1-4任一项所述的方法, 其特征在于, 所述向所述中间 网元发送包含有所述转发路径信息的报文, 包括: The method according to any one of claims 1 to 4, wherein the The network element sends the packet that includes the forwarding path information, including:
向所述转发路径信息指示的第一跳中间网元发送包括有所述转发路径信 息的报文; Transmitting, to the first hop intermediate network element indicated by the forwarding path information, a packet including the forwarding path information;
所述第一跳中间网元处理所述报文后, 在所述转发路径信息中删除自身 地址, 向所述转发路径信息指示的下一跳中间网元发送包括有所述转发路径 信息的报文, 直至所有中间网元处理完毕。 After processing the packet, the first hop intermediate network element deletes the self address in the forwarding path information, and sends a report including the forwarding path information to the next hop intermediate network element indicated by the forwarding path information. Text, until all intermediate network elements have been processed.
6、 根据权利要求 1所述的方法, 其特征在于, 若所述报文为上行报文, 所述转发路径所指示的最后一跳中间网元直接发送所述上行报文到与业务服 务器相连的路由器。 The method according to claim 1, wherein, if the packet is an uplink packet, the last hop intermediate network element indicated by the forwarding path directly sends the uplink packet to be connected to the service server. Router.
7、 根据权利要求 1所述的方法, 其特征在于, 若所述报文为下行报文, 所述方法还包括: The method according to claim 1, wherein, if the packet is a downlink packet, the method further includes:
将所述转发路径信息的最后一跳地址信息设定为所述网关自身的地址。 The last hop address information of the forwarding path information is set as the address of the gateway itself.
8、 根据权利要求 7所述的方法, 其特征在于, 所述方法还包括: 接收所述转发路径所指示的最后一跳中间网元返回的下行报文, 向所述 用户的用户设备发送所述下行报文。 The method according to claim 7, wherein the method further comprises: receiving a downlink packet returned by the last hop intermediate network element indicated by the forwarding path, and transmitting the downlink packet to the user equipment of the user Describe the downlink message.
9、 一种网关, 其特征在于, 包括: 9. A gateway, comprising:
报文接收模块, 用于接收报文; a message receiving module, configured to receive a message;
路径信息获取模块, 用于确定所述报文所属的用户为签约用户时, 根据 所述用户的签约信息, 获取所述报文的转发路径信息, 所述转发路径信息包 括所述报文将要依次到达的所有中间网元的路径信息; The path information obtaining module is configured to: when the user to which the packet belongs is a subscription user, obtain the forwarding path information of the packet according to the subscription information of the user, where the forwarding path information includes the packet to be sequentially Path information of all intermediate network elements that arrive;
报文发送模块, 用于根据所述转发路径信息向所述中间网元发送包含有 所述转发路径信息的报文, 以使得所述中间网元对所述报文进行处理。 And a packet sending module, configured to send, according to the forwarding path information, a packet that includes the forwarding path information to the intermediate network element, so that the intermediate network element processes the packet.
10、 根据权利要求 9所述的网关, 其特征在于, 所述路径信息获取模块 包括: 10. The gateway according to claim 9, wherein the path information acquiring module comprises:
确定单元, 用于确定所述报文所属的用户为签约用户时, 根据所述报文 中的用户地址, 确定所述用户签约的业务; 获取单元, 用于根据所述用户所有签约的业务, 获取所述用户的所有签 约的业务对应的所有中间网元的地址信息; a determining unit, configured to determine, according to a user address in the packet, a service that the user subscribes to when the user to which the packet belongs is a subscription user; An obtaining unit, configured to obtain address information of all intermediate network elements corresponding to all the subscribed services of the user according to the services that are all signed by the user;
生成单元, 用于生成包含所述所有中间网元地址信息的转发路径信息。 And a generating unit, configured to generate forwarding path information including all the intermediate network element address information.
11、 根据权利要求 9所述的网关, 其特征在于: 11. The gateway of claim 9 wherein:
所述报文接收模块, 还用于在所述报文为下行报文时, 接收所述转发路 径信息中最后一跳中间网元发送的下行报文; 所述报文为下行报文时, 所述 转发路径信息的最后一跳地址信息为所述网关自身的地址; The packet receiving module is further configured to: when the packet is a downlink packet, receive the downlink packet sent by the last hop intermediate network element in the forwarding path information; when the packet is a downlink packet, The last hop address information of the forwarding path information is an address of the gateway itself;
所述报文发送模块, 还用于向所述用户的用户设备转发所述最后一跳中 间网元发送的下行报文。 The packet sending module is further configured to forward the downlink packet sent by the last hop intermediate network element to the user equipment of the user.
12、 根据权利要求 9所述的网关, 其特征在于, 还包括: 所述报文发送 模块, 还用于向所述中间网元发送包含有所述转发路径信息的报文之前, 将 所述转发路径信息添加在所述报文的 IP报文头的路由选项中。 The gateway according to claim 9, further comprising: the message sending module, further configured to: before sending the message including the forwarding path information to the intermediate network element, The forwarding path information is added in the routing option of the IP packet header of the packet.
13、 根据权利要求 9-12任一项所述的网关, 其特征在于, 还包括: 激活请求接收模块,用于接收用户设备发送的包括用户标识的激活请求; 策略请求模块, 用于向策略和计费规则功能实体发送包括所述用户标识 的策略申请请求; The gateway according to any one of claims 9 to 12, further comprising: an activation request receiving module, configured to receive an activation request including a user identifier sent by the user equipment; and a policy requesting module, configured to use the policy And the charging rule function entity sends a policy request request including the user identifier;
策略接收模块, 用于接收策略和计费规则功能实体发送的与所述用户标 识对应的用户签约信息和业务转发策略。 The policy receiving module is configured to receive user subscription information and a service forwarding policy corresponding to the user identifier sent by the policy and charging rule function entity.
14、 一种签约业务处理系统, 其特征在于, 包括: 网关和多个中间网元; 所述网关, 用于接收报文后, 确定所述报文所属的用户为签约用户时, 根据所述用户的签约信息, 获取所述报文的转发路径信息; 根据所述转发路 径信息向所述中间网元发送包含有所述转发路径信息的报文; 所述转发路径 信息包括所述报文将要依次到达的所有中间网元的路径信息; A subscription service processing system, comprising: a gateway and a plurality of intermediate network elements; and the gateway, after receiving the message, determining that the user to which the message belongs is a subscription user, according to the The user's subscription information, the forwarding path information of the packet is obtained, and the packet containing the forwarding path information is sent to the intermediate network element according to the forwarding path information; the forwarding path information includes that the packet is to be sent Path information of all intermediate network elements that arrive in sequence;
所述中间网元, 用于处理所述报文后, 在所述转发路径信息中删除自身 地址, 向所述转发路径信息指示的下一跳中间网元发送包括有所述转发路径 信息的报文, 直至所述转发路径信息中所有中间网元处理完毕。 The intermediate network element, after processing the packet, deletes a self address in the forwarding path information, and sends a report including the forwarding path information to the next hop intermediate network element indicated by the forwarding path information. For example, all the intermediate network elements in the forwarding path information are processed.
15、 根据权利要求 14所述系统, 其特征在于, 所述转发路径所指示的最 后一跳中间网元, 用于在所述报文为上行报文时, 将所述上行报文发送给与 业务服务器相连的路由器。 The system according to claim 14, wherein the last hop intermediate network element indicated by the forwarding path is configured to send the uplink packet to the uplink packet when the packet is an uplink packet. A router connected to a business server.
16、 根据权利要求 14所述系统, 其特征在于: 16. The system of claim 14 wherein:
所述网关, 还用于若所述报文为下行报文, 将所述转发路径信息的最后 一跳地址信息设定为所述网关自身的地址; The gateway is further configured to: if the packet is a downlink packet, set a last hop address information of the forwarding path information as an address of the gateway itself;
所述转发路径信息所指示的最后一跳中间网元, 用于在所述报文为下行 报文时, 根据所述转发路径所指示向所述网关发送下行报文; The last hop intermediate network element indicated by the forwarding path information is configured to send a downlink packet to the gateway according to the forwarding path when the packet is a downlink packet;
所述网关, 还用于接收所述转发路径信息所指示的最后一跳中间网元返 回的下行报文, 向所述用户的用户设备发送所述下行报文。 The gateway is further configured to receive the downlink packet returned by the last hop intermediate network element indicated by the forwarding path information, and send the downlink packet to the user equipment of the user.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201180000878.XA CN102265567B (en) | 2011-05-30 | 2011-05-30 | Subscription service processing method, gateway and system |
PCT/CN2011/074904 WO2011144123A2 (en) | 2011-05-30 | 2011-05-30 | Subscription service processing method, gateway and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/074904 WO2011144123A2 (en) | 2011-05-30 | 2011-05-30 | Subscription service processing method, gateway and system |
Publications (2)
Publication Number | Publication Date |
---|---|
WO2011144123A2 true WO2011144123A2 (en) | 2011-11-24 |
WO2011144123A3 WO2011144123A3 (en) | 2012-05-10 |
Family
ID=44992128
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/074904 WO2011144123A2 (en) | 2011-05-30 | 2011-05-30 | Subscription service processing method, gateway and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102265567B (en) |
WO (1) | WO2011144123A2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104202250A (en) * | 2014-08-11 | 2014-12-10 | 乐鑫信息科技(上海)有限公司 | Network address forwarding method based on route information carrying-forwarding |
CN105591967B (en) * | 2014-11-12 | 2019-06-28 | 华为技术有限公司 | A kind of data transmission method and device |
CN111555977B (en) | 2015-10-22 | 2022-01-18 | 华为技术有限公司 | Method, device and system for processing service |
CN109787900B (en) * | 2017-11-15 | 2022-04-19 | 阿里巴巴集团控股有限公司 | Transmission method, device, equipment and machine readable medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030041178A1 (en) * | 2001-03-26 | 2003-02-27 | Lev Brouk | System and method for routing messages between applications |
CN101677319A (en) * | 2008-09-19 | 2010-03-24 | 华为技术有限公司 | Method, apparatus and system for service access on the basis of XMPP protocol |
-
2011
- 2011-05-30 WO PCT/CN2011/074904 patent/WO2011144123A2/en active Application Filing
- 2011-05-30 CN CN201180000878.XA patent/CN102265567B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030041178A1 (en) * | 2001-03-26 | 2003-02-27 | Lev Brouk | System and method for routing messages between applications |
CN101677319A (en) * | 2008-09-19 | 2010-03-24 | 华为技术有限公司 | Method, apparatus and system for service access on the basis of XMPP protocol |
Also Published As
Publication number | Publication date |
---|---|
CN102265567B (en) | 2014-07-30 |
WO2011144123A3 (en) | 2012-05-10 |
CN102265567A (en) | 2011-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9510371B2 (en) | Method and apparatus for controlling service transmission | |
JP5298203B2 (en) | Token-based correlation of control sessions for data session policy and charging control via NAT | |
US8965962B2 (en) | Diameter session audits | |
WO2009094837A1 (en) | A method for selecting a policy and charging rules function server on a non-roaming scene | |
US8498286B2 (en) | Radius gateway on policy charging and rules function (PCRF) for wireline/wireless converged solution | |
US20110320544A1 (en) | Diameter session audits | |
WO2011137644A1 (en) | Method, apparatus and system for accessing service by terminal | |
WO2011097911A1 (en) | Method, device and system for selecting policy and charging rules function entity | |
EP2521385A1 (en) | Policy and charging control method, gateway and mobile terminal thereof | |
WO2011063688A1 (en) | Method and system for selecting policy and charging rules function entity | |
WO2022068619A1 (en) | Method for controlling media stream service transmission, electronic device, user terminal, network node, system, and storage medium | |
WO2011134327A1 (en) | Method and system for determining policy and charging rules function | |
US9961020B2 (en) | Packet forwarding system, device, and method | |
WO2011085614A1 (en) | Method for controlling resources in full service converged network and system therefor | |
WO2009024056A1 (en) | Method, system and device of expanding policy and charging control rule | |
WO2011085621A1 (en) | Method and system for service processing | |
JP2014518022A (en) | Temporary subscription record | |
WO2011144123A2 (en) | Subscription service processing method, gateway and system | |
WO2011144156A1 (en) | Policy control method, apparatus and gateway | |
WO2008092403A1 (en) | A method and system for transmitting multicast information and authorizing multicast service | |
WO2016109970A1 (en) | Network entity and service policy management method | |
KR20170045262A (en) | Methods and apparatuses for flexible mobile steering in cellular networks | |
WO2009056046A1 (en) | A method for session termination | |
WO2011088702A1 (en) | Method and system for controlling resources in full-service convergence network | |
WO2012088995A1 (en) | Service control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 201180000878.X Country of ref document: CN |
|
NENP | Non-entry into the national phase in: |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11783040 Country of ref document: EP Kind code of ref document: A2 |