WO2021104335A1 - Data transmission method and apparatus therefor - Google Patents

Data transmission method and apparatus therefor Download PDF

Info

Publication number
WO2021104335A1
WO2021104335A1 PCT/CN2020/131579 CN2020131579W WO2021104335A1 WO 2021104335 A1 WO2021104335 A1 WO 2021104335A1 CN 2020131579 W CN2020131579 W CN 2020131579W WO 2021104335 A1 WO2021104335 A1 WO 2021104335A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
edge
edge gateway
information
session
Prior art date
Application number
PCT/CN2020/131579
Other languages
French (fr)
Chinese (zh)
Inventor
周军平
屈琴
郝文杰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021104335A1 publication Critical patent/WO2021104335A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/122Avoiding congestion; Recovering from congestion by diverting traffic away from congested entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Definitions

  • This application relates to the field of Internet technology, and in particular to a data transmission method and device.
  • the current network is a convergent network. Under the current network, when the terminal accesses data, it passes through the centralized deployment gateway.
  • micro-cloud platforms at the network edge (for example, close to the base station), that is, multi-access edge computing/multi-access edge cloud (multi-access edge cloud). computing/cloud, MEC) platform.
  • the MEC gateway determines whether the data needs to be locally distributed based on the distribution rules. If the data needs to be distributed locally, the data is sent to the local network. If the data does not need to be distributed locally, the MEC gateway sends the data to the CSG/ASG, and the CSG/ASG sends the data to the core network for processing. However, this will result in a large amount of data traffic that the MEC gateway needs to process.
  • the embodiments of the present application provide a data transmission method and device, which are beneficial to reduce the data traffic processed by the edge gateway.
  • an embodiment of the present application provides a data transmission method.
  • the method includes: receiving an uplink data packet from a terminal device, and determining session information corresponding to the uplink data packet; and the session information corresponding to the uplink data packet satisfies edge forwarding In the case of conditions, the uplink data packet is sent to the edge gateway.
  • the uplink data packet is sent to the edge gateway, which is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
  • the session information may include the session type, and the edge forwarding condition may include one or more edge forwarding session types; the session information meeting the edge forwarding condition may include that the session type corresponding to the uplink data packet is the same as the edge forwarding session type .
  • the session information may include the identifier and session type of the access network device corresponding to the terminal device;
  • the method before sending the uplink data packet to the edge gateway, the method may further include: obtaining the address information of the edge gateway, modifying the destination address information of the uplink data packet to the address information of the edge gateway;
  • the specific implementation manner of sending to the edge gateway may be: sending the uplink data packet to the edge gateway according to the destination address information of the modified uplink data packet.
  • the uplink data packet can be sent to the edge gateway according to the modified destination address information of the uplink data packet. This helps to reduce the data traffic processed by the edge gateway.
  • the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
  • the method may further include: when the session information corresponding to the uplink data packet does not meet the edge forwarding condition, sending the uplink data packet to the core network element.
  • the uplink data packet is sent to the core network element, and the data requested by the uplink data packet can be obtained from the core network. Avoid the failure of the upstream data packet to get a response.
  • the embodiments of the present application provide another data transmission method, the method includes: determining that the current tunnel information is different from the historical tunnel information; the tunnel information is the tunnel information between the core network element and the access network device ; Send the downlink data packet corresponding to the tunnel information to the edge gateway.
  • the edge gateway can determine the current tunnel information according to the information carried in the downlink data packet, and encapsulate and send the downlink data packet from the local server according to the current tunnel information.
  • the method may further include: generating a downlink data packet.
  • the method may further include: receiving a downlink data packet from a core network element.
  • the downlink data packet may be the first n downlink data packets in the downlink data stream; where n may be a positive integer.
  • the edge gateway can learn the current tunnel information according to the received n downlink data packets, thereby helping to improve the success rate of the downlink data packets from the local server returning to the terminal device.
  • the method before sending the downlink data packet corresponding to the tunnel information to the edge gateway, the method may further include: obtaining address information of the edge gateway; and modifying the destination address information of the downlink data packet to the address information of the edge gateway
  • the specific implementation manner of sending the downlink data packet corresponding to the tunnel information to the edge gateway may be: sending the downlink data packet to the edge gateway according to the destination address information of the modified downlink data packet.
  • the downlink data packet can be sent to the edge gateway according to the modified destination address information of the downlink data packet. This is beneficial to improve the success rate of the downlink data packet from the local server returning to the terminal device.
  • the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
  • the method may further include: determining the session information corresponding to the tunnel information; when the session information satisfies the edge forwarding condition, triggering the execution of the step of sending the downlink data packet corresponding to the tunnel information to the edge gateway.
  • the downlink data packet corresponding to the tunnel information is sent to the edge gateway.
  • it is beneficial to the correct downlink data packet returned from the local network.
  • it can avoid sending the downlink data packet corresponding to the tunnel information to the edge gateway when the session information corresponding to the tunnel information does not meet the edge forwarding conditions, which is beneficial to reduce the data processed by the edge gateway flow.
  • an embodiment of the present application provides a data transmission device, which is a first network device or a device (such as a chip) having the function of the first network device.
  • the device has the function of realizing the data transmission method provided in the first aspect, and the function is realized by hardware or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • an embodiment of the present application provides another data transmission device, which is a second network device or a device (such as a chip) with the function of the second network device.
  • the device has the function of realizing the data transmission method provided by the second aspect, and the function is realized by hardware or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • an embodiment of the present application provides yet another data transmission device, which is a first network device or a device (such as a chip) having the function of the first network device.
  • the device includes a processor and a storage medium.
  • the storage medium stores instructions. When the instructions are executed by the processor, the device realizes the data transmission method provided in the first aspect.
  • the embodiments of the present application provide yet another data transmission device.
  • the device is a second network device or a device (such as a chip) with the function of the second network device.
  • the device includes a processor and a storage medium, and the storage medium stores There is an instruction, and when the instruction is executed by the processor, the device realizes the data transmission method provided in the second aspect.
  • an embodiment of the present application provides a data transmission system that includes the data transmission device described in the third aspect and the data transmission device described in the fourth aspect, or the data transmission system includes the fifth aspect The data transmission device and the data transmission device described in the sixth aspect.
  • an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the data transmission device described in the third aspect, which includes instructions for executing the method of the first aspect. program.
  • an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the data transmission device described in the fourth aspect, which includes instructions for executing the method of the second aspect. program.
  • an embodiment of the present application provides a computer program product.
  • the program product includes a program.
  • the program When the program is executed by a data transmission device, the device implements the method described in the first aspect.
  • an embodiment of the present application provides a computer program product.
  • the program product includes a program.
  • the program When the program is executed by a data transmission device, the device implements the method described in the second aspect.
  • Figure 1a is an existing network architecture diagram
  • FIG. 1b is a schematic diagram of the architecture of a communication system disclosed in an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a data transmission method disclosed in an embodiment of the present application
  • Fig. 3a is a schematic flowchart of another data transmission method disclosed in an embodiment of the present application.
  • Fig. 3b is a schematic diagram of an SRH extension header in an IPv6 data packet header disclosed in an embodiment of the present application
  • FIG. 5 is a schematic flowchart of yet another data transmission method disclosed in an embodiment of the present application.
  • FIG. 6a is a schematic diagram of a network architecture in which the control plane and the forwarding plane are separated according to an embodiment of the present application
  • FIG. 6b is a schematic diagram of a network architecture in which a control plane and a forwarding plane are integrated according to an embodiment of the present application;
  • FIG. 6c is a schematic diagram of a network architecture of a 5G independent networking disclosed in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a data transmission device disclosed in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another data transmission device disclosed in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of another data transmission device disclosed in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another data transmission device disclosed in an embodiment of the present application.
  • FIG. 1b is a schematic diagram of the architecture of a communication system disclosed in an embodiment of the present application.
  • the communication system includes: a first network device and an edge gateway.
  • the first network device may receive the uplink data packet from the terminal device, determine the session information corresponding to the uplink data packet, and if the session information meets the edge forwarding condition, send the uplink data packet to the edge gateway. In this way, it is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
  • that the session information corresponding to the uplink data packet satisfies the edge forwarding condition may indicate that the uplink data packet is used to access local services.
  • the edge gateway can receive the uplink data packet and send the uplink data packet to the local network.
  • the relevant data of the local business can be stored in the local network. Sending the uplink data packet used to access the local business to the local network is beneficial to improve the success rate of the user in accessing the local business.
  • the first network device may be an entity on the network side for transmitting or receiving signals.
  • the first network device may be an access network device (such as a base station).
  • the first network device may also be a device located behind the base station (not shown in FIG. 1b) in the uplink direction.
  • the first network device may be located between the base station and the edge gateway, and the first network device has the following function: receiving the uplink data packet sent by the base station (the uplink data packet comes from the terminal device), and determining the session corresponding to the uplink data packet Information, and when the session information meets the edge forwarding condition, the uplink data packet is sent to the edge gateway.
  • the edge gateway can send the received uplink data packet to the local network.
  • the edge gateway may be a multi-access edge computing/cloud (MEC) gateway, or other network elements that have the aforementioned functions of the edge gateway.
  • MEC multi-access edge computing/cloud
  • FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • This method describes in detail how to reduce the data traffic processed by the edge gateway in the upstream direction.
  • the execution subject of step S201 to step S203 is the first network device, or the chip in the first network device
  • the execution subject of step S204 is the edge gateway or the chip in the edge gateway.
  • the first network device The edge gateway is the execution subject of the data transmission method as an example for description.
  • the method may include but is not limited to the following steps:
  • Step S201 The first network device receives an uplink data packet from a terminal device.
  • the first network device when the first network device is a base station, after the terminal device generates an uplink data packet, it may send the uplink data packet to the first network device.
  • the terminal device When the first network device is a device located behind the base station in the uplink direction, the terminal device can send the uplink data packet to the base station where the terminal device currently resides, and then the base station where the terminal device currently resides transmits the uplink data. The packet is sent to the first network device.
  • the terminal device may be an entity on the user side for receiving or transmitting signals.
  • the terminal equipment may be user equipment (UE), remote terminal, mobile terminal, wireless communication equipment, user equipment, and so on.
  • the user equipment may be a mobile phone, a desktop computer, a notebook computer, or other wearable devices.
  • Step S202 The first network device determines the session information corresponding to the uplink data packet.
  • the first network device may determine the session information corresponding to the uplink data packet according to the first information carried in the uplink data packet. It is further judged whether the session information meets the edge forwarding condition, and if the session information meets the edge forwarding condition, the uplink data packet is sent to the edge gateway.
  • the first information may be the source Internet Protocol (IP) address carried in the uplink data packet.
  • IP Internet Protocol
  • the source IP address can be used to determine the session to which the uplink data packet belongs.
  • the first network device may determine the session identifier corresponding to the source IP address carried in the uplink data packet as the session identifier corresponding to the uplink data packet according to the pre-stored correspondence between the source IP address and the session identifier.
  • the session indicated by the session identifier corresponding to the uplink data packet is the session to which the uplink data packet belongs. Further, the first network device may determine the session information of the session to which the uplink data packet belongs.
  • the first network device when the first network device is a base station, the first network device may store session information corresponding to a terminal residing under the first network device (that is, the base station).
  • the first network device When the first network device is a device located behind the first base station in the uplink direction, the first network device may store session information corresponding to the terminal camped under the first base station. Or, the session information corresponding to the terminal camped under the first base station is stored in the first base station.
  • the first base station After determining the session information corresponding to the foregoing uplink data packet, the first base station may send the uplink data packet and the corresponding session information to the first network device. So that the first network device sends the uplink data packet to the edge gateway when the session information meets the edge forwarding condition.
  • the number of the first base station may be one or more.
  • each terminal can correspond to one or more sessions, and each terminal can correspond to one or more source IP addresses.
  • the source IP addresses of data packets belonging to different sessions are different, and the source IP addresses of data packets belonging to the same session are different.
  • the address is the same.
  • the session mentioned in the embodiment of this application may be a protocol data unit (PDU) session in the fifth-generation mobile communication technology (fifth-generation, 5G), or a session in a next-generation network.
  • PDU protocol data unit
  • 5G fifth-generation mobile communication technology
  • 5G fifth-generation network
  • Step S203 the first network device sends the uplink data packet to the edge gateway when the session information meets the edge forwarding condition.
  • the session information may include a session type
  • sessions with different session types may be used to transmit different types of data
  • sessions with the same session type may be used to transmit the same type of data.
  • the network can allocate session resources for transmitting video application data and session resources for transmitting instant messaging application data to the terminal respectively.
  • the type of service requested by the uplink data packet can be determined by the session type corresponding to the uplink data packet.
  • the edge forwarding condition may include one or more edge forwarding session types. If the session type corresponding to the aforementioned uplink data packet is the same as any one of the one or more edge forwarding session types, it is determined that the session information corresponding to the uplink data packet meets the edge forwarding condition, and the uplink data packet is sent to Edge gateway. In this way, it is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
  • the session type is not the edge forwarding session type.
  • the session type is not the edge forwarding session type.
  • VoIP voice over long-term evolution
  • the session type is not the edge forwarding session type. In this way, it is possible to avoid sending service streams that do not require local offloading to the edge gateway for processing, thereby helping to reduce the data traffic processed by the edge gateway.
  • the session type corresponding to the uplink data packet is the edge forwarding session type, it may indicate that the service data requested by the uplink data packet is stored in the local network.
  • the transmission of the uplink data packet in the latter The path is shorter. Therefore, compared with the core network, by sending the uplink data packet to the local network to obtain the data requested by the uplink data packet, it is beneficial to improve the efficiency of obtaining the data requested by the uplink data packet, and it is also beneficial to reduce the flow through the core network. Data traffic.
  • the session information may include the session type and the identification of the access network device (such as a base station) corresponding to the aforementioned terminal device.
  • the edge forwarding condition may include one or more edge forwarding device identifiers and one or more edge forwarding session types. If the identifier of the access network device is the same as any one of the one or more edge forwarding device identifiers, and the session type corresponding to the aforementioned uplink data packet is the same as any one of the above one or more edge forwarding session types, Then the first network device may determine that the session information corresponding to the uplink data packet satisfies the edge forwarding condition.
  • the access network device corresponding to the terminal device may be the base station where the terminal device currently resides.
  • operators can determine whether to deploy a local network based on the location of the base station, the number of users that the base station accesses, and other reasons. And the number of base stations that can be served by a local network is limited. In other words, not any base station can send the uplink data packet to the edge gateway after receiving the uplink data packet, and then obtain the data requested by the uplink data packet from the local network corresponding to the edge gateway.
  • the user can configure the service area of the edge gateway on the first network device, or the user can configure the service area of the edge gateway on a preset network device, and then the preset network device sends the service area of the edge gateway to the first network.
  • the device sends an indication message to indicate the service area of the edge gateway.
  • the service area of the edge gateway may be indicated by the edge forwarding device identifier, and the edge forwarding device identifier may be an access network device identifier (such as a base station identifier).
  • the coverage area of the base station indicated by the edge forwarding device identifier may characterize the service area of the edge gateway. Only when the base station identifier is the edge forwarding device identifier, the uplink data packet received by the base station can be sent to the edge gateway, and the data requested by the uplink data packet can be obtained from the local network corresponding to the edge gateway.
  • the first network device When the first network device receives the uplink data packet from the terminal device, and the identifier of the access network device corresponding to the terminal device is the edge forwarding device identifier, it may indicate that the access network device is located in the service area of the edge gateway. Correspondingly, the first network device can determine whether the session type corresponding to the uplink data packet is an edge forwarding session type, and if the session type is an edge forwarding session type, send the uplink data packet to the edge gateway. When the first network device receives the uplink data packet from the terminal device, and the identifier of the access network device corresponding to the terminal device is not the edge forwarding device identifier, it may indicate that the access network device is located outside the service area of the edge gateway. Correspondingly, the first network device may send the uplink data packet to the core network element.
  • the uplink data packet from the terminal device can be avoided Sent to the edge gateway. Since the access network device is located outside the service area of the edge gateway, even if the uplink data packet from the terminal device is sent to the edge gateway, the data requested by the uplink data packet cannot be obtained from the local network corresponding to the edge gateway. . This helps to prevent the uplink data packet from the terminal device from failing to receive a response.
  • the first network device may set the edge forwarding condition by default, or set and change the edge forwarding condition according to user operations.
  • the first network device may send the uplink data packet to the core network element. In this way, the data requested by the uplink data packet can be obtained from the core network, avoiding the failure of the uplink data packet to receive a response.
  • Step S204 The edge gateway sends the uplink data packet to the local server.
  • the edge gateway can strip off the general packet radio service tunneling protocol-user plane (GTPU) header, and then send the stripped uplink data packet To the local server.
  • GTPU general packet radio service tunneling protocol-user plane
  • the uplink data packet is sent to the edge gateway, which is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
  • FIG. 3a is a schematic flowchart of another data transmission method provided by an embodiment of the present application.
  • the method describes in detail how the first network device modifies the address information of the uplink data packet so that the uplink data packet can pass through the edge.
  • Gateway the execution subject of step S301 to step S305 is the first network device, or the chip in the first network device, and the execution subject of step S306 is the edge gateway or the chip in the edge gateway.
  • the edge gateway is the execution subject of the data transmission method as an example for description.
  • the method may include but is not limited to the following steps:
  • Step S301 The first network device receives an uplink data packet from a terminal device.
  • Step S302 The first network device determines the session information corresponding to the uplink data packet.
  • step S301 to step S302 please refer to the specific description of step S201 to step S202 in FIG. 2 respectively, which will not be repeated here.
  • Step S303 The first network device obtains the address information of the edge gateway when the session information meets the edge forwarding condition.
  • the first network device may obtain the address information of the edge gateway and the address information of the uplink data packet, and then the uplink data according to the address information of the edge gateway The address information of the packet is modified so that the uplink data packet can pass through the edge gateway.
  • Step S304 The first network device modifies the destination address information of the uplink data packet to the address information of the edge gateway.
  • the address information of the uplink data packet may include destination address information. If the destination address information of the uplink data packet is the same as the address information of the edge gateway, it indicates that the uplink data packet originally has to pass through the edge gateway. At this time, the first network device may not change the address information of the uplink data packet. If the destination address information of the uplink data packet is different from the address information of the edge gateway, the first network device may modify the destination address information of the uplink data packet to the address information of the edge gateway.
  • the uplink data packet may be a version 4 Internet Protocol (Internet Protocol Version 4, IPv4) data packet or a version 6 Internet Protocol (Internet Protocol Version 6, IPv6) data packet.
  • the address information in the embodiment of the present application may include an IPv4 address or an IPv6 address.
  • the header of the uplink data packet may include an IPv6 standard header and a segment routing header (segment routing header, SRH).
  • segment routing header Segment routing header, SRH
  • the address of the intermediate node that must pass through can be specified through the SRH extension header.
  • SRH extension header Take the schematic diagram of the SRH extension header in the IPv6 packet header shown in FIG. 3b as an example.
  • the meaning of each field in the SRH extension header is as follows: Next Header: used to identify the type of the header immediately following the SRH.
  • Hdr Ext Len the length of the SRH extension header, Hdr Ext Len mainly refers to the length occupied from Segment List[0] to Segment List[n].
  • Routing Type Identifies the routing header type. Segments Left: The number of intermediate nodes that should still be visited before reaching the destination node.
  • Last Entry Include the index of the last element of the segment list in the segment list.
  • Flags Some flags of the data packet.
  • Segment List[n] A list of tag segments. The segment list is coded from the last segment of the path. The Segment List is in the form of an IPv6 address. Segment List[n] can be expressed as SL[n].
  • the first network device may modify the destination address of the uplink data packet to the IPv6 address of the edge gateway.
  • the Segments Left in the SRH extension header can also be updated to 0.
  • Step S305 The first network device sends the uplink data packet to the edge gateway according to the destination address information of the modified uplink data packet.
  • the first network device may query the routing table according to the modified destination address information of the uplink data packet, so as to send the uplink data packet to the edge gateway.
  • Step S306 The edge gateway sends the uplink data packet to the local server.
  • step S306 refers to the specific description of step S204 in FIG. 2, which will not be repeated here.
  • the uplink data packet can be sent to the edge gateway according to the modified destination address information of the uplink data packet. This helps to reduce the data traffic processed by the edge gateway.
  • FIG. 4 is a schematic flowchart of another data transmission method provided by an embodiment of the present application.
  • the method describes in detail how to reduce the data traffic processed by the edge gateway in the downstream direction.
  • the execution subject of step S401 to step S402 is the second network device, or the chip in the second network device, and the following takes the second network device as the execution subject of the data transmission method as an example for description.
  • the method may include but is not limited to the following steps:
  • Step S401 The second network device determines that the current tunnel information is different from the historical tunnel information; the tunnel information is tunnel information between the core network element and the access network device.
  • the second network device may be a core network element, a core network gateway, or a device before the edge gateway in the downlink direction. Downlink data packets can be smoothly returned to the terminal device through the tunnel information.
  • the tunnel in the embodiment of this application may refer to a GTPU tunnel or other network tunnels.
  • the tunnel information of the GTPU tunnel may include, but is not limited to: the identifier of the access network device and the tunnel endpoint identifier (TEID). Therefore, when the access network equipment accessed by the terminal equipment changes, and/or the TEID changes, the tunnel information will change.
  • the TEID may include the TEID of the user plane (TEIDU for short) and the TEID of the control plane (TEIDC for short).
  • the tunnel corresponding to TEIDU can be used to transmit user plane data
  • the tunnel corresponding to TEIDC can be used to transmit control plane data.
  • the core network can store tunnel information of all GTPU tunnels.
  • the core network can send a first message to the second network device, and the first message can indicate The current tunnel information is different from the historical tunnel information.
  • both the core network and the second network device may store tunnel information of all GTPU tunnels.
  • the core network may send a second message to the second network device.
  • the second message may carry current tunnel information. After receiving the second message, the second network device can determine that the tunnel information has changed by comparing the historical tunnel information with the current tunnel information.
  • Step S402 The second network device sends the downlink data packet corresponding to the tunnel information to the edge gateway.
  • the edge gateway when the tunnel information changes, the edge gateway cannot learn the changed tunnel information (that is, the current tunnel information). Therefore, when the edge gateway receives the downlink data packet from the local server, it still follows the history The downlink data packet is sent with the tunnel information of, which will cause the downlink data packet to fail to be returned to the correct terminal device.
  • the second network device may send the downlink data packet corresponding to the changed tunnel information to the edge gateway.
  • the edge gateway can determine the current tunnel information according to the information carried in the downlink data packet, and then encapsulate the downlink data packet from the local server according to the current tunnel information, and send the encapsulated downlink data packet. In this way, it is beneficial to improve the success rate of the downlink data packet from the local server returning to the terminal device.
  • the downlink data packet corresponding to the tunnel information is sent to the edge gateway only when the tunnel information changes, which can avoid sending the downlink data packet from the core network to the edge gateway when the tunnel information does not change.
  • Edge gateway In this way, it is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
  • the downlink data packet corresponding to the tunnel information sent to the edge gateway by the second network device may come from a core network element, or the downlink data packet may be sent by the second network device. Create it yourself.
  • the edge gateway cannot know the changed tunnel information (that is, the current tunnel information) when the tunnel information changes, if the downlink data packet corresponding to the changed tunnel information does not come from the core network (or the Internet), then the first Second, the network device cannot send downlink data packets from the core network (or the Internet) to the edge gateway.
  • the edge gateway cannot learn the current tunnel information, which will cause the downlink data packet from the local server (that is, the local network) to fail to return to the terminal device correctly.
  • the second network device can create downlink data packets by itself, which can avoid the situation that there is no downlink data packet from the Internet, causing the edge gateway to be unable to determine the current tunnel information, which is beneficial to improve the return of downlink data packets from the local server to the terminal device.
  • the success rate can be used to create downlink data packets by itself, which can avoid the situation that there is no downlink data packet from the Internet, causing the edge gateway to be unable to determine the current tunnel information, which is beneficial to improve the return of downlink data packets from the local server to the terminal device.
  • the second network device after determining that the tunnel information has changed, the second network device generates a downlink data packet corresponding to the tunnel information, and sends the downlink data packet to the edge gateway.
  • the edge gateway can determine the current tunnel information according to the information carried in the downlink data packet. In this way, when the edge gateway receives the downlink data packet from the local server, it can encapsulate and send the downlink data packet from the local server in a more timely manner according to the current tunnel information.
  • the second network device can obtain the current tunnel information and create it based on the current tunnel information.
  • the downlink data packet corresponding to the tunnel information carries address information that can be correctly returned to the terminal.
  • the second network device may also determine the session information corresponding to the tunnel information; when the session information meets the edge forwarding condition, trigger Perform the step of sending the downlink data packet corresponding to the tunnel information to the edge gateway.
  • the edge gateway when the session information corresponding to the tunnel information meets the edge forwarding conditions, there is a high probability that the downlink data packet corresponding to the tunnel information that has changed will be returned from the local network, or the edge gateway will receive the change.
  • the downlink data packet corresponding to the tunnel information (from the local network).
  • the downlink data packet (from the core network or the Internet) corresponding to the changed tunnel information is sent to the edge gateway, which is helpful for the edge gateway to determine the current tunnel information, so that the downlink data packet returned from the local network can be Return the terminal device correctly.
  • the session information and edge forwarding conditions can be referred to the descriptions in the embodiments of Figures 2 to 3a, and will not be repeated here.
  • the downlink data packet may not be sent to the edge gateway.
  • the downlink data packet corresponding to the tunnel information is sent to the edge gateway.
  • FIG. 5 is a schematic flowchart of another data transmission method provided by an embodiment of the present application.
  • the method describes in detail how the second network device modifies the address information of a downlink data packet so that the downlink data packet can pass through the edge. Gateway.
  • the execution subject of step S501 to step S505 is the second network device, or the chip in the second network device, and the following description will be made by taking the second network device as the execution subject of the data transmission method as an example.
  • the method may include but is not limited to the following steps:
  • Step S501 The second network device receives a downlink data packet from a core network element.
  • Step S502 The second network device determines that the current tunnel information is different from the historical tunnel information; the tunnel information is tunnel information between the core network element and the access network device.
  • step S501 to step S502 refer to the specific description of step S401 to step S402 in FIG. 4, which will not be repeated here.
  • Step S503 The second network device obtains the address information of the edge gateway.
  • Step S504 The second network device modifies the destination address information of the downlink data packet to the address information of the edge gateway.
  • the address information of the edge gateway may be an IPV4 address or an IPV6 address.
  • Step S505 The second network device sends the downlink data packet to the edge gateway according to the destination address information of the modified downlink data packet.
  • the downlink data packet corresponding to the changed tunnel information may be the first n downlink data packets in the downlink data stream.
  • the second network device may send the first n received downlink data packets to the edge gateway. This helps to ensure that the edge gateway can learn the current tunnel information according to the received n downlink data packets, thereby helping to improve the success rate of the downlink data packets from the local server returning to the terminal device.
  • n can be greater than or equal to 1.
  • the larger n is, it can better ensure that the edge gateway can learn the current tunnel information according to the received n downlink data packets.
  • the second network device may send the first n downlink data packets received first to the edge gateway according to the order of reception.
  • the second network device may send the first n downlink data packets with a smaller transmission control protocol (TCP) sequence number in the downlink data stream to the edge gateway.
  • TCP transmission control protocol
  • the TCP sequence number is the sequence number in the TCP header, and the sequence number is used to identify the position of the downlink data packet in the downlink data stream to which it belongs.
  • the second network device after determining that the tunnel information corresponding to the received downlink data packet has changed, the second network device sends the first n downlink data packets to the edge gateway, and then responds to the subsequent received downlink data packets. , Can return to the terminal device according to the address information carried in the downlink data packet itself. This can avoid continuing to send downlink data packets to the edge gateway when the edge gateway has successfully learned the current tunnel information. It can also reduce the data traffic processed by the edge gateway. On the other hand, returning to the terminal device according to the address information carried by the downlink data packet itself can avoid extending the path that the downlink data packet travels before returning to the terminal device.
  • step S503 to step S505 please refer to the specific description of step S303 to step S305 in FIG. 3a, which will not be repeated here.
  • the destination address information of the downlink data packet is modified to the address information of the edge gateway, so that the downlink data packet can be sent to the edge gateway according to the destination address information of the modified downlink data packet. It is beneficial to improve the success rate of the downlink data packet from the local server returning to the terminal device.
  • the data transmission method described in the foregoing Figure 2- Figure 5 embodiments can be applied to different network architectures, for example, the 4th generation mobile communication technology (4G) long term evolution (LTE)
  • 4G long term evolution
  • LTE long term evolution
  • the core network of LTE is an evolved packet core network (EPC) or EPC+.
  • EPC+ network can support both 4G and 5G non-standalone (NSA).
  • the EPC network (or EPC+ network) may be a network architecture in which a control plane and a forwarding plane (control plane and user plane, CU) are separated or a CU integrated network architecture.
  • the EPC network may include, but is not limited to, the following network elements: mobility management entity (MME), serving gateway (serving gateway, SGW), and packet data network gateway (packet data network gateway, PGW).
  • MME mobility management entity
  • SGW serving gateway
  • PGW packet data network gateway
  • PGW packet data network gateway
  • the 5GC network may include, but is not limited to, the following network elements: user plane function (UPF), service management function (SMF), and access management function (AMF).
  • UPF user plane function
  • SMF service management function
  • AMF access management function
  • SGW can be divided into user plane service gateway (serving gateway for user plane, SGW-U) and control plane service gateway (serving gateway for control plane, SGW-C)
  • PGW can be divided into user plane Packet data network gateway (packet data network gateway for user plane, PGW-U) and control plane packet data network gateway (packet data network gateway for control plane, PGW-C).
  • base station a and base station b are configured to perform the corresponding functions of the first network device in the methods described in FIGS. 2 to 3a.
  • the SGW-U is configured to perform the corresponding functions of the second network device in the methods described in FIGS. 4 to 5.
  • Both base station a and base station b are in the service area of the edge gateway, that is, the edge forwarding device identifier includes at least the identifier of base station a and the identifier of base station b.
  • Data packet 1 is an uplink data packet
  • data packet 2 and data packet 3 are both downlink data packets.
  • terminal a can send data packet 1 to base station a.
  • the base station can determine the session information corresponding to data packet 1 (such as session type and terminal a corresponding Base station (i.e., the identity of base station a)). Since the edge forwarding device identifier includes the identifier of base station a, if the session type of the data packet 1 is the edge forwarding session type, it can be determined that the session information corresponding to the data packet 1 meets the edge forwarding condition. Further, the base station a may send the data packet 1 to the edge gateway. After receiving the data packet 1, the edge gateway can strip the GTPU header of the data packet 1, and send the data packet 1 with the GTPU header stripped to the local network.
  • the base station a may send the data packet 1 to the edge gateway by modifying the destination address of the data packet 1 to the IPv6 address of the edge gateway.
  • the IPv6 address of the edge gateway can be sent by the MME to the base station a.
  • SGW-C can extend the information element to Send the information carrying the IPv6 address of the edge gateway to the MME.
  • SGW-C can send information carrying the IPv6 address of the edge gateway to the MME .
  • Figure 6a shows that when terminal a moves from the coverage area of base station a to the coverage area of base station b, SGW-C can send current tunnel information to SGW-U.
  • SGW-U receives the current tunnel information, it can determine that the tunnel information has changed. Then, the SGW-U can generate data packet 2 according to the current tunnel information, and send the data packet 2 to the edge gateway.
  • the edge gateway After receiving the data packet 2, the edge gateway can extract the address information carried in the data packet 2 to learn the current tunnel information.
  • the tunnel corresponding to the tunnel information can be used to transmit the downlink data packet corresponding to data packet 1 (that is, data packet 3 in FIG. 6a).
  • the edge gateway When the edge gateway receives the data packet 3 from the local network, it can correctly send the data packet 3 to the base station b according to the current tunnel information learned, so that the terminal a can successfully obtain the downlink data packet corresponding to the data packet 1 ( That is data packet 3).
  • the SGW-U can generate n data packets 3 and send all n data packets 3 to the edge gateway to ensure that the edge gateway can successfully learn the current tunnel information. It should also be noted that FIG. 6a takes the absence of a data packet from the Internet as an example for description, and does not constitute a limitation to the embodiment of the present application. If there are data packets from the Internet, the SGW-U can send the first n data packets from the Internet to the edge gateway. It should be noted that data packets from the Internet can reach SGW-U through PGW-U. Among them, PGW is the border gateway of the EPC network, PGW-U can be used to process user plane data, and PGW-C can be used to process control plane data.
  • the functions of the network elements in FIG. 6c are basically the same as those in FIG. 6a. The differences are as follows: First, the UPF or SGW-U is configured to perform the corresponding function of the second network device in the methods described in FIGS. 4 to 5. Second, the IPv6 address of the edge gateway is sent to the AMF by the SMF, and then the AMF sends the IPv6 address of the edge gateway to the base station a. Alternatively, the IPv6 address of the edge gateway may be sent by the MME to the base station a. Third, the current tunnel information is notified to the UPF by the SMF, or the current tunnel information is sent by the SGW-C to the SGW-U.
  • SA 5G standalone
  • FIG. 7 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application.
  • the device may be a first network device or a device (such as a chip) with the function of the first network device.
  • the data transmission device 70 is used for In performing the steps performed by the first network device in the method embodiment corresponding to FIG. 2 to FIG. 3a, the data transmission device 70 includes:
  • the communication module 701 is configured to receive an uplink data packet from a terminal device
  • the processing module 702 is configured to determine the session information corresponding to the uplink data packet
  • the communication module 701 is further configured to send the uplink data packet to the edge gateway when the session information corresponding to the uplink data packet meets the edge forwarding condition.
  • the session information may include the session type, and the edge forwarding condition may include one or more edge forwarding session types; the session information meeting the edge forwarding condition may include that the session type corresponding to the uplink data packet is the same as the edge forwarding session type .
  • the session information may include the identifier and session type of the access network device corresponding to the terminal device;
  • the communication module 701 can also be used to obtain the address information of the edge gateway; the processing module 702 can also be used to modify the destination address information of the uplink data packet to the address information of the edge gateway; the communication module 701 is used to When the uplink data packet is sent to the edge gateway, it can be specifically used to send the uplink data packet to the edge gateway according to the destination address information of the modified uplink data packet.
  • the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
  • the communication module 701 may also be used to send the uplink data packet to the core network element when the session information corresponding to the uplink data packet does not meet the edge forwarding condition.
  • FIG. 8 is a schematic structural diagram of another data transmission device provided by an embodiment of the present application.
  • the device may be a first network device or a device (such as a chip) with the function of the first network device.
  • the data transmission device 80 It may include a communication interface 801, a processor 802, and a memory 803.
  • the communication interface 801, the processor 802, and the memory 803 may be connected to each other through one or more communication buses, or may be connected in other ways.
  • the related functions implemented by the communication module 701 and the processing module 702 shown in FIG. 7 may be implemented by the same processor 802, or may be implemented by multiple different processors 802.
  • the communication interface 801 may be used to send data and/or signaling, and receive data and/or signaling.
  • the communication interface 801 may be used to receive uplink data packets from a terminal device, and the communication interface 801 may be a transceiver.
  • the processor 802 is configured to perform corresponding functions of the first network device in the methods described in FIGS. 2 to 3a.
  • the processor 802 may include one or more processors.
  • the processor 802 may be one or more central processing units (CPU), network processors (network processors, NPs), hardware chips, or any of them. combination.
  • the processor 802 is a CPU
  • the CPU may be a single-core CPU or a multi-core CPU.
  • the memory 803 is used to store program codes and the like.
  • the memory 803 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM); the memory 803 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory). Only memory (ROM), flash memory (flash memory), hard disk drive (HDD), or solid-state drive (SSD); the memory 803 may also include a combination of the foregoing types of memories.
  • the data transmission device 80 includes the memory 803 for example only, and does not constitute a limitation to the embodiment of the present application. In an implementation manner, the memory 803 can be replaced by other storage media with storage functions.
  • the processor 802 may call the program code stored in the memory 803 to cause the data transmission device 80 to perform the following operations:
  • the uplink data packet is sent to the edge gateway.
  • the session information may include the session type, and the edge forwarding condition may include one or more edge forwarding session types; the session information meeting the edge forwarding condition may include that the session type corresponding to the uplink data packet is the same as the edge forwarding session type .
  • the session information may include the identifier and session type of the access network device corresponding to the terminal device;
  • the processor 802 may also call the program code stored in the memory 803 to make the data transmission device 80 perform the following operations: obtain the address information of the edge gateway, and transfer the uplink data The destination address information of the packet is modified to the address information of the edge gateway; when the processor 802 calls the program code stored in the memory 803 to make the data transmission device 80 execute and send the uplink data packet to the edge gateway, it can specifically make the data transmission device 80 execute the following Operation: Send the uplink data packet to the edge gateway according to the destination address information of the modified uplink data packet.
  • the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
  • the processor 802 may also call the program code stored in the memory 803 to cause the data transmission device 80 to perform the following operations: in the case that the session information corresponding to the uplink data packet does not meet the edge forwarding condition, the uplink The data packet is sent to the core network element.
  • the processor 802 may also call the program code stored in the memory 803 to make the data transmission device 80 execute the operation corresponding to the first network device in the embodiment shown in FIG. 2 to FIG. 3a.
  • the processor 802 may also call the program code stored in the memory 803 to make the data transmission device 80 execute the operation corresponding to the first network device in the embodiment shown in FIG. 2 to FIG. 3a.
  • FIG. 9 is a schematic structural diagram of another data transmission device provided by an embodiment of the present application.
  • the device may be a second network device or a device (such as a chip) with the function of a second network device.
  • the data transmission device 90 For performing the steps performed by the second network device in the method embodiment corresponding to FIG. 4 to FIG. 5, the data transmission device 90 may include:
  • the processing module 901 is configured to determine that the current tunnel information is different from the historical tunnel information; the tunnel information is tunnel information between the core network element and the access network device;
  • the communication module 902 is configured to send the downlink data packet corresponding to the tunnel information to the edge gateway.
  • the processing module 901 may also be used to generate a downlink data packet.
  • the communication module 902 may also be used to receive a downlink data packet from a core network element.
  • the downlink data packet may be the first n downlink data packets in the downlink data stream; where n may be a positive integer.
  • the communication module 902 can also be used to obtain the address information of the edge gateway; the processing module 901 can also be used to modify the destination address information of the downlink data packet to the address information of the edge gateway; the communication module 902 is used to When sending the downlink data packet corresponding to the tunnel information to the edge gateway, it can be specifically used to send the downlink data packet to the edge gateway according to the destination address information of the modified downlink data packet.
  • the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
  • the processing module 901 may also be used to determine the session information corresponding to the tunnel information; when the session information meets the edge forwarding condition, trigger the execution of the step of sending the downlink data packet corresponding to the tunnel information to the edge gateway .
  • FIG. 10 is a schematic structural diagram of another data transmission device provided by an embodiment of the present application.
  • the device may be a second network device or a device (such as a chip) with the function of a second network device.
  • the data transmission device 100 It may include a communication interface 1001, a processor 1002, and a memory 1003.
  • the communication interface 1001, the processor 1002, and the memory 1003 may be connected to each other through one or more communication buses, or may be connected in other ways.
  • the related functions implemented by the processing module 901 and the communication module 902 shown in FIG. 9 may be implemented by the same processor 1002, or may be implemented by multiple different processors 1002.
  • the communication interface 1001 may be used to send data and/or signaling, and receive data and/or signaling. In the embodiment of the present application, the communication interface 1001 may be used to send the downlink data packet corresponding to the tunnel information to the edge gateway.
  • the communication interface 1001 may be a transceiver.
  • the processor 1002 is configured to perform corresponding functions of the second network device in the methods described in FIGS. 4 to 5.
  • the processor 1002 may include one or more processors.
  • the processor 1002 may be one or more central processing units (CPUs), network processors (NPs), hardware chips, or any of them. combination.
  • the processor 1002 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
  • the memory 1003 is used to store program codes and the like.
  • the memory 1003 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM); the memory 1003 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory). Only memory (ROM), flash memory (flash memory), hard disk drive (HDD), or solid-state drive (SSD); the memory 1003 may also include a combination of the foregoing types of memories.
  • ROM read-only memory
  • flash memory flash memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the memory 1003 may also include a combination of the foregoing types of memories.
  • the data transmission device 100 including the memory 1003 is only used as an example, and does not constitute a limitation to the embodiment of the present application. In an implementation manner, the memory 1003 can be replaced by other storage media with storage functions.
  • the processor 1002 may call the program code stored in the memory 1003 to make the data transmission apparatus 100 perform the following operations:
  • the tunnel information is the tunnel information between the core network element and the access network device;
  • the processor 1002 may also call the program code stored in the memory 1003 to cause the data transmission device 100 to perform the following operations: generate a downlink data packet.
  • the processor 1002 may also call the program code stored in the memory 1003 to cause the data transmission apparatus 100 to perform the following operations: receiving a downlink data packet from a core network element.
  • the downlink data packet may be the first n downlink data packets in the downlink data stream; where n may be a positive integer.
  • the processor 1002 may also call the program code stored in the memory 1003 to make the data transmission apparatus 100 perform the following operations: obtain address information of the edge gateway Modify the destination address information of the downlink data packet to the address information of the edge gateway; when the processor 1002 calls the program code stored in the memory 1003 to make the data transmission device 100 execute the downlink data packet corresponding to the tunnel information to the edge gateway, Specifically, the data transmission apparatus 100 may perform the following operations: according to the modified destination address information of the downlink data packet, the downlink data packet is sent to the edge gateway.
  • the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
  • the processor 1002 may also call the program code stored in the memory 1003 to cause the data transmission device 100 to perform the following operations: determine the session information corresponding to the tunnel information; in the case that the session information meets the edge forwarding condition, Trigger the execution of the step of sending the downlink data packet corresponding to the tunnel information to the edge gateway.
  • the processor 1002 may also call the program code stored in the memory 1003 to make the data transmission apparatus 100 execute the operation corresponding to the second network device in the embodiment shown in FIG. 4 to FIG. 5.
  • the processor 1002 may also call the program code stored in the memory 1003 to make the data transmission apparatus 100 execute the operation corresponding to the second network device in the embodiment shown in FIG. 4 to FIG. 5.
  • An embodiment of the present application also provides a data transmission system, which includes the aforementioned data transmission device as shown in FIG. 7, the aforementioned data transmission device and edge gateway as shown in FIG. 8, or the data transmission system includes the aforementioned The data transmission device shown in FIG. 9 and the aforementioned data transmission device and edge gateway shown in FIG. 10.
  • the embodiment of the present application also provides a computer-readable storage medium, which can be used to store the computer software instructions used by the data transmission device in the embodiment shown in FIG. program of.
  • the embodiment of the present application also provides a computer-readable storage medium, which can be used to store the computer software instructions used by the data transmission device in the embodiment shown in FIG. program of.
  • the above-mentioned computer-readable storage medium includes, but is not limited to, flash memory, hard disk, and solid-state hard disk.
  • the embodiment of the present application also provides a computer program product.
  • the computer product When the computer product is run by a computing device, it can execute the method designed for the first network device in the above-mentioned embodiments of FIG. 2 to FIG. 3a.
  • the embodiments of the present application also provide a computer program product.
  • the computer product When the computer product is run by a computing device, it can execute the method designed for the second network device in the above-mentioned embodiments of FIG. 4 to FIG. 5.
  • a chip including a processor and a memory.
  • the memory includes a processor and a memory.
  • the memory is used to store a computer program.
  • the processor is used to call and run the computer program from the memory.
  • the computer program is used to implement the method in the above method embodiment.
  • the foregoing embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented by software, it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer instructions When the computer instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the above-mentioned computer instructions may be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium.
  • the above computer instructions can be sent from one website site, computer, server, or data center to another website site, through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) Computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

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

Abstract

Disclosed are a data transmission method and an apparatus therefor. The method can be applied to a scenario in which local breakout is supported. The method comprises: receiving an uplink data packet from a terminal device, and determining session information corresponding to the uplink data packet; and when the session information corresponding to the uplink data packet meets an edge forwarding condition, sending the uplink data packet to an edge gateway. The implementation of the embodiments of the present application facilitates reducing data traffic processed by an edge gateway.

Description

一种数据传输方法及其装置Data transmission method and device
本申请要求于2019年11月26日提交中国专利局、申请号为201911180038.0、申请名称为“一种数据传输方法及其装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on November 26, 2019, the application number is 201911180038.0, and the application name is "a data transmission method and device", the entire content of which is incorporated into this application by reference in.
技术领域Technical field
本申请涉及互联网技术领域,尤其涉及一种数据传输方法及其装置。This application relates to the field of Internet technology, and in particular to a data transmission method and device.
背景技术Background technique
当前网络是一种聚合型的网络。在当前网络下,终端访问数据时都经过集中部署的网关。随着虚拟化技术和分布式云技术的发展,未来移动网络会在网络边缘(比如,靠近基站的位置)部署微云平台,即多接入边缘计算/多接入边缘云(multi-access edge computing/cloud,MEC)平台。The current network is a convergent network. Under the current network, when the terminal accesses data, it passes through the centralized deployment gateway. With the development of virtualization technology and distributed cloud technology, in the future mobile networks will deploy micro-cloud platforms at the network edge (for example, close to the base station), that is, multi-access edge computing/multi-access edge cloud (multi-access edge cloud). computing/cloud, MEC) platform.
以图1a所示的网络架构图为例,基站侧网关(cell site gateway,CSG)/接入业务网关(access gateway,ASG)在接收到基站发送的数据时,会将来自该基站的所有数据均发送至MEC网关。由该MEC网关基于分流规则判断数据是否需要进行本地分流。若该数据需要进行本地分流,则将该数据发送至本地网络。若该数据不需要进行本地分流,则由MEC网关将该数据发送至CSG/ASG,并由CSG/ASG将该数据发送至核心网处理。但是,这样会导致MEC网关需要处理的数据流量较大。Taking the network architecture diagram shown in Figure 1a as an example, when the cell site gateway (CSG)/access gateway (ASG) receives the data sent by the base station, it will take all the data from the base station All are sent to the MEC gateway. The MEC gateway determines whether the data needs to be locally distributed based on the distribution rules. If the data needs to be distributed locally, the data is sent to the local network. If the data does not need to be distributed locally, the MEC gateway sends the data to the CSG/ASG, and the CSG/ASG sends the data to the core network for processing. However, this will result in a large amount of data traffic that the MEC gateway needs to process.
发明内容Summary of the invention
本申请实施例提供一种数据传输方法及其装置,有利于减少边缘网关处理的数据流量。The embodiments of the present application provide a data transmission method and device, which are beneficial to reduce the data traffic processed by the edge gateway.
第一方面,本申请实施例提供一种数据传输方法,该方法包括:接收来自终端设备的上行数据包,确定该上行数据包对应的会话信息;在该上行数据包对应的会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关。In the first aspect, an embodiment of the present application provides a data transmission method. The method includes: receiving an uplink data packet from a terminal device, and determining session information corresponding to the uplink data packet; and the session information corresponding to the uplink data packet satisfies edge forwarding In the case of conditions, the uplink data packet is sent to the edge gateway.
在该技术方案中,通过在上行数据包对应的会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关,有利于减少边缘网关处理的数据流量,降低边缘网关的负载。In this technical solution, when the session information corresponding to the uplink data packet meets the edge forwarding condition, the uplink data packet is sent to the edge gateway, which is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
在一种实现方式中,会话信息可以包括会话类型,边缘转发条件可以包括一个或多个边缘转发会话类型;会话信息满足边缘转发条件可以包括该上行数据包对应的会话类型与边缘转发会话类型相同。In an implementation manner, the session information may include the session type, and the edge forwarding condition may include one or more edge forwarding session types; the session information meeting the edge forwarding condition may include that the session type corresponding to the uplink data packet is the same as the edge forwarding session type .
在该技术方案中,有利于减少边缘网关处理的数据流量,降低边缘网关的负载。In this technical solution, it is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
在一种实现方式中,会话信息可以包括终端设备对应的接入网设备的标识和会话类型;边缘转发条件可以包括一个或多个边缘转发设备标识和一个或多个边缘转发会话类型;会话信息满足边缘转发条件可以包括:接入网设备的标识与边缘转发设备标识相同且该上行数据包对应的会话类型与边缘转发会话类型相同。In an implementation manner, the session information may include the identifier and session type of the access network device corresponding to the terminal device; the edge forwarding condition may include one or more edge forwarding device identifiers and one or more edge forwarding session types; session information Satisfying the edge forwarding condition may include: the identifier of the access network device is the same as the edge forwarding device identifier, and the session type corresponding to the uplink data packet is the same as the edge forwarding session type.
在一种实现方式中,将上行数据包发送至边缘网关之前,该方法还可以包括:获取边缘网关的地址信息,将上行数据包的目的地址信息修改为边缘网关的地址信息;将上行数 据包发送至边缘网关的具体实施方式可以为:根据修改后的上行数据包的目的地址信息,将该上行数据包发送至边缘网关。In an implementation manner, before sending the uplink data packet to the edge gateway, the method may further include: obtaining the address information of the edge gateway, modifying the destination address information of the uplink data packet to the address information of the edge gateway; The specific implementation manner of sending to the edge gateway may be: sending the uplink data packet to the edge gateway according to the destination address information of the modified uplink data packet.
在该技术方案中,通过将上行数据包的目的地址信息修改为该边缘网关的地址信息,使得根据修改后的上行数据包的目的地址信息,可以将该上行数据包发送至边缘网关。从而有利于减少边缘网关处理的数据流量。In this technical solution, by modifying the destination address information of the uplink data packet to the address information of the edge gateway, the uplink data packet can be sent to the edge gateway according to the modified destination address information of the uplink data packet. This helps to reduce the data traffic processed by the edge gateway.
在一种实现方式中,边缘网关的地址信息可以包括互联网协议第6版IPV6地址。In an implementation manner, the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
在一种实现方式中,该方法还可以包括:在上行数据包对应的会话信息不满足边缘转发条件的情况下,将该上行数据包发送至核心网网元。In an implementation manner, the method may further include: when the session information corresponding to the uplink data packet does not meet the edge forwarding condition, sending the uplink data packet to the core network element.
在该技术方案中,在上行数据包对应的会话信息不满足边缘转发条件的情况下,将该上行数据包发送至核心网网元,可以从核心网中获取该上行数据包所请求的数据,避免上行数据包无法得到响应。In this technical solution, when the session information corresponding to the uplink data packet does not meet the edge forwarding condition, the uplink data packet is sent to the core network element, and the data requested by the uplink data packet can be obtained from the core network. Avoid the failure of the upstream data packet to get a response.
第二方面,本申请实施例提供另一种数据传输方法,该方法包括:确定当前的隧道信息与历史的隧道信息不同;该隧道信息为核心网网元与接入网设备之间的隧道信息;将该隧道信息对应的下行数据包发送至边缘网关。In the second aspect, the embodiments of the present application provide another data transmission method, the method includes: determining that the current tunnel information is different from the historical tunnel information; the tunnel information is the tunnel information between the core network element and the access network device ; Send the downlink data packet corresponding to the tunnel information to the edge gateway.
在该技术方案中,在隧道信息发生变化的情况下,将发生变化的隧道信息对应的下行数据包发送至边缘网关。使得边缘网关可以根据该下行数据包携带的信息确定当前的隧道信息,并按照当前的隧道信息封装和发送来自本地服务器的下行数据包。In this technical solution, when the tunnel information changes, the downlink data packet corresponding to the changed tunnel information is sent to the edge gateway. The edge gateway can determine the current tunnel information according to the information carried in the downlink data packet, and encapsulate and send the downlink data packet from the local server according to the current tunnel information.
在一种实现方式中,该方法还可以包括:生成下行数据包。In an implementation manner, the method may further include: generating a downlink data packet.
在该技术方案中,通过自行生成下行数据包,可以避免没有来自因特网的下行数据包,导致边缘网关无法确定当前的隧道信息的情况,从而有利于提高来自本地服务器的下行数据包返回终端设备的成功率。In this technical solution, by self-generating downlink data packets, it is possible to avoid the situation that there is no downlink data packet from the Internet, which causes the edge gateway to be unable to determine the current tunnel information, which is beneficial to improve the return of downlink data packets from the local server to the terminal device. Success rate.
在一种实现方式中,该方法还可以包括:接收来自核心网网元的下行数据包。In an implementation manner, the method may further include: receiving a downlink data packet from a core network element.
在一种实现方式中,下行数据包可以为下行数据流中的前n个下行数据包;其中,n可以为正整数。In an implementation manner, the downlink data packet may be the first n downlink data packets in the downlink data stream; where n may be a positive integer.
在该技术方案中,有利于确保边缘网关可以根据接收到的n个下行数据包学习到当前的隧道信息,从而有利于提高来自本地服务器的下行数据包返回终端设备的成功率。In this technical solution, it is helpful to ensure that the edge gateway can learn the current tunnel information according to the received n downlink data packets, thereby helping to improve the success rate of the downlink data packets from the local server returning to the terminal device.
在一种实现方式中,将隧道信息对应的下行数据包发送至边缘网关之前,该方法还可以包括:获取边缘网关的地址信息;将下行数据包的目的地址信息修改为该边缘网关的地址信息;将隧道信息对应的下行数据包发送至边缘网关的具体实施方式可以为:根据修改后的下行数据包的目的地址信息,将该下行数据包发送至边缘网关。In an implementation manner, before sending the downlink data packet corresponding to the tunnel information to the edge gateway, the method may further include: obtaining address information of the edge gateway; and modifying the destination address information of the downlink data packet to the address information of the edge gateway The specific implementation manner of sending the downlink data packet corresponding to the tunnel information to the edge gateway may be: sending the downlink data packet to the edge gateway according to the destination address information of the modified downlink data packet.
在该技术方案中,通过将下行数据包的目的地址信息修改为边缘网关的地址信息,使得根据修改后的下行数据包的目的地址信息,可以将该下行数据包发送至边缘网关。从而有利于提高来自本地服务器的下行数据包返回终端设备的成功率。In this technical solution, by modifying the destination address information of the downlink data packet to the address information of the edge gateway, the downlink data packet can be sent to the edge gateway according to the modified destination address information of the downlink data packet. This is beneficial to improve the success rate of the downlink data packet from the local server returning to the terminal device.
在一种实现方式中,边缘网关的地址信息可以包括互联网协议第6版IPV6地址。In an implementation manner, the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
在一种实现方式中,该方法还可以包括:确定隧道信息对应的会话信息;在该会话信息满足边缘转发条件的情况下,触发执行将隧道信息对应的下行数据包发送至边缘网关的步骤。In an implementation manner, the method may further include: determining the session information corresponding to the tunnel information; when the session information satisfies the edge forwarding condition, triggering the execution of the step of sending the downlink data packet corresponding to the tunnel information to the edge gateway.
在该技术方案中,在隧道信息对应的会话信息满足边缘转发条件的情况下,将该隧道 信息对应的下行数据包发送至边缘网关,一方面,有利于从本地网络中返回的下行数据包正确返回终端设备;另一方面,可以避免在隧道信息对应的会话信息不满足边缘转发条件的情况下,将该隧道信息对应的下行数据包发送至边缘网关的情况,有利于降低边缘网关处理的数据流量。In this technical solution, when the session information corresponding to the tunnel information meets the edge forwarding condition, the downlink data packet corresponding to the tunnel information is sent to the edge gateway. On the one hand, it is beneficial to the correct downlink data packet returned from the local network. Return to the terminal device; on the other hand, it can avoid sending the downlink data packet corresponding to the tunnel information to the edge gateway when the session information corresponding to the tunnel information does not meet the edge forwarding conditions, which is beneficial to reduce the data processed by the edge gateway flow.
第三方面,本申请实施例提供一种数据传输装置,该装置为第一网络设备或具有第一网络设备功能的装置(例如芯片)。该装置具有实现第一方面所提供的数据传输方法的功能,该功能通过硬件实现或通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, an embodiment of the present application provides a data transmission device, which is a first network device or a device (such as a chip) having the function of the first network device. The device has the function of realizing the data transmission method provided in the first aspect, and the function is realized by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
第四方面,本申请实施例提供另一种数据传输装置,该装置为第二网络设备或具有第二网络设备功能的装置(例如芯片)。该装置具有实现第二方面所提供的数据传输方法的功能,该功能通过硬件实现或通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, an embodiment of the present application provides another data transmission device, which is a second network device or a device (such as a chip) with the function of the second network device. The device has the function of realizing the data transmission method provided by the second aspect, and the function is realized by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
第五方面,本申请实施例提供又一种数据传输装置,该装置为第一网络设备或具有第一网络设备功能的装置(例如芯片)。该装置包括处理器和存储介质,存储介质中存储有指令,该指令被该处理器运行时,使得该装置实现第一方面所提供的数据传输方法。In a fifth aspect, an embodiment of the present application provides yet another data transmission device, which is a first network device or a device (such as a chip) having the function of the first network device. The device includes a processor and a storage medium. The storage medium stores instructions. When the instructions are executed by the processor, the device realizes the data transmission method provided in the first aspect.
第六方面,本申请实施例提供又一种数据传输装置,该装置为第二网络设备或具有第二网络设备功能的装置(例如芯片),该装置包括处理器和存储介质,存储介质中存储有指令,该指令被该处理器运行时,使得该装置实现第二方面所提供的数据传输方法。In a sixth aspect, the embodiments of the present application provide yet another data transmission device. The device is a second network device or a device (such as a chip) with the function of the second network device. The device includes a processor and a storage medium, and the storage medium stores There is an instruction, and when the instruction is executed by the processor, the device realizes the data transmission method provided in the second aspect.
第七方面,本申请实施例提供一种数据传输系统,该数据传输系统包括第三方面所述的数据传输装置以及第四方面所述的数据传输装置,或者,该数据传输系统包括第五方面所述的数据传输装置以及第六方面所述的数据传输装置。In a seventh aspect, an embodiment of the present application provides a data transmission system that includes the data transmission device described in the third aspect and the data transmission device described in the fourth aspect, or the data transmission system includes the fifth aspect The data transmission device and the data transmission device described in the sixth aspect.
第八方面,本申请实施例提供一种计算机可读存储介质,用于储存上述第三方面描述的数据传输装置所使用的计算机程序指令,其包含用于执行上述第一方面的方法所涉及的程序。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the data transmission device described in the third aspect, which includes instructions for executing the method of the first aspect. program.
第九方面,本申请实施例提供一种计算机可读存储介质,用于储存上述第四方面描述的数据传输装置所使用的计算机程序指令,其包含用于执行上述第二方面的方法所涉及的程序。In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the data transmission device described in the fourth aspect, which includes instructions for executing the method of the second aspect. program.
第十方面,本申请实施例提供一种计算机程序产品,该程序产品包括程序,该程序被数据传输装置执行时,使得该装置实现上述第一方面描述的方法。In a tenth aspect, an embodiment of the present application provides a computer program product. The program product includes a program. When the program is executed by a data transmission device, the device implements the method described in the first aspect.
第十一方面,本申请实施例提供一种计算机程序产品,该程序产品包括程序,该程序被数据传输装置执行时,使得该装置实现上述第二方面描述的方法。In an eleventh aspect, an embodiment of the present application provides a computer program product. The program product includes a program. When the program is executed by a data transmission device, the device implements the method described in the second aspect.
附图说明Description of the drawings
图1a是现有的一种网络架构图;Figure 1a is an existing network architecture diagram;
图1b是本申请实施例公开的一种通信系统的架构示意图;FIG. 1b is a schematic diagram of the architecture of a communication system disclosed in an embodiment of the present application;
图2是本申请实施例公开的一种数据传输方法的流程示意图;FIG. 2 is a schematic flowchart of a data transmission method disclosed in an embodiment of the present application;
图3a是本申请实施例公开的另一种数据传输方法的流程示意图;Fig. 3a is a schematic flowchart of another data transmission method disclosed in an embodiment of the present application;
图3b是本申请实施例公开的一种IPv6数据包包头中的SRH扩展头的示意图;Fig. 3b is a schematic diagram of an SRH extension header in an IPv6 data packet header disclosed in an embodiment of the present application;
图4是本申请实施例公开的又一种数据传输方法的流程示意图;4 is a schematic flowchart of another data transmission method disclosed in an embodiment of the present application;
图5是本申请实施例公开的又一种数据传输方法的流程示意图;FIG. 5 is a schematic flowchart of yet another data transmission method disclosed in an embodiment of the present application;
图6a是本申请实施例公开的一种控制面与转发面分离的网络架构的示意图;FIG. 6a is a schematic diagram of a network architecture in which the control plane and the forwarding plane are separated according to an embodiment of the present application;
图6b是本申请实施例公开的一种控制面与转发面合一的网络架构的示意图;FIG. 6b is a schematic diagram of a network architecture in which a control plane and a forwarding plane are integrated according to an embodiment of the present application;
图6c是本申请实施例公开的一种5G独立组网的网络架构的示意图;FIG. 6c is a schematic diagram of a network architecture of a 5G independent networking disclosed in an embodiment of the present application;
图7是本申请实施例公开的一种数据传输装置的结构示意图;FIG. 7 is a schematic structural diagram of a data transmission device disclosed in an embodiment of the present application;
图8是本申请实施例公开的另一种数据传输装置的结构示意图;FIG. 8 is a schematic structural diagram of another data transmission device disclosed in an embodiment of the present application;
图9是本申请实施例公开的又一种数据传输装置的结构示意图;FIG. 9 is a schematic structural diagram of another data transmission device disclosed in an embodiment of the present application;
图10是本申请实施例公开的又一种数据传输装置的结构示意图。FIG. 10 is a schematic structural diagram of another data transmission device disclosed in an embodiment of the present application.
具体实施方式Detailed ways
为了更好的理解本申请实施例公开的一种数据传输方法,下面首先对本申请实施例适用的通信系统进行描述。In order to better understand a data transmission method disclosed in the embodiment of the present application, the following first describes the communication system to which the embodiment of the present application is applicable.
请参见图1b,图1b是本申请实施例公开的一种通信系统的架构示意图。如图1b所示,该通信系统包括:第一网络设备和边缘网关。Please refer to FIG. 1b, which is a schematic diagram of the architecture of a communication system disclosed in an embodiment of the present application. As shown in Figure 1b, the communication system includes: a first network device and an edge gateway.
第一网络设备可以接收来自终端设备的上行数据包,确定该上行数据包对应的会话信息,并在该会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关。通过这种方式,有利于减少边缘网关处理的数据流量,降低边缘网关的负载。在本申请实施例中,上行数据包对应的会话信息满足边缘转发条件可以表示:该上行数据包用于访问本地业务。边缘网关可以接收该上行数据包,并将该上行数据包发送至本地网络。该本地网络中可以存储有本地业务的相关数据。将用于访问本地业务的上行数据包发送至本地网络,有利于提高用户访问本地业务的成功率。The first network device may receive the uplink data packet from the terminal device, determine the session information corresponding to the uplink data packet, and if the session information meets the edge forwarding condition, send the uplink data packet to the edge gateway. In this way, it is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway. In the embodiment of the present application, that the session information corresponding to the uplink data packet satisfies the edge forwarding condition may indicate that the uplink data packet is used to access local services. The edge gateway can receive the uplink data packet and send the uplink data packet to the local network. The relevant data of the local business can be stored in the local network. Sending the uplink data packet used to access the local business to the local network is beneficial to improve the success rate of the user in accessing the local business.
其中,第一网络设备可以是网络侧的一种用于发射或接收信号的实体,例如,第一网络设备可以是接入网设备(如基站)。在一种实现方式中,第一网络设备也可以是在上行方向上位于基站(图1b未示)之后的一个设备。例如,第一网络设备可以位于基站和边缘网关之间,该第一网络设备具有下述功能:接收基站发送的上行数据包(该上行数据包来自终端设备),确定该上行数据包对应的会话信息,并在该会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关。The first network device may be an entity on the network side for transmitting or receiving signals. For example, the first network device may be an access network device (such as a base station). In an implementation manner, the first network device may also be a device located behind the base station (not shown in FIG. 1b) in the uplink direction. For example, the first network device may be located between the base station and the edge gateway, and the first network device has the following function: receiving the uplink data packet sent by the base station (the uplink data packet comes from the terminal device), and determining the session corresponding to the uplink data packet Information, and when the session information meets the edge forwarding condition, the uplink data packet is sent to the edge gateway.
边缘网关可以将接收到的上行数据包发送至本地网络。具体的,边缘网关可以为多接入边缘计算/多接入边缘云(multi-access edge computing/cloud,MEC)网关,或者其他具备边缘网关上述功能的网元。The edge gateway can send the received uplink data packet to the local network. Specifically, the edge gateway may be a multi-access edge computing/cloud (MEC) gateway, or other network elements that have the aforementioned functions of the edge gateway.
可以理解的是,本申请实施例描述的通信系统是为了更加清楚的说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。It is understandable that the communication system described in the embodiments of the present application is to illustrate the technical solutions of the embodiments of the present application more clearly, and does not constitute a limitation to the technical solutions provided in the embodiments of the present application. Those skilled in the art will know that as the system With the evolution of architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
下面结合附图对本申请提供的数据传输方法及数据传输装置进行详细地介绍。The data transmission method and data transmission device provided by the present application will be described in detail below with reference to the accompanying drawings.
请参见图2,图2是本申请实施例提供的一种数据传输方法的流程示意图。该方法详 细描述了在上行方向上如何减少边缘网关处理的数据流量。其中,步骤S201~步骤S203的执行主体为第一网络设备,或者为第一网络设备中的芯片,步骤S204的执行主体为边缘网关,或者为边缘网关中的芯片,以下以第一网络设备、边缘网关为数据传输方法的执行主体为例进行说明。如图2所示,该方法可以包括但不限于如下步骤:Please refer to FIG. 2, which is a schematic flowchart of a data transmission method provided by an embodiment of the present application. This method describes in detail how to reduce the data traffic processed by the edge gateway in the upstream direction. Among them, the execution subject of step S201 to step S203 is the first network device, or the chip in the first network device, and the execution subject of step S204 is the edge gateway or the chip in the edge gateway. Hereinafter, the first network device, The edge gateway is the execution subject of the data transmission method as an example for description. As shown in Figure 2, the method may include but is not limited to the following steps:
步骤S201:第一网络设备接收来自终端设备的上行数据包。Step S201: The first network device receives an uplink data packet from a terminal device.
具体的,当第一网络设备为基站时,终端设备生成上行数据包之后,可以将该上行数据包发送至该第一网络设备。当第一网络设备为上行方向上位于基站之后的一个设备时,终端设备可以将该上行数据包发送至该终端设备当前驻留的基站,然后由该终端设备当前驻留的基站将该上行数据包发送给该第一网络设备。Specifically, when the first network device is a base station, after the terminal device generates an uplink data packet, it may send the uplink data packet to the first network device. When the first network device is a device located behind the base station in the uplink direction, the terminal device can send the uplink data packet to the base station where the terminal device currently resides, and then the base station where the terminal device currently resides transmits the uplink data. The packet is sent to the first network device.
该终端设备可以是用户侧的一种用于接收或发射信号的实体。具体的,该终端设备可以是用户设备(user equipment,UE)、远程终端、移动终端、无线通信设备、用户装置等。其中,用户设备可以是手机、台式电脑、笔记本电脑或其他可穿戴设备等。The terminal device may be an entity on the user side for receiving or transmitting signals. Specifically, the terminal equipment may be user equipment (UE), remote terminal, mobile terminal, wireless communication equipment, user equipment, and so on. Among them, the user equipment may be a mobile phone, a desktop computer, a notebook computer, or other wearable devices.
步骤S202:第一网络设备确定该上行数据包对应的会话信息。Step S202: The first network device determines the session information corresponding to the uplink data packet.
具体的,第一网络设备可以根据该上行数据包携带的第一信息确定该上行数据包对应的会话信息。进而判断该会话信息是否满足边缘转发条件,并在该会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关。Specifically, the first network device may determine the session information corresponding to the uplink data packet according to the first information carried in the uplink data packet. It is further judged whether the session information meets the edge forwarding condition, and if the session information meets the edge forwarding condition, the uplink data packet is sent to the edge gateway.
在一种实现方式中,第一信息可以为该上行数据包携带的源网际互连协议(internet protocol,IP)地址。通过该源IP地址可以确定该上行数据包所属的会话。第一网络设备可以根据预先存储的源IP地址和会话标识之间的对应关系,将该上行数据包携带的源IP地址对应的会话标识确定为该上行数据包对应的会话标识。该上行数据包对应的会话标识指示的会话为该上行数据包所属的会话。进一步,第一网络设备可以确定该上行数据包所属会话的会话信息。In an implementation manner, the first information may be the source Internet Protocol (IP) address carried in the uplink data packet. The source IP address can be used to determine the session to which the uplink data packet belongs. The first network device may determine the session identifier corresponding to the source IP address carried in the uplink data packet as the session identifier corresponding to the uplink data packet according to the pre-stored correspondence between the source IP address and the session identifier. The session indicated by the session identifier corresponding to the uplink data packet is the session to which the uplink data packet belongs. Further, the first network device may determine the session information of the session to which the uplink data packet belongs.
在一种实现方式中,当第一网络设备为基站时,该第一网络设备可以存储有该第一网络设备(即基站)下驻留的终端对应的会话信息。当该第一网络设备为上行方向上位于第一基站之后的一个设备时,该第一网络设备可以存储有该第一基站下驻留的终端对应的会话信息。或者,第一基站下驻留的终端对应的会话信息存储于该第一基站中。第一基站确定前述上行数据包对应的会话信息之后,可以将该上行数据包及其对应的会话信息发送至第一网络设备。以便第一网络设备在该会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关。其中,第一基站的数量可以为一个或多个。In an implementation manner, when the first network device is a base station, the first network device may store session information corresponding to a terminal residing under the first network device (that is, the base station). When the first network device is a device located behind the first base station in the uplink direction, the first network device may store session information corresponding to the terminal camped under the first base station. Or, the session information corresponding to the terminal camped under the first base station is stored in the first base station. After determining the session information corresponding to the foregoing uplink data packet, the first base station may send the uplink data packet and the corresponding session information to the first network device. So that the first network device sends the uplink data packet to the edge gateway when the session information meets the edge forwarding condition. Wherein, the number of the first base station may be one or more.
需要说明的是,每个终端可以对应一个或多个会话,每个终端可以对应一个或多个源IP地址,属于不同会话的数据包的源IP地址不同,属于同一会话的数据包的源IP地址相同。具体的,本申请实施例中提及的会话可以为第五代移动通信技术(fifth-generation,5G)中的协议数据单元(packet data unit,PDU)会话,或者为下一代网络中的会话,本申请实施例对此不做限定。It should be noted that each terminal can correspond to one or more sessions, and each terminal can correspond to one or more source IP addresses. The source IP addresses of data packets belonging to different sessions are different, and the source IP addresses of data packets belonging to the same session are different. The address is the same. Specifically, the session mentioned in the embodiment of this application may be a protocol data unit (PDU) session in the fifth-generation mobile communication technology (fifth-generation, 5G), or a session in a next-generation network. The embodiment of the application does not limit this.
步骤S203:第一网络设备在该会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关。Step S203: the first network device sends the uplink data packet to the edge gateway when the session information meets the edge forwarding condition.
在一种实现方式中,会话信息可以包括会话类型,会话类型不同的会话可以用于传输不同类型的数据,会话类型相同的会话可以用于传输相同类型的数据。例如,终端请求获 取视频类应用数据和即时通讯类应用数据时,网络可以分别为该终端分配用于传输视频类应用数据的会话资源和用于传输即时通讯类应用数据的会话资源。换言之,通过上行数据包对应的会话类型可以确定该上行数据包请求获取的业务的类型。In an implementation manner, the session information may include a session type, sessions with different session types may be used to transmit different types of data, and sessions with the same session type may be used to transmit the same type of data. For example, when a terminal requests video application data and instant messaging application data, the network can allocate session resources for transmitting video application data and session resources for transmitting instant messaging application data to the terminal respectively. In other words, the type of service requested by the uplink data packet can be determined by the session type corresponding to the uplink data packet.
在一种实现方式中,边缘转发条件可以包括一个或多个边缘转发会话类型。若前述上行数据包对应的会话类型与该一个或多个边缘转发会话类型中的任一种类型相同,则确定该上行数据包对应的会话信息满足边缘转发条件,并将该上行数据包发送至边缘网关。通过这种方式,有利于减少边缘网关处理的数据流量,降低边缘网关的负载。In an implementation manner, the edge forwarding condition may include one or more edge forwarding session types. If the session type corresponding to the aforementioned uplink data packet is the same as any one of the one or more edge forwarding session types, it is determined that the session information corresponding to the uplink data packet meets the edge forwarding condition, and the uplink data packet is sent to Edge gateway. In this way, it is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
在一种实现方式中,对于不需要进行本地分流的信令面数据包,其会话类型不为边缘转发会话类型。对于不需要本地分流的长期演进语音承载(voice over long-term evolution,VoLTE)业务或者其他及时通讯类业务的数据包,其会话类型不为边缘转发会话类型。通过这种方式,可以避免将不需要本地分流的业务流发送给边缘网关处理,从而有利于减少边缘网关处理的数据流量。In an implementation manner, for signaling plane data packets that do not need to be locally offloaded, the session type is not the edge forwarding session type. For long-term evolution voice bearer (voice over long-term evolution, VoLTE) services or data packets of other timely communication services that do not require local offloading, the session type is not the edge forwarding session type. In this way, it is possible to avoid sending service streams that do not require local offloading to the edge gateway for processing, thereby helping to reduce the data traffic processed by the edge gateway.
在本申请实施例中,若上行数据包对应的会话类型为边缘转发会话类型,则可以表示该上行数据包请求的业务数据存储于本地网络。相较于将该上行数据包发送至核心网以获取该上行数据包请求的数据,通过将该上行数据包发送至本地网络以获取该上行数据包请求的数据,后者中上行数据包的传输路径更短。因此,相较于核心网,通过将该上行数据包发送至本地网络以获取该上行数据包请求的数据,有利于提高该上行数据包所请求数据的获取效率,还有利于降低流经核心网的数据流量。In the embodiment of the present application, if the session type corresponding to the uplink data packet is the edge forwarding session type, it may indicate that the service data requested by the uplink data packet is stored in the local network. Compared with sending the uplink data packet to the core network to obtain the data requested by the uplink data packet, by sending the uplink data packet to the local network to obtain the data requested by the uplink data packet, the transmission of the uplink data packet in the latter The path is shorter. Therefore, compared with the core network, by sending the uplink data packet to the local network to obtain the data requested by the uplink data packet, it is beneficial to improve the efficiency of obtaining the data requested by the uplink data packet, and it is also beneficial to reduce the flow through the core network. Data traffic.
在一种实现方式中,会话信息可以包括会话类型和前述终端设备对应的接入网设备(如基站)的标识。边缘转发条件可以包括一个或多个边缘转发设备标识和一个或多个边缘转发会话类型。若接入网设备的标识与一个或多个边缘转发设备标识中的任一个标识相同,并且前述上行数据包对应的会话类型与上述一个或多个边缘转发会话类型中的任一种类型相同,则第一网络设备可以确定该上行数据包对应的会话信息满足边缘转发条件。其中,终端设备对应的接入网设备可以为该终端设备当前驻留的基站。In an implementation manner, the session information may include the session type and the identification of the access network device (such as a base station) corresponding to the aforementioned terminal device. The edge forwarding condition may include one or more edge forwarding device identifiers and one or more edge forwarding session types. If the identifier of the access network device is the same as any one of the one or more edge forwarding device identifiers, and the session type corresponding to the aforementioned uplink data packet is the same as any one of the above one or more edge forwarding session types, Then the first network device may determine that the session information corresponding to the uplink data packet satisfies the edge forwarding condition. Wherein, the access network device corresponding to the terminal device may be the base station where the terminal device currently resides.
在实际情况下,运营商可以根据基站所在位置、基站接入用户的数量以及其他原因确定是否部署本地网络。并且一个本地网络可以服务的基站数量是有限的。换言之,并非任一基站接收到上行数据包之后,均可以将该上行数据包发送给边缘网关,进而从该边缘网关对应的本地网络中获取该上行数据包所请求的数据。In actual situations, operators can determine whether to deploy a local network based on the location of the base station, the number of users that the base station accesses, and other reasons. And the number of base stations that can be served by a local network is limited. In other words, not any base station can send the uplink data packet to the edge gateway after receiving the uplink data packet, and then obtain the data requested by the uplink data packet from the local network corresponding to the edge gateway.
在一种实现方式中,用户可以在第一网络设备上配置边缘网关的服务区域,或者,用户可以在预设网络设备上配置边缘网关的服务区域,然后由该预设网络设备向第一网络设备发送指示消息,以指示边缘网关的服务区域。在一种实现方式中,可以通过边缘转发设备标识来指示边缘网关的服务区域,边缘转发设备标识可以为接入网设备标识(如基站标识)。边缘转发设备标识指示的基站的覆盖区域可以表征边缘网关的服务区域。仅在基站标识为边缘转发设备标识的情况下,该基站接收到的上行数据包才可以发送至边缘网关,并从该边缘网关对应的本地网络中获取该上行数据包所请求的数据。In one implementation, the user can configure the service area of the edge gateway on the first network device, or the user can configure the service area of the edge gateway on a preset network device, and then the preset network device sends the service area of the edge gateway to the first network. The device sends an indication message to indicate the service area of the edge gateway. In an implementation manner, the service area of the edge gateway may be indicated by the edge forwarding device identifier, and the edge forwarding device identifier may be an access network device identifier (such as a base station identifier). The coverage area of the base station indicated by the edge forwarding device identifier may characterize the service area of the edge gateway. Only when the base station identifier is the edge forwarding device identifier, the uplink data packet received by the base station can be sent to the edge gateway, and the data requested by the uplink data packet can be obtained from the local network corresponding to the edge gateway.
第一网络设备接收到来自终端设备的上行数据包,且该终端设备对应的接入网设备的标识为边缘转发设备标识时,可以表示该接入网设备位于边缘网关的服务区域内。相应的,该第一网络设备可以判断该上行数据包对应的会话类型是否为边缘转发会话类型,并在该 会话类型为边缘转发会话类型的情况下,将该上行数据包发送至该边缘网关。第一网络设备接收到来自终端设备的上行数据包,且该终端设备对应的接入网设备的标识不为边缘转发设备标识时,可以表示该接入网设备位于边缘网关的服务区域以外。相应的,该第一网络设备可以将该上行数据包发送至核心网网元。When the first network device receives the uplink data packet from the terminal device, and the identifier of the access network device corresponding to the terminal device is the edge forwarding device identifier, it may indicate that the access network device is located in the service area of the edge gateway. Correspondingly, the first network device can determine whether the session type corresponding to the uplink data packet is an edge forwarding session type, and if the session type is an edge forwarding session type, send the uplink data packet to the edge gateway. When the first network device receives the uplink data packet from the terminal device, and the identifier of the access network device corresponding to the terminal device is not the edge forwarding device identifier, it may indicate that the access network device is located outside the service area of the edge gateway. Correspondingly, the first network device may send the uplink data packet to the core network element.
通过这种方式,当终端设备对应的接入网设备的标识不为边缘转发设备标识时,即该接入网设备位于边缘网关的服务区域以外时,可以避免将来自该终端设备的上行数据包发送至边缘网关。由于该接入网设备位于边缘网关的服务区域以外,因此即使将来自该终端设备的上行数据包发送至边缘网关,也不能从该边缘网关对应的本地网络中获取该上行数据包所请求的数据。这样有利于避免来自该终端设备的上行数据包无法得到响应。In this way, when the ID of the access network device corresponding to the terminal device is not the edge forwarding device ID, that is, when the access network device is located outside the service area of the edge gateway, the uplink data packet from the terminal device can be avoided Sent to the edge gateway. Since the access network device is located outside the service area of the edge gateway, even if the uplink data packet from the terminal device is sent to the edge gateway, the data requested by the uplink data packet cannot be obtained from the local network corresponding to the edge gateway. . This helps to prevent the uplink data packet from the terminal device from failing to receive a response.
在一种实现方式中,第一网络设备可以默认设置边缘转发条件,也可以根据用户操作设置和更改边缘转发条件。In an implementation manner, the first network device may set the edge forwarding condition by default, or set and change the edge forwarding condition according to user operations.
在一种实现方式中,在上行数据包对应的会话信息不满足边缘转发条件的情况下,第一网络设备可以将该上行数据包发送至核心网网元。通过这种方式,可以从核心网中获取该上行数据包所请求的数据,避免上行数据包无法得到响应。In an implementation manner, in the case that the session information corresponding to the uplink data packet does not meet the edge forwarding condition, the first network device may send the uplink data packet to the core network element. In this way, the data requested by the uplink data packet can be obtained from the core network, avoiding the failure of the uplink data packet to receive a response.
步骤S204:边缘网关将该上行数据包发送至本地服务器。Step S204: The edge gateway sends the uplink data packet to the local server.
具体的,边缘网关接收到上行数据包之后,可以剥离通用无线分组业务(GPRS)隧道协议用户面部分(general packet radio service tunneling protocol-user plane,GTPU)头,然后将剥离后的上行数据包发送至本地服务器。以便从本地服务器(即本地网络)中获取该上行数据包所请求的数据。Specifically, after the edge gateway receives the uplink data packet, it can strip off the general packet radio service tunneling protocol-user plane (GTPU) header, and then send the stripped uplink data packet To the local server. In order to obtain the data requested by the uplink data packet from the local server (ie, the local network).
在本申请实施例中,通过在上行数据包对应的会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关,有利于减少边缘网关处理的数据流量,降低边缘网关的负载。In the embodiment of the present application, when the session information corresponding to the uplink data packet meets the edge forwarding condition, the uplink data packet is sent to the edge gateway, which is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
请参见图3a,图3a是本申请实施例提供的另一种数据传输方法的流程示意图,该方法详细描述了第一网络设备如何修改上行数据包的地址信息以使得该上行数据包可以经过边缘网关。其中,步骤S301~步骤S305的执行主体为第一网络设备,或者为第一网络设备中的芯片,步骤S306的执行主体为边缘网关,或者为边缘网关中的芯片,以下以第一网络设备、边缘网关为数据传输方法的执行主体为例进行说明。该方法可以包括但不限于如下步骤:Please refer to Figure 3a, which is a schematic flowchart of another data transmission method provided by an embodiment of the present application. The method describes in detail how the first network device modifies the address information of the uplink data packet so that the uplink data packet can pass through the edge. Gateway. Among them, the execution subject of step S301 to step S305 is the first network device, or the chip in the first network device, and the execution subject of step S306 is the edge gateway or the chip in the edge gateway. Hereinafter, the first network device, The edge gateway is the execution subject of the data transmission method as an example for description. The method may include but is not limited to the following steps:
步骤S301:第一网络设备接收来自终端设备的上行数据包。Step S301: The first network device receives an uplink data packet from a terminal device.
步骤S302:第一网络设备确定该上行数据包对应的会话信息。Step S302: The first network device determines the session information corresponding to the uplink data packet.
需要说明的是,步骤S301~步骤S302的执行过程可分别参见图2中步骤S201~步骤S202的具体描述,此处不再赘述。It should be noted that, for the execution process of step S301 to step S302, please refer to the specific description of step S201 to step S202 in FIG. 2 respectively, which will not be repeated here.
步骤S303:第一网络设备在该会话信息满足边缘转发条件的情况下,获取边缘网关的地址信息。Step S303: The first network device obtains the address information of the edge gateway when the session information meets the edge forwarding condition.
具体的,在上行数据包对应的会话信息满足边缘转发条件的情况下,第一网络设备可以获取边缘网关的地址信息以及该上行数据包的地址信息,进而根据边缘网关的地址信息对该上行数据包的地址信息进行修改,以使得该上行数据包可以经过边缘网关。Specifically, in the case that the session information corresponding to the uplink data packet satisfies the edge forwarding condition, the first network device may obtain the address information of the edge gateway and the address information of the uplink data packet, and then the uplink data according to the address information of the edge gateway The address information of the packet is modified so that the uplink data packet can pass through the edge gateway.
步骤S304:第一网络设备将上行数据包的目的地址信息修改为该边缘网关的地址信息。Step S304: The first network device modifies the destination address information of the uplink data packet to the address information of the edge gateway.
在一种实现方式中,上行数据包的地址信息可以包括目的地址信息。若该上行数据包的目的地址信息与该边缘网关的地址信息相同,则表明该上行数据包原本要经过边缘网关。此时,第一网络设备可以不改变上行数据包的地址信息。若该上行数据包的目的地址信息与该边缘网关的地址信息不同,则第一网络设备可以将上行数据包的目的地址信息修改为该边缘网关的地址信息。In an implementation manner, the address information of the uplink data packet may include destination address information. If the destination address information of the uplink data packet is the same as the address information of the edge gateway, it indicates that the uplink data packet originally has to pass through the edge gateway. At this time, the first network device may not change the address information of the uplink data packet. If the destination address information of the uplink data packet is different from the address information of the edge gateway, the first network device may modify the destination address information of the uplink data packet to the address information of the edge gateway.
其中,上行数据包可以为第4版互联网协议(internet protocol version 4,IPv4)数据包或者为第6版互联网协议(internet protocol version 6,IPv6)数据包。相应的,本申请实施例中的地址信息可以包括IPv4地址或者IPv6地址。Among them, the uplink data packet may be a version 4 Internet Protocol (Internet Protocol Version 4, IPv4) data packet or a version 6 Internet Protocol (Internet Protocol Version 6, IPv6) data packet. Correspondingly, the address information in the embodiment of the present application may include an IPv4 address or an IPv6 address.
在一种实现方式中,当上行数据包为IPv6数据包,该上行数据包的包头可以包括IPv6标准头和段路由扩展头(segment routing header,SRH)。在IPv6数据包送到目的地址的途中,可以通过SRH扩展头指定必须经过的中间节点地址。In an implementation manner, when the uplink data packet is an IPv6 data packet, the header of the uplink data packet may include an IPv6 standard header and a segment routing header (segment routing header, SRH). On the way to the destination address of the IPv6 data packet, the address of the intermediate node that must pass through can be specified through the SRH extension header.
以图3b所示的IPv6数据包包头中的SRH扩展头的示意图为例。图3b中,SRH扩展头中的各个字段的含义如下:Next Header:用于标识紧跟在SRH之后的头的类型。Hdr Ext Len:SRH扩展头的长度,Hdr Ext Len主要指从Segment List[0]到Segment List[n]所占用长度。Routing Type:标识路由头部类型。Segments Left:到达目的节点前仍然应当访问的中间节点数。Last Entry:在段列表中包含段列表的最后一个元素的索引。Flags:数据包的一些标识。Tag:标识同组数据包。Segment List[n]:标签段列表,段列表从路径的最后一段开始编码。Segment List是IPv6地址形式。Segment List[n]可以表示为SL[n]。Take the schematic diagram of the SRH extension header in the IPv6 packet header shown in FIG. 3b as an example. In Figure 3b, the meaning of each field in the SRH extension header is as follows: Next Header: used to identify the type of the header immediately following the SRH. Hdr Ext Len: the length of the SRH extension header, Hdr Ext Len mainly refers to the length occupied from Segment List[0] to Segment List[n]. Routing Type: Identifies the routing header type. Segments Left: The number of intermediate nodes that should still be visited before reaching the destination node. Last Entry: Include the index of the last element of the segment list in the segment list. Flags: Some flags of the data packet. Tag: Identifies the same group of data packets. Segment List[n]: A list of tag segments. The segment list is coded from the last segment of the path. The Segment List is in the form of an IPv6 address. Segment List[n] can be expressed as SL[n].
通过SRH扩展头指定必须经过的中间节点地址的过程如下:例如,从源地址E1::1发送到目的地址A3::1的IPv6数据包,指定中途必须经过A2::1地址时,若该数据包从源地址发送出来时该数据包的目的地址为A2::1,并且该数据包携带扩展头。若扩展头中的SL[0]=A3::1,SL[1]=A2::1,Segments Left=1,则该数据包到达A2::1之后,中间路由设备可以将目的地址更新为A3::1,并将扩展头中的Segments Left更新为0。然后继续查询路由发送到目的地址A3::1。The process of specifying the address of the intermediate node that must pass through the SRH extension header is as follows: For example, if an IPv6 packet is sent from the source address E1::1 to the destination address A3::1, when specifying that the address must pass through the A2::1 address in the middle, if this When the data packet is sent from the source address, the destination address of the data packet is A2::1, and the data packet carries an extension header. If SL[0]=A3::1, SL[1]=A2::1, SegmentsLeft=1 in the extension header, then after the packet reaches A2::1, the intermediate routing device can update the destination address to A3::1, and update SegmentsLeft in the extension header to 0. Then continue to query the route and send it to the destination address A3::1.
在本申请实施例中,当上行数据包为IPv6数据包,该上行数据包的包头包括SRH扩展头时,第一网络设备可以将该上行数据包的目的地址修改为边缘网关的IPv6地址。可选的,还可以将SRH扩展头中的Segments Left更新为0。In the embodiment of the present application, when the uplink data packet is an IPv6 data packet and the header of the uplink data packet includes the SRH extension header, the first network device may modify the destination address of the uplink data packet to the IPv6 address of the edge gateway. Optionally, the Segments Left in the SRH extension header can also be updated to 0.
步骤S305:第一网络设备根据修改后的上行数据包的目的地址信息,将该上行数据包发送至边缘网关。Step S305: The first network device sends the uplink data packet to the edge gateway according to the destination address information of the modified uplink data packet.
具体的,第一网络设备可以根据修改后的上行数据包的目的地址信息,查询路由表,以将该上行数据包发送至边缘网关。Specifically, the first network device may query the routing table according to the modified destination address information of the uplink data packet, so as to send the uplink data packet to the edge gateway.
步骤S306:边缘网关将该上行数据包发送至本地服务器。Step S306: The edge gateway sends the uplink data packet to the local server.
需要说明的是,步骤S306的执行过程可参见图2中步骤S204的具体描述,此处不再赘述。It should be noted that, for the execution process of step S306, refer to the specific description of step S204 in FIG. 2, which will not be repeated here.
在本申请实施例中,通过将上行数据包的目的地址信息修改为该边缘网关的地址信息,使得根据修改后的上行数据包的目的地址信息,可以将该上行数据包发送至边缘网关。从而有利于减少边缘网关处理的数据流量。In the embodiment of the present application, by modifying the destination address information of the uplink data packet to the address information of the edge gateway, the uplink data packet can be sent to the edge gateway according to the modified destination address information of the uplink data packet. This helps to reduce the data traffic processed by the edge gateway.
请参见图4,图4是本申请实施例提供的又一种数据传输方法的流程示意图,该方法详细描述了在下行方向上如何减少边缘网关处理的数据流量。其中,步骤S401~步骤S402的执行主体为第二网络设备,或者为第二网络设备中的芯片,以下以第二网络设备为数据传输方法的执行主体为例进行说明。该方法可以包括但不限于如下步骤:Please refer to FIG. 4, which is a schematic flowchart of another data transmission method provided by an embodiment of the present application. The method describes in detail how to reduce the data traffic processed by the edge gateway in the downstream direction. Wherein, the execution subject of step S401 to step S402 is the second network device, or the chip in the second network device, and the following takes the second network device as the execution subject of the data transmission method as an example for description. The method may include but is not limited to the following steps:
步骤S401:第二网络设备确定当前的隧道信息与历史的隧道信息不同;该隧道信息为核心网网元与接入网设备之间的隧道信息。Step S401: The second network device determines that the current tunnel information is different from the historical tunnel information; the tunnel information is tunnel information between the core network element and the access network device.
其中,第二网络设备可以为核心网网元、核心网网关或者为下行方向上边缘网关之前的设备。下行数据包通过隧道信息可以顺利返回终端设备。本申请实施例中的隧道可以指GTPU隧道或者其他网络隧道。GTPU隧道的隧道信息可以包括但不限于:接入网设备的标识和隧道端点标示符(tunnel endpoint identifier,TEID)。因此,终端设备接入的接入网设备发生变化,和/或TEID发生变化时,隧道信息会发生变化。TEID可以包括用户面的TEID(简称TEIDU)和控制面的TEID(简称TEIDC)。TEIDU对应的隧道可以用于传输用户面数据,TEIDC对应的隧道可以用于传输控制面数据。The second network device may be a core network element, a core network gateway, or a device before the edge gateway in the downlink direction. Downlink data packets can be smoothly returned to the terminal device through the tunnel information. The tunnel in the embodiment of this application may refer to a GTPU tunnel or other network tunnels. The tunnel information of the GTPU tunnel may include, but is not limited to: the identifier of the access network device and the tunnel endpoint identifier (TEID). Therefore, when the access network equipment accessed by the terminal equipment changes, and/or the TEID changes, the tunnel information will change. The TEID may include the TEID of the user plane (TEIDU for short) and the TEID of the control plane (TEIDC for short). The tunnel corresponding to TEIDU can be used to transmit user plane data, and the tunnel corresponding to TEIDC can be used to transmit control plane data.
在一种实现方式中,核心网中可以存储有所有GTPU隧道的隧道信息,当任一隧道信息发生变化的情况下,核心网可以向第二网络设备发送第一消息,该第一消息可以指示当前的隧道信息与历史的隧道信息不同。在一种实现方式中,核心网和第二网络设备均可以存储有所有GTPU隧道的隧道信息,当任一隧道信息发生变化的情况下,核心网可以向第二网络设备发送第二消息,该第二消息可以携带当前的隧道信息。第二网络设备接收到第二消息之后,通过比较历史的隧道信息和当前的隧道信息,可以确定隧道信息发生变化。In one implementation, the core network can store tunnel information of all GTPU tunnels. When any tunnel information changes, the core network can send a first message to the second network device, and the first message can indicate The current tunnel information is different from the historical tunnel information. In an implementation manner, both the core network and the second network device may store tunnel information of all GTPU tunnels. When any tunnel information changes, the core network may send a second message to the second network device. The second message may carry current tunnel information. After receiving the second message, the second network device can determine that the tunnel information has changed by comparing the historical tunnel information with the current tunnel information.
步骤S402:第二网络设备将该隧道信息对应的下行数据包发送至边缘网关。Step S402: The second network device sends the downlink data packet corresponding to the tunnel information to the edge gateway.
在本申请实施例中,在隧道信息发生变化的情况下,边缘网关无法获知变化之后的隧道信息(即当前的隧道信息),因此边缘网关接收到来自本地服务器的下行数据包时,依然按照历史的隧道信息发送该下行数据包,这样会导致该下行数据包无法返回至正确的终端设备。In the embodiment of the present application, when the tunnel information changes, the edge gateway cannot learn the changed tunnel information (that is, the current tunnel information). Therefore, when the edge gateway receives the downlink data packet from the local server, it still follows the history The downlink data packet is sent with the tunnel information of, which will cause the downlink data packet to fail to be returned to the correct terminal device.
具体的,隧道信息发生变化的情况下,第二网络设备可以将发生变化的隧道信息对应的下行数据包发送至边缘网关。边缘网关接收到下行数据包之后,可以根据该下行数据包携带的信息确定当前的隧道信息,然后按照当前的隧道信息封装来自本地服务器的下行数据包,并发送封装后的下行数据包。通过这种方式,有利于提高来自本地服务器的下行数据包返回终端设备的成功率。Specifically, when the tunnel information changes, the second network device may send the downlink data packet corresponding to the changed tunnel information to the edge gateway. After receiving the downlink data packet, the edge gateway can determine the current tunnel information according to the information carried in the downlink data packet, and then encapsulate the downlink data packet from the local server according to the current tunnel information, and send the encapsulated downlink data packet. In this way, it is beneficial to improve the success rate of the downlink data packet from the local server returning to the terminal device.
本申请实施例在隧道信息变化的情况下,才将该隧道信息对应的下行数据包发送至边缘网关,可以避免在隧道信息未发生变化的情况下,也将来自核心网的下行数据包发送至边缘网关。通过这种方式,有利于减少边缘网关处理的数据流量,降低边缘网关的负载。In the embodiment of the application, the downlink data packet corresponding to the tunnel information is sent to the edge gateway only when the tunnel information changes, which can avoid sending the downlink data packet from the core network to the edge gateway when the tunnel information does not change. Edge gateway. In this way, it is beneficial to reduce the data traffic processed by the edge gateway and reduce the load of the edge gateway.
在一种实现方式中,第二网络设备在隧道信息变化的情况下,向边缘网关发送隧道信息对应的下行数据包可以来自核心网网元,或者,该下行数据包可以是由第二网络设备自行创建生成的。In an implementation manner, when the tunnel information changes, the downlink data packet corresponding to the tunnel information sent to the edge gateway by the second network device may come from a core network element, or the downlink data packet may be sent by the second network device. Create it yourself.
由于在隧道信息发生变化的情况下,边缘网关无法获知变化之后的隧道信息(即当前的隧道信息),若发生变化的隧道信息对应的下行数据包不会来自核心网(或者因特网), 那么第二网络设备也就无法向边缘网关发送来自核心网(或者因特网)的下行数据包。相应的,边缘网关也就无法学习得到当前的隧道信息,这样会导致来自本地服务器(即本地网络)的下行数据包无法正确返回终端设备。此时,第二网络设备通过自行创建下行数据包,可以避免没有来自因特网的下行数据包,导致边缘网关无法确定当前的隧道信息的情况,从而有利于提高来自本地服务器的下行数据包返回终端设备的成功率。Since the edge gateway cannot know the changed tunnel information (that is, the current tunnel information) when the tunnel information changes, if the downlink data packet corresponding to the changed tunnel information does not come from the core network (or the Internet), then the first Second, the network device cannot send downlink data packets from the core network (or the Internet) to the edge gateway. Correspondingly, the edge gateway cannot learn the current tunnel information, which will cause the downlink data packet from the local server (that is, the local network) to fail to return to the terminal device correctly. At this time, the second network device can create downlink data packets by itself, which can avoid the situation that there is no downlink data packet from the Internet, causing the edge gateway to be unable to determine the current tunnel information, which is beneficial to improve the return of downlink data packets from the local server to the terminal device. The success rate.
在本申请实施例中,第二网络设备在确定隧道信息发生变化之后,生成该隧道信息对应的下行数据包,并将该下行数据包发送至边缘网关。使得边缘网关可以根据该下行数据包携带的信息确定当前的隧道信息。这样当边缘网关接收到的来自本地服务器的下行数据包时,可以更加及时地根据当前的隧道信息封装并发送来自本地服务器的下行数据包。In the embodiment of the present application, after determining that the tunnel information has changed, the second network device generates a downlink data packet corresponding to the tunnel information, and sends the downlink data packet to the edge gateway. The edge gateway can determine the current tunnel information according to the information carried in the downlink data packet. In this way, when the edge gateway receives the downlink data packet from the local server, it can encapsulate and send the downlink data packet from the local server in a more timely manner according to the current tunnel information.
在一种实现方式中,第二网络设备确定隧道信息发生变化之后,若未接收到该隧道信息对应的下行数据包,则第二网络设备可以获取当前的隧道信息,并根据当前的隧道信息创建该隧道信息对应的下行数据包。通过这种方式创建得到的下行数据包携带了可以正确返回终端的地址信息。In one implementation, after the second network device determines that the tunnel information has changed, if the downlink data packet corresponding to the tunnel information is not received, the second network device can obtain the current tunnel information and create it based on the current tunnel information. The downlink data packet corresponding to the tunnel information. The downlink data packet created in this way carries address information that can be correctly returned to the terminal.
在一种实现方式中,第二网络设备在将隧道信息对应的下行数据包发送至边缘网关之前,还可以确定该隧道信息对应的会话信息;在该会话信息满足边缘转发条件的情况下,触发执行将该隧道信息对应的下行数据包发送至边缘网关的步骤。In an implementation manner, before sending the downlink data packet corresponding to the tunnel information to the edge gateway, the second network device may also determine the session information corresponding to the tunnel information; when the session information meets the edge forwarding condition, trigger Perform the step of sending the downlink data packet corresponding to the tunnel information to the edge gateway.
具体的,在隧道信息对应的会话信息满足边缘转发条件的情况下,很大概率会有发生变化的隧道信息对应的下行数据包从本地网络返回,或者,很大概率边缘网关会接收到发生变化的隧道信息对应的下行数据包(来自本地网络的)。在此情况下,将发生变化的隧道信息对应的下行数据包(来自核心网或因特网)发送至边缘网关,有利于边缘网关确定当前的隧道信息,进而使得从本地网络中返回的下行数据包可以正确返回终端设备。需要说明的是,会话信息以及边缘转发条件可参见图2~图3a实施例中的描述,此处不再赘述。Specifically, when the session information corresponding to the tunnel information meets the edge forwarding conditions, there is a high probability that the downlink data packet corresponding to the tunnel information that has changed will be returned from the local network, or the edge gateway will receive the change. The downlink data packet corresponding to the tunnel information (from the local network). In this case, the downlink data packet (from the core network or the Internet) corresponding to the changed tunnel information is sent to the edge gateway, which is helpful for the edge gateway to determine the current tunnel information, so that the downlink data packet returned from the local network can be Return the terminal device correctly. It should be noted that the session information and edge forwarding conditions can be referred to the descriptions in the embodiments of Figures 2 to 3a, and will not be repeated here.
在一种实现方式中,若来自第一终端设备的上行数据包全部发送至核心网,而并未发送至本地网络。那么不会存在从本地网络返回该上行数据包对应的下行数据包。由于从核心网中返回的数据包不用转发至边缘网关也可以正确返回至该第一终端设备,因此在此情况下,可以不将该下行数据包发送至边缘网关。In an implementation manner, if all the uplink data packets from the first terminal device are sent to the core network, but not sent to the local network. Then there will be no downlink data packet corresponding to the uplink data packet returned from the local network. Since the data packet returned from the core network can be correctly returned to the first terminal device without being forwarded to the edge gateway, in this case, the downlink data packet may not be sent to the edge gateway.
在隧道信息对应的会话信息满足边缘转发条件的情况下,将该隧道信息对应的下行数据包发送至边缘网关,一方面,有利于从本地网络中返回的下行数据包正确返回终端设备;另一方面,可以避免在隧道信息对应的会话信息不满足边缘转发条件的情况下,将该隧道信息对应的下行数据包发送至边缘网关的情况,有利于降低边缘网关处理的数据流量。When the session information corresponding to the tunnel information satisfies the edge forwarding condition, the downlink data packet corresponding to the tunnel information is sent to the edge gateway. On the one hand, it is helpful for the downlink data packet returned from the local network to correctly return to the terminal device; on the other hand, On the one hand, it can avoid sending the downlink data packet corresponding to the tunnel information to the edge gateway when the session information corresponding to the tunnel information does not meet the edge forwarding condition, which is beneficial to reduce the data traffic processed by the edge gateway.
通过实施本申请实施例,有利于提高来自本地服务器的下行数据包返回终端设备的成功率。By implementing the embodiments of the present application, it is beneficial to improve the success rate of the downlink data packets from the local server returning to the terminal device.
请参见图5,图5是本申请实施例提供的又一种数据传输方法的流程示意图,该方法详细描述了第二网络设备如何修改下行数据包的地址信息以使得该下行数据包可以经过边缘网关。其中,步骤S501~步骤S505的执行主体为第二网络设备,或者为第二网络设备中的芯片,以下以第二网络设备为数据传输方法的执行主体为例进行说明。该方法可以包括但不限于如下步骤:Please refer to FIG. 5. FIG. 5 is a schematic flowchart of another data transmission method provided by an embodiment of the present application. The method describes in detail how the second network device modifies the address information of a downlink data packet so that the downlink data packet can pass through the edge. Gateway. Wherein, the execution subject of step S501 to step S505 is the second network device, or the chip in the second network device, and the following description will be made by taking the second network device as the execution subject of the data transmission method as an example. The method may include but is not limited to the following steps:
步骤S501:第二网络设备接收来自核心网网元的下行数据包。Step S501: The second network device receives a downlink data packet from a core network element.
步骤S502:第二网络设备确定当前的隧道信息与历史的隧道信息不同;该隧道信息为核心网网元与接入网设备之间的隧道信息。Step S502: The second network device determines that the current tunnel information is different from the historical tunnel information; the tunnel information is tunnel information between the core network element and the access network device.
需要说明的是,步骤S501~步骤S502的执行过程可参见图4中步骤S401~步骤S402的具体描述,此处不再赘述。It should be noted that, for the execution process of step S501 to step S502, refer to the specific description of step S401 to step S402 in FIG. 4, which will not be repeated here.
步骤S503:第二网络设备获取边缘网关的地址信息。Step S503: The second network device obtains the address information of the edge gateway.
步骤S504:第二网络设备将下行数据包的目的地址信息修改为该边缘网关的地址信息。Step S504: The second network device modifies the destination address information of the downlink data packet to the address information of the edge gateway.
在一种实现方式中,边缘网关的地址信息可以IPV4地址或者IPV6地址。In an implementation manner, the address information of the edge gateway may be an IPV4 address or an IPV6 address.
步骤S505:第二网络设备根据修改后的下行数据包的目的地址信息,将该下行数据包发送至边缘网关。Step S505: The second network device sends the downlink data packet to the edge gateway according to the destination address information of the modified downlink data packet.
在一种实现方式中,发生变化的隧道信息对应的下行数据包可以为下行数据流中的前n个下行数据包。换言之,第二网络设备在确定接收到的下行数据包对应的隧道信息发生变化的情况下,可以将接收到的前n个下行数据包发送至边缘网关。这样有利于确保边缘网关可以根据接收到的n个下行数据包学习到当前的隧道信息,从而有利于提高来自本地服务器的下行数据包返回终端设备的成功率。其中,n可以大于或者等于1。在一种实现方式中,n越大,可以更好地确保边缘网关可以根据接收到的n个下行数据包学习到当前的隧道信息。在一种实现方式中,第二网络设备可以按照接收的先后顺序,将先接收到的前n个下行数据包发送至边缘网关。或者,第二网络设备可以将下行数据流中传输控制协议(transmission control protocol,TCP)序号较小的前n个下行数据包发送至边缘网关。其中,TCP序号为TCP首部中的序号,该序号用于标识下行数据包在所属的下行数据流中的位置。In an implementation manner, the downlink data packet corresponding to the changed tunnel information may be the first n downlink data packets in the downlink data stream. In other words, when it is determined that the tunnel information corresponding to the received downlink data packet has changed, the second network device may send the first n received downlink data packets to the edge gateway. This helps to ensure that the edge gateway can learn the current tunnel information according to the received n downlink data packets, thereby helping to improve the success rate of the downlink data packets from the local server returning to the terminal device. Among them, n can be greater than or equal to 1. In an implementation manner, the larger n is, it can better ensure that the edge gateway can learn the current tunnel information according to the received n downlink data packets. In an implementation manner, the second network device may send the first n downlink data packets received first to the edge gateway according to the order of reception. Alternatively, the second network device may send the first n downlink data packets with a smaller transmission control protocol (TCP) sequence number in the downlink data stream to the edge gateway. Among them, the TCP sequence number is the sequence number in the TCP header, and the sequence number is used to identify the position of the downlink data packet in the downlink data stream to which it belongs.
在一种实现方式中,第二网络设备在确定接收到的下行数据包对应的隧道信息发生变化的情况下,将前n个下行数据包发送至边缘网关之后,针对后续接收到的下行数据包,可以根据该下行数据包自身携带的地址信息返回终端设备。这样可以避免在边缘网关已经成功学习到当前的隧道信息的情况下,继续向边缘网关发送下行数据包。还可以减少边缘网关处理的数据流量,另一方面,按照下行数据包自身携带的地址信息返回终端设备,可以避免延长该下行数据包在返回终端设备前所经过的路径。In an implementation manner, after determining that the tunnel information corresponding to the received downlink data packet has changed, the second network device sends the first n downlink data packets to the edge gateway, and then responds to the subsequent received downlink data packets. , Can return to the terminal device according to the address information carried in the downlink data packet itself. This can avoid continuing to send downlink data packets to the edge gateway when the edge gateway has successfully learned the current tunnel information. It can also reduce the data traffic processed by the edge gateway. On the other hand, returning to the terminal device according to the address information carried by the downlink data packet itself can avoid extending the path that the downlink data packet travels before returning to the terminal device.
需要说明的是,第二网络设备根据边缘网关的地址信息修改下行数据包的目的地址信息的执行过程,与第一网络设备根据边缘网关的地址信息修改上行数据包的目的地址信息的执行过程相同。即步骤S503~步骤S505的执行过程可参见图3a中步骤S303~步骤S305的具体描述,此处不再赘述。It should be noted that the execution process of the second network device modifying the destination address information of the downlink data packet according to the address information of the edge gateway is the same as the execution process of the first network device modifying the destination address information of the uplink data packet according to the address information of the edge gateway . That is, for the execution process of step S503 to step S505, please refer to the specific description of step S303 to step S305 in FIG. 3a, which will not be repeated here.
在本申请实施例中,通过将下行数据包的目的地址信息修改为边缘网关的地址信息,使得根据修改后的下行数据包的目的地址信息,可以将该下行数据包发送至边缘网关,从而有利于提高来自本地服务器的下行数据包返回终端设备的成功率。In the embodiment of the present application, the destination address information of the downlink data packet is modified to the address information of the edge gateway, so that the downlink data packet can be sent to the edge gateway according to the destination address information of the modified downlink data packet. It is beneficial to improve the success rate of the downlink data packet from the local server returning to the terminal device.
前述图2-图5实施例所述数据传输方法可以应用于不同的网络架构下,例如,第四代移动通信技术(the 4th generation mobile communication technology,4G)长期演进(long term evolution,LTE)的核心网、5G核心网(5G core network,5GC)或其他网络的网络架构。LTE的核心网为演进分组核心网(evolved packet core network,EPC)或者EPC+。EPC+网 络既能支持4G也能支持5G非独立组网(non-stand alone,NSA)。其中,EPC网络(或EPC+网络)可以是控制面与转发面(control plane and user plane,CU)分离的网络架构或CU合一的网络架构。The data transmission method described in the foregoing Figure 2-Figure 5 embodiments can be applied to different network architectures, for example, the 4th generation mobile communication technology (4G) long term evolution (LTE) The network architecture of the core network, 5G core network (5G core network, 5GC) or other networks. The core network of LTE is an evolved packet core network (EPC) or EPC+. The EPC+ network can support both 4G and 5G non-standalone (NSA). Among them, the EPC network (or EPC+ network) may be a network architecture in which a control plane and a forwarding plane (control plane and user plane, CU) are separated or a CU integrated network architecture.
EPC网络(或EPC+网络)可以包括但不限于如下网元:移动管理节点(mobility management entity,MME)、服务网关(serving gateway,SGW)和分组数据网网关(packet data network gateway,PGW)。5GC网络可以包括但不限于如下网元:用户面功能(user plane function,UPF)、业务管理功能(service management function,SMF)和接入管理功能(access management function,AMF)。在CU分离的网络架构下,SGW可以分为用户面服务网关(serving gateway for user plane,SGW-U)和控制面服务网关(serving gateway for control plane,SGW-C),PGW可以分为用户面分组数据网网关(packet data network gateway for user plane,PGW-U)和控制面分组数据网网关(packet data network gateway for control plane,PGW-C)。The EPC network (or EPC+ network) may include, but is not limited to, the following network elements: mobility management entity (MME), serving gateway (serving gateway, SGW), and packet data network gateway (packet data network gateway, PGW). The 5GC network may include, but is not limited to, the following network elements: user plane function (UPF), service management function (SMF), and access management function (AMF). Under the separated network architecture of CU, SGW can be divided into user plane service gateway (serving gateway for user plane, SGW-U) and control plane service gateway (serving gateway for control plane, SGW-C), PGW can be divided into user plane Packet data network gateway (packet data network gateway for user plane, PGW-U) and control plane packet data network gateway (packet data network gateway for control plane, PGW-C).
下面示例性地以前述数据传输方法分别应用于图6a、图6b、图6c所示网络架构的情况进行说明。The following exemplarily describes the case where the foregoing data transmission methods are respectively applied to the network architectures shown in FIG. 6a, FIG. 6b, and FIG. 6c.
在图6a所示CU分离的网络架构中,基站a和基站b被配置为执行图2-图3a所述方法中第一网络设备相应的功能。SGW-U被配置为执行图4-图5所述方法中第二网络设备相应的功能。基站a和基站b均处于边缘网关的服务区域内,即边缘转发设备标识至少包括基站a的标识和基站b的标识。数据包1为上行数据包,数据包2和数据包3均为下行数据包。In the network architecture with separated CUs shown in FIG. 6a, base station a and base station b are configured to perform the corresponding functions of the first network device in the methods described in FIGS. 2 to 3a. The SGW-U is configured to perform the corresponding functions of the second network device in the methods described in FIGS. 4 to 5. Both base station a and base station b are in the service area of the edge gateway, that is, the edge forwarding device identifier includes at least the identifier of base station a and the identifier of base station b. Data packet 1 is an uplink data packet, and data packet 2 and data packet 3 are both downlink data packets.
1)在上行方向上:由图6a可知,终端a可以向基站a发送数据包1,基站接收到数据包1之后,可以确定该数据包1对应的会话信息(如会话类型和终端a对应的基站(即基站a)的标识)。由于边缘转发设备标识包括基站a的标识,因此若数据包1的会话类型为边缘转发会话类型,即可以确定该数据包1对应的会话信息满足边缘转发条件。进一步的,基站a可以将该数据包1发送至边缘网关。边缘网关接收到数据包1之后,可以剥离数据包1的GTPU头,并将剥离GTPU头的数据包1发送至本地网络。1) In the uplink direction: As shown in Figure 6a, terminal a can send data packet 1 to base station a. After receiving data packet 1, the base station can determine the session information corresponding to data packet 1 (such as session type and terminal a corresponding Base station (i.e., the identity of base station a)). Since the edge forwarding device identifier includes the identifier of base station a, if the session type of the data packet 1 is the edge forwarding session type, it can be determined that the session information corresponding to the data packet 1 meets the edge forwarding condition. Further, the base station a may send the data packet 1 to the edge gateway. After receiving the data packet 1, the edge gateway can strip the GTPU header of the data packet 1, and send the data packet 1 with the GTPU header stripped to the local network.
具体的,基站a将该数据包1发送至边缘网关可以是通过将数据包1的目的地址修改为边缘网关的IPv6地址实现的。在图6a所示网络架构中,边缘网关的IPv6地址可以由MME发送给基站a。在一种实现方式中,当终端a在基站a中激活(如开机),或者终端a由基站a的覆盖区域外移动到基站a的覆盖区域内时,SGW-C可以通过扩展信元,以向MME发送携带有边缘网关的IPv6地址的信息。换言之,当终端a在边缘网关的服务区域内激活,或者终端a由边缘网关的服务区域外移动到边缘网关的服务区域内时,SGW-C可以向MME发送携带有边缘网关的IPv6地址的信息。Specifically, the base station a may send the data packet 1 to the edge gateway by modifying the destination address of the data packet 1 to the IPv6 address of the edge gateway. In the network architecture shown in FIG. 6a, the IPv6 address of the edge gateway can be sent by the MME to the base station a. In one implementation, when terminal a is activated in base station a (such as powering on), or when terminal a moves from outside the coverage area of base station a to the coverage area of base station a, SGW-C can extend the information element to Send the information carrying the IPv6 address of the edge gateway to the MME. In other words, when terminal a is activated in the service area of the edge gateway, or when terminal a moves from outside the service area of the edge gateway to the service area of the edge gateway, SGW-C can send information carrying the IPv6 address of the edge gateway to the MME .
2)在下行方向上:由图6a可知,当终端a从基站a的覆盖区域移动到基站b的覆盖区域之后,SGW-C可以将当前的隧道信息发送给SGW-U。SGW-U接收到当前的隧道信息时,可以确定隧道信息发生变化。然后,SGW-U可以根据当前的隧道信息生成数据包2,并将数据包2发送给边缘网关。边缘网关接收到数据包2之后,可以提取该数据包2携带的地址信息进而学习到当前的隧道信息。其中,该隧道信息对应的隧道可以用于传输数据包1对应的下行数据包(即图6a中的数据包3)。当边缘网关接收到来自本地网络的数据 包3,可以根据学习到的当前的隧道信息将该数据包3正确发送至基站b,从而有利于终端a成功获取到数据包1对应的下行数据包(即数据包3)。2) In the downlink direction: Figure 6a shows that when terminal a moves from the coverage area of base station a to the coverage area of base station b, SGW-C can send current tunnel information to SGW-U. When the SGW-U receives the current tunnel information, it can determine that the tunnel information has changed. Then, the SGW-U can generate data packet 2 according to the current tunnel information, and send the data packet 2 to the edge gateway. After receiving the data packet 2, the edge gateway can extract the address information carried in the data packet 2 to learn the current tunnel information. Wherein, the tunnel corresponding to the tunnel information can be used to transmit the downlink data packet corresponding to data packet 1 (that is, data packet 3 in FIG. 6a). When the edge gateway receives the data packet 3 from the local network, it can correctly send the data packet 3 to the base station b according to the current tunnel information learned, so that the terminal a can successfully obtain the downlink data packet corresponding to the data packet 1 ( That is data packet 3).
需要说明的是,SGW-U可以生成n个数据包3,并将n个数据包3均发送至边缘网关,以确保边缘网关可以成功学习到当前的隧道信息。还需要说明的是,图6a以不存在来自因特网的数据包为例进行说明,并不构成对本申请实施例的限定。若存在来自因特网的数据包,则SGW-U可以将来自因特网的前n个数据包发送至边缘网关。需要说明的是,来自因特网的数据包可以经过PGW-U到达SGW-U。其中,PGW为EPC网络的边界网关,PGW-U可以用于处理用户面数据,PGW-C可以用于处理控制面数据。It should be noted that the SGW-U can generate n data packets 3 and send all n data packets 3 to the edge gateway to ensure that the edge gateway can successfully learn the current tunnel information. It should also be noted that FIG. 6a takes the absence of a data packet from the Internet as an example for description, and does not constitute a limitation to the embodiment of the present application. If there are data packets from the Internet, the SGW-U can send the first n data packets from the Internet to the edge gateway. It should be noted that data packets from the Internet can reach SGW-U through PGW-U. Among them, PGW is the border gateway of the EPC network, PGW-U can be used to process user plane data, and PGW-C can be used to process control plane data.
在图6b所示CU合一的网络架构中,除了边缘网关的IPv6地址由SGW发送给MME,当前的隧道信息由SGW自身确定,SGW被配置为执行图4-图5所述方法中第二网络设备相应的功能以外,其他网元的功能均与图6a一致。此处不再赘述。In the CU-in-one network architecture shown in Figure 6b, except that the IPv6 address of the edge gateway is sent to the MME by the SGW, the current tunnel information is determined by the SGW itself, and the SGW is configured to perform the second method described in Figure 4 to Figure 5. Except for the corresponding functions of the network equipment, the functions of the other network elements are consistent with those of Fig. 6a. I won't repeat them here.
在图6c所示5G独立组网(standalone,SA)网络架构中,图6c中的各网元的功能基本与图6a中的相同。不同点如下:第一,UPF或者SGW-U被配置为执行图4-图5所述方法中第二网络设备相应的功能。第二,边缘网关的IPv6地址由SMF发送给AMF,再由AMF将边缘网关的IPv6地址发送给基站a。或者,边缘网关的IPv6地址可以由MME发送给基站a。第三,当前的隧道信息由SMF告知UPF,或者,当前的隧道信息由SGW-C发送给SGW-U。In the 5G standalone (SA) network architecture shown in FIG. 6c, the functions of the network elements in FIG. 6c are basically the same as those in FIG. 6a. The differences are as follows: First, the UPF or SGW-U is configured to perform the corresponding function of the second network device in the methods described in FIGS. 4 to 5. Second, the IPv6 address of the edge gateway is sent to the AMF by the SMF, and then the AMF sends the IPv6 address of the edge gateway to the base station a. Alternatively, the IPv6 address of the edge gateway may be sent by the MME to the base station a. Third, the current tunnel information is notified to the UPF by the SMF, or the current tunnel information is sent by the SGW-C to the SGW-U.
上述详细阐述了本申请实施例公开的方法,下面将提供本申请实施例的装置。The foregoing details the method disclosed in the embodiment of the present application, and the device of the embodiment of the present application will be provided below.
请参见图7,图7是本申请实施例提供的一种数据传输装置的结构示意图,该装置可以为第一网络设备或具有第一网络设备功能的装置(例如芯片),数据传输装置70用于执行图2-图3a对应的方法实施例中第一网络设备所执行的步骤,数据传输装置70包括:Please refer to FIG. 7, which is a schematic structural diagram of a data transmission device provided by an embodiment of the present application. The device may be a first network device or a device (such as a chip) with the function of the first network device. The data transmission device 70 is used for In performing the steps performed by the first network device in the method embodiment corresponding to FIG. 2 to FIG. 3a, the data transmission device 70 includes:
通信模块701,用于接收来自终端设备的上行数据包;The communication module 701 is configured to receive an uplink data packet from a terminal device;
处理模块702,用于确定该上行数据包对应的会话信息;The processing module 702 is configured to determine the session information corresponding to the uplink data packet;
通信模块701,还用于在该上行数据包对应的会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关。The communication module 701 is further configured to send the uplink data packet to the edge gateway when the session information corresponding to the uplink data packet meets the edge forwarding condition.
在一种实现方式中,会话信息可以包括会话类型,边缘转发条件可以包括一个或多个边缘转发会话类型;会话信息满足边缘转发条件可以包括该上行数据包对应的会话类型与边缘转发会话类型相同。In an implementation manner, the session information may include the session type, and the edge forwarding condition may include one or more edge forwarding session types; the session information meeting the edge forwarding condition may include that the session type corresponding to the uplink data packet is the same as the edge forwarding session type .
在一种实现方式中,会话信息可以包括终端设备对应的接入网设备的标识和会话类型;边缘转发条件可以包括一个或多个边缘转发设备标识和一个或多个边缘转发会话类型;会话信息满足边缘转发条件可以包括:接入网设备的标识与边缘转发设备标识相同且该上行数据包对应的会话类型与边缘转发会话类型相同。In an implementation manner, the session information may include the identifier and session type of the access network device corresponding to the terminal device; the edge forwarding condition may include one or more edge forwarding device identifiers and one or more edge forwarding session types; session information Satisfying the edge forwarding condition may include: the identifier of the access network device is the same as the edge forwarding device identifier, and the session type corresponding to the uplink data packet is the same as the edge forwarding session type.
在一种实现方式中,通信模块701还可以用于获取边缘网关的地址信息;处理模块702还可以用于将上行数据包的目的地址信息修改为边缘网关的地址信息;通信模块701用于将上行数据包发送至边缘网关时,具体可以用于根据修改后的上行数据包的目的地址信息,将该上行数据包发送至边缘网关。In an implementation manner, the communication module 701 can also be used to obtain the address information of the edge gateway; the processing module 702 can also be used to modify the destination address information of the uplink data packet to the address information of the edge gateway; the communication module 701 is used to When the uplink data packet is sent to the edge gateway, it can be specifically used to send the uplink data packet to the edge gateway according to the destination address information of the modified uplink data packet.
在一种实现方式中,边缘网关的地址信息可以包括互联网协议第6版IPV6地址。In an implementation manner, the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
在一种实现方式中,通信模块701还可以用于在上行数据包对应的会话信息不满足边缘转发条件的情况下,将该上行数据包发送至核心网网元。In an implementation manner, the communication module 701 may also be used to send the uplink data packet to the core network element when the session information corresponding to the uplink data packet does not meet the edge forwarding condition.
需要说明的是,图7对应的实施例中未提及的内容以及各个模块执行步骤的具体实现方式可参见图2-图3a所示实施例以及前述内容,这里不再赘述。It should be noted that the content not mentioned in the embodiment corresponding to FIG. 7 and the specific implementation manner of the execution steps of each module can be referred to the embodiment shown in FIG. 2-FIG. 3a and the foregoing content, which will not be repeated here.
在一种实现方式中,图7中的各个模块所实现的相关功能可以结合处理器与通信接口来实现。参见图8,图8是本申请实施例提供的另一种数据传输装置的结构示意图,该装置可以为第一网络设备或具有第一网络设备功能的装置(例如芯片),该数据传输装置80可以包括通信接口801、处理器802和存储器803,通信接口801、处理器802和存储器803可以通过一条或多条通信总线相互连接,也可以通过其它方式相连接。图7所示的通信模块701和处理模块702所实现的相关功能可以通过同一个处理器802来实现,也可以通过多个不同的处理器802来实现。In an implementation manner, the related functions implemented by each module in FIG. 7 can be implemented in combination with a processor and a communication interface. Referring to FIG. 8, FIG. 8 is a schematic structural diagram of another data transmission device provided by an embodiment of the present application. The device may be a first network device or a device (such as a chip) with the function of the first network device. The data transmission device 80 It may include a communication interface 801, a processor 802, and a memory 803. The communication interface 801, the processor 802, and the memory 803 may be connected to each other through one or more communication buses, or may be connected in other ways. The related functions implemented by the communication module 701 and the processing module 702 shown in FIG. 7 may be implemented by the same processor 802, or may be implemented by multiple different processors 802.
通信接口801可以用于发送数据和/或信令,以及接收数据和/或信令。应用在本申请实施例中,通信接口801可以用于接收来自终端设备的上行数据包,通信接口801可以为收发器。The communication interface 801 may be used to send data and/or signaling, and receive data and/or signaling. In the embodiment of the present application, the communication interface 801 may be used to receive uplink data packets from a terminal device, and the communication interface 801 may be a transceiver.
处理器802被配置为执行图2-图3a所述方法中第一网络设备相应的功能。该处理器802可以包括一个或多个处理器,例如该处理器802可以是一个或多个中央处理器(central processing unit,CPU),网络处理器(network processor,NP),硬件芯片或者其任意组合。在处理器802是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 802 is configured to perform corresponding functions of the first network device in the methods described in FIGS. 2 to 3a. The processor 802 may include one or more processors. For example, the processor 802 may be one or more central processing units (CPU), network processors (network processors, NPs), hardware chips, or any of them. combination. In the case where the processor 802 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
存储器803用于存储程序代码等。存储器803可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM);存储器803也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器803还可以包括上述种类的存储器的组合。需要说明的是,数据传输装置80包括存储器803仅用于举例,并不构成对本申请实施例限定,在一种实现方式中,存储器803可以用其他具备存储功能的存储介质替代。The memory 803 is used to store program codes and the like. The memory 803 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM); the memory 803 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory). Only memory (ROM), flash memory (flash memory), hard disk drive (HDD), or solid-state drive (SSD); the memory 803 may also include a combination of the foregoing types of memories. It should be noted that the data transmission device 80 includes the memory 803 for example only, and does not constitute a limitation to the embodiment of the present application. In an implementation manner, the memory 803 can be replaced by other storage media with storage functions.
处理器802可以调用存储器803中存储的程序代码以使数据传输装置80执行以下操作:The processor 802 may call the program code stored in the memory 803 to cause the data transmission device 80 to perform the following operations:
接收来自终端设备的上行数据包,确定该上行数据包对应的会话信息;Receiving an uplink data packet from a terminal device, and determining the session information corresponding to the uplink data packet;
在该上行数据包对应的会话信息满足边缘转发条件的情况下,将该上行数据包发送至边缘网关。When the session information corresponding to the uplink data packet meets the edge forwarding condition, the uplink data packet is sent to the edge gateway.
在一种实现方式中,会话信息可以包括会话类型,边缘转发条件可以包括一个或多个边缘转发会话类型;会话信息满足边缘转发条件可以包括该上行数据包对应的会话类型与边缘转发会话类型相同。In an implementation manner, the session information may include the session type, and the edge forwarding condition may include one or more edge forwarding session types; the session information meeting the edge forwarding condition may include that the session type corresponding to the uplink data packet is the same as the edge forwarding session type .
在一种实现方式中,会话信息可以包括终端设备对应的接入网设备的标识和会话类型;边缘转发条件可以包括一个或多个边缘转发设备标识和一个或多个边缘转发会话类型;会话信息满足边缘转发条件可以包括:接入网设备的标识与边缘转发设备标识相同且该上行数据包对应的会话类型与边缘转发会话类型相同。In an implementation manner, the session information may include the identifier and session type of the access network device corresponding to the terminal device; the edge forwarding condition may include one or more edge forwarding device identifiers and one or more edge forwarding session types; session information Satisfying the edge forwarding condition may include: the identifier of the access network device is the same as the edge forwarding device identifier, and the session type corresponding to the uplink data packet is the same as the edge forwarding session type.
在一种实现方式中,将上行数据包发送至边缘网关之前,处理器802还可以调用存储 器803中存储的程序代码以使数据传输装置80执行以下操作:获取边缘网关的地址信息,将上行数据包的目的地址信息修改为边缘网关的地址信息;处理器802调用存储器803中存储的程序代码以使数据传输装置80执行将上行数据包发送至边缘网关时,具体可以使数据传输装置80执行以下操作:根据修改后的上行数据包的目的地址信息,将该上行数据包发送至边缘网关。In one implementation, before sending the uplink data packet to the edge gateway, the processor 802 may also call the program code stored in the memory 803 to make the data transmission device 80 perform the following operations: obtain the address information of the edge gateway, and transfer the uplink data The destination address information of the packet is modified to the address information of the edge gateway; when the processor 802 calls the program code stored in the memory 803 to make the data transmission device 80 execute and send the uplink data packet to the edge gateway, it can specifically make the data transmission device 80 execute the following Operation: Send the uplink data packet to the edge gateway according to the destination address information of the modified uplink data packet.
在一种实现方式中,边缘网关的地址信息可以包括互联网协议第6版IPV6地址。In an implementation manner, the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
在一种实现方式中,处理器802还可以调用存储器803中存储的程序代码以使数据传输装置80执行以下操作:在上行数据包对应的会话信息不满足边缘转发条件的情况下,将该上行数据包发送至核心网网元。In an implementation manner, the processor 802 may also call the program code stored in the memory 803 to cause the data transmission device 80 to perform the following operations: in the case that the session information corresponding to the uplink data packet does not meet the edge forwarding condition, the uplink The data packet is sent to the core network element.
进一步地,处理器802还可以调用存储器803中存储的程序代码以使数据传输装置80执行图2-图3a所示实施例中第一网络设备对应的操作,具体可参见方法实施例中的描述,在此不再赘述。Further, the processor 802 may also call the program code stored in the memory 803 to make the data transmission device 80 execute the operation corresponding to the first network device in the embodiment shown in FIG. 2 to FIG. 3a. For details, please refer to the description in the method embodiment , I won’t repeat it here.
请参见图9,图9是本申请实施例提供的又一种数据传输装置的结构示意图,该装置可以为第二网络设备或具有第二网络设备功能的装置(例如芯片),数据传输装置90用于执行图4-图5对应的方法实施例中第二网络设备所执行的步骤,数据传输装置90可以包括:Please refer to FIG. 9, which is a schematic structural diagram of another data transmission device provided by an embodiment of the present application. The device may be a second network device or a device (such as a chip) with the function of a second network device. The data transmission device 90 For performing the steps performed by the second network device in the method embodiment corresponding to FIG. 4 to FIG. 5, the data transmission device 90 may include:
处理模块901,用于确定当前的隧道信息与历史的隧道信息不同;该隧道信息为核心网网元与接入网设备之间的隧道信息;The processing module 901 is configured to determine that the current tunnel information is different from the historical tunnel information; the tunnel information is tunnel information between the core network element and the access network device;
通信模块902,用于将该隧道信息对应的下行数据包发送至边缘网关。The communication module 902 is configured to send the downlink data packet corresponding to the tunnel information to the edge gateway.
在一种实现方式中,处理模块901还可以用于生成下行数据包。In an implementation manner, the processing module 901 may also be used to generate a downlink data packet.
在一种实现方式中,通信模块902还可以用于接收来自核心网网元的下行数据包。In an implementation manner, the communication module 902 may also be used to receive a downlink data packet from a core network element.
在一种实现方式中,下行数据包可以为下行数据流中的前n个下行数据包;其中,n可以为正整数。In an implementation manner, the downlink data packet may be the first n downlink data packets in the downlink data stream; where n may be a positive integer.
在一种实现方式中,通信模块902还可以用于获取边缘网关的地址信息;处理模块901还可以用于将下行数据包的目的地址信息修改为该边缘网关的地址信息;通信模块902用于将隧道信息对应的下行数据包发送至边缘网关时,具体可以用于根据修改后的下行数据包的目的地址信息,将该下行数据包发送至边缘网关。In an implementation manner, the communication module 902 can also be used to obtain the address information of the edge gateway; the processing module 901 can also be used to modify the destination address information of the downlink data packet to the address information of the edge gateway; the communication module 902 is used to When sending the downlink data packet corresponding to the tunnel information to the edge gateway, it can be specifically used to send the downlink data packet to the edge gateway according to the destination address information of the modified downlink data packet.
在一种实现方式中,边缘网关的地址信息可以包括互联网协议第6版IPV6地址。In an implementation manner, the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
在一种实现方式中,处理模块901还可以用于确定隧道信息对应的会话信息;在该会话信息满足边缘转发条件的情况下,触发执行将隧道信息对应的下行数据包发送至边缘网关的步骤。In an implementation manner, the processing module 901 may also be used to determine the session information corresponding to the tunnel information; when the session information meets the edge forwarding condition, trigger the execution of the step of sending the downlink data packet corresponding to the tunnel information to the edge gateway .
需要说明的是,图9对应的实施例中未提及的内容以及各个模块执行步骤的具体实现方式可参见图4-图5所示实施例以及前述内容,这里不再赘述。It should be noted that the content not mentioned in the embodiment corresponding to FIG. 9 and the specific implementation manners of the execution steps of each module can be referred to the embodiment shown in FIG. 4 to FIG. 5 and the foregoing content, which will not be repeated here.
在一种实现方式中,图9中的各个模块所实现的相关功能可以结合处理器与通信接口来实现。参见图10,图10是本申请实施例提供的又一种数据传输装置的结构示意图,该装置可以为第二网络设备或具有第二网络设备功能的装置(例如芯片),该数据传输装置100可以包括通信接口1001、处理器1002和存储器1003,通信接口1001、处理器1002和存储器1003可以通过一条或多条通信总线相互连接,也可以通过其它方式相连接。图9所 示的处理模块901和通信模块902所实现的相关功能可以通过同一个处理器1002来实现,也可以通过多个不同的处理器1002来实现。In an implementation manner, the related functions implemented by each module in FIG. 9 can be implemented in combination with a processor and a communication interface. Referring to FIG. 10, FIG. 10 is a schematic structural diagram of another data transmission device provided by an embodiment of the present application. The device may be a second network device or a device (such as a chip) with the function of a second network device. The data transmission device 100 It may include a communication interface 1001, a processor 1002, and a memory 1003. The communication interface 1001, the processor 1002, and the memory 1003 may be connected to each other through one or more communication buses, or may be connected in other ways. The related functions implemented by the processing module 901 and the communication module 902 shown in FIG. 9 may be implemented by the same processor 1002, or may be implemented by multiple different processors 1002.
通信接口1001可以用于发送数据和/或信令,以及接收数据和/或信令。应用在本申请实施例中,通信接口1001可以用于将隧道信息对应的下行数据包发送至边缘网关。通信接口1001可以为收发器。The communication interface 1001 may be used to send data and/or signaling, and receive data and/or signaling. In the embodiment of the present application, the communication interface 1001 may be used to send the downlink data packet corresponding to the tunnel information to the edge gateway. The communication interface 1001 may be a transceiver.
处理器1002被配置为执行图4-图5所述方法中第二网络设备相应的功能。该处理器1002可以包括一个或多个处理器,例如该处理器1002可以是一个或多个中央处理器(central processing unit,CPU),网络处理器(network processor,NP),硬件芯片或者其任意组合。在处理器1002是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 1002 is configured to perform corresponding functions of the second network device in the methods described in FIGS. 4 to 5. The processor 1002 may include one or more processors. For example, the processor 1002 may be one or more central processing units (CPUs), network processors (NPs), hardware chips, or any of them. combination. In the case where the processor 1002 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
存储器1003用于存储程序代码等。存储器1003可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM);存储器1003也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器1003还可以包括上述种类的存储器的组合。需要说明的是,数据传输装置100包括存储器1003仅用于举例,并不构成对本申请实施例限定,在一种实现方式中,存储器1003可以用其他具备存储功能的存储介质替代。The memory 1003 is used to store program codes and the like. The memory 1003 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM); the memory 1003 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory). Only memory (ROM), flash memory (flash memory), hard disk drive (HDD), or solid-state drive (SSD); the memory 1003 may also include a combination of the foregoing types of memories. It should be noted that the data transmission device 100 including the memory 1003 is only used as an example, and does not constitute a limitation to the embodiment of the present application. In an implementation manner, the memory 1003 can be replaced by other storage media with storage functions.
处理器1002可以调用存储器1003中存储的程序代码以使数据传输装置100执行以下操作:The processor 1002 may call the program code stored in the memory 1003 to make the data transmission apparatus 100 perform the following operations:
确定当前的隧道信息与历史的隧道信息不同;该隧道信息为核心网网元与接入网设备之间的隧道信息;Determine that the current tunnel information is different from the historical tunnel information; the tunnel information is the tunnel information between the core network element and the access network device;
将该隧道信息对应的下行数据包发送至边缘网关。Send the downlink data packet corresponding to the tunnel information to the edge gateway.
在一种实现方式中,处理器1002还可以调用存储器1003中存储的程序代码以使数据传输装置100执行以下操作:生成下行数据包。In an implementation manner, the processor 1002 may also call the program code stored in the memory 1003 to cause the data transmission device 100 to perform the following operations: generate a downlink data packet.
在一种实现方式中,处理器1002还可以调用存储器1003中存储的程序代码以使数据传输装置100执行以下操作:接收来自核心网网元的下行数据包。In an implementation manner, the processor 1002 may also call the program code stored in the memory 1003 to cause the data transmission apparatus 100 to perform the following operations: receiving a downlink data packet from a core network element.
在一种实现方式中,下行数据包可以为下行数据流中的前n个下行数据包;其中,n可以为正整数。In an implementation manner, the downlink data packet may be the first n downlink data packets in the downlink data stream; where n may be a positive integer.
在一种实现方式中,将隧道信息对应的下行数据包发送至边缘网关之前,处理器1002还可以调用存储器1003中存储的程序代码以使数据传输装置100执行以下操作:获取边缘网关的地址信息;将下行数据包的目的地址信息修改为该边缘网关的地址信息;处理器1002调用存储器1003中存储的程序代码以使数据传输装置100执行将隧道信息对应的下行数据包发送至边缘网关时,具体可以使数据传输装置100执行以下操作:根据修改后的下行数据包的目的地址信息,将该下行数据包发送至边缘网关。In an implementation manner, before sending the downlink data packet corresponding to the tunnel information to the edge gateway, the processor 1002 may also call the program code stored in the memory 1003 to make the data transmission apparatus 100 perform the following operations: obtain address information of the edge gateway Modify the destination address information of the downlink data packet to the address information of the edge gateway; when the processor 1002 calls the program code stored in the memory 1003 to make the data transmission device 100 execute the downlink data packet corresponding to the tunnel information to the edge gateway, Specifically, the data transmission apparatus 100 may perform the following operations: according to the modified destination address information of the downlink data packet, the downlink data packet is sent to the edge gateway.
在一种实现方式中,边缘网关的地址信息可以包括互联网协议第6版IPV6地址。In an implementation manner, the address information of the edge gateway may include the IPV6 address of Internet Protocol version 6.
在一种实现方式中,处理器1002还可以调用存储器1003中存储的程序代码以使数据传输装置100执行以下操作:确定隧道信息对应的会话信息;在该会话信息满足边缘转发条件的情况下,触发执行将隧道信息对应的下行数据包发送至边缘网关的步骤。In an implementation manner, the processor 1002 may also call the program code stored in the memory 1003 to cause the data transmission device 100 to perform the following operations: determine the session information corresponding to the tunnel information; in the case that the session information meets the edge forwarding condition, Trigger the execution of the step of sending the downlink data packet corresponding to the tunnel information to the edge gateway.
进一步地,处理器1002还可以调用存储器1003中存储的程序代码以使数据传输装置 100执行图4-图5所示实施例中第二网络设备对应的操作,具体可参见方法实施例中的描述,在此不再赘述。Further, the processor 1002 may also call the program code stored in the memory 1003 to make the data transmission apparatus 100 execute the operation corresponding to the second network device in the embodiment shown in FIG. 4 to FIG. 5. For details, please refer to the description in the method embodiment , I won’t repeat it here.
本申请实施例还提供一种数据传输系统,该数据传输系统包括前述如图7所示的数据传输装置、前述如图8所示的数据传输装置和边缘网关,或者,该数据传输系统包括前述如图9所示的数据传输装置、前述如图10所示的数据传输装置和边缘网关。An embodiment of the present application also provides a data transmission system, which includes the aforementioned data transmission device as shown in FIG. 7, the aforementioned data transmission device and edge gateway as shown in FIG. 8, or the data transmission system includes the aforementioned The data transmission device shown in FIG. 9 and the aforementioned data transmission device and edge gateway shown in FIG. 10.
本申请实施例还提供一种计算机可读存储介质,可以用于存储图7所示实施例中数据传输装置所用的计算机软件指令,其包含用于执行上述实施例中为第一网络设备所设计的程序。The embodiment of the present application also provides a computer-readable storage medium, which can be used to store the computer software instructions used by the data transmission device in the embodiment shown in FIG. program of.
本申请实施例还提供一种计算机可读存储介质,可以用于存储图9所示实施例中数据传输装置所用的计算机软件指令,其包含用于执行上述实施例中为第二网络设备所设计的程序。The embodiment of the present application also provides a computer-readable storage medium, which can be used to store the computer software instructions used by the data transmission device in the embodiment shown in FIG. program of.
上述计算机可读存储介质包括但不限于快闪存储器、硬盘、固态硬盘。The above-mentioned computer-readable storage medium includes, but is not limited to, flash memory, hard disk, and solid-state hard disk.
本申请实施例还提供一种计算机程序产品,该计算机产品被计算设备运行时,可以执行上述图2-图3a实施例中为第一网络设备所设计的方法。The embodiment of the present application also provides a computer program product. When the computer product is run by a computing device, it can execute the method designed for the first network device in the above-mentioned embodiments of FIG. 2 to FIG. 3a.
本申请实施例还提供一种计算机程序产品,该计算机产品被计算设备运行时,可以执行上述图4-图5实施例中为第二网络设备所设计的方法。The embodiments of the present application also provide a computer program product. When the computer product is run by a computing device, it can execute the method designed for the second network device in the above-mentioned embodiments of FIG. 4 to FIG. 5.
在本申请实施例中还提供一种芯片,包括处理器和存储器,该存储器用包括处理器和存储器,该存储器用于存储计算机程序,该处理器用于从存储器中调用并运行该计算机程序,该计算机程序用于实现上述方法实施例中的方法。In the embodiment of the present application, there is also provided a chip including a processor and a memory. The memory includes a processor and a memory. The memory is used to store a computer program. The processor is used to call and run the computer program from the memory. The computer program is used to implement the method in the above method embodiment.
本领域技术人员可以意识到,结合本申请中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件结合的方式来实现。这些功能究竟以硬件还是软件方式执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed in the present application can be implemented in a manner of electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
上述实施例可以全部或部分地通过软件、硬件、固件或者其任意组合实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。当在计算机上加载和执行该计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。上述计算机指令可以存储在计算机可读存储介质中,或者通过计算机可读存储介质进行传输。上述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。The foregoing embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above-mentioned computer instructions may be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The above computer instructions can be sent from one website site, computer, server, or data center to another website site, through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) Computer, server or data center for transmission. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this application, but the scope of protection of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. All should be covered within the scope of protection of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (20)

  1. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method includes:
    接收来自终端设备的上行数据包,确定所述上行数据包对应的会话信息;Receiving an uplink data packet from a terminal device, and determining session information corresponding to the uplink data packet;
    在所述会话信息满足边缘转发条件的情况下,将所述上行数据包发送至边缘网关。When the session information meets the edge forwarding condition, the uplink data packet is sent to the edge gateway.
  2. 根据权利要求1所述的方法,其特征在于,所述会话信息包括会话类型,所述边缘转发条件包括一个或多个边缘转发会话类型;所述会话信息满足边缘转发条件包括所述会话类型与所述边缘转发会话类型相同。The method according to claim 1, wherein the session information includes a session type, the edge forwarding condition includes one or more edge forwarding session types; and the session information that satisfies the edge forwarding condition includes the session type and The edge forwarding session types are the same.
  3. 根据权利要求1所述的方法,其特征在于,所述会话信息包括所述终端设备对应的接入网设备的标识和会话类型;所述边缘转发条件包括一个或多个边缘转发设备标识和一个或多个边缘转发会话类型;所述会话信息满足边缘转发条件包括所述接入网设备的标识与所述边缘转发设备标识相同且所述会话类型与所述边缘转发会话类型相同。The method according to claim 1, wherein the session information includes the identifier and the session type of the access network device corresponding to the terminal device; the edge forwarding condition includes one or more edge forwarding device identifiers and one Or multiple edge forwarding session types; the session information meeting the edge forwarding condition includes that the identifier of the access network device is the same as the edge forwarding device identifier, and the session type is the same as the edge forwarding session type.
  4. 根据权利要求1~3任一项所述的方法,其特征在于,所述将所述上行数据包发送至边缘网关之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein before the sending the uplink data packet to the edge gateway, the method further comprises:
    获取所述边缘网关的地址信息;Acquiring address information of the edge gateway;
    将所述上行数据包的目的地址信息修改为所述边缘网关的地址信息;Modify the destination address information of the uplink data packet to the address information of the edge gateway;
    所述将所述上行数据包发送至边缘网关,包括:The sending the uplink data packet to the edge gateway includes:
    根据修改后的所述上行数据包的目的地址信息,将所述上行数据包发送至边缘网关。Send the uplink data packet to the edge gateway according to the modified destination address information of the uplink data packet.
  5. 根据权利要求4所述的方法,其特征在于,所述边缘网关的地址信息包括互联网协议第6版IPV6地址。The method according to claim 4, wherein the address information of the edge gateway includes an IPV6 address of Internet Protocol version 6.
  6. 根据权利要求1~5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    在所述会话信息不满足所述边缘转发条件的情况下,将所述上行数据包发送至核心网网元。In a case where the session information does not satisfy the edge forwarding condition, the uplink data packet is sent to the core network element.
  7. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method includes:
    确定当前的隧道信息与历史的隧道信息不同;所述隧道信息为核心网网元与接入网设备之间的隧道信息;Determining that the current tunnel information is different from the historical tunnel information; the tunnel information is tunnel information between the core network element and the access network device;
    将所述隧道信息对应的下行数据包发送至边缘网关。Send the downlink data packet corresponding to the tunnel information to the edge gateway.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    生成所述下行数据包。Generating the downlink data packet.
  9. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    接收来自所述核心网网元的所述下行数据包。Receiving the downlink data packet from the core network element.
  10. 根据权利要求9所述的方法,其特征在于,所述下行数据包为下行数据流中的前n个下行数据包;其中,n为正整数。The method according to claim 9, wherein the downlink data packet is the first n downlink data packets in the downlink data stream; wherein, n is a positive integer.
  11. 根据权利要求7~10任一项所述的方法,其特征在于,所述将所述隧道信息对应的下行数据包发送至边缘网关之前,所述方法还包括:The method according to any one of claims 7 to 10, wherein before the sending the downlink data packet corresponding to the tunnel information to the edge gateway, the method further comprises:
    获取所述边缘网关的地址信息;Acquiring address information of the edge gateway;
    将所述下行数据包的目的地址信息修改为所述边缘网关的地址信息;Modify the destination address information of the downlink data packet to the address information of the edge gateway;
    所述将所述隧道信息对应的下行数据包发送至边缘网关,包括:The sending the downlink data packet corresponding to the tunnel information to the edge gateway includes:
    根据修改后的所述下行数据包的目的地址信息,将所述下行数据包发送至边缘网关。Send the downlink data packet to the edge gateway according to the modified destination address information of the downlink data packet.
  12. 根据权利要求11所述的方法,其特征在于,所述边缘网关的地址信息包括互联网协议第6版IPV6地址。The method according to claim 11, wherein the address information of the edge gateway includes an IPV6 address of Internet Protocol version 6.
  13. 根据权利要求7~12任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 7-12, wherein the method further comprises:
    确定所述隧道信息对应的会话信息;Determine the session information corresponding to the tunnel information;
    在所述会话信息满足边缘转发条件的情况下,触发执行所述将所述隧道信息对应的下行数据包发送至边缘网关的步骤。When the session information meets the edge forwarding condition, trigger execution of the step of sending the downlink data packet corresponding to the tunnel information to the edge gateway.
  14. 一种数据传输装置,其特征在于,包括用于执行如权利要求1~6任一项所述的方法的单元。A data transmission device, characterized by comprising a unit for executing the method according to any one of claims 1 to 6.
  15. 一种数据传输装置,其特征在于,包括用于执行如权利要求7~13任一项所述的方法的单元。A data transmission device, characterized by comprising a unit for executing the method according to any one of claims 7-13.
  16. 一种数据传输装置,其特征在于,包括处理器和存储器,所述存储器中存储有程序指令,所述处理器调用所述存储器中存储的程序指令以使所述数据传输装置执行如权利要求1~6任一项所述的方法。A data transmission device, characterized in that it comprises a processor and a memory, the memory is stored with program instructions, and the processor calls the program instructions stored in the memory to make the data transmission device execute as claimed in claim 1. The method of any one of ~6.
  17. 一种数据传输装置,其特征在于,包括处理器和存储器,所述存储器中存储有程序指令,所述处理器调用所述存储器中存储的程序指令以使所述数据传输装置执行如权利要求7~13任一项所述的方法。A data transmission device, characterized by comprising a processor and a memory, and program instructions are stored in the memory, and the processor calls the program instructions stored in the memory to make the data transmission device execute as claimed in claim 7. The method of any one of ~13.
  18. 一种数据传输系统,其特征在于,包括如权利要求14所述的数据传输装置和如权利要求15所述的数据传输装置,或者,包括如权利要求16所述的数据传输装置和如权利要求17所述的数据传输装置。A data transmission system, characterized in that it comprises the data transmission device according to claim 14 and the data transmission device according to claim 15, or comprises the data transmission device according to claim 16 and the data transmission device according to claim 16. 17 said data transmission device.
  19. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时使所述处理器执行如权利要求1~6任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the The method described in any one of 1 to 6.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时使所述处理器执行如权利要求7~13任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the The method of any one of 7-13.
PCT/CN2020/131579 2019-11-26 2020-11-25 Data transmission method and apparatus therefor WO2021104335A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911180038.0 2019-11-26
CN201911180038.0A CN112953843B (en) 2019-11-26 2019-11-26 Data transmission method and device

Publications (1)

Publication Number Publication Date
WO2021104335A1 true WO2021104335A1 (en) 2021-06-03

Family

ID=76129992

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/131579 WO2021104335A1 (en) 2019-11-26 2020-11-25 Data transmission method and apparatus therefor

Country Status (2)

Country Link
CN (1) CN112953843B (en)
WO (1) WO2021104335A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618241A (en) * 2015-01-14 2015-05-13 杭州华三通信技术有限公司 Transmission method and device for three-layer message
CN107018534A (en) * 2016-01-28 2017-08-04 中兴通讯股份有限公司 A kind of method for realizing mobile edge calculations service, apparatus and system
EP3457664A1 (en) * 2017-09-14 2019-03-20 Deutsche Telekom AG Method and system for finding a next edge cloud for a mobile user
CN110475299A (en) * 2018-05-10 2019-11-19 维沃移动通信有限公司 A kind of method and device of switching cell

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488508B (en) * 2015-08-31 2019-11-19 大唐移动通信设备有限公司 A kind of data transmission method, apparatus and system
CN109155739B (en) * 2016-05-16 2021-01-29 华为技术有限公司 Communication method and device in switching process
US20180026933A1 (en) * 2016-07-22 2018-01-25 Cisco Technology, Inc. Service aware label address resolution protocol switched path instantiation
CN107396335B (en) * 2017-05-18 2020-08-25 中国科学技术大学 Mobile switching management method under heterogeneous network
CN107197029B (en) * 2017-06-19 2021-02-19 深圳市盛路物联通讯技术有限公司 Terminal equipment off-line detection method and system based on edge forwarding node
CN109714262B (en) * 2017-10-25 2021-07-09 北京华为数字技术有限公司 Data transmission method and related equipment
CN110048873A (en) * 2018-01-16 2019-07-23 华为技术有限公司 The method and communication device of the policy control of more anchor point protocol Data Unit sessions
CN110098947B (en) * 2018-01-31 2021-01-29 华为技术有限公司 Application deployment method, device and system
CN110167088A (en) * 2019-05-29 2019-08-23 中国联合网络通信集团有限公司 A kind of management method and device of session
CN110475290B (en) * 2019-07-23 2023-04-28 中国联合网络通信集团有限公司 Session switching method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618241A (en) * 2015-01-14 2015-05-13 杭州华三通信技术有限公司 Transmission method and device for three-layer message
CN107018534A (en) * 2016-01-28 2017-08-04 中兴通讯股份有限公司 A kind of method for realizing mobile edge calculations service, apparatus and system
EP3457664A1 (en) * 2017-09-14 2019-03-20 Deutsche Telekom AG Method and system for finding a next edge cloud for a mobile user
CN110475299A (en) * 2018-05-10 2019-11-19 维沃移动通信有限公司 A kind of method and device of switching cell

Also Published As

Publication number Publication date
CN112953843A (en) 2021-06-11
CN112953843B (en) 2022-12-30

Similar Documents

Publication Publication Date Title
CN109548082B (en) Service redirection method and device
CN110753335B (en) Information transmission method, device and computer readable storage medium
CN112055959B (en) Method, apparatus and medium for communication
US11968565B2 (en) User plane information reporting method and apparatus
WO2020199896A1 (en) Service flow routing control method, apparatus and system
US20230072956A1 (en) Slice access method, apparatus, and system
WO2017036248A1 (en) Data transmission method, device and system
US11356294B2 (en) Packet processing method and device
CN116405461A (en) Data processing method, network element equipment and readable storage medium
WO2019085728A1 (en) Communication method and apparatus
WO2019096306A1 (en) Request processing method, and corresponding entity
US8830864B2 (en) Maintenance of high-speed channels by inserting channel maintenance data in a mobile data network to avoid channel type switching
US10136375B2 (en) Method for service data management, apparatus, and system
WO2020169039A1 (en) Policy management method and device
CN111491370B (en) Communication method, network element, system and storage medium
WO2021104335A1 (en) Data transmission method and apparatus therefor
US8914021B2 (en) Using the maintenance channel in a mobile data network to provide subscriber data when a cache miss occurs
TWI701925B (en) Method for providing network service through edge computing
JP2022120845A (en) System and method of intelligent edge routing
US20230354143A1 (en) Rapid user equipment route selection policy rule processing
JP7346630B2 (en) Communication system having MEC device, device, method and program for processing communication of MEC device
WO2024032603A1 (en) Communication method and apparatus
CN115413063A (en) Method, device and system for establishing connection

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: 20893886

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: 20893886

Country of ref document: EP

Kind code of ref document: A1