WO2009056061A1 - Method, system and device for transmitting general packet radio service tunneling protocol datagram - Google Patents

Method, system and device for transmitting general packet radio service tunneling protocol datagram Download PDF

Info

Publication number
WO2009056061A1
WO2009056061A1 PCT/CN2008/072815 CN2008072815W WO2009056061A1 WO 2009056061 A1 WO2009056061 A1 WO 2009056061A1 CN 2008072815 W CN2008072815 W CN 2008072815W WO 2009056061 A1 WO2009056061 A1 WO 2009056061A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
gtp
packet
protocol
gtp protocol
Prior art date
Application number
PCT/CN2008/072815
Other languages
French (fr)
Chinese (zh)
Inventor
Shiyong Tan
Hui Ni
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009056061A1 publication Critical patent/WO2009056061A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/168Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP] specially adapted for link layer protocols, e.g. asynchronous transfer mode [ATM], synchronous optical network [SONET] or point-to-point protocol [PPP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]

Definitions

  • the present invention relates to a mobile communication technology, and in particular, to a GPRS (General Packet Radio Service) tunneling protocol (GTP, GPRS Tunneling Protocol) message transmission method, system and device.
  • GTP General Packet Radio Service
  • GTP General Packet Radio Service Tunneling Protocol
  • the GPRS network realizes end-to-end packet data transmission by introducing packet data technology in the original Global System for Mobile communication (GSM), providing users with more abundant service types, such as web browsing and file downloading. And online games and more.
  • GSM Global System for Mobile communication
  • FIG. 1 is a schematic diagram of an existing GPRS network architecture.
  • the existing GPRS network architecture mainly includes: a GPRS Service Support Node (SGSN), a GPRS Gateway Support Node (GGSN), and a Home Location Register (HLR). .
  • SGSN GPRS Service Support Node
  • GGSN GPRS Gateway Support Node
  • HLR Home Location Register
  • the SGSN is used to implement signaling transmission in packet switching, and is used for processing and transmitting data packets, and provides mobility management, security management, access control, and routing capabilities for users.
  • the GGSN used to be responsible for the connection between the GPRS network and various external data networks, such as the Internet (Internet) enterprise network and the X.25 network; the GGSN is the gateway located in the GPRS backbone network and the external data network, and is GPRS. The transmission path between the network and the external data network.
  • Internet Internet
  • X.25 X.25
  • the HLR is used to store the GPRS subscription information and routing information of the user.
  • the GGSN and the SGSN are respectively connected to the HLR, and the subscription data of the user is obtained from the HLR.
  • the SGSN and the HLR may be located in different networks.
  • the SGSN and the GGSN exchange information through the Gn interface.
  • the Gn interface uses the IP-based GTP protocol for communication.
  • the GSN GPRS Supporting Node
  • the GGSN is a GSN in a different Public Land Mobile Network (PLMN), such as the Universal Mobile Telecommunications System (UMTS) land radio access network (UTRAN, UMTS Terrestrial) shown in FIG.
  • PLMN Public Land Mobile Network
  • UMTS Universal Mobile Telecommunications System
  • UTRAN Universal Mobile Telecommunications System
  • UMTS Terrestrial Universal Mobile Telecommunications System Terrestrial
  • the SGSNs in the Radio Access Network exchange information through the Gp interface.
  • the Gp interface also adds security functions required for the PL-Ethernet and support for inter-domain routing protocols, such as Border Gateway Protocol (BGP).
  • Border Gateway Protocol BGP
  • multiple protocols can be used for data transmission between two network nodes. These protocols are combined in a hierarchical order to form a protocol stack. The information to be transmitted is encapsulated and decapsulated multiple times through the protocol stack to implement transparency of the lower layer transmission mode to the upper layer.
  • a schematic diagram of a Gn or Gp interface protocol stack between existing GSNs is shown in Figure 2. The functions of each layer protocol in the protocol stack are as follows:
  • L1 protocol The physical layer transport protocol, which is related to the specific physical technology used for transmission.
  • L2 protocol Data link layer protocol, which provides functions such as establishment and teardown of data links, and implements error detection and correction of data; Available protocol types include Ethernet and Asynchronous Transfer Mode (ATM).
  • ATM Asynchronous Transfer Mode
  • IETF Internet Engineering Task Force
  • RRC Request For Comments
  • each Ethernet frame is 18 bytes long, including 6 bytes of the destination address, 6 bytes of the source address, 2 bytes of the type, and 4 bytes of the check digit.
  • at least 12 bytes of transmission time slot and 8 bytes of synchronization bits are required in each frame.
  • IP protocol network interconnection protocol, mainly complete routing function, used for user data and signaling routing; IP protocol openness makes there is no necessary connection between the upper layer application and the lower layer bearer network, application service and bearer network technology can According to their respective independent developments; the current IP protocol mainly includes two versions of IPv4 and IPv6; as shown in Table 2, Table 2 shows the existing IPv4 packet format:
  • the options in the IPv4 packet shown in Table 2 are generally not used.
  • the header length is a total of 20 bytes.
  • the header length of an IPv6 datagram is typically 40 bytes.
  • UDP User Datagram Protocol
  • Table 3 shows the existing UDP packet format:
  • the length of the UDP packet header is 8 bytes.
  • the GTP protocol is mainly used to transmit user packet data and tunnel management information between GSNs, such as tunnel establishment and release. Maintenance, etc., carried on top of the UDP protocol.
  • the existing GTP protocols can be mainly divided into three types: GTP-GTP, a control plane for transmitting control signaling, GTP-U, a user plane for transmitting user data packets, and a meter in the charging system.
  • GTP-GTP a control plane for transmitting control signaling
  • GTP-U a control plane for transmitting control signaling
  • GTP-U a user plane for transmitting user data packets
  • meter in the charging system a meter in the charging system.
  • the GTP' protocol used between the Charging Date Function (CDF) and the Charging Gateway Function (CGF).
  • CDF Charging Date Function
  • CGF Charging Gateway Function
  • the GTP protocol allows multiple protocol packets, such as IP and X.25 packets, to be tunneled between GSNs.
  • the GTP protocol can also be applied to communication between other network entities, such as UTRAN and SGSN, Home Nodes in the 3rd Generation Partnership Project (SAE, System Architecture Evolution). (eNodeB) and the service gateway (S-GW, Serving Gateway), and between the S-GW and the public-data networks gateway (P-GW).
  • SAE System Architecture Evolution
  • S-GW Serving Gateway
  • P-GW public-data networks gateway
  • Table 4 shows the existing GTP packet format:
  • Table 4 shows the format of the GTP packet that does not include the extended header. As shown in Table 4, the length of the GTP packet header that does not include the extended header is 8 bytes. If the extended header is included, the header length will be It will increase depending on the specific situation.
  • Figure 3 is a schematic diagram of the encapsulation process of data entering the protocol stack when data is transmitted using GTP protocol packets.
  • the IP protocol in Figure 3 is IPv4 and the L2 protocol is Ethernet.
  • FIG. 3 at the transmitting end, according to the protocol used in the protocol stack, multiple encapsulation processes are performed in descending order, and finally the encapsulated Ethernet frame is sent at the physical layer via the physical device; At the end, the corresponding decapsulation process is performed in the order of low to high, and finally the transmitted application data is obtained, thereby implementing communication between devices.
  • the GTP protocol type is GTP-C
  • the destination port number encapsulated in the UDP header is 2123.
  • the GTP protocol type is GTP-U
  • the destination port number encapsulated in the UDP header is 2152.
  • the protocol type is GTP'
  • the destination port number encapsulated in the UDP header is 3386.
  • the inventor has found that: when using existing GTP protocol messages to transmit data, the proportion of payload data in IP datagrams is low, which reduces network transmission efficiency and wastes bandwidth.
  • the embodiment of the invention provides a general packet radio service tunnel protocol message transmission method, which can improve the proportion of payload data in the IP datagram.
  • a general packet radio service tunneling protocol GTP message transmission method comprising:
  • the first network element encapsulates the one or more GTP protocol packets in the same IP data packet by using the multiplexed manner; the first network element sends the encapsulated IP data packet to the second network. yuan.
  • a GTP protocol message transmission system includes: a first network element and a second network element;
  • the first network element is configured to encapsulate one or more GTP protocol packets in the same IP data packet in a multiplex manner, and send the packet to the second network element.
  • the second network element is configured to receive an IP data packet from the first network element.
  • a GTP protocol message transmission device includes: a packaging unit and a sending unit;
  • the encapsulating unit is configured to encapsulate one or more GTP protocol packets in the same IP data packet by multiplexing;
  • the sending unit is configured to send the encapsulated IP data packet to the receiving device.
  • one or more GTP protocol packets are encapsulated in the same IP datagram and transmitted in a multiplex manner, thereby increasing the proportion of the payload data in the IP datagram, thereby improving network transmission efficiency and saving.
  • the bandwidth
  • Figure 1 is a schematic diagram of an existing GPRS network architecture
  • FIG. 2 is a schematic diagram of a Gn or Gp interface protocol stack between existing GSNs
  • FIG. 3 is a schematic diagram of a packaging process of data entering a protocol stack when data is transmitted by using GTP protocol packets;
  • Figure 4 is a schematic diagram of an existing voice transmission mode
  • Figure 5 is a flow chart of an embodiment of a method of the present invention.
  • FIG. 6 is a schematic structural diagram of an IP datagram encapsulated in a multiplexing manner according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of another IP datagram encapsulated in a multiplexing manner according to an embodiment of the present invention.
  • Figure 8 is a flow chart of the first embodiment of the method of the present invention.
  • Figure 9 is a flow chart of a second embodiment of the method of the present invention.
  • Figure 10 is a flow chart of a third embodiment of the method of the present invention.
  • Figure 11 is a flow chart of a fourth embodiment of the method of the present invention.
  • FIG. 12 is a schematic structural diagram of a system embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of an embodiment of an apparatus according to the present invention.
  • the code rate is usually 4.75 Kbps ⁇ 12. 2 Kbps, and the sampling interval is 20 ms. Then, assuming an average code rate of 8 Kbps, each speech frame includes a total of 160 bits, that is, 20 bytes. It is assumed that the voice communication is performed according to the existing typical voice transmission mode shown in FIG. 4, wherein the upper layer tunnel of the GTP-U protocol further includes voice data, Real Time Transport Protocol (RTP, UDP, and IPv4) as shown in FIG. Structure.
  • RTP Real Time Transport Protocol
  • the sender first encapsulates the voice data into an IPv4 datagram format in the GTP-U protocol upper layer tunnel, and then encapsulates the IPv4 datagram in the manner shown in FIG. 3 and sends the voice data to the receiving end; Decapsulation is performed to obtain the transmitted IPv4 datagram.
  • the format of the RTP packet is shown in Table 5: Version number and flag bit (16 bits) Serial number (16 bits)
  • the header of the RTP packet includes 12 bytes.
  • the length of the obtained packet will be 20 (data length). + 12 (RTP header length) +8 (UDP header length) +20 (IPv4 header length) +8 (GTP header length), a total of 68 bytes.
  • RTP header length For a payload of 68 bytes, the length of the payload is 96 bytes, and the effective data is only 70.8%; the length after encapsulation is an Ethernet frame is 114 bytes. If we further consider the transmission time slots and synchronization bits shown in Table 1, the total is 134 bytes, of which the payload data only accounts for 50%.
  • the first network element encapsulates one or more GTP protocol packets in the same IP datagram by multiplexing, and sends the packet to the second network element; the second network element receives the received IP address.
  • the datagram is decapsulated to obtain the one or more GTP protocol messages.
  • first network element and “second network element” are only for convenience of description. In practical applications, “first network element” or “second network element” can be used to represent Any one of the two communication parties, that is, the above-mentioned function completed by the “first network element” can also be completed by the “second network element”.
  • FIG. 5 is a flow chart of an embodiment of a method of the present invention.
  • the first network element and the second network element in this embodiment may be any two nodes or devices that communicate through the GTP protocol, such as the SGSN and the GGSN, and the S-GW and the P-GW.
  • the method includes the following steps: Step 51: The first network element encapsulates one or more GTP protocol packets in the same IP datagram and multiplexes them into the second network element.
  • the two communication parties that is, the first network element and the second network element, need to first acquire the multiplexing control information of the other party.
  • the operations performed on the two sides of the first network element and the second network element are the same. Therefore, in the embodiment of the present invention, the first network element side is taken as an example for description.
  • the multiplexing control information of the second network element acquired by the first network element may include: a support capability for multiplexing transmission, and a GTP protocol type using multiplexing transmission, such as GTP. -C, GTP-U or GTP', UDP destination port number for receiving multiplexed packets, maximum encapsulation delay time, one or any combination of information such as the maximum packet length for multiplex encapsulation.
  • GTP protocol types or different bearers in the network may correspond to different multiplexing control information.
  • the support capability of the multiplex transmission may be divided into a transmission capability and a reception capability, and the first network element or the second network element may have only one of the capabilities, or both.
  • the first network element After acquiring the multiplex control information of the second network element, the first network element determines, according to the support capability information of the multiplex transmission carried therein, whether the second network element supports the multiplex transmission, if supported, Step 51 is performed; if it is not supported, for example, the second network element only has multiplexed transmission capability and no receiving capability, or has neither transmission capability nor reception capability, the first network element is in accordance with the existing common
  • the transmission mode transmits GTP protocol packets to the second network element. Only multiplexed transmission for the second network element If the capability is not available, the second network element may send the GTP protocol packet to the first network element in a multiplexed manner. Of course, the first network element needs to have a receiving function.
  • the multiplexed encapsulation and transmission mode may be adopted only in one direction of the communication parties, and the existing encapsulation and transmission mode may be adopted in the other transmission direction, or Multiplexed encapsulation and transmission are used in all directions.
  • the manner in which the first network element obtains the multiplexing control information of the second network element may be any one of the following three or any combination:
  • Manner 1 Obtain some or all of the multiplexing control information of the second network element by using a pre-configuration manner.
  • the part or all of the multiplexed control information is carried in the GTP-C message sent to the other party, and is notified to the other party.
  • the first network element learns part or all of the multiplexed control information of the second network element according to the GTP-C message received from the second network element.
  • Mode 3 When the two parties establish a connection for the first time, the two parties carry some or all of the multiplexed control information in the GTP-C message to be sent to the other party.
  • the first network element receives the From the GTP-C message of the second network element, some or all of the multiplexed control information of the second network element is learned, and the information is stored for subsequent determination of the transmission mode between the two.
  • the first network element may obtain the multiplex control information of the second network element by using any one of the foregoing three methods, or by any combination. For example, some information can be obtained in a pre-configured manner, and other required information is obtained through the above methods 2 and 3. Other possible combinations are not listed one by one.
  • GTP-C message for carrying the multiplexed control information in the above modes 2 and 3 can also be replaced with other messages known in the art, and is not limited to the GTP-C message.
  • the first network element After obtaining the multiplexing control information of the second network element, and determining that the second network element supports the multiplexed transmission, the first network element needs to be sent to the same IP target address, that is, the GTP protocol report of the second network element.
  • the packet is encapsulated into the same IP datagram and sent to the second network element.
  • the first network element encapsulates one or more GTP protocol packets in the same IP datagram by multiplexing. This process needs to be completed within the maximum package delay time to limit the delay due to multiplexed transmission; if the multiplexed control information acquired by the first network element includes the maximum applicable multiplexed package
  • the length of each GTP protocol packet encapsulated in the same IP datagram by the first network element in the multiplexed manner needs to be less than or equal to the maximum packet size of the applicable multiplexed encapsulation. length.
  • GTP protocol packets with the same QoS requirements are encapsulated in the same IP datagram, that is, the same IP datagram. GTP packets need to have the same QoS.
  • QoS Quality of Service
  • the same IP datagram encapsulates only the same type of GTP protocol packets, for example,
  • GTP-C GTP-C
  • GTP-U GTP'
  • the first network element sends different types of GTP protocol packets to different UDP destination ports.
  • each GTP protocol message may further include a multiplexing header.
  • FIG. 6 is a schematic structural diagram of an IP datagram encapsulated in a multiplexing manner according to an embodiment of the present invention. As shown in Figure 6, it The format of the IP header is the same as that of the prior art, and is not described here.
  • the UDP header includes the UDP source port number and destination port number used for transmitting the multiplexed packet, the length of the UDP packet, and the checksum.
  • the UDP source port number can be the newly assigned port number of the first network element, or the UDP source port number of the encapsulated GTP protocol packet in the normal manner; Configuring or negotiating the UDP destination port number carried in the multiplexed control information; the multiplex header may include: transmitting, in an ordinary manner, a GTP protocol packet corresponding to the multiplexer header One or both of the UDP source port number and the length information of the adjacent GTP protocol packets to be used. If neither of the above information is included, the multiplex header can be omitted.
  • each GTP protocol message may further include a multiplexing header.
  • FIG. 7 is a schematic structural diagram of another IP datagram encapsulated in a multiplexing manner according to an embodiment of the present invention.
  • the UDP header includes the UDP source port number and the destination port number used to transmit the multiplexed packet, and the UDP packet.
  • the UDP destination port number is the UDP destination port number carried in the multiplex control information obtained through pre-configuration or negotiation.
  • the UDP source port number can be newly assigned by the first network element.
  • the multiplexer header includes: a UDP destination port number to be used when the GTP protocol packet corresponding to the GTP protocol packet is sent in the normal manner, for example, when the corresponding GTP protocol type is GTP-C, the corresponding UDP destination port number. 2123, when the corresponding GTP protocol type is GTP-U, the corresponding UDP destination port number is 2152. When the corresponding GTP protocol type is GTP', the corresponding UDP destination port number is 3386, thus making the second
  • the network element can obtain the specific type of the GTP protocol packet when decapsulating. Alternatively, the network element can directly carry the protocol type identifier of the GTP protocol packet corresponding to the multiplexer. For example, the 00 is used to represent the GTP.
  • the protocol type of the protocol packet is GTP-C
  • the protocol type of the GTP protocol packet with 01 is GTP-U
  • the multiplex header may further include: one or two of a UDP source port number and a length information of the GTP protocol packet to be used in the GTP protocol packet corresponding to the GTP protocol packet.
  • Step 52 The second network element decapsulates the received IP datagram to obtain one or more GTP protocol packets.
  • the second network element performs decapsulation of the received IP datagram by the IP protocol layer, and receives the UDP protocol packet decapsulated by the IP protocol layer in the UDP destination port specified in the encapsulated IP datagram, and according to the existing The method performs subsequent decapsulation on the packet, extracts multiple GTP protocol packets included, and completes multiplex transmission.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 8 is a flow chart of a first embodiment of the method of the present invention.
  • the GTP protocol packet transmitted by the first network element and the second network element in a multiplexed manner is a GTP-U protocol packet, and the network layer transmission protocol is IPv4; the first network element and the first network element
  • the manner in which the second network element obtains the multiplex control information of the other party is: when the connection or bearer is established or modified, the support capability information of the multiplex transmission is negotiated through the GTP-C message;
  • the path multiplexing control information such as the UDP destination port number for receiving the multiplexed message. It is assumed that the UDP destination port number in this embodiment is A, and the first network element and the second network element are respectively S-GW and P-GW. As shown in Figure 8, the following steps are included:
  • Step 81 When the connection or bearer 1 is established, the S-GW sends a GTP-C message to the P-GW, where the message carries the S-GW support capability information for the multiplex transmission, to notify the P-GW of the local end to support Multiplex transmission of the GTP-U protocol.
  • Step 82 The P-GW sends a GTP-C message to the S-GW, where the message does not include the P-GW support capability information for the multiplex transmission, to notify the S-GW that the local end does not support the GTP-U protocol. Or the multiplexed transmission; or, the P-GW sends, to the S-GW, capability information that is identifiable by both parties and is a specific value, such as 0000, to notify the S-GW that the local end does not support the multiplex of the GTP-U protocol. Use transmission.
  • Step 83 Since the P-GW does not support the multiplex transmission of the GTP-U protocol, the S-GW and the P-GW can still use the existing common GTP-U protocol packets in the connection or bearer 1
  • the encapsulation mode is encapsulated and transmitted, where the destination port number of UDP is 2152.
  • both the S-GW and the P-GW support the multiplexed transmission mode of the GTP-U protocol on the connection or bearer:
  • Step 84 When the connection or bearer 2 is established, the S-GW sends a GTP-C message to the P-GW, where the message carries the S-GW support capability information for the multiplex transmission, to notify the P-GW of the local end to support Multiplex transmission of the GTP-U protocol.
  • Step 85 The P-GW sends a GTP-C message to the S-GW, where the message carries the P-GW support capability information for the multiplex transmission, to notify the S-GW that the local end supports the GTP-U protocol. Multiplexed transmission.
  • Step 86 The S-GW performs multiplex multiplexing encapsulation on the GTP-U protocol packets that need to be sent to the P-GW IP address and have the same QoS requirements.
  • Step 87 The S-GW sends an IP datagram encapsulated with multiple GTP-U protocol packets to the P-GW.
  • the P-GW decapsulates the received IP datagram, and extracts multiple GTPs included therein. U protocol message.
  • Step 88 The P-GW sends the GTP-U packet with the same QoS requirement to the S-GW IP address for multiplexed encapsulation.
  • Step 89 The P-GW sends an IP datagram encapsulating multiple GTP-U protocol packets to the S-GW.
  • the S-GW decapsulates the received IP datagram, and extracts multiple GTPs included therein. U protocol message.
  • the S-GW supports the multiplex transmission mode of the GTP-U protocol on the connection or the bearer, and the P-GW only supports the GTP-U protocol multiplexed encapsulation message. Send, but does not support the reception of this type of message:
  • Step 810 When the connection or bearer 3 is established, the S-GW sends a GTP-C message to the P-GW, where the message carries the S-GW support capability information for the multiplex transmission, to notify the P-GW of the local end to support Multiplex transmission of the GTP-U protocol.
  • Step 811 The P-GW sends a GTP-C message to the S-GW, where the message carries the P-GW support capability information for the multiplex transmission. To inform the S-GW that the local end only supports the transmission of GTP-U protocol multiplexed encapsulated packets, and does not support the reception of such packets.
  • Step 812 The S-GW sends the GTP-U packet to the 2152 port of the P-GW in a normal encapsulation manner according to the receiving capability of the P-GW.
  • Steps 813-814 Since the P-GW supports multiplex transmission for the GTP-U protocol, the P-GW can still send and encapsulate multiple GTP-U protocols to the S-GW according to the procedures described in steps 88-89. IP datagram of the message.
  • Embodiment 2
  • FIG. 9 is a flow chart of a second embodiment of the method of the present invention.
  • the GTP protocol packet transmitted by the first network element and the second network element in a multiplexed manner is a GTP-U and a GTP-C protocol packet
  • the network layer transmission protocol is IPv4
  • Different types of GTP packets are encapsulated into different IP datagrams for transmission.
  • the first network element and the second network element obtain the multiplexed control information of the other party in the following manner: When the two parties establish a connection for the first time, the negotiation is performed. Support for multiplexed transmission and UDP destination port number information for receiving multiplexed messages; information such as maximum package delay time is obtained by pre-configuration. Assume that the maximum encapsulation delay of GTP-C packets is 20 ms in this embodiment. The maximum encapsulation delay of GTP-U packets is 30 ms. As shown in Figure 9, the following steps are included:
  • Step 91 When establishing a connection with the second network element for the first time, the first network element sends a negotiation message to the second network element, where the message carries the support capability information of the multiplex transmission of the first network element, to notify the
  • the local end of the second network element supports the multiplex transmission of the GTP-C protocol and the GTP-U protocol, and the UDP destination port number of the multiplexed encapsulated packet of the local end receiving the GTP-U protocol is Al, and the GTP is received.
  • the UDP destination port number of the multiplexed encapsulated packet of the C protocol is A2.
  • Step 92 The second network element receives the negotiation information sent by the first network element, and stores the information.
  • Step 93 The second network element sends a negotiation message to the first network element, where the message carries the support capability information of the multiplex transmission of the second network element, to notify the local end of the first network element to support the GTP-C protocol.
  • the multiplexed transmission of the GTP-U protocol, and the UDP destination port number of the multiplexed encapsulation packet of the GTP-U protocol received by the local end is B1, and the multiplexed encapsulation packet of the GTP-C protocol is received.
  • the UDP destination port number is B2.
  • Step 94 The first network element receives the negotiation information sent by the second network element, and stores the information.
  • each party can use the stored support capability information about the multiplex transmission of the other party to determine whether and how to perform multiplex transmission. .
  • Step 95 The first network element multiplexes the GTP-C packet that is subsequently sent to the IP address of the second network element.
  • the encapsulation duration of the multiplexed encapsulation of the first network element is not more than 20 ms ; the UDP destination port number in the encapsulated IP datagram is B2 ; and each GTP protocol packet in the encapsulated IP datagram corresponds to
  • the multiplexer header includes the UDP source port number, which is a source port number that should be used when the GTP-C protocol packet is sent in the normal manner, and may further include the length of the GTP protocol packet corresponding to the GTP protocol packet.
  • Step 96 The first network element sends an IPv4 data packet that encapsulates multiple GTP-C protocol packets to the second network element.
  • the second network element decapsulates the received IPv4 datagram, and extracts the included data. GTP-C protocol packets.
  • Step 97 The second network element multiplexes the GTP-C protocol packet that is subsequently sent to the IP address of the first network element.
  • the encapsulation duration of the second network element for multiplexing and packaging does not exceed 20 ms ; the UDP in the encapsulated IP datagram
  • the destination port number is A2.
  • the multiplex header corresponding to each GTP protocol packet in the encapsulated IP datagram includes the UDP source port number. The value should be used when sending the GTP-C protocol packet in the normal mode.
  • the source port number may further include the length information of the GTP protocol packet corresponding to the source port number.
  • Step 98 The second network element sends an IPv4 data packet encapsulating the plurality of GTP-C information to the first network element.
  • the first network element decapsulates the received IPv4 data, and extracts multiple GTPs included therein. -C protocol message.
  • Step 99 The first network element multiplexes the GTP-U packet that is subsequently sent to the IP address of the second network element.
  • the encapsulation duration of the multiplexed encapsulation of the first network element is not more than 30 ms ; the UDP destination port number in the encapsulated IP datagram is B1; and each GTP protocol packet in the encapsulated IP datagram corresponds to
  • the multiplex header includes the UDP source port number, which is the source port number that should be used to send the GTP-U packet in the normal manner.
  • Step 910 The first network element sends an IPv4 datagram that encapsulates multiple GTP-U information to the second network element.
  • the second network element decapsulates the received IPv4 datagram, and extracts multiple GTPs included therein. -U protocol message.
  • Step 911 The second network element multiplexes the GTP-U packet that is subsequently sent to the IP address of the first network element.
  • the encapsulation duration of the multiplexed encapsulation of the second network element is not more than 30 ms ; the UDP destination port number in the encapsulated IP datagram is A1; and each GTP protocol packet in the encapsulated IP datagram corresponds to
  • the multiplex header includes the UDP source port number, which is the source port number that should be used to send the GTP-U packet in the normal manner.
  • Step 912 The second network element sends an IPv4 datagram that encapsulates multiple GTP-U information to the first network element.
  • the first network element decapsulates the received IPv4 datagram, and extracts multiple GTPs included therein. -U protocol message.
  • FIG. 10 is a flow chart of a third embodiment of the method of the present invention.
  • the GTP protocol packets transmitted by the first network element and the second network element in a multiplexed manner are GTP-U, GTP-C, and GTP' protocol packets, and the network layer transmission protocol is IPv6.
  • the different types of GTP protocol packets are encapsulated into the same IP datagram for transmission; the manner in which the first network element and the second network element obtain the multiplexed control information of the other party is: when the user connection or bearer is established or modified.
  • the negotiation multiplex transmission support capability, the UDP destination port number for receiving multiplexed messages, and the maximum message length information applicable to the multiplexed encapsulation As shown in Figure 10, the following steps are included:
  • Step 101 When the connection or bearer is established or modified, the first network element sends the negotiation information to the second network element, where the first network element carries the support capability information of the multiplex transmission, to notify the local end of the second network element.
  • the first network element carries the support capability information of the multiplex transmission, to notify the local end of the second network element.
  • Step 102 The second network element sends a negotiation message to the first network element, where the second network element carries the support capability information of the multiplex transmission, to notify the local end of the first network element to support the GTP protocol message.
  • the multiplexed packet length of the GTP protocol packet received by the local end is D2, and the maximum packet length of the multiplexed encapsulation is 120 bytes.
  • Step 103 The first network element multiplexes the GTP protocol packet whose destination address is the second network element IP address, the QoS requirement is the same, and the packet length does not exceed 120 bytes.
  • the UDP destination port number in the encapsulated IP datagram is D2 ; the corresponding GTP protocol packets in the encapsulated IP datagram correspond to
  • the UDP source port number carried in each multiplexer header is the source port number that should be used when the GTP protocol packet is sent in the normal manner; each multiplexer header also includes its corresponding GTP protocol packet.
  • the type identifier is, for example, the GTP-C protocol packet is 1 for the GTP-C protocol packet and 2 for the GTP-U protocol packet.
  • Step 104 The first network element sends an IPv6 data packet that encapsulates multiple GTP protocol packets to the D2 port of the second network element.
  • Step 105 The second network element decapsulates the received IPv6 datagram, and extracts multiple GTP protocol packets. The second network element can determine the specific protocol type of the corresponding GTP packet according to the type identifier of the GTP protocol packet in the multiplexer header.
  • Steps 106 to 108 Similar to steps 103 to 105, the second network element may also send the IPv6 packet formed by multiplexing the multiple GTP protocol packets to the first network element by using the multiplexed encapsulation; the first network element is receiving After the decapsulation process, multiple GTP protocol packets are extracted.
  • Steps For a GTP protocol packet that does not meet the multiplex transmission condition, for example, a GTP protocol packet whose packet length exceeds the maximum packet length of the multiplexed package can be transmitted in a normal encapsulation manner.
  • the network element is overloaded during operation, so to reduce the load, the multiplex transmission mode is no longer supported, or because it is configured to not support the multiplex transmission mode, etc.
  • the support capability of the second network element for the multiplexed transmission is changed, and only the transmission of the GTP multiplexed encapsulated packet is supported, and the receiving of the packet is no longer supported. Then, in the following steps:
  • Step 1010 The second network element sends a negotiation message to the first network element, where the message includes the updated capability information of the second network element for the multiplex transmission, and the first network element is notified, and the local end does not support receiving. Multicast encapsulation message of GTP protocol.
  • Steps 1011 to 1012 Since the second network element still supports the multiplex transmission of the GTP protocol, the second network element can still transmit the GTP protocol multiplexing to the first network element according to the procedures described in steps 103 to 105. Encapsulate the message.
  • Step 1013 The first network element is not multiplexed and packaged for the subsequent GTP packet according to the change of the receiving capability of the second network element, but is transmitted to the second network element in a normal encapsulation manner.
  • Embodiment 4
  • FIG 11 is a flow chart of a fourth embodiment of the method of the present invention.
  • the GTP protocol packets transmitted by the first network element and the second network element in a multiplexed manner are GTP-U, GTP-C, and GTP' protocol packets, and the network layer transmission protocol is IPv4.
  • the different types of GTP protocol packets are encapsulated into the same IP datagram for transmission; the first network element and the second network element obtain the multiplexed control information of the other party in the following manner:
  • the transmission support capability, the UDP destination port number for receiving multiplexed packets, and the maximum encapsulation delay time information It is assumed that the maximum package delay time in this embodiment is 20 ms, and the UDP destination port number for receiving multiplexed packets is C.
  • the following steps are included:
  • Step 111 According to the pre-configured information, the first network element multiplexes and encapsulates the GTP protocol packet whose destination address is the second network element IP address, and the QoS requirements are the same.
  • the pre-configuration mentioned in this step refers to pre-configuring the multiplex control information of both parties in the first network element and the second network element.
  • the duration of multiplexing and packaging of the first network element does not exceed the maximum package delay time of 20 ms; the number of IPs after encapsulation Reported the UDP destination port number carried are C; source UDP port number of the multiplexed header of the IP datagram encapsulated in GTP packets each corresponding to the ordinary mode of the GTP protocol packets should be sent The source port number used; the UDP destination port number in each multiplexer header is the destination port number to be used when sending the corresponding GTP protocol packets in the normal manner. For example, if the GTP protocol packet corresponding to a multiplexer header is a GTP-C protocol packet, the destination port number is 2123. If the corresponding GTP protocol packet is a GTP-U protocol packet, then The destination port number is 2152. If the corresponding GTP protocol packet is GTP', the destination port number is 3386.
  • Step 112 The first network element sends an IP datagram that encapsulates multiple GTP protocol packets to the C port of the second network element.
  • Step 113 The second network element decapsulates the received IP datagram, and extracts multiple GTP protocol packets.
  • the second network element can determine the specific type of the corresponding GTP protocol packet according to the value of the UDP destination port number carried in the multiplexer.
  • Steps 114 to 116 Similar to steps 111 to 113, the second network element encapsulates multiple GTP protocol packets in the same IP datagram and multiplexes them to the first network element. The first network element receives the packets. The IP datagram is decapsulated, and the plurality of GTP protocol messages included therein are extracted.
  • FIG. 12 is a schematic structural diagram of a system embodiment of the present invention.
  • the various method embodiments described above can be implemented based on the system shown in FIG.
  • the system includes: a first network element 121 and a second network element 122;
  • the first network element 121 is configured to encapsulate one or more GTP protocol packets in the same IP datagram by multiplexing, and send the same to the second network element 122;
  • the second network element 122 is configured to receive an IP datagram from the first network element 121.
  • the first network element 121 is further configured to obtain the multiplexing control information of the second network element 122.
  • the first network element 121 determines the second network according to the obtained multiplexing control information of the second network element 122. Whether the element 122 supports the multiplex transmission, if supported, the one or more GTP protocol messages are encapsulated in the same IP datagram by multiplexing, and sent to the second network element 122; if not supported, Then, the GTP protocol packet is transmitted to the second network element 122 according to the normal transmission mode.
  • FIG. 13 is a schematic structural diagram of an embodiment of an apparatus according to the present invention. As shown in FIG. 13, the device includes: a packaging unit 131 and a sending unit 132;
  • the encapsulating unit 131 is configured to encapsulate one or more GTP protocol packets in the same IP datagram by multiplexing, and the sending unit 132 is configured to send the encapsulated IP datagram to the receiving device.
  • the device further includes: an obtaining unit 133, configured to acquire multiplexing control information of the receiving device; and determining, according to the acquired multiplexing control information of the receiving device, whether the receiving device supports the multiplex transmission, If supported, the notification encapsulating unit 131 performs a multiplex encapsulation function; if not, the notification encapsulating unit 131 transmits a GTP protocol message to the receiving device according to the normal transmission mode.
  • an obtaining unit 133 configured to acquire multiplexing control information of the receiving device; and determining, according to the acquired multiplexing control information of the receiving device, whether the receiving device supports the multiplex transmission, If supported, the notification encapsulating unit 131 performs a multiplex encapsulation function; if not, the notification encapsulating unit 131 transmits a GTP protocol message to the receiving device according to the normal transmission mode.
  • the multiplex control information may specifically include: support capability for multiplex transmission; or further including a GTP protocol type using multiplex transmission, a UDP destination port number for receiving multiplexed packets, and a maximum The encapsulation delay time, which is one or any combination of the maximum packet length information of the multiplexed encapsulation.
  • the obtaining unit 133 may specifically include: an obtaining subunit 1331 and a determining subunit 1332;
  • the obtaining sub-unit 1331 is configured to use the pre-configured manner, the negotiation mode when the connection or the bearer is established or modified, and the negotiation mode when the first network element 121 and the second network element 122 are first established. One or any combination, get received Multiplex control information for the device;
  • a determining subunit 1332 configured to determine, according to the multiplexing control information of the receiving device, whether the receiving device supports the multiplex transmission, and if so, notifying the encapsulating unit 131 to perform a multiplex encapsulation function; if not, The notification encapsulating unit 131 transmits the GTP protocol packet to the receiving device according to the normal transmission mode.
  • the foregoing encapsulating unit 131 may further include: a first encapsulating subunit 1311 and a second encapsulating subunit 1312; wherein: the first encapsulating subunit 1311 is configured to encapsulate the same type of GTP protocol packet in the same IP datagram;
  • the second encapsulation subunit 1312 is configured to encapsulate different types of GTP protocol packets in the same IP datagram.
  • the first encapsulating sub-unit 1311 may be further configured to: when the same type of GTP protocol packet is encapsulated in the same IP datagram, add one more before each GTP protocol packet encapsulated in the same IP datagram.
  • the multiplexer header, the multiplexer header includes: one of a UDP source port number to be used in the GTP protocol packet corresponding to the GTP protocol packet, and one of the length information of the GTP protocol packet corresponding to the GTP protocol packet Two kinds;
  • the second encapsulation sub-unit 1312 is further configured to add a multi-channel before each GTP protocol packet encapsulated in the same IP datagram when the different types of GTP protocol packets are encapsulated in the same IP datagram.
  • the multiplexer header, the multiplexer header includes: a UDP destination port number to be used for transmitting a GTP protocol packet corresponding to itself in a normal manner, or a protocol type identifier of a GTP protocol packet corresponding to itself.
  • the length of each speech frame is 20 bytes. It is assumed that the voice frame in the example is encapsulated and transmitted in the manner shown in FIG. 4, that is, the RTP protocol packet encapsulated in the voice data is carried in the IPv4 tunnel of the GTP upper tunnel, and the IPv4 data transmitted in the upper tunnel is transmitted. After being encapsulated as a GTP-U protocol packet, the total length is 68 bytes.
  • the length after encapsulation as an IPv4 datagram is 96 bytes
  • the length after encapsulation as an Ethernet frame is 114 bytes. If the transmission slot and synchronization bit of the Ethernet frame are further considered, A total of 134 bytes.
  • the same type of GTP protocol packet can be encapsulated in the same IP datagram as an example.
  • a 2-byte multiplex header then, according to the description in Table 1, the IPv4 datagram can encapsulate up to 1500 bytes of information, that is, a 28-byte UDP header and IP header, within the maximum package delay time. And about 20 GTP protocol messages.
  • the final IPv4 datagram length is 1428 bytes, and the length after encapsulation as an Ethernet frame is 1466 bytes (considering Ethernet frames) The transmission time slot and the synchronization bit); if the existing encapsulation mode is adopted, the total length of the IPv4 datagram corresponding to the 20 GTP protocol messages will be 1920 bytes, and the total Ethernet frame transmission The input length is 2680 bytes. It can be seen that for the same 20 GTP protocol messages, when the two solutions of the embodiment of the present invention and the prior art are used, the lengths of the required IPv4 datagrams are respectively 1428 bytes and 1920 bytes. The length of the required Ethernet frames is 1466 bytes and 2680 bytes, respectively. That is to say, the solution described in the embodiment of the present invention significantly improves the proportion of payload data in IP datagrams and Ethernet frames.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for transmitting general packet radio service (GPRS) tunneling protocol (GTP) datagram is disclosed, which includes: the first network element encapsulates one or more GTP protocol datagrams into one IP data packet by multiplexing mode; the first network element transmits the encapsulated IP data packet to the second network element. A system and device for transmitting GTP protocol datagram are also disclosed. Applying the method, system and device of the embodiments of the invention in the course of transmitting GTP protocol datagram can improve the proportion of the effective load data in the IP data packet.

Description

通用分组无线业务隧道协议报文传输方法、 系统及设备 技术领域  General packet radio service tunnel protocol message transmission method, system and device
本发明涉及移动通信技术, 特别涉及一种通用分组无线业务 (GPRS , General Packet Radio Service ) 隧道协议 (GTP, GPRS Tunneling Protocol ) 报文传输方法、 系统及设备。  The present invention relates to a mobile communication technology, and in particular, to a GPRS (General Packet Radio Service) tunneling protocol (GTP, GPRS Tunneling Protocol) message transmission method, system and device.
背景技术  Background technique
当前, GPRS技术已经在无线通信网络中得到了广泛应用。 GPRS网络通过在原有的全球移动通信 系统 (GSM, Global System for Mobile communication) 中引入分组数据技术, 实现了端到端的分 组数据传输, 为用户提供更为丰富的服务类型, 如网页浏览、 文件下载以及在线游戏等。  Currently, GPRS technology has been widely used in wireless communication networks. The GPRS network realizes end-to-end packet data transmission by introducing packet data technology in the original Global System for Mobile communication (GSM), providing users with more abundant service types, such as web browsing and file downloading. And online games and more.
图 1为现有 GPRS网络架构示意图。 如图 1所示, 现有 GPRS网络架构主要包括: GPRS服务支持 节点(SGSN, Serving GPRS Support Node ), GPRS网关支持节点(GGSN, Gateway GPRS Support Node ) 以及归属位置寄存器 (HLR, Home Location Register)。  Figure 1 is a schematic diagram of an existing GPRS network architecture. As shown in FIG. 1 , the existing GPRS network architecture mainly includes: a GPRS Service Support Node (SGSN), a GPRS Gateway Support Node (GGSN), and a Home Location Register (HLR). .
其中: SGSN, 用于实现分组交换中的信令传输, 并用于数据包的处理和传送, 提供对用户的移 动性管理、 安全管理、 接入控制以及路由选择等能力。  The SGSN is used to implement signaling transmission in packet switching, and is used for processing and transmitting data packets, and provides mobility management, security management, access control, and routing capabilities for users.
GGSN, 用于负责 GPRS网络与多种外部数据网的连接, 该外部数据网如, 互联网 (Internet ) 企业网以及 X. 25网络等; GGSN是位于 GPRS骨干网和外部数据网的网关, 为 GPRS网络与外部数据 网之间的传输通路。  GGSN, used to be responsible for the connection between the GPRS network and various external data networks, such as the Internet (Internet) enterprise network and the X.25 network; the GGSN is the gateway located in the GPRS backbone network and the external data network, and is GPRS. The transmission path between the network and the external data network.
HLR, 用于存储用户的 GPRS签约信息和路由信息; GGSN和 SGSN分别与 HLR相连, 从 HLR中获 取用户的签约数据; 当用户发生漫游时, SGSN与 HLR可能位于不同的网络。  The HLR is used to store the GPRS subscription information and routing information of the user. The GGSN and the SGSN are respectively connected to the HLR, and the subscription data of the user is obtained from the HLR. When the user roams, the SGSN and the HLR may be located in different networks.
SGSN与 GGSN之间通过 Gn接口进行信息交互。 Gn接口采用基于 IP的 GTP协议进行通信,在 GSN (GPRS支持节点; GPRS Supporting Node )之间通过 GPRS隧道协议(GTP, GPRS Tunneling Protocol ) 传送分组数据包, 一般支持域内的静态或动态路由协议。  The SGSN and the GGSN exchange information through the Gn interface. The Gn interface uses the IP-based GTP protocol for communication. The GSN (GPRS Supporting Node) transmits packet data packets through the GPRS Tunneling Protocol (GTP). It generally supports static or dynamic routing protocols in the domain.
GGSN与位于不同的公共陆地移动网络 (PLMN, Public Land Mobile Network) 中的 GSN, 例如 图 1中所示的通用移动通讯系统 (UMTS, Universal Mobile Telecommunications System) 陆地无 线接入网 (UTRAN, UMTS Terrestrial Radio Access Network) 中的 SGSN之间通过 Gp接口进行信 息交互。 Gp接口除能提供 Gn接口的功能外, 还增加了 PL丽互联所需的安全功能, 以及对域间路由 协议的支持, 如支持边界网关协议 (BGP, Border Gateway Protocol ) 等。  The GGSN is a GSN in a different Public Land Mobile Network (PLMN), such as the Universal Mobile Telecommunications System (UMTS) land radio access network (UTRAN, UMTS Terrestrial) shown in FIG. The SGSNs in the Radio Access Network) exchange information through the Gp interface. In addition to providing the functions of the Gn interface, the Gp interface also adds security functions required for the PL-Ethernet and support for inter-domain routing protocols, such as Border Gateway Protocol (BGP).
图 1所示其它网元以及接口主要用于提供无线接入和业务控制能力, 此处不作介绍。  The other network elements and interfaces shown in Figure 1 are mainly used to provide wireless access and service control capabilities, which are not described here.
在实际应用中, 两个网络节点之间进行数据传输时可以使用多种协议, 这些协议按照层次顺序 组合在一起, 构成协议栈。 待传输信息通过协议栈进行多次封装和解封装, 以实现低层传输方式对 高层的透明。一种现有 GSN之间的 Gn或 Gp接口协议栈示意图如图 2所示, 该协议栈中的各层协议 的功能如下:  In practical applications, multiple protocols can be used for data transmission between two network nodes. These protocols are combined in a hierarchical order to form a protocol stack. The information to be transmitted is encapsulated and decapsulated multiple times through the protocol stack to implement transparency of the lower layer transmission mode to the upper layer. A schematic diagram of a Gn or Gp interface protocol stack between existing GSNs is shown in Figure 2. The functions of each layer protocol in the protocol stack are as follows:
L1协议: 物理层传输协议, 与传输所采用的具体物理技术相关。  L1 protocol: The physical layer transport protocol, which is related to the specific physical technology used for transmission.
L2协议: 数据链路层协议, 提供数据链路的建立以及拆除等功能, 实现对数据的检错和纠错; 可用的协议类型包括以太网以及异步传输模式 (ATM, Asynchronous Transfer Mode ) 等; 以广泛应 用的以太网为例, 互联网工程任务组 (IETF, Internet Engineering Task Force )制定的标准草案 (RFC, Request For Comments ) 894中定义了以太网帧的封装格式, 如下述表一所示: L2 protocol: Data link layer protocol, which provides functions such as establishment and teardown of data links, and implements error detection and correction of data; Available protocol types include Ethernet and Asynchronous Transfer Mode (ATM). For example, the widely used Ethernet, the Internet Engineering Task Force (IETF), draft standards (RFC, Request For Comments) The encapsulation format of the Ethernet frame is defined in 894, as shown in Table 1 below:
传输时隙 同步位 Transmission slot synchronization bit
Figure imgf000004_0001
Figure imgf000004_0001
大于 12字节 8字节 6字节 6字节 2字节 46 ~ 1500字节 4字节 表一 以太网帧封装格式  Greater than 12 bytes 8 bytes 6 bytes 6 bytes 2 bytes 46 ~ 1500 bytes 4 bytes Table 1 Ethernet frame encapsulation format
从表一可以看出, 每个以太网帧中的附加信息长度为 18字节, 包括目的地址的 6字节、 源地址 的 6字节、 类型的 2字节以及校验数的 4字节; 此外, 每帧中还需要至少 12字节的传输时隙以及 8 字节的同步位。  As can be seen from Table 1, the additional information in each Ethernet frame is 18 bytes long, including 6 bytes of the destination address, 6 bytes of the source address, 2 bytes of the type, and 4 bytes of the check digit. In addition, at least 12 bytes of transmission time slot and 8 bytes of synchronization bits are required in each frame.
IP协议, 网络互联协议, 主要完成路由功能, 用于用户数据和信令的路由; IP协议的开放性使 得上层的应用和下层的承载网络之间没有必然的联系, 应用服务和承载网络技术可以按照各自独立 的方向发展; 目前的 IP协议主要包括 IPv4和 IPv6两个版本; 如表二所示, 表二为现有 IPv4报文 格式:  IP protocol, network interconnection protocol, mainly complete routing function, used for user data and signaling routing; IP protocol openness makes there is no necessary connection between the upper layer application and the lower layer bearer network, application service and bearer network technology can According to their respective independent developments; the current IP protocol mainly includes two versions of IPv4 and IPv6; as shown in Table 2, Table 2 shows the existing IPv4 packet format:
Figure imgf000004_0002
Figure imgf000004_0002
表二所示 IPv4报文中的选项部分一般情况下不会使用。 对于不包括选项部分的普通 IPv4数据 报, 其头部长度共为 20字节。 IPv6数据报的头部长度通常为 40字节。  The options in the IPv4 packet shown in Table 2 are generally not used. For normal IPv4 datagrams that do not include the option part, the header length is a total of 20 bytes. The header length of an IPv6 datagram is typically 40 bytes.
用户数据报协议 (UDP, User Datagram Protocol ) , 提供非面向连接的、 不可靠的数据传输链 路; UDP协议在数据传输之前不需要建立连接, 传输数据的可靠性通过上层应用来保证; 如表三所 示, 表三为现有 UDP报文格式:  User Datagram Protocol (UDP), which provides non-connection-oriented and unreliable data transmission links; UDP protocol does not need to establish a connection before data transmission, and the reliability of data transmission is guaranteed by the upper layer application; As shown in Figure 3, Table 3 shows the existing UDP packet format:
Figure imgf000004_0003
Figure imgf000004_0003
表三 UDP报文格式  Table 3 UDP packet format
由表三可见, UDP报文头部的长度为 8字节。  As shown in Table 3, the length of the UDP packet header is 8 bytes.
GTP协议, 主要用于在 GSN之间传输用户分组数据以及隧道管理信息, 如隧道建立、 释放以及 维护等, 承载在 UDP协议之上。 The GTP protocol is mainly used to transmit user packet data and tunnel management information between GSNs, such as tunnel establishment and release. Maintenance, etc., carried on top of the UDP protocol.
现有 GTP协议主要可分为三种类型: 用于传输控制信令的控制面 GTP协议 GTP-C, 用于传输用 户数据报文的用户面 GTP协议 GTP-U, 以及在计费系统的计费数据功能实体 (CDF, Charging Date Function)和计费网关功能实体 (CGF, Charging Gateway Function) 之间使用的 GTP' 协议。 GTP 协议允许多种协议包, 如 IP、 X. 25数据包等在 GSN之间通过隧道方式进行传输。  The existing GTP protocols can be mainly divided into three types: GTP-GTP, a control plane for transmitting control signaling, GTP-U, a user plane for transmitting user data packets, and a meter in the charging system. The GTP' protocol used between the Charging Date Function (CDF) and the Charging Gateway Function (CGF). The GTP protocol allows multiple protocol packets, such as IP and X.25 packets, to be tunneled between GSNs.
此外, GTP协议也可以应用于其它网络实体间的通信, 如 UTRAN与 SGSN、 第三代移动通信标准 化伙伴项目 ( 3GPP, 3rd Generation Partnership Project )系统架构演进(SAE, System Architecture Evolution) 中的家庭节点 ( eNodeB) 与服务网关 ( S- GW, Serving Gateway), 以及 S- GW与公共数 据网网关 (P-GW, public-data networks Gateway) 之间等。  In addition, the GTP protocol can also be applied to communication between other network entities, such as UTRAN and SGSN, Home Nodes in the 3rd Generation Partnership Project (SAE, System Architecture Evolution). (eNodeB) and the service gateway (S-GW, Serving Gateway), and between the S-GW and the public-data networks gateway (P-GW).
如表四所示, 表四为现有 GTP报文格式:  As shown in Table 4, Table 4 shows the existing GTP packet format:
版本号 ( 3位) 标志位 (5位) GTP消息类型 ( 8位) 负载长度 (16位)  Version number (3 digits) Flag bit (5 digits) GTP message type (8 bits) Load length (16 bits)
隧道标识号 (32位)  Tunnel identification number (32-bit)
数据部分  Data section
表四 GTP报文格式  Table 4 GTP packet format
表四所示为通常情况下不包括扩展头的 GTP协议报文格式, 由表四可见, 不包括扩展头的 GTP 报文头部长度为 8字节; 如果包括扩展头, 其头部长度将会视具体情况进行增加。  Table 4 shows the format of the GTP packet that does not include the extended header. As shown in Table 4, the length of the GTP packet header that does not include the extended header is 8 bytes. If the extended header is included, the header length will be It will increase depending on the specific situation.
基于上述介绍, 图 3为现有采用 GTP协议报文传输数据时, 数据进入协议栈的封装过程示意图。 假设图 3中的 IP协议为 IPv4, L2协议为以太网协议。 如图 3所示, 在发送端, 根据协议栈中使用 的协议, 按照由高到低的顺序进行多次封装处理, 最终将封装好的以太网帧在物理层经由物理设备 进行发送; 在接收端, 按照由低到高的顺序进行对应的解封装过程, 最终得到所发送的应用数据, 从而实现设备间的通信。 当传输的 GTP协议类型为 GTP-C时, UDP头中封装的目的端口号为 2123; 当传输的 GTP协议类型为 GTP-U时, UDP头中封装的目的端口号为 2152; 当传输的 GTP协议类型为 GTP' 时, UDP头中封装的目的端口号为 3386。  Based on the above description, Figure 3 is a schematic diagram of the encapsulation process of data entering the protocol stack when data is transmitted using GTP protocol packets. Assume that the IP protocol in Figure 3 is IPv4 and the L2 protocol is Ethernet. As shown in FIG. 3, at the transmitting end, according to the protocol used in the protocol stack, multiple encapsulation processes are performed in descending order, and finally the encapsulated Ethernet frame is sent at the physical layer via the physical device; At the end, the corresponding decapsulation process is performed in the order of low to high, and finally the transmitted application data is obtained, thereby implementing communication between devices. When the GTP protocol type is GTP-C, the destination port number encapsulated in the UDP header is 2123. When the GTP protocol type is GTP-U, the destination port number encapsulated in the UDP header is 2152. When transmitting GTP When the protocol type is GTP', the destination port number encapsulated in the UDP header is 3386.
在实现本发明的过程中, 发明人发现: 采用现有 GTP协议报文传输数据时, 有效负载数据在 IP 数据报中所占的比例较低, 降低了网络传输效率, 浪费了带宽。  In the process of implementing the present invention, the inventor has found that: when using existing GTP protocol messages to transmit data, the proportion of payload data in IP datagrams is low, which reduces network transmission efficiency and wastes bandwidth.
发明内容  Summary of the invention
本发明实施例提供一种通用分组无线业务隧道协议报文传输方法, 能够提高有效负载数据在 IP 数据报中所占的比例。  The embodiment of the invention provides a general packet radio service tunnel protocol message transmission method, which can improve the proportion of payload data in the IP datagram.
本发明实施例的技术方案是这样实现的:  The technical solution of the embodiment of the present invention is implemented as follows:
一种通用分组无线业务隧道协议 GTP报文传输方法, 该方法包括:  A general packet radio service tunneling protocol GTP message transmission method, the method comprising:
第一网元将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报文中; 所述第一网元将所述封装后的 IP数据报文发送给第二网元。  The first network element encapsulates the one or more GTP protocol packets in the same IP data packet by using the multiplexed manner; the first network element sends the encapsulated IP data packet to the second network. yuan.
一种 GTP协议报文传输系统, 该系统包括: 第一网元以及第二网元;  A GTP protocol message transmission system, the system includes: a first network element and a second network element;
所述第一网元, 用于将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报文 中, 发送给所述第二网元; 所述第二网元, 用于接收来自所述第一网元的 IP数据报文。 The first network element is configured to encapsulate one or more GTP protocol packets in the same IP data packet in a multiplex manner, and send the packet to the second network element. The second network element is configured to receive an IP data packet from the first network element.
一种 GTP协议报文传输设备, 该设备包括: 封装单元以及发送单元;  A GTP protocol message transmission device, the device includes: a packaging unit and a sending unit;
所述封装单元, 用于将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报文 中;  The encapsulating unit is configured to encapsulate one or more GTP protocol packets in the same IP data packet by multiplexing;
所述发送单元, 用于将所述封装后的 IP数据报文发送给接收设备。  The sending unit is configured to send the encapsulated IP data packet to the receiving device.
本发明实施例通过将一个以上 GTP协议报文通过多路复用方式封装在同一 IP数据报中进行发 送, 提高了 IP数据报中有效负载数据所占的比例, 进而提高了网络传输效率, 节省了带宽。  In the embodiment of the present invention, one or more GTP protocol packets are encapsulated in the same IP datagram and transmitted in a multiplex manner, thereby increasing the proportion of the payload data in the IP datagram, thereby improving network transmission efficiency and saving. The bandwidth.
附图说明  DRAWINGS
图 1为现有 GPRS网络架构示意图;  Figure 1 is a schematic diagram of an existing GPRS network architecture;
图 2为现有 GSN之间的 Gn或 Gp接口协议栈示意图;  2 is a schematic diagram of a Gn or Gp interface protocol stack between existing GSNs;
图 3为现有采用 GTP协议报文传输数据时, 数据进入协议栈的封装过程示意图;  FIG. 3 is a schematic diagram of a packaging process of data entering a protocol stack when data is transmitted by using GTP protocol packets;
图 4为现有语音传输方式示意图;  Figure 4 is a schematic diagram of an existing voice transmission mode;
图 5为本发明方法实施例的流程图;  Figure 5 is a flow chart of an embodiment of a method of the present invention;
图 6为本发明实施例中一种采用多路复用方式封装后的 IP数据报结构示意图;  6 is a schematic structural diagram of an IP datagram encapsulated in a multiplexing manner according to an embodiment of the present invention;
图 7为本发明实施例中另一种采用多路复用方式封装后的 IP数据报结构示意图;  7 is a schematic structural diagram of another IP datagram encapsulated in a multiplexing manner according to an embodiment of the present invention;
图 8为本发明方法第一个实施例的流程图;  Figure 8 is a flow chart of the first embodiment of the method of the present invention;
图 9为本发明方法第二个实施例的流程图;  Figure 9 is a flow chart of a second embodiment of the method of the present invention;
图 10为本发明方法第三个实施例的流程图;  Figure 10 is a flow chart of a third embodiment of the method of the present invention;
图 11为本发明方法第四个实施例的流程图;  Figure 11 is a flow chart of a fourth embodiment of the method of the present invention;
图 12为本发明系统实施例的组成结构示意图;  12 is a schematic structural diagram of a system embodiment of the present invention;
图 13为本发明设备实施例的组成结构示意图。  FIG. 13 is a schematic structural diagram of an embodiment of an apparatus according to the present invention.
具体实施方式  detailed description
为使本发明实施例的目的、 技术方案及优点更加清楚明白, 以下参照附图对本发明实施例作进 一步地详细说明。  In order to make the objects, the technical solutions and the advantages of the embodiments of the present invention more clearly, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
通过图 3可以看出, 在现有的 GTP报文传输机制中, 一个 UDP报文中只能封装一个 GTP协议报 文, 同样, 一个 IP报文也只能封装一个 UDP报文。 如图 3所示, 由于在封装过程中, 每一层都要添 加一定长度的协议控制信息, 如 UDP头、 IP头等, 因此, 对于单个 GTP报文长度较小的业务应用, 其有效负载数据在封装后的报文中所占的比例会很小, 从而导致网络传输效率的降低。  As shown in Figure 3, in the existing GTP packet transmission mechanism, only one GTP packet can be encapsulated in one UDP packet. Similarly, only one UDP packet can be encapsulated in one IP packet. As shown in Figure 3, in the encapsulation process, a certain length of protocol control information, such as a UDP header and an IP header, is added to each layer. Therefore, for a service application with a small GTP packet length, the payload data is The proportion of the encapsulated packets will be small, resulting in a decrease in network transmission efficiency.
举例说明: 对于采用 GSM-自适应多速率 (AMR, Adaptive Muti-Rate ) 编码格式的语音通信, 其码率通常为 4. 75Kbps〜12. 2Kbps, 采样间隔为 20ms。 那么, 假设平均码率为 8Kbps, 则每个语音 帧共包括 160bit,即 20字节。假设该语音通信按照图 4所示现有典型语音传输方式进行,其中 GTP-U 协议上层隧道中进一步包括图 4 所示的语音数据、 实时传输协议 (RTP, Real Time Transport Protocol ) , UDP以及 IPv4的结构。 对于整个语音通信过程来说, 发送端首先在 GTP-U协议上层隧 道将语音数据封装为 IPv4数据报格式, 然后再将该 IPv4数据报按照图 3所示方式封装后发送到接 收端; 接收端进行解封装, 得到所发送的 IPv4数据报。 其中, RTP报文的格式如表五所示: 版本号与标志位 (16位) 序列号 (16位) For example, for a voice communication using the GSM-Adaptive Multi-Rate (AMR) coding format, the code rate is usually 4.75 Kbps~12. 2 Kbps, and the sampling interval is 20 ms. Then, assuming an average code rate of 8 Kbps, each speech frame includes a total of 160 bits, that is, 20 bytes. It is assumed that the voice communication is performed according to the existing typical voice transmission mode shown in FIG. 4, wherein the upper layer tunnel of the GTP-U protocol further includes voice data, Real Time Transport Protocol (RTP, UDP, and IPv4) as shown in FIG. Structure. For the entire voice communication process, the sender first encapsulates the voice data into an IPv4 datagram format in the GTP-U protocol upper layer tunnel, and then encapsulates the IPv4 datagram in the manner shown in FIG. 3 and sends the voice data to the receiving end; Decapsulation is performed to obtain the transmitted IPv4 datagram. The format of the RTP packet is shown in Table 5: Version number and flag bit (16 bits) Serial number (16 bits)
时间戳 (32位)  Timestamp (32 bit)
同步源标识 (32位)  Synchronization source ID (32-bit)
数据  Data
表五 RTP报文格式  Table 5 RTP packet format
由表五可见, RTP报文的头部共包括 12字节, 那么, 按照图 4所示方式, 将要传输的语音数据 封装为 GTP协议报文后, 得到的报文长度将为 20 (数据长度) + 12 (RTP头部长度) +8 (UDP头部 长度) +20 ( IPv4头部长度) +8 (GTP头部长度), 共 68字节。 对于该长度为 68字节的有效负载, 当其封装为 IPv4数据报后的长度将为 96字节, 其中有效数据仅占 70. 8%; 封装为以太网帧后的长 度为 114字节, 如果进一步考虑表一所示的传输时隙以及同步位, 则共为 134字节, 其中有效负载 数据仅占 50%。  It can be seen from Table 5 that the header of the RTP packet includes 12 bytes. Then, according to the method shown in Figure 4, after the voice data to be transmitted is encapsulated into a GTP protocol packet, the length of the obtained packet will be 20 (data length). + 12 (RTP header length) +8 (UDP header length) +20 (IPv4 header length) +8 (GTP header length), a total of 68 bytes. For a payload of 68 bytes, the length of the payload is 96 bytes, and the effective data is only 70.8%; the length after encapsulation is an Ethernet frame is 114 bytes. If we further consider the transmission time slots and synchronization bits shown in Table 1, the total is 134 bytes, of which the payload data only accounts for 50%.
本发明实施方式中, 第一网元将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP 数据报中, 发送给第二网元; 第二网元对接收到的 IP数据报进行解封装, 得到所述一个以上的 GTP 协议报文。  In the embodiment of the present invention, the first network element encapsulates one or more GTP protocol packets in the same IP datagram by multiplexing, and sends the packet to the second network element; the second network element receives the received IP address. The datagram is decapsulated to obtain the one or more GTP protocol messages.
需要说明的是, 上述 "第一网元"和 "第二网元"的表述方式只是为便于描述, 在实际应用中, "第一网元"或 "第二网元"可分别用于表示通信双方中的任何一个网元, 也就是说, 上述由 "第 一网元"完成的功能也可以由 "第二网元"完成。  It should be noted that the foregoing descriptions of "first network element" and "second network element" are only for convenience of description. In practical applications, "first network element" or "second network element" can be used to represent Any one of the two communication parties, that is, the above-mentioned function completed by the "first network element" can also be completed by the "second network element".
图 5为本发明方法实施例的流程图。本实施例中的第一网元和第二网元可以是任意两个通过 GTP 协议进行通信的节点或设备, 如 SGSN和 GGSN, 以及 S-GW和 P-GW等。 如图 5所示, 包括以下步骤: 步骤 51 : 第一网元将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报中, 发送给第二网元。  Figure 5 is a flow chart of an embodiment of a method of the present invention. The first network element and the second network element in this embodiment may be any two nodes or devices that communicate through the GTP protocol, such as the SGSN and the GGSN, and the S-GW and the P-GW. As shown in FIG. 5, the method includes the following steps: Step 51: The first network element encapsulates one or more GTP protocol packets in the same IP datagram and multiplexes them into the second network element.
本步骤之前, 通信双方, 即第一网元和第二网元需要首先获取对方的多路复用控制信息。 由于 第一网元和第二网元两侧所进行的操作是一样的, 所以本发明实施例中为便于描述, 仅以第一网元 侧为例进行说明。  Before this step, the two communication parties, that is, the first network element and the second network element, need to first acquire the multiplexing control information of the other party. The operations performed on the two sides of the first network element and the second network element are the same. Therefore, in the embodiment of the present invention, the first network element side is taken as an example for description.
本实施例中, 第一网元获取到的第二网元的多路复用控制信息可包括: 对多路复用传输的支持 能力, 以及采用多路复用传输的 GTP协议类型,如 GTP-C、 GTP-U或 GTP' 、接收多路复用报文的 UDP 目的端口号、 最大封装延迟时间, 适用多路复用封装的最大报文长度等信息中的一种或任意组合。 不同 GTP协议类型或网络中不同承载可对应不同的多路复用控制信息。  In this embodiment, the multiplexing control information of the second network element acquired by the first network element may include: a support capability for multiplexing transmission, and a GTP protocol type using multiplexing transmission, such as GTP. -C, GTP-U or GTP', UDP destination port number for receiving multiplexed packets, maximum encapsulation delay time, one or any combination of information such as the maximum packet length for multiplex encapsulation. Different GTP protocol types or different bearers in the network may correspond to different multiplexing control information.
其中, 多路复用传输的支持能力可分为发送能力和接收能力, 第一网元或第二网元可只具有其 中的一种能力, 也可以同时具有这两种能力。  The support capability of the multiplex transmission may be divided into a transmission capability and a reception capability, and the first network element or the second network element may have only one of the capabilities, or both.
第一网元获取到第二网元的上述多路复用控制信息后, 根据其中携带的多路复用传输的支持能 力信息, 判断第二网元是否支持多路复用传输, 如果支持, 则执行步骤 51 ; 如果不支持, 比如, 第 二网元只具有多路复用发送能力而没有接收能力, 或者, 既不具备发送能力也不具备接收能力, 则 第一网元按照现有普通传输方式向第二网元传输 GTP协议报文。 对于第二网元只具有多路复用发送 能力而没有接收能力的情况, 第二网元可以向第一网元按照多路复用方式发送 GTP协议报文。当然, 第一网元需要具备接收功能。 总之, 在本发明实施例中, 可以仅在通信双方的一个方向上采用多路 复用的封装和传输方式, 而在另一个传输方向上仍采用现有的封装和传输方式, 或者, 在两个方向 上都采用多路复用的封装和传输方式。 After acquiring the multiplex control information of the second network element, the first network element determines, according to the support capability information of the multiplex transmission carried therein, whether the second network element supports the multiplex transmission, if supported, Step 51 is performed; if it is not supported, for example, the second network element only has multiplexed transmission capability and no receiving capability, or has neither transmission capability nor reception capability, the first network element is in accordance with the existing common The transmission mode transmits GTP protocol packets to the second network element. Only multiplexed transmission for the second network element If the capability is not available, the second network element may send the GTP protocol packet to the first network element in a multiplexed manner. Of course, the first network element needs to have a receiving function. In summary, in the embodiment of the present invention, the multiplexed encapsulation and transmission mode may be adopted only in one direction of the communication parties, and the existing encapsulation and transmission mode may be adopted in the other transmission direction, or Multiplexed encapsulation and transmission are used in all directions.
其中, 第一网元获取第二网元的多路复用控制信息的方式可以为以下三种中的任意一种或任意 组合:  The manner in which the first network element obtains the multiplexing control information of the second network element may be any one of the following three or any combination:
方式 1、 通过预配置方式获取第二网元的部分或全部多路复用控制信息。  Manner 1: Obtain some or all of the multiplexing control information of the second network element by using a pre-configuration manner.
方式 2、 当每次用户的连接或承载进行建立或修改时, 通过在发送给对方的 GTP-C消息中, 携 带部分或全部多路复用控制信息, 通知给对方; 比如本实施例中, 第一网元根据接收自第二网元的 GTP-C消息, 获知第二网元的部分或全部多路复用控制信息。  In the embodiment, when the connection or the bearer of the user is established or modified, the part or all of the multiplexed control information is carried in the GTP-C message sent to the other party, and is notified to the other party. For example, in this embodiment, The first network element learns part or all of the multiplexed control information of the second network element according to the GTP-C message received from the second network element.
方式 3、 当通信双方第一次建立连接时, 双方在发送的 GTP-C消息中, 携带部分或全部多路复 用控制信息, 通知给对方; 比如本实施例中, 第一网元根据接收自第二网元的 GTP-C消息, 获知第 二网元的部分或全部多路复用控制信息, 并对该信息进行存储, 用于后续确定两者之间的传输方式。  Mode 3: When the two parties establish a connection for the first time, the two parties carry some or all of the multiplexed control information in the GTP-C message to be sent to the other party. For example, in this embodiment, the first network element receives the From the GTP-C message of the second network element, some or all of the multiplexed control information of the second network element is learned, and the information is stored for subsequent determination of the transmission mode between the two.
第一网元可以通过上述三种方式中的任意一种, 或通过任意组合的方式获取第二网元的多路复 用控制信息。 比如, 可以通过预配置的方式获取部分信息, 而其它所需信息通过上述方式 2和方式 3获取。 其它可能的组合情况不再一一列举。  The first network element may obtain the multiplex control information of the second network element by using any one of the foregoing three methods, or by any combination. For example, some information can be obtained in a pre-configured manner, and other required information is obtained through the above methods 2 and 3. Other possible combinations are not listed one by one.
需要说明的是, 上述方式 2和 3中用于携带多路复用控制信息的 GTP-C消息也可以替换为本领 域公知的其它消息, 不限于 GTP-C消息这一种。  It should be noted that the GTP-C message for carrying the multiplexed control information in the above modes 2 and 3 can also be replaced with other messages known in the art, and is not limited to the GTP-C message.
获取到第二网元的多路复用控制信息, 并确定第二网元支持多路复用传输后, 第一网元将需要 发送到同一 IP目标地址, 即第二网元的 GTP协议报文封装到同一 IP数据报中, 发送给第二网元。  After obtaining the multiplexing control information of the second network element, and determining that the second network element supports the multiplexed transmission, the first network element needs to be sent to the same IP target address, that is, the GTP protocol report of the second network element. The packet is encapsulated into the same IP datagram and sent to the second network element.
如果第一网元获取到的多路复用控制信息中包括最大封装延迟时间, 那么, 第一网元将一个以 上的 GTP协议报文,通过多路复用方式封装在同一个 IP数据报中这一过程需要在所述最大封装延迟 时间内完成, 以限制由于多路复用传输造成的延迟; 如果第一网元获取到的多路复用控制信息中包 括适用多路复用封装的最大报文长度时, 那么, 第一网元通过多路复用方式封装在同一个 IP数据报 中的每一个 GTP协议报文的长度需要小于或等于所述适用多路复用封装的最大报文长度。 而且, 如 果不同的 GTP协议报文对应不同的服务质量 (QoS, Quality of Service ) 要求, 比如, 当前网络中 的用户有的在进行上网, 有的在进行视频聊天, 那么这两种不同的活动可能对应不同的 QoS要求, 对于这种情况, 本发明实施例中仅将具有相同 QoS要求的 GTP协议报文通过多路复用方式封装在同 一个 IP数据报中, 即同一个 IP数据报中的 GTP协议报文需要具有相同的 QoS。  If the multiplexed control information obtained by the first network element includes the maximum encapsulated delay time, the first network element encapsulates one or more GTP protocol packets in the same IP datagram by multiplexing. This process needs to be completed within the maximum package delay time to limit the delay due to multiplexed transmission; if the multiplexed control information acquired by the first network element includes the maximum applicable multiplexed package The length of each GTP protocol packet encapsulated in the same IP datagram by the first network element in the multiplexed manner needs to be less than or equal to the maximum packet size of the applicable multiplexed encapsulation. length. Moreover, if different GTP protocol messages correspond to different QoS (Quality of Service) requirements, for example, if some users in the current network are on the Internet and some are in a video chat, then the two different activities In this embodiment, the GTP protocol packets with the same QoS requirements are encapsulated in the same IP datagram, that is, the same IP datagram. GTP packets need to have the same QoS.
本发明实施例中进行多路复用封装的方式可采用以下两种:  The manner of multiplexing and encapsulating in the embodiment of the present invention may be as follows:
同一个 IP数据报中仅封装同一种类型的 GTP协议报文, 如,  The same IP datagram encapsulates only the same type of GTP protocol packets, for example,
GTP- C、 GTP- U或 GTP' :  GTP-C, GTP-U or GTP':
第一网元将不同类型的 GTP协议报文发送到不同的 UDP目的端口。 其中, 每个 GTP协议报文前 可进一步包括一个多路复用头。  The first network element sends different types of GTP protocol packets to different UDP destination ports. Wherein, each GTP protocol message may further include a multiplexing header.
图 6为本发明实施例中一种采用多路复用方式封装后的 IP数据报结构示意图。如图 6所示, 其 中, IP头的格式与现有技术相同, 不再赘述; UDP头中包括传输该多路复用报文所使用的 UDP源端 口号和目的端口号、 该 UDP报文的长度以及校验和信息; 其中的 UDP源端口号可以是第一网元新分 配的端口号, 也可以是采用普通方式发送所封装的任一 GTP协议报文的 UDP源端口号; UDP 目的端 口号即为通过预配置或协商获取的多路复用控制信息中携带的 UDP目的端口号;多路复用头可包括: 采用普通方式发送与自身对应的, 即紧邻该多路复用头的 GTP协议报文时应使用的 UDP源端口号以 及紧邻的 GTP协议报文的长度信息中的一种或两种。 如果上述两种信息都不包括, 则多路复用头可 以省略。 FIG. 6 is a schematic structural diagram of an IP datagram encapsulated in a multiplexing manner according to an embodiment of the present invention. As shown in Figure 6, it The format of the IP header is the same as that of the prior art, and is not described here. The UDP header includes the UDP source port number and destination port number used for transmitting the multiplexed packet, the length of the UDP packet, and the checksum. The UDP source port number can be the newly assigned port number of the first network element, or the UDP source port number of the encapsulated GTP protocol packet in the normal manner; Configuring or negotiating the UDP destination port number carried in the multiplexed control information; the multiplex header may include: transmitting, in an ordinary manner, a GTP protocol packet corresponding to the multiplexer header One or both of the UDP source port number and the length information of the adjacent GTP protocol packets to be used. If neither of the above information is included, the multiplex header can be omitted.
同一个 IP数据报中封装不同类型的 GTP协议报文:第一网元将不同类型的 GTP协议报文发送到 同一 UDP目的端口。 其中, 每个 GTP协议报文前可进一步包括一个多路复用头。  Different types of GTP packets are encapsulated in the same IP datagram. The first NE sends different types of GTP packets to the same UDP destination port. Wherein, each GTP protocol message may further include a multiplexing header.
图 7为本发明实施例中另一种采用多路复用方式封装后的 IP数据报结构示意图。 如图 7所示, 其中, IP头的格式与现有技术相同, 不再赘述; UDP头中包括传输该多路复用报文所使用的 UDP源 端口号和目的端口号、 该 UDP报文的长度以及校验和信息; 其中的 UDP目的端口号即为通过预配置 或协商获取的多路复用控制信息中携带的 UDP 目的端口号, UDP源端口号可以是第一网元新分配的 端口号, 也可以是采用普通方式发送所封装的任一 GTP协议报文的 UDP源端口号。 多路复用头中包 括: 采用普通方式发送与自身对应的 GTP协议报文时应使用的 UDP目的端口号, 比如, 当其对应的 GTP协议类型为 GTP-C时, 对应的 UDP目的端口号为 2123, 当其对应的 GTP协议类型为 GTP-U时, 对应的 UDP目的端口号为 2152,当其对应的 GTP协议类型为 GTP' 时,对应的 UDP目的端口号为 3386, 从而使第二网元在解封装时能够获知不同 GTP协议报文的具体类型; 或者, 也可以直接在多路复用 头中携带与自身对应的 GTP协议报文的协议类型标识, 比如, 用 00代表该 GTP协议报文的协议类型 为 GTP-C,用 01代表该 GTP协议报文的协议类型为 GTP-U等。此外, 多路复用头中还可进一步包括: 采用普通方式发送与自身对应的 GTP协议报文时应使用的 UDP源端口号以及该 GTP协议报文的长度 信息中的一种或两种。  FIG. 7 is a schematic structural diagram of another IP datagram encapsulated in a multiplexing manner according to an embodiment of the present invention. As shown in Figure 7, the format of the IP header is the same as that of the prior art, and is not described here. The UDP header includes the UDP source port number and the destination port number used to transmit the multiplexed packet, and the UDP packet. The UDP destination port number is the UDP destination port number carried in the multiplex control information obtained through pre-configuration or negotiation. The UDP source port number can be newly assigned by the first network element. The UDP source port number of any GTP protocol packet that is encapsulated in the normal mode. The multiplexer header includes: a UDP destination port number to be used when the GTP protocol packet corresponding to the GTP protocol packet is sent in the normal manner, for example, when the corresponding GTP protocol type is GTP-C, the corresponding UDP destination port number. 2123, when the corresponding GTP protocol type is GTP-U, the corresponding UDP destination port number is 2152. When the corresponding GTP protocol type is GTP', the corresponding UDP destination port number is 3386, thus making the second The network element can obtain the specific type of the GTP protocol packet when decapsulating. Alternatively, the network element can directly carry the protocol type identifier of the GTP protocol packet corresponding to the multiplexer. For example, the 00 is used to represent the GTP. The protocol type of the protocol packet is GTP-C, and the protocol type of the GTP protocol packet with 01 is GTP-U. In addition, the multiplex header may further include: one or two of a UDP source port number and a length information of the GTP protocol packet to be used in the GTP protocol packet corresponding to the GTP protocol packet.
步骤 52: 第二网元对接收到的 IP数据报进行解封装, 得到一个以上的 GTP协议报文。  Step 52: The second network element decapsulates the received IP datagram to obtain one or more GTP protocol packets.
第二网元对接收到的 IP数据报进行 IP协议层的解封装,在封装的 IP数据报中指定的 UDP目的 端口中接收进行 IP协议层解封装后的 UDP协议报文, 并按现有方式对该报文进行后续解封装, 从中 提取出所包含的多个 GTP协议报文, 完成多路复用传输。  The second network element performs decapsulation of the received IP datagram by the IP protocol layer, and receives the UDP protocol packet decapsulated by the IP protocol layer in the UDP destination port specified in the encapsulated IP datagram, and according to the existing The method performs subsequent decapsulation on the packet, extracts multiple GTP protocol packets included, and completes multiplex transmission.
可见,采用本发明实施例的上述方案, 通过将多个 GTP协议报文封装到同一个 IP数据报中进行 传输, 使得 IP数据报中的有效负载数据增加, 提高了网络传输效率, 节省了带宽。 下面通过具体实 施例对本发明所述方案作进一步地详细说明。  It can be seen that, by using the foregoing solution of the embodiment of the present invention, multiple GTP protocol packets are encapsulated into the same IP datagram for transmission, so that the payload data in the IP datagram is increased, the network transmission efficiency is improved, and the bandwidth is saved. . The solution of the present invention will be further described in detail below by way of specific examples.
实施例一:  Embodiment 1:
图 8为本发明方法第一个实施例的流程图。 本实施例中, 第一网元与第二网元之间采用多路复 用方式进行传输的 GTP协议报文为 GTP-U协议报文, 网络层传输协议为 IPv4; 第一网元与第二网元 获取对方的多路复用控制信息的方式为: 在连接或承载建立或修改时, 通过 GTP-C消息协商多路复 用传输的支持能力信息; 通过预配置的方式获取其余的多路复用控制信息, 如接收多路复用报文的 UDP目的端口号等。 假设本实施例中的 UDP目的端口号为 A, 且第一网元和第二网元分别为 S-GW和 P-GW。 如图 8所示, 包括以下步骤: Figure 8 is a flow chart of a first embodiment of the method of the present invention. In this embodiment, the GTP protocol packet transmitted by the first network element and the second network element in a multiplexed manner is a GTP-U protocol packet, and the network layer transmission protocol is IPv4; the first network element and the first network element The manner in which the second network element obtains the multiplex control information of the other party is: when the connection or bearer is established or modified, the support capability information of the multiplex transmission is negotiated through the GTP-C message; The path multiplexing control information, such as the UDP destination port number for receiving the multiplexed message. It is assumed that the UDP destination port number in this embodiment is A, and the first network element and the second network element are respectively S-GW and P-GW. As shown in Figure 8, the following steps are included:
当用户连接或承载 1建立时, 假设 S-GW支持该连接或承载上的 GTP-U协议多路复用传输方式, 而 P-GW不支持该连接或承载上的 GTP-U多路复用传输方式:  When the user connection or bearer 1 is established, it is assumed that the S-GW supports the GTP-U protocol multiplex transmission mode on the connection or bearer, and the P-GW does not support the GTP-U multiplexing on the connection or bearer. transfer method:
步骤 81 : 连接或承载 1建立时, S-GW向 P-GW发送 GTP-C消息, 该消息中携带有 S-GW对多路复 用传输的支持能力信息, 以通知 P-GW本端支持 GTP-U协议的多路复用传输。  Step 81: When the connection or bearer 1 is established, the S-GW sends a GTP-C message to the P-GW, where the message carries the S-GW support capability information for the multiplex transmission, to notify the P-GW of the local end to support Multiplex transmission of the GTP-U protocol.
步骤 82: P-GW向 S-GW发送 GTP-C消息,该消息中不包括 P-GW对多路复用传输的支持能力信息, 以通知 S-GW本端不支持 GTP-U协议的多路复用传输; 或者, P-GW向 S-GW发送双方均能够识别的、 取值为特定值的能力信息, 比如 0000, 以通知 S-GW本端不支持 GTP-U协议的多路复用传输。  Step 82: The P-GW sends a GTP-C message to the S-GW, where the message does not include the P-GW support capability information for the multiplex transmission, to notify the S-GW that the local end does not support the GTP-U protocol. Or the multiplexed transmission; or, the P-GW sends, to the S-GW, capability information that is identifiable by both parties and is a specific value, such as 0000, to notify the S-GW that the local end does not support the multiplex of the GTP-U protocol. Use transmission.
步骤 83 : 由于 P-GW不支持 GTP-U协议的多路复用传输, 所以 S-GW和 P-GW对于连接或承载 1 中的 GTP-U协议报文, 只能仍采用现有的普通封装方式进行封装并传输, 其中 UDP的目的端口号为 2152 ο  Step 83: Since the P-GW does not support the multiplex transmission of the GTP-U protocol, the S-GW and the P-GW can still use the existing common GTP-U protocol packets in the connection or bearer 1 The encapsulation mode is encapsulated and transmitted, where the destination port number of UDP is 2152.
当用户连接或承载 2建立时, 假设 S-GW和 P-GW均支持该连接或承载上的 GTP-U协议的多路复 用传输方式:  When the user connection or bearer 2 is established, it is assumed that both the S-GW and the P-GW support the multiplexed transmission mode of the GTP-U protocol on the connection or bearer:
步骤 84: 连接或承载 2建立时, S-GW向 P-GW发送 GTP-C消息, 该消息中携带有 S-GW对多路复 用传输的支持能力信息, 以通知 P-GW本端支持 GTP-U协议的多路复用传输。  Step 84: When the connection or bearer 2 is established, the S-GW sends a GTP-C message to the P-GW, where the message carries the S-GW support capability information for the multiplex transmission, to notify the P-GW of the local end to support Multiplex transmission of the GTP-U protocol.
步骤 85 : P-GW向 S-GW发送 GTP-C消息,该消息中携带有 P-GW对多路复用传输的支持能力信息, 以通知 S-GW本端支持 GTP-U协议的多路复用传输。  Step 85: The P-GW sends a GTP-C message to the S-GW, where the message carries the P-GW support capability information for the multiplex transmission, to notify the S-GW that the local end supports the GTP-U protocol. Multiplexed transmission.
步骤 86: S-GW将后续需要发送给 P-GW IP地址, 且具有相同 QoS要求的 GTP-U协议报文进行多 路复用封装。  Step 86: The S-GW performs multiplex multiplexing encapsulation on the GTP-U protocol packets that need to be sent to the P-GW IP address and have the same QoS requirements.
其中 UDP头中的目的端口号为 A; 各个多路复用头中携带的 UDP源端口号为采用普通方式发送 与其对应的 GTP-U协议报文时应使用的 UDP源端口号。 Wherein the destination port number of UDP header is A; each multiplexed header UDP source port number carried in UDP source port number when the transmission packets corresponding thereto using GTP-U to the ordinary mode.
步骤 87 : S-GW将封装了多个 GTP-U协议报文的 IP数据报发送至 P-GW; P-GW对接收到的 IP数 据报进行解封装, 从中提取出包含的多个 GTP-U协议报文。  Step 87: The S-GW sends an IP datagram encapsulated with multiple GTP-U protocol packets to the P-GW. The P-GW decapsulates the received IP datagram, and extracts multiple GTPs included therein. U protocol message.
本实施例中, S-GW将 IP数据报发送至 P-GW的方式与现有技术相同,其具体传输过程不再赘述。 步骤 88 : P-GW将后续需要发送给 S-GW IP地址, 且具有相同 QoS要求的 GTP-U报文进行多路复 用封装。  In this embodiment, the manner in which the S-GW sends the IP datagram to the P-GW is the same as that in the prior art, and the specific transmission process is not described herein. Step 88: The P-GW sends the GTP-U packet with the same QoS requirement to the S-GW IP address for multiplexed encapsulation.
其中 UDP头中的目的端口号为 A; 各个多路复用头中携带的 UDP源端口号为采用普通方式发送 与其对应的 GTP-U协议报文时应使用的 UDP源端口号。 Wherein the destination port number of UDP header is A; each multiplexed header UDP source port number carried in UDP source port number when the transmission packets corresponding thereto using GTP-U to the ordinary mode.
步骤 89: P-GW将封装了多个 GTP-U协议报文的 IP数据报发送给 S-GW; S-GW对接收到的 IP数 据报进行解封装, 从中提取出包含的多个 GTP-U协议报文。  Step 89: The P-GW sends an IP datagram encapsulating multiple GTP-U protocol packets to the S-GW. The S-GW decapsulates the received IP datagram, and extracts multiple GTPs included therein. U protocol message.
当用户连接或承载 3建立时,假设 S-GW支持该连接或承载上的 GTP-U协议的多路复用传输方式, 而 P-GW仅支持 GTP-U协议多路复用封装报文的发送, 但不支持对该种报文的接收:  When the user connection or bearer 3 is established, it is assumed that the S-GW supports the multiplex transmission mode of the GTP-U protocol on the connection or the bearer, and the P-GW only supports the GTP-U protocol multiplexed encapsulation message. Send, but does not support the reception of this type of message:
步骤 810: 连接或承载 3建立时, S-GW向 P-GW发送 GTP-C消息, 该消息中携带有 S-GW对多路 复用传输的支持能力信息, 以通知 P-GW本端支持 GTP-U协议的多路复用传输。  Step 810: When the connection or bearer 3 is established, the S-GW sends a GTP-C message to the P-GW, where the message carries the S-GW support capability information for the multiplex transmission, to notify the P-GW of the local end to support Multiplex transmission of the GTP-U protocol.
步骤 811 : P-GW向 S-GW发送 GTP-C消息, 该消息中携带有 P-GW对多路复用传输的支持能力信 息, 以通知 S-GW本端仅支持 GTP-U协议多路复用封装报文的发送, 不支持对该种报文的接收。 步骤 812: S-GW根据 P-GW的接收能力, 对于后续的 GTP-U报文不再进行多路复用封装, 而是采 用普通的封装方式发送到 P-GW的 2152端口。 Step 811: The P-GW sends a GTP-C message to the S-GW, where the message carries the P-GW support capability information for the multiplex transmission. To inform the S-GW that the local end only supports the transmission of GTP-U protocol multiplexed encapsulated packets, and does not support the reception of such packets. Step 812: The S-GW sends the GTP-U packet to the 2152 port of the P-GW in a normal encapsulation manner according to the receiving capability of the P-GW.
步骤 813〜814:由于 P-GW支持针对 GTP-U协议的多路复用发送,因此, P-GW仍可按照步骤 88〜 89所述过程向 S-GW发送封装了多个 GTP-U协议报文的 IP数据报。 实施例二:  Steps 813-814: Since the P-GW supports multiplex transmission for the GTP-U protocol, the P-GW can still send and encapsulate multiple GTP-U protocols to the S-GW according to the procedures described in steps 88-89. IP datagram of the message. Embodiment 2:
图 9为本发明方法第二个实施例的流程图。 在本实施例中, 第一网元与第二网元之间采用多路 复用方式进行传输的 GTP协议报文为 GTP-U以及 GTP-C协议报文, 网络层传输协议为 IPv4, 且不同 类型的 GTP协议报文封装到不同的 IP数据报中进行传输;第一网元与第二网元获取对方的多路复用 控制信息的方式为: 在双方第一次建立连接时, 协商多路复用传输的支持能力以及接收多路复用报 文的 UDP 目的端口号信息; 其余信息, 如最大封装延迟时间等信息通过预配置方式获取。 假设本实 施例中 GTP-C协议报文的最大封装延迟时间预配置为 20ms; GTP-U协议报文的最大封装延迟时间预 配置为 30ms。 如图 9所示, 包括以下步骤:  Figure 9 is a flow chart of a second embodiment of the method of the present invention. In this embodiment, the GTP protocol packet transmitted by the first network element and the second network element in a multiplexed manner is a GTP-U and a GTP-C protocol packet, and the network layer transmission protocol is IPv4, and Different types of GTP packets are encapsulated into different IP datagrams for transmission. The first network element and the second network element obtain the multiplexed control information of the other party in the following manner: When the two parties establish a connection for the first time, the negotiation is performed. Support for multiplexed transmission and UDP destination port number information for receiving multiplexed messages; information such as maximum package delay time is obtained by pre-configuration. Assume that the maximum encapsulation delay of GTP-C packets is 20 ms in this embodiment. The maximum encapsulation delay of GTP-U packets is 30 ms. As shown in Figure 9, the following steps are included:
步骤 91 : 在首次与第二网元建立连接时, 第一网元向第二网元发送协商消息, 该消息中携带有 第一网元的多路复用传输的支持能力信息, 以通知第二网元本端支持对 GTP-C协议以及 GTP-U协议 的多路复用传输, 且本端接收 GTP-U协议的多路复用封装报文的 UDP目的端口号为 Al, 接收 GTP-C 协议的多路复用封装报文的 UDP目的端口号为 A2。  Step 91: When establishing a connection with the second network element for the first time, the first network element sends a negotiation message to the second network element, where the message carries the support capability information of the multiplex transmission of the first network element, to notify the The local end of the second network element supports the multiplex transmission of the GTP-C protocol and the GTP-U protocol, and the UDP destination port number of the multiplexed encapsulated packet of the local end receiving the GTP-U protocol is Al, and the GTP is received. The UDP destination port number of the multiplexed encapsulated packet of the C protocol is A2.
步骤 92: 第二网元接收上述第一网元发送的协商信息, 并进行存储。  Step 92: The second network element receives the negotiation information sent by the first network element, and stores the information.
步骤 93: 第二网元向第一网元发送协商消息, 该消息中携带有第二网元的多路复用传输的支持 能力信息, 以通知第一网元本端支持对 GTP-C协议和 GTP-U协议的多路复用传输,且本端接收 GTP-U 协议的多路复用封装报文的 UDP目的端口号为 Bl, 接收 GTP-C协议的多路复用封装报文的 UDP目的 端口号为 B2。  Step 93: The second network element sends a negotiation message to the first network element, where the message carries the support capability information of the multiplex transmission of the second network element, to notify the local end of the first network element to support the GTP-C protocol. The multiplexed transmission of the GTP-U protocol, and the UDP destination port number of the multiplexed encapsulation packet of the GTP-U protocol received by the local end is B1, and the multiplexed encapsulation packet of the GTP-C protocol is received. The UDP destination port number is B2.
步骤 94: 第一网元接收上述第二网元发送的协商信息, 并进行存储。  Step 94: The first network element receives the negotiation information sent by the second network element, and stores the information.
经过上述协商过程之后, 对于双方之间的当前连接及后续建立的连接, 各方均可使用所存储的 关于对方的多路复用传输的支持能力信息, 确定是否以及如何进行多路复用传输。  After the above negotiation process, for the current connection between the two parties and the subsequent established connection, each party can use the stored support capability information about the multiplex transmission of the other party to determine whether and how to perform multiplex transmission. .
步骤 95: 第一网元将后续发送给第二网元的 IP地址的 GTP-C报文进行多路复用封装。  Step 95: The first network element multiplexes the GTP-C packet that is subsequently sent to the IP address of the second network element.
本步骤中, 第一网元进行多路复用封装的封装时长不超过 20ms; 封装后的 IP数据报中的 UDP 目的端口号为 B2; 封装后的 IP数据报中的各个 GTP协议报文对应的多路复用头中包括 UDP源端口 号, 取值为采用普通方式发送该 GTP-C协议报文时应使用的源端口号, 还可进一步包括与自身对应 的 GTP协议报文的长度。 In this step, the encapsulation duration of the multiplexed encapsulation of the first network element is not more than 20 ms ; the UDP destination port number in the encapsulated IP datagram is B2 ; and each GTP protocol packet in the encapsulated IP datagram corresponds to The multiplexer header includes the UDP source port number, which is a source port number that should be used when the GTP-C protocol packet is sent in the normal manner, and may further include the length of the GTP protocol packet corresponding to the GTP protocol packet.
步骤 96: 第一网元将封装了多个 GTP-C协议报文的 IPv4数据报发送给第二网元; 第二网元对 接收到的 IPv4数据报进行解封装, 从中提取出包含的多个 GTP-C协议报文。  Step 96: The first network element sends an IPv4 data packet that encapsulates multiple GTP-C protocol packets to the second network element. The second network element decapsulates the received IPv4 datagram, and extracts the included data. GTP-C protocol packets.
步骤 97: 第二网元将后续发送给第一网元 IP地址的 GTP-C协议报文进行多路复用封装。  Step 97: The second network element multiplexes the GTP-C protocol packet that is subsequently sent to the IP address of the first network element.
本步骤中, 第二网元进行多路复用封装的封装时长不超过 20ms; 封装后的 IP数据报中的 UDP 目的端口号为 A2; 封装后的 IP数据报中的各个 GTP协议报文对应的多路复用头中包括 UDP源端口 号, 取值为采用普通方式发送该 GTP-C协议报文时应使用的源端口号, 还可进一步包括与自身对应 的 GTP协议报文的长度信息。 In this step, the encapsulation duration of the second network element for multiplexing and packaging does not exceed 20 ms ; the UDP in the encapsulated IP datagram The destination port number is A2. The multiplex header corresponding to each GTP protocol packet in the encapsulated IP datagram includes the UDP source port number. The value should be used when sending the GTP-C protocol packet in the normal mode. The source port number may further include the length information of the GTP protocol packet corresponding to the source port number.
步骤 98: 第二网元将封装了多个 GTP-C信息的 IPv4数据报发送给第一网元; 第一网元对接收 到的 IPv4数据文进行解封装, 从中提取出包含的多个 GTP-C协议报文。  Step 98: The second network element sends an IPv4 data packet encapsulating the plurality of GTP-C information to the first network element. The first network element decapsulates the received IPv4 data, and extracts multiple GTPs included therein. -C protocol message.
步骤 99: 第一网元将后续发送给第二网元 IP地址的 GTP-U报文进行多路复用封装。  Step 99: The first network element multiplexes the GTP-U packet that is subsequently sent to the IP address of the second network element.
本步骤中, 第一网元进行多路复用封装的封装时长不超过 30ms; 封装后的 IP数据报中的 UDP 目的端口号为 B1 ; 封装后的 IP数据报中的各个 GTP协议报文对应的多路复用头中包括 UDP源端口 号, 取值为采用普通方式发送该 GTP-U报文应使用的源端口号。 In this step, the encapsulation duration of the multiplexed encapsulation of the first network element is not more than 30 ms ; the UDP destination port number in the encapsulated IP datagram is B1; and each GTP protocol packet in the encapsulated IP datagram corresponds to The multiplex header includes the UDP source port number, which is the source port number that should be used to send the GTP-U packet in the normal manner.
步骤 910: 第一网元将封装了多个 GTP-U信息的 IPv4数据报发送给第二网元 ; 第二网元对接 收到的 IPv4数据报进行解封装, 从中提取出包含的多个 GTP-U协议报文。  Step 910: The first network element sends an IPv4 datagram that encapsulates multiple GTP-U information to the second network element. The second network element decapsulates the received IPv4 datagram, and extracts multiple GTPs included therein. -U protocol message.
步骤 911 : 第二网元将后续发送给第一网元 IP地址的 GTP-U报文进行多路复用封装。  Step 911: The second network element multiplexes the GTP-U packet that is subsequently sent to the IP address of the first network element.
本步骤中, 第二网元进行多路复用封装的封装时长不超过 30ms; 封装后的 IP数据报中的 UDP 目的端口号为 A1 ; 封装后的 IP数据报中的各个 GTP协议报文对应的多路复用头中包括 UDP源端口 号, 取值为采用普通方式发送该 GTP-U报文应使用的源端口号。 In this step, the encapsulation duration of the multiplexed encapsulation of the second network element is not more than 30 ms ; the UDP destination port number in the encapsulated IP datagram is A1; and each GTP protocol packet in the encapsulated IP datagram corresponds to The multiplex header includes the UDP source port number, which is the source port number that should be used to send the GTP-U packet in the normal manner.
步骤 912: 第二网元将封装了多个 GTP-U信息的 IPv4数据报发送给第一网元; 第一网元对接收 到的 IPv4数据报进行解封装, 从中提取出包含的多个 GTP-U协议报文。 实施例三:  Step 912: The second network element sends an IPv4 datagram that encapsulates multiple GTP-U information to the first network element. The first network element decapsulates the received IPv4 datagram, and extracts multiple GTPs included therein. -U protocol message. Embodiment 3:
图 10为本发明方法第三个实施例的流程图。本实施例中, 第一网元与第二网元之间采用多路复 用方式进行传输的 GTP协议报文为 GTP-U、 GTP-C以及 GTP' 协议报文, 网络层传输协议为 IPv6, 且 不同类型的 GTP协议报文封装到同一 IP数据报中进行传输;第一网元与第二网元获取对方的多路复 用控制信息的方式为: 在用户连接或承载建立或修改时, 协商多路复用传输的支持能力、 接收多路 复用报文的 UDP目的端口号以及适用多路复用封装的最大报文长度信息。如图 10所示, 包括以下步 骤:  Figure 10 is a flow chart of a third embodiment of the method of the present invention. In this embodiment, the GTP protocol packets transmitted by the first network element and the second network element in a multiplexed manner are GTP-U, GTP-C, and GTP' protocol packets, and the network layer transmission protocol is IPv6. And the different types of GTP protocol packets are encapsulated into the same IP datagram for transmission; the manner in which the first network element and the second network element obtain the multiplexed control information of the other party is: when the user connection or bearer is established or modified. The negotiation multiplex transmission support capability, the UDP destination port number for receiving multiplexed messages, and the maximum message length information applicable to the multiplexed encapsulation. As shown in Figure 10, the following steps are included:
步骤 101 : 连接或承载建立或修改时, 第一网元向第二网元发送协商信息, 其中携带有第一网 元对多路复用传输的支持能力信息, 以通知第二网元本端支持对 GTP协议报文的多路复用传输, 且 本端接收多路复用封装后的 GTP协议报文的 UDP目的端口号为 Dl, 适用多路复用封装的最大报文长 度为 100字节。  Step 101: When the connection or bearer is established or modified, the first network element sends the negotiation information to the second network element, where the first network element carries the support capability information of the multiplex transmission, to notify the local end of the second network element. Supports multiplexed transmission of GTP protocol packets, and the UDP destination port number of the GTP protocol packet received by the local end is multiplexed, and the maximum packet length of the multiplexed encapsulation is 100 words. Section.
步骤 102: 第二网元向第一网元发送协商消息, 其中携带有第二网元对多路复用传输的支持能 力信息, 以通知第一网元本端支持对 GTP协议报文的多路复用传输, 且本端接收多路复用封装后的 GTP协议报文的 UDP目的端口号为 D2, 适用多路复用封装的最大报文长度为 120字节。  Step 102: The second network element sends a negotiation message to the first network element, where the second network element carries the support capability information of the multiplex transmission, to notify the local end of the first network element to support the GTP protocol message. The multiplexed packet length of the GTP protocol packet received by the local end is D2, and the maximum packet length of the multiplexed encapsulation is 120 bytes.
步骤 103:第一网元将后续目的地址为第二网元 IP地址、 QoS要求相同、且报文长度不超过 120 字节的 GTP协议报文进行多路复用封装。  Step 103: The first network element multiplexes the GTP protocol packet whose destination address is the second network element IP address, the QoS requirement is the same, and the packet length does not exceed 120 bytes.
封装后的 IP数据报中的 UDP目的端口号为 D2; 封装后的 IP数据报中的各个 GTP协议报文对应 的各多路复用头中携带的 UDP源端口号为采用普通方式发送该 GTP协议报文时应使用的源端口号; 各多路复用头中还具体包括其对应的 GTP协议报文的类型标识,比如,对应的 GTP协议报文为 GTP-C 协议报文, 则取为 1, 为 GTP-U协议报文, 则取为 2, 为 GTP' 协议报文, 则取为 3。 The UDP destination port number in the encapsulated IP datagram is D2 ; the corresponding GTP protocol packets in the encapsulated IP datagram correspond to The UDP source port number carried in each multiplexer header is the source port number that should be used when the GTP protocol packet is sent in the normal manner; each multiplexer header also includes its corresponding GTP protocol packet. The type identifier is, for example, the GTP-C protocol packet is 1 for the GTP-C protocol packet and 2 for the GTP-U protocol packet.
步骤 104: 第一网元将封装了多个 GTP协议报文的 IPv6数据报发送到第二网元的 D2端口。 步骤 105:第二网元对接收到的 IPv6数据报进行解封装,从中提取出包含的多个 GTP协议报文。 根据多路复用头中的 GTP协议报文的类型标识, 第二网元可以确定对应 GTP报文的具体协议类 型。  Step 104: The first network element sends an IPv6 data packet that encapsulates multiple GTP protocol packets to the D2 port of the second network element. Step 105: The second network element decapsulates the received IPv6 datagram, and extracts multiple GTP protocol packets. The second network element can determine the specific protocol type of the corresponding GTP packet according to the type identifier of the GTP protocol packet in the multiplexer header.
步骤 106〜108: 与步骤 103〜105类似, 第二网元也可以将多个 GTP协议报文通过多路复用封 装所形成的 IPv6报文发送给第一网元; 第一网元在接收并经过解封装过程后, 从中提取出所包含的 多个 GTP协议报文。  Steps 106 to 108: Similar to steps 103 to 105, the second network element may also send the IPv6 packet formed by multiplexing the multiple GTP protocol packets to the first network element by using the multiplexed encapsulation; the first network element is receiving After the decapsulation process, multiple GTP protocol packets are extracted.
步骤 109: 对于不满足多路复用传输条件的 GTP协议报文, 比如报文长度超过适用多路复用封 装的最大报文长度的 GTP协议报文, 可采用普通封装方式进行传输。  Steps: For a GTP protocol packet that does not meet the multiplex transmission condition, for example, a GTP protocol packet whose packet length exceeds the maximum packet length of the multiplexed package can be transmitted in a normal encapsulation manner.
假设由于某种原因, 比如网元在运行过程中负载过高, 所以为减轻负载, 不再继续支持多路复 用传输方式, 或者因为被配置为不支持多路复用传输方式等原因, 造成第二网元对多路复用传输的 支持能力发生变化, 变为仅支持 GTP协议多路复用封装报文的发送, 不再支持对该种报文的接收, 那么, 后续步骤中:  It is assumed that for some reason, for example, the network element is overloaded during operation, so to reduce the load, the multiplex transmission mode is no longer supported, or because it is configured to not support the multiplex transmission mode, etc. The support capability of the second network element for the multiplexed transmission is changed, and only the transmission of the GTP multiplexed encapsulated packet is supported, and the receiving of the packet is no longer supported. Then, in the following steps:
步骤 1010: 第二网元向第一网元发送协商消息, 该消息中包括更新后的第二网元对多路复用传 输的支持能力信息, 告知第一网元, 本端不再支持接收 GTP协议的多路复用封装报文。  Step 1010: The second network element sends a negotiation message to the first network element, where the message includes the updated capability information of the second network element for the multiplex transmission, and the first network element is notified, and the local end does not support receiving. Multicast encapsulation message of GTP protocol.
步骤 1011〜1012: 由于第二网元仍然支持 GTP协议的多路复用发送, 因此, 第二网元仍可按照 步骤 103〜105所述过程向第一网元发送 GTP协议的多路复用封装报文。  Steps 1011 to 1012: Since the second network element still supports the multiplex transmission of the GTP protocol, the second network element can still transmit the GTP protocol multiplexing to the first network element according to the procedures described in steps 103 to 105. Encapsulate the message.
步骤 1013: 第一网元根据第二网元接收能力的改变, 对于后续的 GTP报文不再进行多路复用封 装, 而是采用普通封装方式传输到第二网元。 实施例四:  Step 1013: The first network element is not multiplexed and packaged for the subsequent GTP packet according to the change of the receiving capability of the second network element, but is transmitted to the second network element in a normal encapsulation manner. Embodiment 4:
图 11为本发明方法第四个实施例的流程图。本实施例中, 第一网元与第二网元之间采用多路复 用方式进行传输的 GTP协议报文为 GTP-U、 GTP-C以及 GTP' 协议报文, 网络层传输协议为 IPv4, 且 不同类型的 GTP协议报文封装到同一 IP数据报中进行传输;第一网元与第二网元获取对方的多路复 用控制信息的方式为: 通过预配置的方式获取多路复用传输的支持能力、 接收多路复用报文的 UDP 目的端口号、 最大封装延迟时间信息。 假设本实施例中的最大封装延迟时间为 20ms, 接收多路复用 报文的 UDP目的端口号为 C。 如图 11所示, 包括以下步骤:  Figure 11 is a flow chart of a fourth embodiment of the method of the present invention. In this embodiment, the GTP protocol packets transmitted by the first network element and the second network element in a multiplexed manner are GTP-U, GTP-C, and GTP' protocol packets, and the network layer transmission protocol is IPv4. And the different types of GTP protocol packets are encapsulated into the same IP datagram for transmission; the first network element and the second network element obtain the multiplexed control information of the other party in the following manner: The transmission support capability, the UDP destination port number for receiving multiplexed packets, and the maximum encapsulation delay time information. It is assumed that the maximum package delay time in this embodiment is 20 ms, and the UDP destination port number for receiving multiplexed packets is C. As shown in Figure 11, the following steps are included:
步骤 111 :根据预配置的信息,第一网元将目的地址为第二网元 IP地址,且 QoS要求相同的 GTP 协议报文进行多路复用封装。  Step 111: According to the pre-configured information, the first network element multiplexes and encapsulates the GTP protocol packet whose destination address is the second network element IP address, and the QoS requirements are the same.
本步骤中所提到的预配置是指在第一网元以及第二网元中均预先配置双方的多路复用控制信 息  The pre-configuration mentioned in this step refers to pre-configuring the multiplex control information of both parties in the first network element and the second network element.
本步骤中, 第一网元进行多路复用封装的时长不超过最大封装延迟时间 20ms; 封装后的 IP数 据报中携带的 UDP目的端口号为 C; 封装后的 IP数据报中的各个 GTP协议报文对应的多路复用头中 的源 UDP端口号为采用普通方式发送该 GTP协议报文时应使用的源端口号; 各多路复用头中的 UDP 目的端口号为按照普通方式发送各自对应的 GTP协议报文时应使用的目的端口号。 比如, 某一多路 复用头对应的 GTP协议报文为 GTP-C协议报文, 那么, 其目的端口号为 2123; 如果对应的 GTP协议 报文为 GTP-U协议报文, 那么, 其目的端口号为 2152; 如果对应的 GTP协议报文为 GTP' , 那么, 其目的端口号为 3386。 In this step, the duration of multiplexing and packaging of the first network element does not exceed the maximum package delay time of 20 ms; the number of IPs after encapsulation Reported the UDP destination port number carried are C; source UDP port number of the multiplexed header of the IP datagram encapsulated in GTP packets each corresponding to the ordinary mode of the GTP protocol packets should be sent The source port number used; the UDP destination port number in each multiplexer header is the destination port number to be used when sending the corresponding GTP protocol packets in the normal manner. For example, if the GTP protocol packet corresponding to a multiplexer header is a GTP-C protocol packet, the destination port number is 2123. If the corresponding GTP protocol packet is a GTP-U protocol packet, then The destination port number is 2152. If the corresponding GTP protocol packet is GTP', the destination port number is 3386.
步骤 112: 第一网元将封装了多个 GTP协议报文的 IP数据报发送到第二网元的 C端口。  Step 112: The first network element sends an IP datagram that encapsulates multiple GTP protocol packets to the C port of the second network element.
步骤 113: 第二网元对接收到的 IP数据报进行解封装, 从中提取出包含的多个 GTP协议报文。 根据多路复用头中携带的 UDP目的端口号的值, 第二网元可以确定对应的 GTP协议报文的具体 类型。  Step 113: The second network element decapsulates the received IP datagram, and extracts multiple GTP protocol packets. The second network element can determine the specific type of the corresponding GTP protocol packet according to the value of the UDP destination port number carried in the multiplexer.
步骤 114〜116: 与步骤 111〜113类似, 第二网元将多个 GTP协议报文通过多路复用方式封装 在同一 IP数据报中发送至第一网元; 第一网元对接收到的 IP数据报进行解封装, 从中提取出所包 含的多个 GTP协议报文。  Steps 114 to 116: Similar to steps 111 to 113, the second network element encapsulates multiple GTP protocol packets in the same IP datagram and multiplexes them to the first network element. The first network element receives the packets. The IP datagram is decapsulated, and the plurality of GTP protocol messages included therein are extracted.
基于上述方法, 图 12为本发明系统实施例的组成结构示意图。 上述各方法实施例可基于图 12 所示系统实现。 如图 12所示, 该系统包括: 第一网元 121以及第二网元 122;  Based on the above method, FIG. 12 is a schematic structural diagram of a system embodiment of the present invention. The various method embodiments described above can be implemented based on the system shown in FIG. As shown in FIG. 12, the system includes: a first network element 121 and a second network element 122;
第一网元 121,用于将一个以上的 GTP协议报文,通过多路复用方式封装在同一个 IP数据报中, 发送给第二网元 122;  The first network element 121 is configured to encapsulate one or more GTP protocol packets in the same IP datagram by multiplexing, and send the same to the second network element 122;
第二网元 122, 用于接收来自第一网元 121的 IP数据报。  The second network element 122 is configured to receive an IP datagram from the first network element 121.
其中, 第一网元 121进一步用于, 获取第二网元 122的多路复用控制信息; 第一网元 121根据 获取到的第二网元 122的多路复用控制信息确定第二网元 122是否支持多路复用传输, 如果支持, 则将一个以上的 GTP协议报文,通过多路复用方式封装在同一个 IP数据报中,发送给第二网元 122; 如果不支持, 则按照普通传输方式向第二网元 122传输 GTP协议报文。  The first network element 121 is further configured to obtain the multiplexing control information of the second network element 122. The first network element 121 determines the second network according to the obtained multiplexing control information of the second network element 122. Whether the element 122 supports the multiplex transmission, if supported, the one or more GTP protocol messages are encapsulated in the same IP datagram by multiplexing, and sent to the second network element 122; if not supported, Then, the GTP protocol packet is transmitted to the second network element 122 according to the normal transmission mode.
图 13为本发明设备实施例的组成结构示意图。 如图 13所示, 该设备包括: 封装单元 131以及 发送单元 132;  FIG. 13 is a schematic structural diagram of an embodiment of an apparatus according to the present invention. As shown in FIG. 13, the device includes: a packaging unit 131 and a sending unit 132;
封装单元 131,用于将一个以上的 GTP协议报文,通过多路复用方式封装在同一个 IP数据报中; 发送单元 132, 用于将封装后的 IP数据报发送给接收设备。  The encapsulating unit 131 is configured to encapsulate one or more GTP protocol packets in the same IP datagram by multiplexing, and the sending unit 132 is configured to send the encapsulated IP datagram to the receiving device.
此外, 该设备中进一步包括: 获取单元 133, 用于获取接收设备的多路复用控制信息; 根据获 取到的接收设备的多路复用控制信息确定该接收设备是否支持多路复用传输, 如果支持, 则通知封 装单元 131执行多路复用封装功能; 如果不支持, 则通知封装单元 131按照普通传输方式向接收设 备传输 GTP协议报文。 其中, 多路复用控制信息可具体包括: 对多路复用传输的支持能力; 或进一 步包括采用多路复用传输的 GTP协议类型、 接收多路复用报文的 UDP目的端口号、 最大封装延迟时 间, 适用多路复用封装的最大报文长度信息中的一种或任意组合。  In addition, the device further includes: an obtaining unit 133, configured to acquire multiplexing control information of the receiving device; and determining, according to the acquired multiplexing control information of the receiving device, whether the receiving device supports the multiplex transmission, If supported, the notification encapsulating unit 131 performs a multiplex encapsulation function; if not, the notification encapsulating unit 131 transmits a GTP protocol message to the receiving device according to the normal transmission mode. The multiplex control information may specifically include: support capability for multiplex transmission; or further including a GTP protocol type using multiplex transmission, a UDP destination port number for receiving multiplexed packets, and a maximum The encapsulation delay time, which is one or any combination of the maximum packet length information of the multiplexed encapsulation.
上述获取单元 133可具体包括: 获取子单元 1331以及确定子单元 1332;  The obtaining unit 133 may specifically include: an obtaining subunit 1331 and a determining subunit 1332;
获取子单元 1331, 用于通过预配置的方式、 每次用户的连接或承载建立或修改时的协商方式, 以及第一网元 121和第二网元 122之间首次建立连接时的协商方式中的一种或任意组合, 获取接收 设备的多路复用控制信息; The obtaining sub-unit 1331 is configured to use the pre-configured manner, the negotiation mode when the connection or the bearer is established or modified, and the negotiation mode when the first network element 121 and the second network element 122 are first established. One or any combination, get received Multiplex control information for the device;
确定子单元 1332, 用于根据接收设备的多路复用控制信息确定该接收设备是否支持多路复用传 输, 如果支持, 则通知封装单元 131执行多路复用封装功能; 如果不支持, 则通知封装单元 131按 照普通传输方式向接收设备传输 GTP协议报文。  a determining subunit 1332, configured to determine, according to the multiplexing control information of the receiving device, whether the receiving device supports the multiplex transmission, and if so, notifying the encapsulating unit 131 to perform a multiplex encapsulation function; if not, The notification encapsulating unit 131 transmits the GTP protocol packet to the receiving device according to the normal transmission mode.
上述封装单元 131中可具体包括: 第一封装子单元 1311以及第二封装子单元 1312; 其中: 第一封装子单元 1311, 用于将同一类型的 GTP协议报文封装在同一 IP数据报中;  The foregoing encapsulating unit 131 may further include: a first encapsulating subunit 1311 and a second encapsulating subunit 1312; wherein: the first encapsulating subunit 1311 is configured to encapsulate the same type of GTP protocol packet in the same IP datagram;
第二封装子单元 1312, 用于在将不同类型的 GTP协议报文封装在同一 IP数据报中。  The second encapsulation subunit 1312 is configured to encapsulate different types of GTP protocol packets in the same IP datagram.
上述第一封装子单元 1311可进一步用于, 在将同一类型的 GTP协议报文封装在同一 IP数据报 中时, 在封装在同一 IP数据报中的每个 GTP协议报文前分别添加一个多路复用头, 该多路复用头包 括: 采用普通方式发送自身对应的 GTP协议报文时应使用的 UDP源端口号, 以及与自身对应的 GTP 协议报文的长度信息中的一种或两种;  The first encapsulating sub-unit 1311 may be further configured to: when the same type of GTP protocol packet is encapsulated in the same IP datagram, add one more before each GTP protocol packet encapsulated in the same IP datagram. The multiplexer header, the multiplexer header includes: one of a UDP source port number to be used in the GTP protocol packet corresponding to the GTP protocol packet, and one of the length information of the GTP protocol packet corresponding to the GTP protocol packet Two kinds;
第二封装子单元 1312可进一步用于,在将不同类型的 GTP协议报文封装在同一 IP数据报中时, 在封装在同一 IP数据报中的每个 GTP协议报文前分别添加一个多路复用头, 该多路复用头包括: 采 用普通方式发送与自身对应的 GTP协议报文时应使用的 UDP 目的端口号, 或者, 与自身对应的 GTP 协议报文的协议类型标识。  The second encapsulation sub-unit 1312 is further configured to add a multi-channel before each GTP protocol packet encapsulated in the same IP datagram when the different types of GTP protocol packets are encapsulated in the same IP datagram. The multiplexer header, the multiplexer header includes: a UDP destination port number to be used for transmitting a GTP protocol packet corresponding to itself in a normal manner, or a protocol type identifier of a GTP protocol packet corresponding to itself.
图 12和 13所述系统及设备实施例的具体工作流程请参照方法相应部分的说明,此处不再赘述。 可见, 采用本发明实施例的技术方案, 通过将多个 GTP协议报文封装在同一个 IP数据报中进行 传输, 充分利用了 IP数据报的最大负载长度, 有效地提高了 IP数据报中有效负载数据所占的比例, 从而提高了网络传输效率以及带宽利用效率。  For the specific working process of the system and device embodiments shown in FIG. 12 and FIG. 13 , refer to the description of the corresponding part of the method, and details are not described herein again. It can be seen that, by using the technical solution of the embodiment of the present invention, multiple GTP protocol packets are encapsulated in the same IP datagram for transmission, and the maximum load length of the IP datagram is fully utilized, thereby effectively improving the effectiveness of the IP datagram. The proportion of load data, which improves network transmission efficiency and bandwidth utilization efficiency.
下面通过一个具体的实例, 来比较一下采用本发明实施例所述方案与采用现有传输方式相比, 在提高 IP数据报中有效负载数据所占比例方面的不同效果。  In the following, a specific example is used to compare the different effects of using the solution according to the embodiment of the present invention to improve the proportion of payload data in an IP datagram compared with the existing transmission method.
对于采用 GSM-AMR编码格式的语音通信, 假设其平均传输码率为 8Kbps, 采样间隔为 20ms, 则 每个语音帧的长度为 20字节。假设该实例中的语音帧按照图 4所示方式进行封装并传输, 即将语音 数据所封装的 RTP协议报文承载在 GTP上层隧道的 IPv4隧道进行传输,则将该在上层隧道中传输的 IPv4数据报封装为 GTP-U协议报文后, 长度共为 68字节。  For voice communication using the GSM-AMR coding format, assuming that the average transmission code rate is 8 Kbps and the sampling interval is 20 ms, the length of each speech frame is 20 bytes. It is assumed that the voice frame in the example is encapsulated and transmitted in the manner shown in FIG. 4, that is, the RTP protocol packet encapsulated in the voice data is carried in the IPv4 tunnel of the GTP upper tunnel, and the IPv4 data transmitted in the upper tunnel is transmitted. After being encapsulated as a GTP-U protocol packet, the total length is 68 bytes.
对于该长度为 68字节的有效负载数据:  For this payload data of length 68 bytes:
如果采样现有普通传输方式进行传输, 封装为 IPv4数据报后的长度为 96字节, 封装为以太网 帧后的长度为 114字节, 如果进一步考虑以太网帧的传输时隙以及同步位, 则共为 134字节。  If the existing normal transmission mode is used for transmission, the length after encapsulation as an IPv4 datagram is 96 bytes, and the length after encapsulation as an Ethernet frame is 114 bytes. If the transmission slot and synchronization bit of the Ethernet frame are further considered, A total of 134 bytes.
如果采用本发明实施例所述的多路复用方式传输, 以同一 IP数据报中只能封装同一类型的 GTP 协议报文为例, 假设封装后的每个 GTP协议报文需要添加一个长度为 2字节的多路复用头, 那么, 根据表一的记载可知, 在最大封装延迟时间内, IPv4数据报最大可以封装不超过 1500字节的信息, 即 28字节的 UDP头和 IP头以及大约 20个 GTP协议报文。  If the multiplex mode is used in the embodiment of the present invention, the same type of GTP protocol packet can be encapsulated in the same IP datagram as an example. A 2-byte multiplex header, then, according to the description in Table 1, the IPv4 datagram can encapsulate up to 1500 bytes of information, that is, a 28-byte UDP header and IP header, within the maximum package delay time. And about 20 GTP protocol messages.
对于这 20个 GTP协议报文, 如果采用多路复用方式封装时, 其最终的 IPv4数据报长度为 1428 字节, 封装为以太网帧后的长度为 1466字节 (考虑了以太网帧中的传输时隙以及同步位); 如果采 用现有封装方式, 20个 GTP协议报文对应的 IPv4数据报的总长度将为 1920字节, 总以太网帧的传 输长度为 2680字节。 可见, 对于同样的 20个 GTP协议报文, 当采用本发明实施例所述方案以及现 有技术这两种不同的传输方式时, 所需 IPv4数据报的长度分别为 1428字节以及 1920字节;所需以 太网帧的长度分别为 1466字节以及 2680字节。 也就是说, 本发明实施例所述方案明显地提高了有 效负载数据在 IP数据报以及以太网帧中所占的比例。 For these 20 GTP protocol packets, if they are encapsulated in multiplexed mode, the final IPv4 datagram length is 1428 bytes, and the length after encapsulation as an Ethernet frame is 1466 bytes (considering Ethernet frames) The transmission time slot and the synchronization bit); if the existing encapsulation mode is adopted, the total length of the IPv4 datagram corresponding to the 20 GTP protocol messages will be 1920 bytes, and the total Ethernet frame transmission The input length is 2680 bytes. It can be seen that for the same 20 GTP protocol messages, when the two solutions of the embodiment of the present invention and the prior art are used, the lengths of the required IPv4 datagrams are respectively 1428 bytes and 1920 bytes. The length of the required Ethernet frames is 1466 bytes and 2680 bytes, respectively. That is to say, the solution described in the embodiment of the present invention significantly improves the proportion of payload data in IP datagrams and Ethernet frames.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本 技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替换, 都应涵盖在本发明的 保护范围之内。 因此, 本发明的保护范围应该以权利要求的保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1、 一种通用分组无线业务隧道协议 GTP报文传输方法, 其特征在于, 该方法包括: 第一网元将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报文中; 所述第一网元将所述封装后的 IP数据报文发送给第二网元。  A method for transmitting a GTP packet of a general packet radio service tunneling protocol, the method comprising: the first network element encapsulating one or more GTP protocol packets in the same IP datagram by multiplexing The first network element sends the encapsulated IP data packet to the second network element.
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一网元将一个以上的 GTP协议报文, 通过 多路复用方式封装在同一个 IP数据报文中之前, 进一步包括:  The method according to claim 1, wherein the first network element, before the one or more GTP protocol packets are encapsulated in the same IP data packet by multiplexing, further includes:
所述第一网元获取所述第二网元的多路复用控制信息,所述第一网元确定所述第二网元是否支 持多路复用传输, 如果支持, 则根据所述第二网元的多路复用控制信息将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报文中, 发送给所述第二网元。  Obtaining, by the first network element, multiplex control information of the second network element, where the first network element determines whether the second network element supports multiplex transmission, and if supported, according to the The multiplexing control information of the two network elements encapsulates one or more GTP protocol packets in the same IP data packet in a multiplexed manner, and sends the information to the second network element.
3、 根据权利要求 2所述的方法, 其特征在于, 所述多路复用控制信息包括以下至少一种: 对多路复用传输的支持能力、 采用多路复用传输的 GTP协议类型、 接收多路复用报文的用户数 据报协议 UDP目的端口号、 最大封装延迟时间, 以及适用多路复用封装的最大报文长度信息。  3. The method according to claim 2, wherein the multiplexing control information comprises at least one of: a support capability for multiplex transmission, a GTP protocol type using multiplex transmission, The user datagram protocol UDP destination port number, the maximum encapsulation delay time, and the maximum packet length information applicable to the multiplex encapsulation of the multiplexed packet.
4、 根据权利要求 3所述的方法, 其特征在于, 所述对多路复用传输的支持能力包括以下至少一 种: 发送能力和接收能力。  4. The method according to claim 3, wherein the support capability for the multiplex transmission comprises at least one of: a transmission capability and a reception capability.
5、 根据权利要求 3所述的方法, 其特征在于, 不同 GTP协议类型或网络中不同承载对应不同的 多路复用控制信息。  5. The method according to claim 3, characterized in that different bearers of different GTP protocol types or networks correspond to different multiplexing control information.
6、 根据权利要求 3所述的方法, 其特征在于, 当所述多路复用控制信息包括最大封装延迟时间 时, 所述第一网元将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报文中的过 程在所述最大封装延迟时间内完成;  The method according to claim 3, wherein when the multiplexed control information includes a maximum encapsulation delay time, the first network element passes more than one GTP protocol packet by multiplexing The process of being encapsulated in the same IP data packet is completed within the maximum package delay time;
当所述多路复用控制信息包括适用多路复用封装的最大报文长度时, 所述通过多路复用方式封 装在同一个 IP数据报文中的每一个 GTP协议报文的长度小于或等于所述适用多路复用封装的最大报 文长度。  When the multiplexed control information includes a maximum packet length applicable to the multiplexed encapsulation, the length of each GTP protocol packet encapsulated in the same IP data packet by the multiplexing manner is less than Or equal to the maximum message length of the applicable multiplexed package.
7、 根据权利要求 2至 5任一项所述的方法, 其特征在于, 所述第一网元获取所述第二网元的多 路复用控制信息包括以下方式中的至少一种:  The method according to any one of claims 2 to 5, wherein the acquiring, by the first network element, the multiplex control information of the second network element comprises at least one of the following manners:
通过预配置的方式获取;  Obtained by pre-configuration;
在每次用户的连接或承载建立或修改时, 通过协商方式获取;  Obtained by negotiation when each user's connection or bearer is established or modified;
在所述第一网元和第二网元之间首次建立连接时, 通过协商方式获取。  When the connection is first established between the first network element and the second network element, the connection is obtained through negotiation.
8、 根据权利要求 7所述的方法, 其特征在于, 所述通过协商方式获取包括: 所述第二网元在发 送的 GTP-C消息中携带自身的多路复用控制信息,发送给所述第一网元,所述第一网元从所述 GTP-C 消息中获取所述第二网元的多路复用控制信息。  The method according to claim 7, wherein the obtaining by the negotiation mode comprises: the second network element carrying its own multiplex control information in the sent GTP-C message, and sending the multiplex control information to the The first network element, where the first network element obtains multiplexing control information of the second network element from the GTP-C message.
9、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述将一个以上的 GTP协议报文, 通 过多路复用方式封装在同一个 IP数据报文中, 包括:  The method according to any one of claims 1 to 5, wherein the one or more GTP protocol packets are encapsulated in the same IP data packet by multiplexing, including:
如果不同的 GTP协议报文对应不同的服务质量 QoS要求, 则仅将具有相同 QoS要求的一个以上 GTP协议报文通过多路复用方式封装在同一个 IP数据报文中。  If different GTP protocol packets correspond to different QoS requirements, only one or more GTP protocol packets with the same QoS requirements are encapsulated in the same IP data packet.
10、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述多路复用方式包括以下至少一 种: 将同一类型的 GTP协议报文封装在同一 IP数据报文中, 以及将不同类型的 GTP协议报文封装在 同一 IP数据报文中。 The method according to any one of claims 1 to 5, wherein the multiplexing mode comprises at least one of the following A type of GTP protocol packet is encapsulated in the same IP data packet, and different types of GTP protocol packets are encapsulated in the same IP data packet.
11、 根据权利要求 10所述的方法, 其特征在于, 对于将同一类型的 GTP协议报文封装在同一 IP数据报文中的方式, 所述封装在同一 IP数据报文中的每个 GTP协议报文前分别设置一个多路复 用头;  The method according to claim 10, wherein each GTP protocol encapsulated in the same IP data packet is encapsulated in the same IP data packet in the same type of GTP protocol packet. Set a multiplexing header before the message;
所述多路复用头包括以下至少一种:采用普通方式发送 GTP协议报文时应使用的 UDP源端口号, 以及 GTP协议报文的长度信息。  The multiplexer header includes at least one of the following: a UDP source port number to be used when the GTP protocol packet is sent in the normal manner, and a length information of the GTP protocol packet.
12、 根据权利要求 10所述的方法, 其特征在于, 对于将不同类型的 GTP协议报文封装在同一 IP数据报文中的方式, 所述封装在同一 IP数据报文中的每个 GTP协议报文前分别设置一个多路复 用头;  The method according to claim 10, wherein, in a manner of encapsulating different types of GTP protocol packets in the same IP data packet, each GTP protocol encapsulated in the same IP data packet Set a multiplexing header before the message;
所述多路复用头包括: 采用普通方式发送 GTP协议报文时应使用的 UDP目的端口号, 或者, GTP 协议报文的协议类型标识。  The multiplexer header includes: a UDP destination port number to be used when the GTP protocol packet is sent in the normal manner, or a protocol type identifier of the GTP protocol packet.
13、 根据权利要求 12所述的方法, 其特征在于, 对于将不同类型的 GTP协议报文封装在同一 IP数据报文中的方式, 所述多路复用头进一步包括以下至少一种:  The method according to claim 12, wherein the multiplexing header further includes at least one of the following manners for encapsulating different types of GTP protocol packets in the same IP data packet:
采用普通方式发送 GTP协议报文时应使用的 UDP源端口号, 以及 GTP协议报文的长度信息。 The UDP source port number to be used for sending GTP packets in the normal mode and the length information of GTP packets.
14、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述第一网元将所述封装后的 IP数 据报发送给第二网元之后, 所述方法进一步包括: The method according to any one of claims 1 to 5, wherein, after the first network element sends the encapsulated IP data report to the second network element, the method further includes:
所述第二网元对接收到的 IP数据报文进行解封装, 得到所述一个以上的 GTP协议报文。  The second network element decapsulates the received IP data packet to obtain the one or more GTP protocol packets.
15、 一种 GTP协议报文传输系统, 其特征在于, 该系统包括:  15. A GTP protocol message transmission system, the system comprising:
第一网元, 用于将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报文中并 发送;  The first network element is configured to encapsulate one or more GTP protocol packets in the same IP data packet by using multiplexing, and send the packet;
第二网元, 用于接收来自所述第一网元的 IP数据报文。  The second network element is configured to receive an IP data packet from the first network element.
16、 根据权利要求 15所述的系统, 其特征在于, 所述第一网元进一步用于, 获取所述第二网元 的多路复用控制信息;  The system according to claim 15, wherein the first network element is further configured to acquire multiplexing control information of the second network element;
所述第一网元确定所述第二网元是否支持多路复用传输, 如果支持, 则根据获取到的第二网元 多路复用控制信息将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报文中, 发 送给所述第二网元。  Determining, by the first network element, whether the second network element supports multiplex transmission, and if so, transmitting more than one GTP protocol message according to the acquired second network element multiplexing control information The multiplex mode is encapsulated in the same IP data packet and sent to the second network element.
17、 根据权利要求 15或 16所述的系统, 其特征在于, 所述第二网元进一步用于, 对接收到的 IP数据报文进行解封装, 得到所述一个以上的 GTP协议报文。  The system according to claim 15 or 16, wherein the second network element is further configured to decapsulate the received IP data packet to obtain the one or more GTP protocol messages.
18、 一种 GTP协议报文传输设备, 其特征在于, 该设备包括:  18. A GTP protocol message transmission device, the device comprising:
封装单元, 用于将一个以上的 GTP协议报文, 通过多路复用方式封装在同一个 IP数据报文中; 发送单元, 用于将所述封装后的 IP数据报文发送给接收设备。  The encapsulating unit is configured to encapsulate one or more GTP protocol packets in the same IP data packet by using a multiplexing manner, and the sending unit is configured to send the encapsulated IP data packet to the receiving device.
19、 根据权利要求 18所述的设备, 其特征在于, 该设备进一步包括:  The device according to claim 18, wherein the device further comprises:
获取单元, 用于获取接收设备的多路复用控制信息, 确定所述接收设备是否支持多路复用传输, 如果支持, 则根据获取到的接收设备的多路复用控制信息通知所述封装单元执行多路复用封装。 An obtaining unit, configured to acquire multiplexing control information of the receiving device, determine whether the receiving device supports multiplex transmission, and if supported, notify the package according to the multiplexed control information of the obtained receiving device The unit performs a multiplexed package.
20、 根据权利要求 19所述的设备, 其特征在于, 所述获取单元具体包括: 获取子单元, 用于通过预配置的方式、 每次用户的连接或承载建立或修改时的协商方式, 以及 第一网元和第二网元之间首次建立连接时的协商方式中的至少一种方式, 获取所述接收设备的多路 复用控制信息; The device according to claim 19, wherein the acquiring unit specifically includes: an obtaining sub-unit, in a pre-configured manner, a negotiation manner when a connection or a bearer is established or modified, and Acquiring at least one of a negotiation mode when the first network element and the second network element establish a connection for the first time, acquiring multiplexing control information of the receiving device;
确定子单元, 用于确定所述接收设备是否支持多路复用传输, 如果支持, 则根据所述接收设备 的多路复用控制信息通知所述封装单元执行多路复用封装。  Determining a subunit, configured to determine whether the receiving device supports multiplex transmission, and if so, notifying the encapsulating unit to perform multiplexing encapsulation according to multiplexing control information of the receiving device.
21、 根据权利要求 18至 20任一项所述的设备, 其特征在于, 所述封装单元具体包括: 第一封装子单元, 用于将同一类型的 GTP协议报文封装在同一 IP数据报中;  The device according to any one of claims 18 to 20, wherein the encapsulating unit comprises: a first encapsulating subunit, configured to encapsulate the same type of GTP protocol packet in the same IP datagram. ;
第二封装子单元, 用于将不同类型的 GTP协议报文封装在同一 IP数据报中。  The second encapsulation sub-unit is configured to encapsulate different types of GTP protocol packets in the same IP datagram.
PCT/CN2008/072815 2007-10-24 2008-10-24 Method, system and device for transmitting general packet radio service tunneling protocol datagram WO2009056061A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200710182051 CN101420369A (en) 2007-10-24 2007-10-24 Packet transmission method, system and device for general packet wireless service tunnel protocol
CN200710182051.0 2007-10-24

Publications (1)

Publication Number Publication Date
WO2009056061A1 true WO2009056061A1 (en) 2009-05-07

Family

ID=40590563

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072815 WO2009056061A1 (en) 2007-10-24 2008-10-24 Method, system and device for transmitting general packet radio service tunneling protocol datagram

Country Status (2)

Country Link
CN (1) CN101420369A (en)
WO (1) WO2009056061A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107735996A (en) * 2015-05-11 2018-02-23 诺基亚通信公司 Multiple G PDU are sent using single UDP datagram

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101965014B (en) * 2010-11-03 2013-04-10 北京中创信测科技股份有限公司 Distribution method and distribution control device for Gn interface data
CN102118292B (en) * 2011-02-28 2013-07-10 华为数字技术(成都)有限公司 Internet protocol multimedia subsystem (IMS) network as well as data transmission method and device
CN102355456B (en) * 2011-09-01 2014-04-02 大唐移动通信设备有限公司 Management method and device for restart counter
JP2016524379A (en) * 2013-05-15 2016-08-12 華為技術有限公司Huawei Technologies Co.,Ltd. Data transmission method and apparatus, communication device, and communication system
CN106357619A (en) * 2016-08-26 2017-01-25 海宁翔亦信息科技有限公司 4G network voice data transmission method and transmission system
CN106470212B (en) * 2016-10-13 2020-01-17 重庆金美通信有限责任公司 Method for compressing and encrypting EIGRP protocol message based on LZW compression algorithm
KR102656013B1 (en) * 2016-10-28 2024-04-11 삼성전자주식회사 Content output device and control method thereof
CN107820327A (en) * 2017-10-27 2018-03-20 京信通信系统(中国)有限公司 Data uplink, the method and system of downlink transfer and LTE network Transmission system
CN109617891A (en) * 2018-12-26 2019-04-12 北京数码视讯技术有限公司 Code stream transmission method and device
CN110784679B (en) * 2019-03-12 2020-10-16 王虎 Communication load big data adjusting method and storage medium
CN110139068B (en) * 2019-04-03 2020-11-27 视联动力信息技术股份有限公司 Detection method and device
CN112202691A (en) * 2019-07-08 2021-01-08 普天信息技术有限公司 Message processing method, sending end and receiving end of GTP-U protocol
EP4014431A1 (en) * 2019-08-16 2022-06-22 Nokia Technologies Oy Method, apparatus, and computer program product for packet forwarding control protocol messages bundling
CN113518386A (en) * 2020-04-09 2021-10-19 华为技术有限公司 GPRS tunneling protocol GTP packet processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040246962A1 (en) * 2003-06-06 2004-12-09 Kopeikin Roy A. Dynamically assignable resource class system to directly map 3GPP subscriber communications to a MPLS-based protocol
CN1750510A (en) * 2004-09-01 2006-03-22 艾利森电话股份有限公司 Per flow quality of service (QoS) enforcement for downlink data traffic
CN1825827A (en) * 2005-02-24 2006-08-30 华为技术有限公司 Method and apparatus of IPv6 and IPv4 GPRS core net interconnecting
CN1889575A (en) * 2006-07-18 2007-01-03 华为技术有限公司 Method for realizing head compressing and multiplexing method at IP layer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040246962A1 (en) * 2003-06-06 2004-12-09 Kopeikin Roy A. Dynamically assignable resource class system to directly map 3GPP subscriber communications to a MPLS-based protocol
CN1750510A (en) * 2004-09-01 2006-03-22 艾利森电话股份有限公司 Per flow quality of service (QoS) enforcement for downlink data traffic
CN1825827A (en) * 2005-02-24 2006-08-30 华为技术有限公司 Method and apparatus of IPv6 and IPv4 GPRS core net interconnecting
CN1889575A (en) * 2006-07-18 2007-01-03 华为技术有限公司 Method for realizing head compressing and multiplexing method at IP layer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107735996A (en) * 2015-05-11 2018-02-23 诺基亚通信公司 Multiple G PDU are sent using single UDP datagram

Also Published As

Publication number Publication date
CN101420369A (en) 2009-04-29

Similar Documents

Publication Publication Date Title
WO2009056061A1 (en) Method, system and device for transmitting general packet radio service tunneling protocol datagram
US7225259B2 (en) Service tunnel over a connectionless network
US8537781B2 (en) Low latency handover between wireless communication networks using different radio access technologies
JP4763682B2 (en) Providing information on upper layer packet or frame boundary in GRE frame
JP4024797B2 (en) Method and apparatus for transmitting IP packets between a radio network controller of a mobile radio network and other devices
JP4164365B2 (en) Technology for improving TCP performance over a wireless interface by providing a dual proxy device
CN101388825B (en) Method and apparatus for transmitting data package of GPRS tunnel protocol
WO2021000827A1 (en) Data transmission link establishment method and apparatus, and computer-readable storage medium
CN100505673C (en) Method and system for detecting path maximal transmission unit
US20120207116A1 (en) Wimax r6 management protocol
WO2007128217A1 (en) Method of internet protocol(ip) message transmission, negotiated bandwidth saving capability and saving network bandwidth
WO2007073696A1 (en) A method, apparatus and system for wireless access
JP2006522518A (en) Wireless telecommunication device and method for communicating internet data packets containing different types of data
JP2006522518A5 (en)
JP2006521050A (en) Communication device and communication method for communication of internet protocol data packet
JP2002523981A (en) Method and apparatus for providing user multiplexing in a real-time protocol
KR100570801B1 (en) Method and system for activating a packet data subscriber context for packet data
WO2009026845A1 (en) Method for data transmitting and receiving, wireless access point apparatus, gateway and communication system
WO2014000307A1 (en) Data transmission method, network element device and communication system
JP5768138B2 (en) Method and apparatus for performing an action on a packet at an intermediate node in a connection between a communication device and a destination device in a target network
WO2008034365A1 (en) Methods and a system and devices for ipv6 datagram transmission in the ethernet
CN100496024C (en) A method to forward the channel message and a network device
US6904034B2 (en) Method and system for communicating data between a mobile communications architecture and a packet switched architecture, each utilizing a different mode of communication
CN102420745A (en) 3G (the third Generation) communication method and system
WO2009109128A1 (en) Method and apparatus of full header information message configuration

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08844159

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08844159

Country of ref document: EP

Kind code of ref document: A1