CN111726887B - Tunnel establishment method and device - Google Patents

Tunnel establishment method and device Download PDF

Info

Publication number
CN111726887B
CN111726887B CN202010382250.1A CN202010382250A CN111726887B CN 111726887 B CN111726887 B CN 111726887B CN 202010382250 A CN202010382250 A CN 202010382250A CN 111726887 B CN111726887 B CN 111726887B
Authority
CN
China
Prior art keywords
tunnel
address
association table
downlink
destination
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
CN202010382250.1A
Other languages
Chinese (zh)
Other versions
CN111726887A (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.)
New H3C Technologies Co Ltd Chengdu Branch
Original Assignee
New H3C Technologies Co Ltd Chengdu Branch
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 New H3C Technologies Co Ltd Chengdu Branch filed Critical New H3C Technologies Co Ltd Chengdu Branch
Priority to CN202010382250.1A priority Critical patent/CN111726887B/en
Publication of CN111726887A publication Critical patent/CN111726887A/en
Application granted granted Critical
Publication of CN111726887B publication Critical patent/CN111726887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present disclosure provides a tunnel establishment method and apparatus, and the tunnel establishment method and apparatus provided in the present disclosure may obtain, for a passive UE, a unique identifier of a user subscription registration through a subscription information table, and further match a tunnel association table through the unique identifier of the user subscription registration. The method solves the problem that the passive terminal in the prior art cannot actively send the uplink data message and cannot construct the downlink GTP tunnel encapsulation information.

Description

Tunnel establishment method and device
Technical Field
The present disclosure relates to network communication technologies, and in particular, to a method and apparatus for tunnel establishment.
Background
With the development of mobile communication technology, the mobile communication network has more and more abundant services, and new services such as video monitoring, intelligent manufacturing, intelligent park and the like emerge, thus providing new challenges for the capacity, bandwidth and real-time performance of the mobile communication network. The concept of MEC (Multi-access Edge Computing ) is an important field of mobile communication research in the industry at present, and discusses how to leave user service data in local computing, reduce the pressure of a transmission network and a core network, meet real-time service requirements, and improve user experience.
Fig. 1 is a diagram of a network architecture in the prior art, where the network includes a UE (User Equipment), a base station, and a MEGW (Mobile Edge GateWay ) disposed between the base station and a core network, and the MEGW monitors an interaction message between the base station and the core network, so as to provide an edge data distribution and edge security gateway function for an enterprise and a hot client without modifying the existing mobile network. Specifically, the edge server may process a service flow sent by the UE, for example, perform processing such as decoding and displaying a video service.
When the MEGW monitors an interaction message between a base station and a core network, according to the definition of a third generation mobile communication partner project (3 GPP), when the UE is accessed to the mobile communication network, the core network carries information such as an IP address, qoS (Quality of Service ) and the like distributed to the UE in NAS layer signaling, the NAS layer signaling is encrypted transmission, and the transparent deployed MEGW cannot directly acquire the IP address of the UE to construct the encapsulation information associated with a downlink tunnel; on the other hand, in order to save air interface resources, the UE enters IDLE state when no service exists, and after the message of the UE in IDLE state arrives at the core network, the core network triggers a Paging procedure to reestablish the downlink GTP-U tunnel with the base station. The transparently deployed MEGW cannot respond to the downlink data packet sent to the UE by the edge server to trigger a paging-like procedure, so that downlink GTP-U tunnel encapsulation information with the base station cannot be constructed.
Disclosure of Invention
The disclosure provides a tunnel establishment method and device, which are used for solving the problem that in the prior art, after a MEGW fails, context information of an online user is lost.
A first aspect of the present disclosure provides a tunnel establishment method applied to a mobile edge gateway MEGW, including:
when receiving a downlink data message sent to User Equipment (UE), judging whether a destination IP address of the downlink data message can be matched with an IP address of the UE stored in a tunnel association table, wherein the tunnel association table is established according to message information interacted when the UE is attached, and the tunnel association table comprises downlink tunnel identifications allocated for a base station accessed by the UE;
if the tunnel association table does not have the IP address matched with the destination IP address of the downlink data message, determining a unique identifier of user subscription registration according to the destination IP address of the downlink data message and a user subscription table, wherein the user subscription table comprises the unique identifier of user subscription registration and a corresponding relationship between the IP addresses allocated for the UE;
acquiring a downlink tunnel identifier matched with the unique identifier in a tunnel association table according to the unique identifier signed and registered by the user;
and encapsulating the GTP message header for the downlink data message according to the downlink tunnel identifier.
The second aspect of the present disclosure also provides a tunnel establishment apparatus, the apparatus comprising: the receiving module is used for receiving the downlink data message sent to the User Equipment (UE);
the judging module is used for judging whether the destination IP address of the downlink data message can be matched with the IP address of the UE stored in the tunnel association table, wherein the tunnel association table is established according to the message information interacted when the UE is attached, and the tunnel association table comprises downlink tunnel identifications distributed for the base station accessed by the UE;
the determining module is used for determining a unique identifier of user subscription registration according to the destination IP address of the downlink data message and a user subscription table when the IP address matched with the destination IP address of the downlink data message does not exist in the tunnel association table, wherein the user subscription table comprises the unique identifier of the user subscription registration and a corresponding relation between the IP addresses distributed for the UE;
the acquisition module is used for acquiring a downlink tunnel identifier matched with the unique identifier in the tunnel association table according to the unique identifier of the user subscription registration;
and the encapsulation module is used for encapsulating the GTP message header for the downlink data message according to the downlink tunnel identifier.
According to the tunnel establishment method and device, aiming at the passive UE, the unique identifier of the user subscription registration can be obtained through the subscription information table, and then the unique identifier of the user subscription registration is matched with the tunnel association table, and because the tunnel association table is established according to the initiation of the attachment flow by the UE, the MEGW can capture the unique identifier of the user subscription registration and the downlink TEID distributed to the base station when the attachment flow is initiated, so that the downlink TEID corresponding to the unique identifier in the tunnel association table can be determined according to the unique identifier, and further a downlink tunnel message is constructed. The method solves the problem that the passive terminal in the prior art cannot actively send the uplink data message and cannot construct the downlink GTP tunnel encapsulation information.
Drawings
FIG. 1 is a diagram of a network architecture provided by the present disclosure;
FIG. 2 is a flow chart of a method according to a second embodiment of the present disclosure;
FIG. 3 is a flow chart of a method according to a fourth embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a device according to an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of a MEGW according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
In order to solve the problem that a downlink GTP-U tunnel cannot be constructed between a Mobile Edge Gateway (MEGW) and a base station in the prior art, the disclosure provides a tunnel establishment method, which can especially solve the problem that the MEGW establishes the downlink GTP-U tunnel for passive terminals such as a mechanical arm and a monitoring camera which cannot actively and continuously send uplink data messages to a core network.
In order to better describe the message processing method provided by the present disclosure, the present disclosure introduces technical terms related to the present disclosure and flows possibly related to the present disclosure.
MME (Mobility Management Entity ) the UE has to complete a registration procedure in the network before performing the actual traffic, a procedure called attach. The MME may initiate an attach for UEs that have not interacted with the network for a long time.
TEID (Tunnel Endpoint Identifier, tunnel endpoint identification) the node identification used to identify each GTP tunnel in the GTP tunnel used between two nodes communicating based on the GPRS tunneling protocol (GPRS Tunnel Protocol, GTP).
In the process of establishing the default bearer, an uplink TEID and a downlink tunnel TEID related to the default bearer are allocated to the base station and the SGW through an initial context establishment request (Initial Context Setup Request) and a response (Initial Context Setup Response) interacted between the UE, the base station and the MME, and a subsequent base station and the SGW can establish a GTP tunnel between the base station and the SGW according to the allocated TEID, wherein the established GTP tunnel is used for transmitting a data message corresponding to the default bearer. Information such as the IMSI (International Mobile Subscriber Identity ), the IP address of the SGW, and the IP address of the base station of the UE may also be obtained in the initial context establishment request and response.
And if the special bearer is established later, distributing an uplink TEID and a downlink TEID related to the special bearer for the base station and the SGW, and establishing a GTP tunnel for transmitting a data message corresponding to the special bearer.
The uplink TEID in the present disclosure refers to a TEID allocated to a network device in a core network, and in the present disclosure, a tunnel is established between an SGW (Serving Gateway) and a base station. It should be understood that taking the SGW as an example should not be construed as the base station being able to establish a tunnel with the SGW only. When the UE sends an uplink data packet to the core network, the base station encapsulates a GTP packet header in an outer layer of the uplink data packet, where the GTP packet header includes a TEID of the SGW, where the TEID of the SGW is used to enable the uplink data packet encapsulated with the GTP packet header to be sent to the SGW, so that the TEID allocated by the SGW in the present disclosure is called an uplink TEID (corresponding to the uplink data packet), and when the TEID of the base station is carried in the GTP packet header and is used to receive a downlink data packet sent to the UE at the SGW, the SGW may encapsulate the downlink data packet into the GTP packet header, where the encapsulated GTP packet header includes the TEID of the base station, so that the downlink data packet encapsulated with the GTP packet header may be sent to the base station, and then, after the downlink data packet encapsulated with the GTP packet in an inner layer is decapsulated by the base station, the TEID allocated by the base station in the present disclosure is called a downlink TEID (corresponding to the downlink data packet).
GTP-U: the base station establishes a data connection with the SGW for a protocol for transmitting user plane data between the base station and the SGW based on GTP (GPRS Tunnel Protocol, GPRS tunneling protocol).
Example 1
The method provided by the present disclosure may be applied to the networking shown in fig. 1, where in the networking shown in fig. 1, the UE may be an active UE, that is, a UE that can actively send an uplink data packet with the core network, and of course, the UE may also be a passive UE, or both the active UE and the passive UE are included in the network.
In this embodiment, an implementation manner of establishing a tunnel association table by active and passive UEs is described.
(1) For active UE, in the attachment (Attach) process of the UE accessing the mobile communication network, the MEGW can monitor the message interacted with the core network when the UE initiates attachment, monitor the uplink TEID and the downlink TEID corresponding to the uplink GTU-U tunnel allocated for the base station accessed by the UE, and acquire the IP address of the base station and the IP address of the SGW. The MEGW can thereby generate a tunnel association table from the above information. The tunnel association table is used for searching the TEID corresponding to the tunnel to be established. The generated tunnel association table may include contents as shown in table 1:
TABLE 1
Other information may also be included in the tunnel association table, for example, an IMSI, a user hidden identifier SUCI (Subscription Concealed Identifier), etc. The contents of the tunnel association table may be defined according to actual requirements.
After receiving the uplink data packet sent by the UE, the MEGW may update the tunnel association table according to the uplink TEID carried by the GTP packet header of the uplink data packet and the packet quintuple information carried by the uplink data packet of the inner layer, where for example, the quintuple information of the uplink data packet includes: the source IP address is the IP address of the UE, and other four-tuple information: destination IP address, source port, destination port, and transport layer protocol. The updated tunnel association table is shown in table 2:
TABLE 2
Of course, in another embodiment, the uplink TEID and the quintuple information acquired according to the uplink data packet may be stored in another table.
(2) For passive UEs, no uplink data message is actively sent. Therefore, the MEGW cannot acquire the IP address of the UE, and when the MEGW receives the downlink data packet sent by the edge server, tunnel encapsulation information of the downlink data packet sent to the UE cannot be constructed according to the IP address. However, if the passive UE wants to access the network, the MEGW may acquire subscription information between the passive UE and the core network. The subscription information includes a unique identifier of the user subscription registration and an IP address allocated to the UE.
Optionally, the unique identity of the subscriber subscription registration may be an IMSI and/or a subscriber hidden identity SUCI (Subscription Concealed Identifier). Of course, the unique identifier for subscription registration may be other identifiers that uniquely indicate the identity of the UE.
When the IP address allocated to the UE is a statically allocated IP address, subscription information may be preconfigured in the MEGW; the MEGW may acquire subscription information of the UE corresponding to the destination IP of the downlink data packet from the HSS (Home Subscriber Server, home subscription server) in the core network when receiving the downlink data packet sent by the edge server. The present disclosure is not limited to how the MEGW obtains subscription information of the UE.
Similar to the active UE, the MEGW may monitor messages that interact with the core network when the UE initiates an attach. Thus, the unique identifiers of the uplink TEID, the downlink TEID and the subscription registration of the UE can be obtained. The tunnel association table formed may be as shown in table 3:
TABLE 3 Table 3
When the MEGW receives a downlink data packet sent to the UE by the edge server, the MEGW may obtain, according to a destination IP address of the downlink data packet (i.e., an IP address of the UE), a unique identifier of a user subscription registration in the subscription information table. And then the downlink TEID in the tunnel association table, that is, the TEID of the base station, can be searched according to the unique identifier (such as IMSI) of the subscription registration of the user, so that the GTP message header carrying the downlink TEID can be encapsulated for the downlink data message.
In another implementation manner, after determining the unique identifier of the user subscription registration according to the destination IP address of the downlink data packet and the user subscription table, the tunnel association table may be updated according to the user subscription table, or the tunnel association table may be updated through the subscription information table, so that the MEGW may directly search the tunnel association table subsequently to encapsulate the corresponding GTP packet header for the uplink data packet or the downlink data packet. The updated tunnel association table may be as shown in the example of table 4:
TABLE 4 Table 4
After the MEGW establishes a downlink tunnel with the base station to which the UE accesses, the MEGW receives a response packet sent by the UE for the edge server, and may further update the tunnel association table according to quintuple information included in the response packet.
Example two
Fig. 2 is a flow chart of a tunnel establishment method provided by the present disclosure, where the method provided by the present disclosure may be applied to the networking shown in fig. 1, and as shown in fig. 1 and fig. 2, the method provided by the present disclosure may be applied to a MEGW, and includes:
step 202, receiving a downlink data packet sent to a user equipment UE.
Step 203, determining whether the destination IP address of the downlink data packet can be matched with the IP address of the UE stored in the tunnel association table, and if there is a matching entry, executing step 2031. An entry in the present disclosure refers to a certain row or rows in the tunnel association table, i.e., referred to as an entry.
Otherwise, the execution of the method may be stopped; alternatively, step 2032 provided in the third embodiment described later may also be performed.
The tunnel association table is established according to the message information interacted when the UE is attached, and comprises a downlink tunnel identifier distributed for a base station accessed by the UE
According to the tunnel association table in the first embodiment, whether the UE is active or passive, the established tunnel association table may be defined according to needs, and the tunnel association table may determine that the tunnel association table is used to find a TEID corresponding to the tunnel to be established, where the tunnel association table in this embodiment at least includes a downlink TEID allocated by the UE to the base station. The tunnel association table item established for the active UE may further include an IP address of the UE, and the tunnel association table item established for the passive UE may further include a unique identifier of the user subscription registration.
Step 2031, if there is no IP address matching the destination IP address of the downlink data packet in the tunnel association table, determining a unique identifier of the user subscription registration according to the destination IP address of the downlink data packet and the user subscription table, where the user subscription table includes the unique identifier of the user subscription registration and a correspondence between IP addresses allocated for the UE.
An alternative implementation manner for "determining whether the destination IP address of the downlink data packet can be matched with the IP address of the UE stored in the tunnel association table" in step 202 is: and judging whether the five-tuple information of the downlink data message can be matched with the five-tuple information stored in the tunnel association table. The five-tuple information of the message can represent the service information corresponding to the message, namely, one service flow. Therefore, determining the TEID according to the quintuple information can more accurately determine the TEID corresponding to the bearer of the service flow represented by the quintuple.
Accordingly, in step 2031, "if there is no IP address matching the destination IP address of the downlink data packet in the tunnel association table", the implementation corresponding to the unique identifier for determining that the user signs a subscription according to the destination IP address of the downlink data packet and the user subscription table "is: and if the tunnel association table does not have the table item matched with the five-tuple of the downlink data message, determining the unique identifier of the user subscription registration according to the destination IP address of the downlink data message and the user subscription table.
And 206, acquiring a downlink tunnel identifier matched with the unique identifier in the tunnel association table according to the unique identifier of the user subscription registration.
When receiving a downlink data packet sent by an edge server to a UE, if a destination IP address of the downlink data packet (i.e., an IP address of the UE) cannot be matched with an IP address of the UE stored in the tunnel association table, the reason why the IP address cannot be matched may be: the UE corresponding to the destination IP address is a passive UE, so the MEGW cannot acquire an uplink data packet actively transmitted by the UE; and thus, quintuple information such as the IP address of the UE cannot be obtained. At this time, the user subscription table can be searched according to the destination IP address of the downlink data packet, and the unique identifier of the user subscription registration matched with the destination IP address in the user subscription table is determined.
After the unique identifier of the user subscription registration is obtained, the downlink tunnel identifier matched with the unique identifier in the tunnel association table is queried.
And step 208, packaging a GTP message header for the downlink data message according to the downlink tunnel identifier.
After the MEGW encapsulates the GTP message header for the downlink data message, the downlink data message encapsulated with the GTP message header is further forwarded to a base station accessed by the UE corresponding to the downlink data message.
According to the method provided by the second embodiment, for the passive UE, the unique identifier of the user subscription registration can be obtained through the subscription information table, and then the unique identifier of the user subscription registration is matched with the tunnel association table, and because the tunnel association table is established according to the initiation of the attachment flow by the UE, the MEGW can capture the unique identifier of the user subscription registration and the downlink TEID allocated to the base station when the attachment flow is initiated, so that the downlink TEID corresponding to the unique identifier in the tunnel association table can be determined according to the unique identifier, and further a downlink tunnel message is constructed. The method solves the problem that in the prior art, the passive terminal cannot actively send the uplink data message and cannot construct the downlink GTP tunnel encapsulation information.
It should be noted that, the uplink TEID and the downlink TEID included in the tunnel association table in the present disclosure may be TEIDs allocated by establishing a default bearer, or TEIDs allocated by establishing a dedicated bearer. For passive terminals, when downlink GTP tunnel encapsulation information is constructed, downlink TEIDs allocated by establishing default bearers may be used, or downlink TEIDs allocated during dedicated bearers may be randomly used.
Example III
Based on the first and second embodiments, the MEGW receives a response message for a downlink data message sent by a UE forwarded by a base station.
In general, different services may have different Qos (Quality of Service ) guarantees, so when dedicated bearers are established for different services, different uplink TEIDs and downlink TEIDs are allocated.
In order to accurately acquire the TEID corresponding to the bearer of the downlink data packet, that is, in order to acquire the TEIDs corresponding to different service flows, the TEIDs corresponding to the service flows may be acquired for the uplink data packet sent by the UE. Specifically, on the basis of the second embodiment, the tunnel establishment method may further include:
step 210, receiving an uplink data message with a GTP message header encapsulated, where the uplink data message is a data message that the UE responds to the downlink data message, and the uplink data message with a GTP message header encapsulated includes: quintuple information and an uplink TEID corresponding to the bearer of the service flow represented by the quintuple.
And step 212, adding the quintuple information and the uplink TEID corresponding to the load of the service flow represented by the quintuple to the tunnel association table.
In the step 208, the downlink TEID adopted in the GTP tunnel encapsulation information may be a TEID corresponding to the default bearer, and in actual cases, the corresponding uplink data packet sent by the UE may need to be sent by using a dedicated bearer, so that the uplink data packet sent by the UE may obtain the accurate quintuple information of the packet and the uplink TEID corresponding to the bearer of the service flow represented by the quintuple.
Further, the quintuple information and the uplink TEID corresponding to the quintuple are added to the tunnel association table, so that accurate GTP tunnel information can be constructed when the edge server sends the downlink data message to the UE.
Example IV
The UE corresponding to the downlink data packet received by the MEGW may be an active terminal, and for the active UE, the tunnel association table stores quintuple and TEID information obtained according to the uplink data packet sent by the UE. Based on this, on the basis of the first to third embodiments, as shown in fig. 3, the method provided in the disclosure may further include:
step 2032, if the destination IP address in the tunnel association table that matches the downstream data packet exists, acquiring, according to the destination IP address of the downstream data packet, a downstream tunnel identifier in the tunnel association table that matches the destination IP address.
Similar to the case where the quintuple information is used in the second embodiment and the tunnel association table is used, in this disclosure, the quintuple information is used to match the tunnel association table, and if the quintuple-matched entry exists in the tunnel association table, the downlink tunnel identifier of the quintuple-matched entry in the tunnel association table is obtained according to the quintuple of the downlink data packet.
As can be seen from the description in the first embodiment, the quintuple information in the tunnel association table is obtained through the uplink data packet sent by the UE.
Example five
The present disclosure further provides a tunnel establishment apparatus, where the apparatus is configured to perform the method provided by the foregoing implementation, and fig. 4 is a schematic structural diagram of a tunnel establishment apparatus according to an embodiment of the present disclosure, as shown in fig. 4, where the apparatus includes:
a receiving module 501, configured to receive a downlink data packet sent to a user equipment UE;
a judging module 502, configured to judge whether a destination IP address of the downlink data packet can be matched with an IP address of a UE stored in a tunnel association table, where the tunnel association table is established according to packet information interacted when the UE attaches, and the tunnel association table includes a downlink tunnel identifier allocated to a base station to which the UE accesses;
a determining module 503, configured to determine, when an IP address matching the destination IP address of the downlink data packet does not exist in the tunnel association table, a unique identifier of a user subscription registration according to the destination IP address of the downlink data packet and a user subscription table, where the user subscription table includes the unique identifier of the user subscription registration and a correspondence between IP addresses allocated for the UE;
an obtaining module 504, configured to obtain, according to a unique identifier of a user subscription registration, a downlink tunnel identifier in a tunnel association table that is matched with the unique identifier;
and the encapsulation module 505 is configured to encapsulate a GTP message header for the downlink data message according to the downlink tunnel identifier.
Optionally, the determining module 503 is further configured to, when determining that the tunnel association table has a destination IP address matching the downlink data packet, cause the obtaining module 504 to obtain, according to the destination IP address of the downlink data packet, a downlink tunnel identifier matching the destination IP address in the tunnel association table, where the IP address in the tunnel association table is obtained by using an uplink data packet sent by the UE.
Optionally, the apparatus may further include: a transmitting module 506 and an updating module 507;
a sending module 506, configured to forward the downlink data packet with the GTP packet header encapsulated to a base station to which the UE corresponding to the downlink data packet is connected;
the receiving module 501 is further configured to receive an uplink data packet with a GTP packet header encapsulated, where the uplink data packet is a data packet that the UE responds to the downlink data packet, and the uplink data packet with the GTP packet header encapsulated includes: quintuple information and an uplink tunnel identifier corresponding to the load of the service flow represented by the quintuple;
and an updating module 507, configured to add the quintuple information and an uplink tunnel identifier corresponding to the bearer of the service flow represented by the quintuple to the tunnel association table.
Optionally, the updating module 507 is further configured to update the tunnel association table according to the user subscription table after determining the unique identifier of the user subscription registration according to the destination IP address of the downlink data packet and the user subscription table.
Optionally, the unique identifier of the subscriber subscription updated by the updating module 507 includes: the international mobile subscriber identity IMSI or the subscriber hidden identity sui.
The specific execution process of the message processing apparatus of the present disclosure may refer to a method embodiment, and this embodiment is not described herein.
According to the tunnel establishment device provided by the disclosure, aiming at passive UE, the unique identifier of the user subscription registration can be obtained through the subscription information table, and then the unique identifier of the user subscription registration is matched with the tunnel association table, and because the tunnel association table is established according to the UE initiated attachment process, the MEGW can capture the unique identifier of the user subscription registration and the downlink TEID distributed to the base station when the attachment process is initiated, so that the downlink TEID corresponding to the unique identifier in the tunnel association table can be determined according to the unique identifier, and further a downlink tunnel message is constructed. The method solves the problem that the passive terminal in the prior art cannot actively send the uplink data message and cannot construct the downlink GTP tunnel encapsulation information.
The present disclosure further provides a MEGW60, fig. 5 is a schematic structural diagram of a MEGW according to another embodiment of the present disclosure, as shown in fig. 5, the MEGW60 includes a processor 601 and a memory 602,
the memory 602 is configured to store program instructions, and the processor 601 is configured to invoke the stored program instructions in the memory, and when the processor 601 executes the program instructions stored in the memory 602, to perform any of the methods provided in the first to third embodiments. In addition, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in various embodiments of the present disclosure may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or a part of the technical solution, or in the form of a software product stored in a readable storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description of the preferred embodiments of the present disclosure is not intended to limit the disclosure, but rather to cover all modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present disclosure.

Claims (10)

1. A tunnel establishment method applied to a mobile edge gateway MEGW, the method comprising:
when receiving a downlink data message sent to User Equipment (UE), judging whether a destination IP address of the downlink data message can be matched with an IP address of the UE stored in a tunnel association table, wherein the tunnel association table is established according to message information interacted when the UE is attached, and the tunnel association table comprises downlink tunnel identifications allocated for a base station accessed by the UE;
if the tunnel association table does not have the IP address matched with the destination IP address of the downlink data message, determining a unique identifier of user subscription registration according to the destination IP address of the downlink data message and a user subscription table, wherein the user subscription table comprises the unique identifier of user subscription registration and a corresponding relationship between the IP addresses allocated for the UE;
acquiring a downlink tunnel identifier matched with the unique identifier in a tunnel association table according to the unique identifier signed and registered by the user;
and encapsulating the GTP message header for the downlink data message according to the downlink tunnel identifier.
2. The method according to claim 1, wherein if there is a destination IP address matching the downstream data packet in the tunnel association table, acquiring a downstream tunnel identifier matching the destination IP address in the tunnel association table according to the destination IP address of the downstream data packet, where the IP address in the tunnel association table is acquired by an upstream data packet sent by the UE.
3. The method of claim 1, wherein in the case where there is no IP address in the tunnel association table that matches the destination IP address of the downstream data packet, after encapsulating the GTP packet header for the downstream data packet according to the downstream tunnel identification, the method further comprises:
forwarding the downlink data message with the encapsulated GTP message header to a base station accessed by the UE corresponding to the downlink data message;
receiving an uplink data message with a GTP message header encapsulated by the base station, wherein the uplink data message is a data message responded by the UE aiming at the downlink data message, and the uplink data message with the GTP message header encapsulated comprises: quintuple information and an uplink tunnel identifier corresponding to the load of the service flow represented by the quintuple;
and adding the quintuple information and the uplink tunnel identification corresponding to the load of the service flow represented by the quintuple into the tunnel association table.
4. The method of claim 1, wherein the tunnel association table is updated according to the user subscription table after determining the unique identity of the user subscription registration according to the destination IP address of the downstream data message and the user subscription table.
5. The method of any one of claims 1-4, wherein the unique identification comprises:
the international mobile subscriber identity IMSI or the subscriber hidden identity sui.
6. A tunnel establishment apparatus, comprising:
the receiving module is used for receiving the downlink data message sent to the User Equipment (UE);
the judging module is used for judging whether the destination IP address of the downlink data message can be matched with the IP address of the UE stored in the tunnel association table, wherein the tunnel association table is established according to the message information interacted when the UE is attached, and the tunnel association table comprises downlink tunnel identifications distributed for the base station accessed by the UE;
the determining module is used for determining a unique identifier of user subscription registration according to the destination IP address of the downlink data message and a user subscription table when the IP address matched with the destination IP address of the downlink data message does not exist in the tunnel association table, wherein the user subscription table comprises the unique identifier of the user subscription registration and a corresponding relation between the IP addresses distributed for the UE;
the acquisition module is used for acquiring a downlink tunnel identifier matched with the unique identifier in the tunnel association table according to the unique identifier of the user subscription registration;
and the encapsulation module is used for encapsulating the GTP message header for the downlink data message according to the downlink tunnel identifier.
7. The apparatus of claim 6, wherein the determining module is further configured to, when determining that the destination IP address matching the downlink data packet exists in the tunnel association table, cause the obtaining module to obtain, according to the destination IP address of the downlink data packet, a downlink tunnel identifier matching the destination IP address in the tunnel association table, where the IP address in the tunnel association table is obtained by an uplink data packet sent by the UE.
8. The apparatus as recited in claim 6, further comprising: a sending module and an updating module;
the sending module is used for forwarding the downlink data message with the encapsulated GTP message header to a base station accessed by the UE corresponding to the downlink data message;
the receiving module is further configured to receive an uplink data packet with a GTP packet header encapsulated, where the uplink data packet is a data packet that the UE responds to the downlink data packet, and the uplink data packet with the GTP packet header encapsulated includes: quintuple information and an uplink tunnel identifier corresponding to the load of the service flow represented by the quintuple;
and the updating module is used for adding the quintuple information and the uplink tunnel identifier corresponding to the load of the service flow represented by the quintuple into the tunnel association table.
9. The apparatus of claim 8, wherein the updating module is further configured to update the tunnel association table according to the user subscription table after determining the unique identifier of the user subscription registration according to the destination IP address of the downstream data packet and the user subscription table.
10. The apparatus according to any of claims 6-9, wherein the unique identification of the user subscription registration comprises: the international mobile subscriber identity IMSI or the subscriber hidden identity sui.
CN202010382250.1A 2020-05-08 2020-05-08 Tunnel establishment method and device Active CN111726887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010382250.1A CN111726887B (en) 2020-05-08 2020-05-08 Tunnel establishment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010382250.1A CN111726887B (en) 2020-05-08 2020-05-08 Tunnel establishment method and device

Publications (2)

Publication Number Publication Date
CN111726887A CN111726887A (en) 2020-09-29
CN111726887B true CN111726887B (en) 2023-11-07

Family

ID=72564278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010382250.1A Active CN111726887B (en) 2020-05-08 2020-05-08 Tunnel establishment method and device

Country Status (1)

Country Link
CN (1) CN111726887B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1627753A (en) * 2003-12-08 2005-06-15 华为技术有限公司 Method for building up service tunnel in wireless local area network
JP2005229447A (en) * 2004-02-13 2005-08-25 Nec Corp Gprs network system, and construction method for gprs network
CN101572878A (en) * 2008-04-28 2009-11-04 大唐移动通信设备有限公司 Method and device for managing the general packet radio service tunneling protocol for control plane (GTP-C) tunnel
CN101686540A (en) * 2008-09-27 2010-03-31 华为技术有限公司 Location service treatment method, device and system
WO2010063175A1 (en) * 2008-12-04 2010-06-10 华为技术有限公司 Method, device and system for data gateway handover
CN102547867A (en) * 2011-12-14 2012-07-04 北京邮电大学 Public bearing building method and uplink multipoint-to-point GTP tunnel transmission method
WO2016078072A1 (en) * 2014-11-21 2016-05-26 华为技术有限公司 Method and system for implementing service optimization
WO2018029933A1 (en) * 2016-08-10 2018-02-15 日本電気株式会社 Radio access network node, wireless terminal, core network node, and methods for these
CN109804667A (en) * 2016-08-10 2019-05-24 日本电气株式会社 Wireless access network node, wireless terminal and its method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011038359A2 (en) * 2009-09-26 2011-03-31 Cisco Technology, Inc. Providing services at a communication network edge

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1627753A (en) * 2003-12-08 2005-06-15 华为技术有限公司 Method for building up service tunnel in wireless local area network
JP2005229447A (en) * 2004-02-13 2005-08-25 Nec Corp Gprs network system, and construction method for gprs network
CN101572878A (en) * 2008-04-28 2009-11-04 大唐移动通信设备有限公司 Method and device for managing the general packet radio service tunneling protocol for control plane (GTP-C) tunnel
CN101686540A (en) * 2008-09-27 2010-03-31 华为技术有限公司 Location service treatment method, device and system
WO2010063175A1 (en) * 2008-12-04 2010-06-10 华为技术有限公司 Method, device and system for data gateway handover
CN102547867A (en) * 2011-12-14 2012-07-04 北京邮电大学 Public bearing building method and uplink multipoint-to-point GTP tunnel transmission method
WO2016078072A1 (en) * 2014-11-21 2016-05-26 华为技术有限公司 Method and system for implementing service optimization
WO2018029933A1 (en) * 2016-08-10 2018-02-15 日本電気株式会社 Radio access network node, wireless terminal, core network node, and methods for these
CN109804667A (en) * 2016-08-10 2019-05-24 日本电气株式会社 Wireless access network node, wireless terminal and its method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于附着流程中S1U接口TEID的用户标识关联回填方法研究;李京辉;;邮电设计技术(07);全文 *
网络处理器中的快速GTP隧道检查方法;刘震宇;傅予力;赖粤;;系统工程与电子技术(02);全文 *

Also Published As

Publication number Publication date
CN111726887A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
US20210227492A1 (en) Packet transmission method and apparatus
US9173244B2 (en) Methods for establishing and using public path, M2M communication method, and systems thereof
US10334419B2 (en) Methods, systems, and computer readable media for optimizing machine type communication (MTC) device signaling
CN114124618B (en) Message transmission method and electronic equipment
US10999768B2 (en) Session context handling method, network element, and terminal device
WO2016150140A1 (en) Processing method and system for control packet in sdn-based gateway
US20230070712A1 (en) Communication method, apparatus, and system
WO2017147772A1 (en) Method of transmitting information and core network access apparatus
US9992109B2 (en) Data transmission method, apparatus and system
WO2017118191A1 (en) Method and device for transmitting control plane information
WO2022082724A1 (en) Method and apparatus for multicast service support in time sensitive network
WO2016112674A1 (en) Communication method, terminal, system and computer storage medium
CN113595911B (en) Data forwarding method and device, electronic equipment and storage medium
WO2014023175A1 (en) Message processing method in coexistence of multiple external identifiers of terminal and network side device
CN113518475B (en) Communication method, device and system
US11039338B2 (en) Methods, systems, and computer readable media for control plane traffic filtering in a control and user plane separation (CUPS) environment
CN111726887B (en) Tunnel establishment method and device
WO2017101028A1 (en) Data transmission method, m2m server, pgw, sgw and serving network node
CN112054953B (en) Multimedia instant messaging method, system, terminal equipment and computer storage medium
CN114126085A (en) Industrial field bus communication method and device, electronic equipment and storage medium
CN113438705A (en) Communication data processing method, communication data processing device, communication equipment and storage medium
JP6971118B2 (en) Devices, methods and programs for sending and receiving data to and from IoT devices
CN111726889B (en) Context acquisition method and device
WO2024031726A1 (en) Information processing method and apparatus, communication device, and storage medium
CN115412925B (en) Network security protection method and device and network element with security protection function

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