CN111010745B - Control tunnel processing method and device - Google Patents

Control tunnel processing method and device Download PDF

Info

Publication number
CN111010745B
CN111010745B CN202010010395.9A CN202010010395A CN111010745B CN 111010745 B CN111010745 B CN 111010745B CN 202010010395 A CN202010010395 A CN 202010010395A CN 111010745 B CN111010745 B CN 111010745B
Authority
CN
China
Prior art keywords
tunnel
control tunnel
control
processed
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010010395.9A
Other languages
Chinese (zh)
Other versions
CN111010745A (en
Inventor
李艳华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPtech Information Technology Co Ltd
Original Assignee
Hangzhou DPtech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPtech Information Technology Co Ltd filed Critical Hangzhou DPtech Information Technology Co Ltd
Priority to CN202010010395.9A priority Critical patent/CN111010745B/en
Publication of CN111010745A publication Critical patent/CN111010745A/en
Application granted granted Critical
Publication of CN111010745B publication Critical patent/CN111010745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/22Manipulation of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/32Release of transport tunnels

Abstract

The present specification discloses a method and an apparatus for processing a control tunnel, where after a network device obtains a session creation request message from an interface between an MME and an SGW, the network device parses tunnel identification information carried in the message, queries a to-be-processed control tunnel corresponding to the tunnel identification information in a control tunnel already established by the network device, compares attribute information of the to-be-created control tunnel carried in the message with attribute information of the to-be-processed control tunnel, and processes the to-be-processed control tunnel according to a comparison result. According to the comparison result, when the control tunnel to be processed is the invalid control tunnel in the network equipment, the control tunnel to be processed can be deleted, so that the effect of reducing the invalid control tunnels in the network equipment is achieved, the problem that the same UE corresponds to the invalid control tunnel in the network equipment is solved, the number of the control tunnels in the network equipment is kept in a reasonable range, and the network equipment is guaranteed to normally process signaling messages.

Description

Control tunnel processing method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling tunnel processing.
Background
The 4 th Generation (G) mobile communication network is mainly divided into two parts, namely an access network and a core network, where the access network mainly includes User Equipment (UE) and a base station (evolved node b, eNB), the core network mainly includes network elements such as a Mobility Management Entity (MME), a Serving Gateway (SGW), and a signaling packet transmission interface between the MME and the SGW is an S11 interface. When the UE is attached to the 4G network, the core network allocates a control tunnel for the UE, and the signaling messages can be interacted on the control tunnel. When the UE is attached to the 4G network, the control tunnel can be deleted according to the signaling message for deleting the control tunnel.
Currently, when inquiring the UE internet access information, the network device may be configured to analyze the internet access data of the UE. Specifically, the network device may obtain the signaling message from an interface between the MME and the SGW, analyze the obtained signaling message, and mark the signaling message. When the network device processes the signaling message, the signaling message may be lost due to a large signaling message flow, and particularly when the signaling message for deleting the control tunnel is lost, the same UE may correspond to an invalid control tunnel in the network device. In addition, the network device may pre-establish a preset number of control tunnels, and when the number of control tunnels in the network device exceeds the preset number, the network device may not normally process a part of the signaling messages.
Disclosure of Invention
The embodiments of the present specification provide a method and an apparatus for controlling tunnel processing, so as to partially solve the above problems in the prior art.
The embodiment of the specification adopts the following technical scheme:
the present specification provides a method for controlling tunnel processing, where the method includes:
the network equipment acquires a message from an interface between the MME and the SGW;
determining the type of the message;
if the type of the message is determined to be a session creation request message, analyzing tunnel identification information carried by the message;
inquiring a control tunnel to be processed corresponding to the tunnel identification information in each control tunnel established by the network equipment;
comparing the attribute information of the control tunnel to be created carried in the message with the attribute information of the control tunnel to be processed;
and processing the control tunnel to be processed according to the comparison result, wherein the processing comprises deleting the control tunnel to be processed.
Optionally, the tunnel identification information includes: first Tunnel identification information, where the first Tunnel identification information includes a Tunnel Endpoint Identifier (TEID) and an Internet Protocol (IP) address;
inquiring the control tunnel to be processed corresponding to the tunnel identification information in each control tunnel established by the network equipment, which specifically comprises the following steps:
according to an uplink linked list of the cross linked list, judging whether the TEID of the control tunnel is the same as the TEID in the first tunnel identification information and whether the IP address of the control tunnel is the same as the IP address in the first tunnel identification information aiming at each control tunnel established by the network equipment;
and if the two are the same, taking the control tunnel as the control tunnel to be processed.
Optionally, the attribute information includes: international Mobile Subscriber Identity (IMSI);
according to the comparison result, processing the control tunnel to be processed specifically comprises:
and if the comparison result is that the IMSI of the control tunnel to be created carried in the message is inconsistent with the IMSI of the control tunnel to be processed, deleting the control tunnel to be processed.
Optionally, the tunnel identification information includes: second tunnel identification information, wherein the second tunnel identification information includes a TEID, an IP address, and an IMSI;
inquiring the control tunnel to be processed corresponding to the tunnel identification information in each control tunnel established by the network equipment, which specifically comprises the following steps:
according to an uplink linked list of the cross linked list, judging whether the TEID of the control tunnel is the same as the TEID in the second tunnel identification information and whether the IP address of the control tunnel is the same as the IP address in the second tunnel identification information aiming at each control tunnel established by the network equipment;
if the two are the same, taking the control tunnel as the control tunnel to be processed;
otherwise, judging whether a control tunnel corresponding to the IMSI in the second tunnel identification information exists according to the single linked list, and if the control tunnel corresponding to the IMSI in the second tunnel identification information exists, taking the control tunnel corresponding to the IMSI in the second tunnel identification information as the control tunnel to be processed.
Optionally, the attribute information includes: access Point Name (APN);
according to the comparison result, processing the control tunnel to be processed specifically comprises:
and if the comparison result is that the APN of the control tunnel to be created carried in the message is consistent with the APN of the control tunnel to be processed, deleting the control tunnel to be processed.
Optionally, after deleting the control tunnel to be processed, the method further includes:
creating the control tunnel to be created according to the TEID and the IP address carried in the message;
and adding the created control tunnel information into an uplink linked list and a single linked list of the cross linked list.
Optionally, the method further comprises:
if the type of the message is determined to be a session response message, analyzing the TEID and the IP address of the opposite terminal carried by the message;
according to an uplink linked list of the cross linked list, aiming at each control tunnel established by the network equipment, judging whether the TEID of the control tunnel is the same as the TEID of the opposite end carried by the message, and whether the IP address of the control tunnel is the same as the IP address carried by the message;
if the tunnel information is the same as the control tunnel information, adding the control tunnel information to a downlink linked list of the cross linked list;
otherwise, the message is not processed.
The present specification provides a control tunnel processing apparatus, the apparatus including:
an obtaining module, configured to obtain, by a network device where the apparatus is located, a packet from an interface between an MME and an SGW;
a determining module, configured to determine a type of the packet;
the analysis module is used for analyzing tunnel identification information carried by the message if the type of the message is determined to be a session creation request message;
the query module is used for querying the control tunnel to be processed corresponding to the tunnel identification information in each control tunnel established by the network equipment;
the comparison module is used for comparing the attribute information of the control tunnel to be created carried in the message with the attribute information of the control tunnel to be processed;
and the processing module is used for processing the control tunnel to be processed according to the comparison result, wherein the processing comprises deleting the control tunnel to be processed.
The present specification provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described control tunnel processing method.
The present specification provides a network device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the above control tunnel processing method.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
after acquiring a session creation request message from an interface between an MME and an SGW, the network equipment analyzes tunnel identification information carried by the message, queries a to-be-processed control tunnel corresponding to the tunnel identification information in a control tunnel established by the network equipment, compares attribute information of the to-be-created control tunnel carried by the message with attribute information of the to-be-processed control tunnel, and processes the to-be-processed control tunnel according to a comparison result. According to the comparison result, when the control tunnel to be processed is the invalid control tunnel in the network equipment, the control tunnel to be processed can be deleted, so that the effect of reducing the invalid control tunnels in the network equipment is achieved, the problem that the same UE corresponds to the invalid control tunnel in the network equipment is solved, the number of the control tunnels in the network equipment is kept in a reasonable range, and the network equipment is guaranteed to normally process signaling messages.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification and are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description serve to explain the specification and not to limit the specification in a non-limiting sense. In the drawings:
fig. 1 is a flowchart of a method for controlling a tunnel according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a location of a network device in a 4G network architecture according to an embodiment of the present disclosure;
fig. 3a is a flowchart of a method for processing a control tunnel related to creating a session request packet according to an embodiment of the present disclosure;
fig. 3b is a flowchart of a method for processing a control tunnel related to creating a session response packet according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a control tunnel processing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a network device corresponding to fig. 1 provided in an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the present specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for controlling a tunnel according to an embodiment of the present disclosure, which may specifically include the following steps:
s100: the network equipment acquires the message from the interface between the MME and the SGW.
In this specification, a network device (i.e., a offloading device) may obtain a packet from an interface between an MME and an SGW, analyze the obtained packet, and mark the packet according to an analysis result. Wherein, MME and SGW are network elements in 4G core network. The location of a network device in a 4G network may be illustrated by fig. 2.
Fig. 2 is a schematic diagram of a location of a network device in a 4G network architecture according to an embodiment of the present disclosure. In fig. 2, an access Network in a 4G Network mainly includes UE and eNB, and a core Network mainly includes MME, SGW, Public Data Network gateway (PGW), Home Subscriber Server (HSS), and the like. The network equipment acquires the message from the interface between the network element MME and the network element SGW. The interface between the MME and the SGW is an S11 interface, and through the S11 interface, the MME may transmit a GTP control plane second version (GTP version 2, control plane, GTPv2) protocol packet to the SGW. The GTPv2 protocol may enable the establishment, use, management, and release of control tunnels. The SGW may route and forward GTPv2 protocol packets under the control of the MME. The message refers to a data unit exchanged and transmitted in a network, and the transmission of the message needs to be performed in a control tunnel. The control tunnel refers to a path which a message passes through on a control plane after being encapsulated by a GTPv2 protocol.
Therefore, after the network device obtains the message, the control tunnel corresponding to the message can be created according to the type of the message and the information carried by the message.
S102: and determining the type of the message.
The types of messages obtained by the network device from the S11 interface are various, for example, a create session request message, a create session response message, a modify bearer request message, a modify bearer response message, a delete session request message, a delete session response message, and the like. When analyzing the creating session request message and the creating session response message, the network device needs to create a control tunnel. The network equipment can modify the special bearing content when analyzing the modification bearing request message and modifying the bearing response message. The network device can delete the control tunnel when analyzing the delete session request message and delete session response message.
The problem that the network device cannot delete part of invalid control tunnels, which causes invalid control tunnels corresponding to the same UE to exist in the network device, and the problem that part of signaling messages cannot be processed normally due to the fact that the number of the control tunnels in the network device exceeds a preset number is solved. Therefore, the present description only relates to analyzing the two messages, namely, the session creation request message and the session creation response message, and other types of messages are not repeated one by one.
S104: and if the type of the message is determined to be a session creation request message, analyzing tunnel identification information carried by the message.
S106: and inquiring the control tunnel to be processed corresponding to the tunnel identification information in each control tunnel established by the network equipment.
S108: and comparing the attribute information of the control tunnel to be created carried in the message with the attribute information of the control tunnel to be processed.
S110: and processing the control tunnel to be processed according to the comparison result, wherein the processing comprises deleting the control tunnel to be processed.
Since the type of the message in steps S104 to S110 is a create session request message, for convenience of description, this specification provides a method for processing a control tunnel related to create session request message, and fig. 3a is a flowchart of a method for processing a control tunnel related to create session request message provided in an embodiment of this specification, and is specifically shown in fig. 3 a.
The network device can analyze the tunnel identification information carried by the message. From the tunnel identification information, a control tunnel may be determined. For example, if there is a to-be-processed control tunnel corresponding to the tunnel identification information carried in the message in each control tunnel established by the network device, the to-be-processed control tunnel may be queried according to the tunnel identification information. For another example, if there is no to-be-processed control tunnel corresponding to the tunnel identification information carried in the message in each control tunnel established by the network device, the to-be-established control tunnel corresponding to the message may be established according to the tunnel identification information carried in the message.
In this specification, the tunnel identification information may include first tunnel identification information, wherein the first tunnel identification information includes a TEID, an IP address, and the like.
First, among the control tunnels established by the network device, the control tunnel to be processed corresponding to the first tunnel identification information may be queried.
Specifically, according to the uplink linked list of the cross linked list, it may be determined, for each control tunnel established by the network device, whether the TEID of the control tunnel is the same as the TEID in the first tunnel identification information, and whether the IP address of the control tunnel is the same as the IP address in the first tunnel identification information, and if both are the same, the control tunnel is taken as the control tunnel to be processed.
Because the message type is the establishment session request message, the uplink linked list of the cross linked list is the uplink control tunnel corresponding to the establishment session request message, and the downlink linked list of the cross linked list is the downlink control tunnel corresponding to the establishment session response message, the to-be-processed control tunnel corresponding to the first tunnel identification information can be inquired according to the uplink linked list of the cross linked list.
When a control tunnel is created, a corresponding TEID is assigned to the control tunnel. When the UE attaches to the 4G network, the UE is allocated with an IP address. When a to-be-processed control tunnel identical to the first tunnel identifier TEID and IP address carried by the packet is found in each control tunnel established by the network device according to the uplink linked list of the cross linked list, it is indicated that the to-be-processed control tunnel is pre-established in the network device, and the to-be-processed control tunnel may be a control tunnel capable of transmitting the packet (i.e., the network device does not need to establish the to-be-created control tunnel according to information carried by the packet and can transmit the packet using the to-be-processed control tunnel), and the to-be-processed control tunnel may also be an invalid control tunnel (i.e., the network device does not receive a signaling packet for deleting the control tunnel, which results in that the to-be-processed control tunnel is not deleted).
Secondly, the network device can compare the attribute information of the control tunnel to be created carried in the message with the attribute information of the control tunnel to be processed.
Specifically, the attribute information may include: therefore, the IMSI of the control tunnel to be created and the IMSI of the control tunnel to be processed carried in the message can be compared. The IMSI is an identifier that does not repeat in all cellular networks, and is used to distinguish different users in the cellular networks.
And finally, processing the control tunnel to be processed according to the comparison result, wherein the processing comprises deleting the control tunnel to be processed.
Specifically, if the comparison result indicates that the IMSI of the control tunnel to be created carried in the packet is inconsistent with the IMSI of the control tunnel to be processed, the control tunnel to be processed is deleted.
When the comparison result indicates that the IMSI of the control tunnel to be processed is not consistent with the IMSI of the control tunnel to be created carried in the message, it indicates that, when other UEs corresponding to the IMSI of the control tunnel to be processed are attached to the 4G network in advance (that is, with respect to the UE corresponding to the session creation request message currently acquired by the network device in this specification, the UE corresponding to the IMSI of the control tunnel to be processed is other UEs), the network device acquires the session creation request message corresponding to the other UEs in advance, and creates a control tunnel for the session creation request message corresponding to the other UEs in advance (that is, the control tunnel to be processed corresponding to the session creation request message currently acquired by the network device in this specification). When the other UE attaches to the 4G network, the network device does not acquire the signaling message for deleting the control tunnel with respect to the control tunnel to be processed, so that the control tunnel (i.e., the control tunnel to be processed) corresponding to the other UE exists in the network device. At this time, the control tunnel to be processed in the network device is an invalid control tunnel, and in order to solve the problem that part of signaling messages cannot be processed normally due to the fact that the number of the control tunnels in the network device exceeds the preset number in the prior art, the invalid control tunnel may be deleted.
And when the comparison result shows that the IMSI of the control tunnel to be processed is consistent with the IMSI of the control tunnel to be created carried in the message, indicating that the UE corresponding to the IMSI of the control tunnel to be processed is the UE corresponding to the IMSI of the control tunnel to be created carried in the message. In step S102, the network device may modify the dedicated bearer content while analyzing the modify bearer request packet and modifying the bearer response packet. When the default bearer and other related information need to be updated, the MME resends the create session request packet to the SGW, that is, the network device can obtain the create session request packet corresponding to the same UE again. When the network device acquires the session creation request message again, since the control tunnel corresponding to the session creation request message acquired last time is not deleted yet, the session creation request message acquired again can be transmitted in the control tunnel corresponding to the session creation request message acquired last time, and relevant information such as default bearer and the like is updated.
The foregoing is a method for querying a to-be-processed control tunnel corresponding to first tunnel identification information in each control tunnel established by a network device, that is, a TEID of the to-be-processed control tunnel is the same as a TEID in the first tunnel identification information, and an IP address of the to-be-processed control tunnel is the same as an IP address in the first tunnel identification information. In this specification, the tunnel identification information may further include second tunnel identification information, where the second tunnel identification information includes a TEID, an IP address, an IMSI, and the like, and the attribute information may further include: APN. It should be noted here that, when the first tunnel identification information includes the TEID and the IP address, the attribute information includes the IMSI. When the second tunnel identification information includes the TEID, the IP address, and the IMSI, the attribute information includes the APN.
First, among the control tunnels established by the network device, the control tunnel to be processed corresponding to the second tunnel identification information may be queried.
Specifically, according to the uplink linked list of the cross linked list, whether the TEID of the control tunnel is the same as the TEID in the second tunnel identification information and whether the IP address of the control tunnel is the same as the IP address in the second tunnel identification information is determined for each control tunnel established by the network device, if both are the same, the control tunnel is used as the control tunnel to be processed, otherwise, according to the one-way linked list, whether the control tunnel corresponding to the IMSI in the second tunnel identification information exists is determined, and if the control tunnel corresponding to the IMSI in the second tunnel identification information exists, the control tunnel corresponding to the IMSI in the second tunnel identification information is used as the control tunnel to be processed.
In each control tunnel established by the network device, when a control tunnel identical to the TEID or IP address of the second tunnel identification information is not queried according to the uplink linked list of the cross linked list, and a control tunnel corresponding to the IMSI of the second tunnel identification information is queried according to the one-way linked list, it is indicated that the UE corresponding to the control tunnel to be processed and the UE corresponding to the control tunnel to be created carried in the message are the same UE (that is, the network device creates a corresponding control tunnel when the UE attaches to the 4G network last time). The control tunnel to be processed here may be an invalid control tunnel (that is, when the UE attaches to the 4G network last time, the network device does not receive the signaling message for deleting the control tunnel, so that the control tunnel to be processed is not deleted), and the control tunnel to be processed may also be an unavailable control tunnel (that is, a control tunnel created by the network device when the UE attaches to the 4G network through another access method).
Then, the network device can compare the attribute information of the control tunnel to be created carried in the message with the attribute information of the control tunnel to be processed.
Specifically, the APN of the control tunnel to be created and the APN of the control tunnel to be processed, which are carried in the message, may be compared. The APN is a configured access point name when the UE attaches to the 4G network, and determines an access mode when the UE accesses the 4G network. The APN may comprise: china Mobile Network (CMNET), China Mobile Wireless Access Point (CMWAP), etc.
And finally, processing the control tunnel to be processed according to the comparison result, wherein the processing comprises deleting the control tunnel to be processed.
Specifically, if the comparison result is that the APN of the control tunnel to be created carried in the message is consistent with the APN of the control tunnel to be processed, the control tunnel to be processed is deleted.
When the comparison result shows that the APN of the control tunnel to be processed is consistent with the APN of the control tunnel to be created carried in the message, it is described that the access mode of the UE corresponding to the control tunnel to be created carried in the message when accessing the 4G network last time is the same as the access mode of the UE accessing the 4G network currently, and when the same UE accesses the 4G network twice and twice in the same access mode, the possibility that the TEID and the IP address carried in the creation session request message when the previous time is attached to the 4G network are the same as the TEID and the IP address of the next time is very small, so the control tunnel to be processed can be used as an invalid control tunnel. In order to solve the problem that the same UE corresponds to an invalid control tunnel in the network equipment in the prior art, the invalid control tunnel can be deleted.
When the comparison result indicates that the APN of the control tunnel to be processed is not consistent with the APN of the control tunnel to be created carried in the message, it indicates that the access mode of the UE corresponding to the control tunnel to be created carried in the message when accessing the 4G network last time is different from the access mode when accessing the 4G network currently, for example, the access mode when accessing the 4G network last time is CMNET, and the access mode when accessing the 4G network currently is CMWAP. Because different access modes are adopted when the same UE accesses the 4G network twice, the control tunnel to be processed is an unavailable control tunnel for the session creation request message currently acquired by the network equipment.
In this specification, after the control tunnel to be processed, which is the same as both the TEID and IP address of the first tunnel identification information and different from the IMSI of the attribute information, is deleted according to the uplink chain table of the cross chain table, or, according to the uplink chain table and the one-way chain table of the cross chain table, after deleting the control tunnel to be processed which is different from the TEID or IP address of the second tunnel identification information, has the same IMSI and has the same APN of the attribute information, or when the APN of the control tunnel to be created carried in the message is not consistent with the APN of the control tunnel to be processed, or according to the uplink linked list and the one-way linked list of the cross linked list, after the control tunnel to be processed is not inquired in each control tunnel established by the network equipment, the control tunnel to be established can be established according to the TEID and the IP address carried in the message, and adding the created control tunnel information to an uplink linked list and a single linked list of the cross linked list.
The above-mentioned content is a method for processing a control tunnel whose type is a request message for creating a session, and when the type of the message acquired by the network device is a response message for creating a session, this specification further provides a method for processing a control tunnel, and fig. 3b is a flowchart of a method for processing a control tunnel for creating a response message for a session according to an embodiment of this specification, and is specifically shown in fig. 3 b.
The network device can analyze the local terminal TEID, the opposite terminal TEID, the IP address, the IMSI and other information carried by the message, and can inquire the control tunnel corresponding to the information carried by the message in each control tunnel established by the network device according to the uplink linked list of the cross linked list. Specifically, for each control tunnel established by the network device, whether the TEID of the control tunnel is the same as the TEID of the opposite end carried by the packet is determined, and whether the IP address of the control tunnel is the same as the IP address carried by the packet, if both are the same, the information of the control tunnel is added to the downlink chain table of the cross chain table, otherwise, the packet is not processed.
Based on the method for processing a control tunnel shown in fig. 1, an embodiment of the present specification further provides a schematic structural diagram of a device for processing a control tunnel, as shown in fig. 4.
Fig. 4 is a schematic structural diagram of a control tunnel processing apparatus provided in an embodiment of the present specification, where the apparatus includes:
an obtaining module 401, configured to obtain, by a network device where the apparatus is located, a packet from an interface between an MME and an SGW;
a determining module 402, configured to determine a type of the packet;
an analyzing module 403, configured to analyze tunnel identifier information carried in the packet if it is determined that the type of the packet is a create session request packet;
a query module 404, configured to query, in each control tunnel established by the network device, a to-be-processed control tunnel corresponding to the tunnel identification information;
a comparison module 405, configured to compare the attribute information of the control tunnel to be created and the attribute information of the control tunnel to be processed, where the attribute information is carried in the packet;
and the processing module 406 is configured to process the control tunnel to be processed according to the comparison result, where the processing includes deleting the control tunnel to be processed.
Optionally, the tunnel identification information includes: first tunnel identification information, wherein the first tunnel identification information comprises a TEID and an IP address;
the query module 404 is specifically configured to, according to the uplink linked list of the cross linked list, determine, for each control tunnel established by the network device, whether the TEID of the control tunnel is the same as the TEID in the first tunnel identification information, and whether the IP address of the control tunnel is the same as the IP address in the first tunnel identification information; and if the two are the same, taking the control tunnel as the control tunnel to be processed.
Optionally, the attribute information includes: an IMSI;
the processing module 406 is specifically configured to delete the control tunnel to be processed if the comparison result indicates that the IMSI of the control tunnel to be created carried in the packet is inconsistent with the IMSI of the control tunnel to be processed.
Optionally, the tunnel identification information includes: second tunnel identification information, wherein the second tunnel identification information includes a TEID, an IP address, and an IMSI;
the query module 404 is specifically configured to, according to the uplink linked list of the cross linked list, determine, for each control tunnel established by the network device, whether the TEID of the control tunnel is the same as the TEID in the second tunnel identification information, and whether the IP address of the control tunnel is the same as the IP address in the second tunnel identification information; if the two are the same, taking the control tunnel as the control tunnel to be processed; otherwise, judging whether a control tunnel corresponding to the IMSI in the second tunnel identification information exists according to the single linked list, and if the control tunnel corresponding to the IMSI in the second tunnel identification information exists, taking the control tunnel corresponding to the IMSI in the second tunnel identification information as the control tunnel to be processed.
Optionally, the attribute information includes: an APN;
the processing module 406 is specifically configured to delete the control tunnel to be processed if the comparison result indicates that the APN of the control tunnel to be created carried in the packet is consistent with the APN of the control tunnel to be processed.
Optionally, the apparatus further comprises: a creation module 407;
the creating module 407 is specifically configured to create the control tunnel to be created according to the TEID and the IP address carried in the packet; and adding the created control tunnel information into an uplink linked list and a single linked list of the cross linked list.
Optionally, the apparatus further comprises: an add module 408;
the adding module 408 is specifically configured to, if it is determined that the type of the packet is a create session response packet, analyze an opposite terminal TEID and an IP address carried by the packet; according to an uplink linked list of the cross linked list, aiming at each control tunnel established by the network equipment, judging whether the TEID of the control tunnel is the same as the TEID of the opposite end carried by the message, and whether the IP address of the control tunnel is the same as the IP address carried by the message; if the tunnel information is the same as the control tunnel information, adding the control tunnel information to a downlink linked list of the cross linked list; otherwise, the message is not processed.
The embodiment of the present specification further provides a computer-readable storage medium, where a computer program is stored, and the computer program may be used to execute the control tunnel processing method provided in fig. 1.
Based on the method for controlling tunneling processing shown in fig. 1, an embodiment of this specification further provides a schematic structural diagram of a network device shown in fig. 5. As shown in fig. 5, the network device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may include hardware required for other services. The processor reads a corresponding computer program from the non-volatile memory into the memory and then runs the computer program to implement the control tunnel processing method described in fig. 1.
Of course, besides the software implementation, the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (8)

1. A method of controlling tunneling, the method comprising:
the network equipment acquires a message from an interface between a mobile management entity MME and a service gateway SGW;
determining the type of the message;
if the type of the message is determined to be a session creation request message, analyzing tunnel identification information carried by the message, wherein the tunnel identification information comprises: first tunnel identification information, wherein the first tunnel identification information comprises a Tunnel Endpoint Identification (TEID) and an Internet Protocol (IP) address;
according to an uplink linked list of the cross linked list, judging whether the TEID of the control tunnel is the same as the TEID in the first tunnel identification information and whether the IP address of the control tunnel is the same as the IP address in the first tunnel identification information aiming at each control tunnel established by the network equipment, and if the TEID of the control tunnel is the same as the TEID in the first tunnel identification information, taking the control tunnel as a control tunnel to be processed;
comparing the attribute information of the control tunnel to be created carried in the message with the attribute information of the control tunnel to be processed; the attribute information includes: international mobile subscriber identity IMSI;
and if the comparison result is that the IMSI of the control tunnel to be created carried in the message is inconsistent with the IMSI of the control tunnel to be processed, deleting the control tunnel to be processed.
2. The method of claim 1, wherein the tunnel identification information comprises: second tunnel identification information, wherein the second tunnel identification information includes a Tunnel Endpoint Identification (TEID), an Internet Protocol (IP) address and an International Mobile Subscriber Identity (IMSI);
inquiring the control tunnel to be processed corresponding to the tunnel identification information in each control tunnel established by the network equipment, which specifically comprises the following steps:
according to an uplink linked list of the cross linked list, judging whether the TEID of the control tunnel is the same as the TEID in the second tunnel identification information and whether the IP address of the control tunnel is the same as the IP address in the second tunnel identification information aiming at each control tunnel established by the network equipment;
if the two are the same, taking the control tunnel as the control tunnel to be processed;
otherwise, judging whether a control tunnel corresponding to the IMSI in the second tunnel identification information exists according to the single linked list, and if the control tunnel corresponding to the IMSI in the second tunnel identification information exists, taking the control tunnel corresponding to the IMSI in the second tunnel identification information as the control tunnel to be processed.
3. The method of claim 2, wherein the attribute information comprises: an access point name APN;
according to the comparison result, processing the control tunnel to be processed specifically comprises:
and if the comparison result is that the APN of the control tunnel to be created carried in the message is consistent with the APN of the control tunnel to be processed, deleting the control tunnel to be processed.
4. The method of any of claims 1 or 3, wherein after deleting the pending control tunnel, the method further comprises:
creating the control tunnel to be created according to the TEID and the IP address carried in the message;
and adding the created control tunnel information into an uplink linked list and a single linked list of the cross linked list.
5. The method of claim 1, wherein the method further comprises:
if the type of the message is determined to be a session establishment response message, analyzing an opposite-end Tunnel Endpoint Identifier (TEID) and an Internet Protocol (IP) address carried by the message;
according to an uplink linked list of the cross linked list, aiming at each control tunnel established by the network equipment, judging whether the TEID of the control tunnel is the same as the TEID of the opposite end carried by the message, and whether the IP address of the control tunnel is the same as the IP address carried by the message;
if the tunnel information is the same as the control tunnel information, adding the control tunnel information to a downlink linked list of the cross linked list;
otherwise, the message is not processed.
6. A control tunnel processing apparatus, the apparatus comprising:
an obtaining module, configured to obtain, by a network device where the apparatus is located, a packet from an interface between a mobility management entity MME and a serving gateway SGW;
a determining module, configured to determine a type of the packet;
the analysis module is configured to analyze tunnel identification information carried in the packet if it is determined that the type of the packet is a create session request packet, where the tunnel identification information includes: first tunnel identification information, wherein the first tunnel identification information comprises a Tunnel Endpoint Identification (TEID) and an Internet Protocol (IP) address;
the query module is used for judging whether the TEID of the control tunnel is the same as the TEID in the first tunnel identification information and whether the IP address of the control tunnel is the same as the IP address in the first tunnel identification information aiming at each control tunnel established by the network equipment according to the uplink linked list of the cross linked list, and if so, taking the control tunnel as a control tunnel to be processed;
the comparison module is used for comparing the attribute information of the control tunnel to be created carried in the message with the attribute information of the control tunnel to be processed; the attribute information includes: international mobile subscriber identity IMSI;
and the processing module is used for deleting the control tunnel to be processed if the comparison result shows that the IMSI of the control tunnel to be created carried in the message is inconsistent with the IMSI of the control tunnel to be processed.
7. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-5.
8. A network device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-5 when executing the program.
CN202010010395.9A 2020-01-06 2020-01-06 Control tunnel processing method and device Active CN111010745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010010395.9A CN111010745B (en) 2020-01-06 2020-01-06 Control tunnel processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010010395.9A CN111010745B (en) 2020-01-06 2020-01-06 Control tunnel processing method and device

Publications (2)

Publication Number Publication Date
CN111010745A CN111010745A (en) 2020-04-14
CN111010745B true CN111010745B (en) 2021-11-05

Family

ID=70120536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010010395.9A Active CN111010745B (en) 2020-01-06 2020-01-06 Control tunnel processing method and device

Country Status (1)

Country Link
CN (1) CN111010745B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175172B (en) * 2022-07-21 2023-11-21 北京锐安科技有限公司 Data processing method, device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333386A (en) * 2011-10-20 2012-01-25 大唐移动通信设备有限公司 Terminal attachment method and equipment
CN102421203A (en) * 2007-07-25 2012-04-18 华为技术有限公司 Bearer deletion control method, home subscriber server and related equipment
CN103024931A (en) * 2009-07-03 2013-04-03 电信科学技术研究院 Method and equipment for release of bearer resources
CN103813298A (en) * 2012-11-09 2014-05-21 华为技术有限公司 Backhaul network bearer management method and device
CN104620664A (en) * 2012-07-02 2015-05-13 阿尔卡特朗讯 Bearer activation using a tunnel identifier and a base station identifier|included in an uplink data packet
CN104883736A (en) * 2015-05-27 2015-09-02 国家计算机网络与信息安全管理中心 Terminal positioning method and device
CN105723798A (en) * 2014-10-17 2016-06-29 联发科技股份有限公司 Method for processing unsuccessful pdn establishment request procedures
CN108882180A (en) * 2018-09-19 2018-11-23 京信通信系统(中国)有限公司 Group exhales session method, device and system
EP3425993A1 (en) * 2016-04-01 2019-01-09 LG Electronics Inc. Method for managing connection of ue for transmitting and receiving v2x message in wireless communication system, and apparatus therefor
CN110167076A (en) * 2019-06-20 2019-08-23 杭州迪普信息技术有限公司 A kind of flow shunt method, device and equipment of 4G network
CN110430137A (en) * 2019-07-19 2019-11-08 杭州迪普信息技术有限公司 Message processing method and device based on S11 interface

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567832B (en) * 2008-04-23 2011-09-14 电信科学技术研究院 Method, device and system for deleting GTP tunnel
CN101572943B (en) * 2008-04-28 2011-07-20 电信科学技术研究院 Method, device and system for releasing user equipment (UE) context under idle state signaling reduction (ISR) by mobility management entity (MME)
CN103430580B (en) * 2011-01-21 2017-08-25 黑莓有限公司 For determining network equipment and process for (local) the connection context for unloading the connection used
CN102892109B (en) * 2011-07-21 2018-05-11 中兴通讯股份有限公司 A kind of method and system for realizing IP address property notification
CA2768483C (en) * 2011-12-30 2019-08-20 Sandvine Incorporated Ulc Systems and methods for managing quality of service
US9137675B2 (en) * 2012-06-13 2015-09-15 All Purpose Networks LLC Operational constraints in LTE TDD systems using RF agile beam forming techniques
US9219541B2 (en) * 2012-06-13 2015-12-22 All Purpose Networks LLC Baseband data transmission and reception in an LTE wireless base station employing periodically scanning RF beam forming techniques
US8923880B2 (en) * 2012-09-28 2014-12-30 Intel Corporation Selective joinder of user equipment with wireless cell
CN110035422B (en) * 2018-01-12 2021-01-22 大唐移动通信设备有限公司 Uplink data processing method based on temporary processing tunnel table, MME and SGW

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102421203A (en) * 2007-07-25 2012-04-18 华为技术有限公司 Bearer deletion control method, home subscriber server and related equipment
CN103024931A (en) * 2009-07-03 2013-04-03 电信科学技术研究院 Method and equipment for release of bearer resources
CN102333386A (en) * 2011-10-20 2012-01-25 大唐移动通信设备有限公司 Terminal attachment method and equipment
CN104620664A (en) * 2012-07-02 2015-05-13 阿尔卡特朗讯 Bearer activation using a tunnel identifier and a base station identifier|included in an uplink data packet
CN103813298A (en) * 2012-11-09 2014-05-21 华为技术有限公司 Backhaul network bearer management method and device
CN105723798A (en) * 2014-10-17 2016-06-29 联发科技股份有限公司 Method for processing unsuccessful pdn establishment request procedures
CN104883736A (en) * 2015-05-27 2015-09-02 国家计算机网络与信息安全管理中心 Terminal positioning method and device
EP3425993A1 (en) * 2016-04-01 2019-01-09 LG Electronics Inc. Method for managing connection of ue for transmitting and receiving v2x message in wireless communication system, and apparatus therefor
CN108882180A (en) * 2018-09-19 2018-11-23 京信通信系统(中国)有限公司 Group exhales session method, device and system
CN110167076A (en) * 2019-06-20 2019-08-23 杭州迪普信息技术有限公司 A kind of flow shunt method, device and equipment of 4G network
CN110430137A (en) * 2019-07-19 2019-11-08 杭州迪普信息技术有限公司 Message processing method and device based on S11 interface

Also Published As

Publication number Publication date
CN111010745A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
USRE49729E1 (en) Session information management method and apparatus
CN112291381B (en) Application server switching method, device and system
KR102267267B1 (en) Session context conversion
CN108702381B (en) Message transmission method and core network interface equipment
AU2018399714B2 (en) Wireless communications method and device
CN108605376A (en) Wireless terminal, radio station and its method
KR20150043330A (en) A node and method for connection re-establishment
US20220103990A1 (en) Communication Method, Apparatus, and System
JP7198906B2 (en) Capacity management method and communication device
EP3687259B1 (en) Communication method and device
US11910287B2 (en) Method and apparatus for event monitoring
US11463921B2 (en) Policy control method, apparatus, and system
US20220369102A1 (en) Optimized user equipment capabilities signaling including recovery from database failure
US11343724B2 (en) User equipment context management method, apparatus, and device
EP4052453A1 (en) Method and apparatus for session management
CN111010745B (en) Control tunnel processing method and device
CN104768168B (en) Control method, controller and MME (mobility management entity) of user tracking area
US20190098549A1 (en) Communication method, and communications apparatus and system
WO2022058579A1 (en) Restoration of a pdn connection at pgw failure
CN113422772B (en) Private network terminal access processing method and device and electronic equipment
CN113543157B (en) Method and equipment for controlling network resources

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant