WO2021104405A1 - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
WO2021104405A1
WO2021104405A1 PCT/CN2020/131956 CN2020131956W WO2021104405A1 WO 2021104405 A1 WO2021104405 A1 WO 2021104405A1 CN 2020131956 W CN2020131956 W CN 2020131956W WO 2021104405 A1 WO2021104405 A1 WO 2021104405A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
service
acquisition request
terminal device
data
Prior art date
Application number
PCT/CN2020/131956
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 WO2021104405A1 publication Critical patent/WO2021104405A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/61Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on the service used

Definitions

  • the embodiment of the present invention relates to the field of communication technology, and in particular to a communication method and device.
  • IP Internet Protocol
  • CDN Internet service/content delivery network
  • the embodiment of the present invention discloses a communication method and equipment, which are used to improve the control ability of the operator over the Internet service.
  • the first aspect discloses a communication method that receives an information acquisition request from a terminal device that carries indication information for indicating whether the service is a dedicated connection service, and when the indication information indicates that the service is a dedicated connection service, the gateway Send an information acquisition request for acquiring information corresponding to the service, receive the information from the gateway, and send the information to the terminal device. Only when the service is a dedicated connection service, the service is allowed to be transmitted through the gateway, which can improve the operator's ability to control Internet services. In addition, when the service is a dedicated connection service, the service is allowed to be transmitted through the gateway so that the gateway can charge for the dedicated connection service.
  • receiving an information acquisition request from a terminal device may be receiving an IP address acquisition request from the terminal device, the IP address acquisition request
  • the request carries first indication information used to indicate whether the service is a dedicated connection service.
  • send an information acquisition request to the gateway When the instruction information indicates that the service is a dedicated connection service, send an information acquisition request to the gateway.
  • the information acquisition request is used to obtain information corresponding to the service. It can be a situation where the first indication information indicates that the service is a dedicated connection service.
  • send an IP address acquisition request to the gateway and the IP address acquisition request is used to acquire the IP address corresponding to the service device where the service is located.
  • Receiving the information corresponding to the service from the gateway may be the IP address corresponding to the service device where the service is received from the gateway.
  • Sending the information corresponding to the service to the terminal device may be sending to the terminal device the IP address corresponding to the service device where the service is located.
  • the service is a dedicated connection service
  • the IP address corresponding to the service device where the service is located can be obtained through the gateway, so that the data of the service can be obtained through the IP address.
  • the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service, or receiving a data acquisition request from the terminal device, the data acquisition request It carries second indication information used to indicate whether the service is a dedicated connection service.
  • the instruction information indicates that the service is a dedicated connection service
  • an information acquisition request is sent to the gateway.
  • the information acquisition request is used to obtain information corresponding to the service. It may also be a service that indicates that the service is a dedicated connection in the second indication information.
  • the data acquisition request is used to acquire the data corresponding to the service from the service device corresponding to the IP address.
  • Receiving the information corresponding to the service from the gateway may also be receiving the data corresponding to the service from the gateway.
  • Sending the information corresponding to the service to the terminal device may also be sending the data corresponding to the service to the terminal device.
  • the service is a dedicated connection service
  • the data corresponding to the service can be obtained through the gateway, so that the dedicated connection service can be charged.
  • the first indication information may be the domain name of the service.
  • the first indication information is used to indicate that the service is a dedicated connection service, and the domain name of the service may be a designated domain name, so that the service connection mode can be determined by the domain name of the service.
  • the second indication information may be the destination IP address of the data acquisition request, the second indication information is used to indicate that the service is a dedicated connection service, and the destination IP address of the data acquisition request may be a designated IP address , So that the service connection mode can be determined by the IP address corresponding to the service device where the service is located.
  • the first indication information may be the source IP address of the IP address acquisition request, the first indication information is used to indicate that the service is a dedicated connection service, and the source IP address of the IP address acquisition request may be Specify the IP address so that the connection mode of the service can be determined by the IP address of the terminal device.
  • the second indication information may be the source IP address of the data acquisition request, the second indication information is used to indicate that the service is a dedicated connection service, and the source IP address of the data acquisition request may be a specified IP Address so that the connection mode of the service can be determined by the IP address of the terminal device.
  • the IP address acquisition request may be a domain name system (domain name system, DNS) request, or a hypertext transfer protocol (hypertext transfer protocol, HTTP) DNS request.
  • DNS domain name system
  • HTTP hypertext transfer protocol
  • the IP address acquisition request is determined to be an HTTP DNS request, so that the IP address acquisition request can be determined through the IP address of the control center Types of.
  • the second aspect discloses a communication method that receives an information acquisition request from a control device, the service corresponding to the information acquisition request is a dedicated connection service, and in the case that the service is a designated service, the information corresponding to the service is obtained according to the information acquisition request , To send the information corresponding to the service to the control device. Only when the business is a designated business can the information corresponding to the business be acquired, and the number of acquired businesses can be limited, thereby avoiding excessive load.
  • receiving an information acquisition request from a control device may be receiving an IP address acquisition request from the control device, and the IP address acquisition request carries an identifier of the service.
  • obtaining the information corresponding to the business according to the information acquisition request can be, in the case that the business corresponding to the identifier is a designated business, sending an IP address acquisition request to the control center, and receiving the information from the control center
  • the first IP address response, the first IP address response carries the first IP address, and the first IP address is the IP address of the service device where the service is determined by the control center according to the gateway.
  • Sending the information corresponding to the service to the control device may be sending a second IP address response to the control device, and the second IP address response carries the first IP address or the IP address corresponding to the first IP address. It can be seen that when the business is a designated business, the IP address of the service device where the business is located can be obtained from the control center.
  • receiving the information acquisition request from the control device may also be receiving the data acquisition request from the control device.
  • the service is a designated service
  • the information corresponding to the service is obtained according to the information obtaining request, or the service corresponding to the first IP address when the data obtaining request and the service corresponding to the IP address obtaining request are the same service
  • the service device sends a data acquisition request, and receives a data response from the service device that carries business data.
  • Sending information corresponding to the service to the control device may also be sending a data response to the control device. It can be seen that when the business is a designated business, the data of the business can be obtained from the service device.
  • the source IP address of the IP address acquisition request can be replaced from the second IP address to the third IP address, and then the replaced IP address is sent to the control center Get the request.
  • the second IP address is the IP address of the terminal device
  • the third IP address is the IP address of the gateway.
  • the correspondence between the service identifier and the second IP address and the first IP address or the IP address corresponding to the first IP address may be recorded.
  • the data acquisition request is sent to the service device corresponding to the first IP address, and the corresponding relationship and the source IP address and destination IP of the data acquisition request can be firstly sent Address, confirm that the business corresponding to the data acquisition request and the IP address acquisition request is the same business, then replace the source IP address of the data acquisition request from the second IP address with the third IP address, and change the source port of the data acquisition request from the first port Replace with the second port, and finally send the replaced data acquisition request to the service device corresponding to the first IP address, the first port is the port of the terminal device, and the second port is the port of the gateway.
  • the destination IP address of the first IP address response is replaced by the third IP address with the second IP address to obtain the second IP address response, which can be that the destination IP address of the first IP address response is changed from the first IP address to the second IP address.
  • the third IP address is replaced with a second IP address
  • the first IP address is replaced with a fourth IP address to obtain a second IP address response.
  • the fourth IP address is an IP address allocated by the gateway to identify whether the service is a dedicated connection service.
  • the control device Before sending the IP address response to the control device, first replace the IP address of the service device where the service is located with the IP address assigned by the gateway to identify whether the service is a dedicated connection service, and before sending the data response to the control device, The source IP address of the data response is replaced by the IP address of the service device where the service is located with the IP address assigned by the gateway to identify whether the service is a dedicated connection service, which can ensure that the terminal device cannot see the Internet service provider/CDN service provider IP address.
  • the broadband used by the terminal device and the service device when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, the broadband used by the terminal device and the service device can be charged according to the minimum limit traffic, and the terminal device and the service device When the broadband traffic used between the service equipment is greater than or equal to the minimum limit traffic, the broadband used by the terminal equipment and the service equipment can be billed according to the broadband usage traffic between the terminal equipment and the service equipment. It can be seen that when the service is a dedicated connection service, when the usage flow rate is lower than the minimum limit flow rate, the billing is based on the lowest flow rate instead of the actual usage flow rate. Therefore, Internet service providers can be avoided /CDN service provider fills a large amount of general-purpose connection service content in the dedicated connection service channel.
  • the broadband used by the terminal device and the service device can be charged according to the minimum limit bandwidth, and the minimum limit bandwidth is The bandwidth corresponding to the lowest limit traffic; when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the lowest limit bandwidth, the use of the bandwidth between the terminal device and the service device can be used for the terminal device and the service device
  • the broadband is billed. It can be seen that when the service is a dedicated connection service, when the bandwidth used is lower than the bandwidth corresponding to the lowest limit flow, the billing is based on the bandwidth corresponding to the lowest limit flow, rather than the actual bandwidth used. Therefore, it is possible to prevent Internet service providers/CDN service providers from filling a large amount of general connection service content in the dedicated connection service channel.
  • the first IP address acquisition request may be a DNS request or an HTTP DNS request.
  • the third aspect discloses a communication method that receives an IP address acquisition request from a control device, replaces the source IP address of the IP address acquisition request from a second IP address with a third IP address, and sends the replaced IP address acquisition to the control center Request, receive the first IP address response from the control center, replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with the fourth IP address to get the second IP address response, sending a second IP address response to the control device.
  • the service corresponding to the IP address acquisition request is a dedicated connection service
  • the second IP address is the IP address of the terminal device
  • the third IP address is the IP address of the gateway
  • the first IP address response carries the first IP address
  • the first IP address is The control center determines the IP address of the service device where the service is located according to the gateway
  • the fourth IP address is an IP address allocated by the gateway for identifying whether the service is a dedicated connection service.
  • the control device Before sending the IP address response to the control device, first replace the IP address of the service device where the service is located with the IP address assigned by the gateway to identify whether the service is a dedicated connection service, which can ensure that the terminal device cannot see the Internet service provider/ The IP address of the CDN service provider.
  • the IP address acquisition request carries the identifier of the service, and the corresponding relationship between the identifier and the second IP address and the fourth IP address can be recorded, and the data acquisition request from the control device is received according to the corresponding relationship.
  • the source IP address and destination IP address of the data acquisition request determine that the business corresponding to the data acquisition request and the IP address acquisition request is the same business, replace the source IP address of the data acquisition request from the second IP address with the third IP address, and change
  • the source port of the data acquisition request is replaced from the first port to the second port
  • the destination IP address of the data acquisition request is replaced from the fourth IP address to the first IP address
  • the replaced data is sent to the service device corresponding to the first IP address Get the request
  • receive the data response from the service device replace the source IP address of the data response from the first IP address to the fourth IP address, replace the destination IP address of the data response from the third IP address to the second IP address, and change
  • the destination port of the data response is replaced from the second port to the first port, and the replaced data response is sent to the control device.
  • the first port is the port of the terminal device
  • the second port is the port of the gateway
  • the data response carries the data of the service.
  • the broadband used by the terminal device and the service device when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, the broadband used by the terminal device and the service device can be charged according to the minimum limit traffic, and the terminal device and the service device When the broadband traffic used between the service equipment is greater than or equal to the minimum limit traffic, the broadband used by the terminal equipment and the service equipment can be billed according to the broadband usage traffic between the terminal equipment and the service equipment. It can be seen that when the service is a dedicated connection service, when the usage flow rate is lower than the minimum limit flow rate, the billing is based on the lowest flow rate instead of the actual usage flow rate. Therefore, Internet service providers can be avoided /CDN service provider fills a large amount of general-purpose connection service content in the dedicated connection service channel.
  • the broadband used by the terminal device and the service device can be charged according to the minimum limit bandwidth, and the minimum limit bandwidth is The bandwidth corresponding to the lowest limit traffic; when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the lowest limit bandwidth, the use of the bandwidth between the terminal device and the service device can be used for the terminal device and the service device
  • the broadband is billed. It can be seen that when the service is a dedicated connection service, when the bandwidth used is lower than the bandwidth corresponding to the lowest limit flow, the billing is based on the bandwidth corresponding to the lowest limit flow, rather than the actual bandwidth used. Therefore, it is possible to prevent Internet service providers/CDN service providers from filling a large amount of general connection service content in the dedicated connection service channel.
  • a communication device including:
  • a receiving unit configured to receive an information acquisition request from a terminal device, where the information acquisition request carries indication information for indicating whether the service is a dedicated connection service;
  • a sending unit configured to send the information acquisition request to the gateway when the indication information indicates that the service is a dedicated connection service, where the information acquisition request is used to obtain information corresponding to the service;
  • the receiving unit is further configured to receive the information from the gateway;
  • the sending unit is further configured to send the information to the terminal device.
  • the receiving unit receives an information acquisition request from a terminal device, where the information acquisition request carries indication information for indicating whether the service is a dedicated connection service, including:
  • IP address acquisition request carries first indication information for indicating whether the service is a dedicated connection service
  • the sending unit sends the information acquisition request to the gateway, where the information acquisition request is used to acquire information corresponding to the service including:
  • the first indication information indicates that the service is a dedicated connection service
  • the receiving unit receiving the information from the gateway includes:
  • the sending unit sending the information to the terminal device includes:
  • the receiving unit receives an information acquisition request from a terminal device, where the information acquisition request carries indication information for indicating whether the service is a dedicated connection service, and further includes:
  • the data acquisition request carrying second indication information for indicating whether the service is a dedicated connection service
  • the sending unit sends the information acquisition request to the gateway, where the information acquisition request is used to acquire information corresponding to the service and further includes:
  • the data acquisition request is sent to the gateway, and the data acquisition request is used to obtain the data acquisition request from the service device corresponding to the IP address. Data corresponding to the business;
  • the receiving unit receiving the information from the gateway further includes:
  • the sending unit sending the information to the terminal device further includes:
  • the first indication information is the domain name of the service
  • the first indication information used to indicate that the service is a dedicated connection service includes:
  • the domain name is a designated domain name.
  • the second indication information is the destination IP address of the data acquisition request
  • the second indication information used to indicate that the service is a dedicated connection service includes:
  • the destination IP address of the data acquisition request is a designated IP address.
  • the first indication information is the source IP address of the IP address acquisition request
  • the first indication information used to indicate that the service is a dedicated connection service includes:
  • the source IP address of the IP address acquisition request is a designated IP address.
  • the second indication information is the source IP address of the data acquisition request
  • the second indication information used to indicate that the service is a dedicated connection service includes:
  • the source IP address of the data acquisition request is the designated IP address.
  • the IP address acquisition request is a DNS request or an HTTP DNS request.
  • the device further includes:
  • the determining unit is configured to determine that the IP address acquisition request is an HTTP DNS request when the destination IP address of the IP address acquisition request is a set IP address.
  • a communication device including:
  • the receiving unit is configured to receive an information acquisition request from the control device, and the service corresponding to the information acquisition request is a dedicated connection service;
  • An obtaining unit configured to obtain information corresponding to the service according to the information obtaining request when the service is a designated service
  • the sending unit is configured to send the information to the control device.
  • the receiving unit is specifically configured to receive an IP address acquisition request from a control device, where the IP address acquisition request carries an identifier of the service;
  • the acquiring unit is specifically used for:
  • the service corresponding to the identifier is a designated service, sending the IP address acquisition request to the control center;
  • the first IP address response carries a first IP address
  • the first IP address is the service device where the service is determined by the control center according to the gateway IP address
  • the sending unit is specifically configured to send a second IP address response to the control device, where the second IP address response carries the first IP address or an IP address corresponding to the first IP address.
  • the receiving unit is specifically further configured to receive a data acquisition request from the control device;
  • the acquiring unit is specifically further used for:
  • the sending unit is specifically further configured to send the data response to the control device.
  • the sending, by the obtaining unit, of the IP address obtaining request to the control center includes:
  • the sending unit sending the second IP address response to the control device includes:
  • the device further includes:
  • a recording unit configured to record the correspondence between the identifier and the second IP address and the first IP address or the IP address corresponding to the first IP address;
  • the obtaining unit sending the data obtaining request to the service device corresponding to the first IP address includes:
  • the sending unit sending the data response to the control device includes:
  • the sending unit replacing the destination IP address of the first IP address response from the third IP address to the second IP address, and obtaining the second IP address response includes:
  • the fourth IP address is an IP address allocated by the gateway to identify whether the service is a dedicated connection service
  • the obtaining unit replacing the source IP address of the data obtaining request from the second IP address to the third IP address, and replacing the source port of the data obtaining request from the first port to the second port includes:
  • the sending unit replaces the destination IP address of the data response from the third IP address to the second IP address, and replaces the destination port of the data response from the second port to the first port include:
  • the device further includes:
  • the first billing unit is configured to, when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, use the terminal device and the service device according to the minimum limit traffic. Broadband billing;
  • the first billing unit is further configured to: when the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, according to the difference between the terminal device and the service device The broadband usage traffic is billed for the broadband used by the terminal equipment and the service equipment.
  • the device further includes:
  • the second billing unit is configured to, when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum limit bandwidth, use the terminal device and the service device according to the minimum limit bandwidth. Broadband is billed, and the minimum restricted bandwidth is the bandwidth corresponding to the minimum restricted traffic;
  • the second charging unit is further configured to: in the case that the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum bandwidth, according to the difference between the terminal device and the service device Using the bandwidth used by the broadband, billing is performed on the broadband used by the terminal device and the service device.
  • the first IP address acquisition request is a DNS request or an HTTP DNS request.
  • a communication device including:
  • the receiving unit is configured to receive an IP address obtaining request from the control device, and the service corresponding to the IP address obtaining request is a dedicated connection service;
  • the replacement unit is configured to replace the source IP address of the IP address acquisition request from a second IP address to a third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the gateway's IP address;
  • the sending unit is used to send a replacement IP address acquisition request to the control center;
  • the receiving unit is further configured to receive a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is determined by the control center according to the gateway The IP address of the service device where the business is located;
  • the replacement unit is further configured to replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with a fourth IP address To obtain a second IP address response, where the fourth IP address is an IP address allocated by the gateway for identifying whether the service is a dedicated connection service;
  • the sending unit is further configured to send the second IP address response to the control device.
  • the IP address acquisition request carries a service identifier
  • the device further includes:
  • a recording unit configured to record the correspondence between the identifier and the second IP address and the fourth IP address
  • the receiving unit is further configured to receive a data acquisition request from the control device;
  • a determining unit configured to determine that the service corresponding to the data obtaining request and the IP address obtaining request is the same service according to the corresponding relationship and the source IP address and the destination IP address of the data obtaining request;
  • the replacement unit is further configured to replace the source IP address of the data acquisition request from the second IP address to the third IP address, and replace the source port of the data acquisition request from the first port to the first port.
  • the second port is to replace the destination IP address of the data acquisition request from the fourth IP address to the first IP address, the first port is the port of the terminal device, and the second port is the The port of the gateway;
  • the sending unit is further configured to send a replacement data acquisition request to the service device corresponding to the first IP address;
  • the receiving unit is further configured to receive a data response from the service device, the data response carrying data of the service;
  • the replacement unit is further configured to replace the source IP address of the data response from the first IP address with the fourth IP address, and replace the destination IP address of the data response with the third IP address For the second IP address, replace the destination port of the data response from the second port to the first port;
  • the sending unit is further configured to send a replaced data response to the control device.
  • the device further includes:
  • the first billing unit is configured to, when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, use the terminal device and the service device according to the minimum limit traffic. Broadband billing;
  • the first billing unit is further configured to: when the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, according to the difference between the terminal device and the service device The broadband usage traffic is billed for the broadband used by the terminal equipment and the service equipment.
  • the device further includes:
  • the second billing unit is configured to, when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum limit bandwidth, use the terminal device and the service device according to the minimum limit bandwidth. Broadband is billed, and the minimum restricted bandwidth is the bandwidth corresponding to the minimum restricted traffic;
  • the second charging unit is further configured to: in the case that the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum bandwidth, according to the difference between the terminal device and the service device Using the bandwidth used by the broadband, billing is performed on the broadband used by the terminal device and the service device.
  • a seventh aspect discloses a communication device.
  • the communication device may be a user plane function (UPF) network element or a module (for example, a chip) in a UPF network element.
  • the communication device may also be a broadband remote access server (broadband remote access server, BRAS) or a module (for example, chip) in the BRAS.
  • the communication device includes a processor, a memory, an input interface, and an output interface.
  • the input interface is used to receive information from other communication devices other than the communication device, and the output interface is used to send information to those other than the communication device.
  • the other communication device outputs information, and when the processor executes the computer program stored in the memory, the processor is caused to execute the communication method disclosed in the first aspect or any one of the embodiments of the first aspect.
  • An eighth aspect discloses a communication device, which may be a gateway (gateway, GW) or a module (for example, a chip) in the GW.
  • the communication device includes a processor, a memory, an input interface, and an output interface.
  • the input interface is used to receive information from other communication devices other than the communication device, and the output interface is used to send information to those other than the communication device.
  • the other communication device outputs information, and when the processor executes the computer program stored in the memory, the processor is caused to execute the communication method disclosed in the second aspect or any one of the second aspect.
  • a ninth aspect discloses a communication device, which may be a GW or a module (for example, a chip) in the GW.
  • the communication device includes a processor, a memory, an input interface, and an output interface.
  • the input interface is used to receive information from other communication devices other than the communication device, and the output interface is used to send information to those other than the communication device.
  • the other communication device outputs information, and when the processor executes the computer program stored in the memory, the processor is caused to execute the communication method disclosed in the third aspect or any one of the embodiments of the third aspect.
  • a computer-readable storage medium stores a computer program or computer instruction, and when the computer program or computer instruction runs, it implements the first aspect or any implementation of the first aspect
  • An eleventh aspect discloses a communication system, which includes the communication device of the seventh aspect described above and the communication device of the eighth aspect described above.
  • a twelfth aspect discloses a communication system, which includes the communication device of the seventh aspect and the communication device of the ninth aspect.
  • FIG. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present invention
  • Figure 2 is a schematic diagram of another network architecture disclosed in an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a communication method disclosed in an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 11 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 12 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 13 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • 16 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 17 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • FIG. 19 is a schematic structural diagram of a communication device disclosed in an embodiment of the present invention.
  • 20 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention.
  • FIG. 21 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention.
  • 22 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention.
  • FIG. 23 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention.
  • Fig. 24 is a schematic structural diagram of a GW disclosed in an embodiment of the present invention.
  • the embodiment of the present invention discloses a communication method and equipment, which are used to improve the control ability of the operator over the Internet service. Detailed descriptions are given below.
  • FIG. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present invention.
  • the network architecture may include terminal equipment, optical network terminal (ONT), optical line terminal (OLT), BRAS, GW, control center, and service equipment.
  • the network architecture may be the network architecture of a fixed network.
  • the service is a universally connected service, that is, when the service is a low-value service, the path of the service can be terminal equipment-ONT-OLT-BRAS-control center or terminal equipment-ONT-OLT-BRAS-service equipment.
  • the path of the service can be terminal equipment-ONT-OLT-BRAS-gateway-control center or terminal equipment-ONT-OLT-BRAS-gateway-service equipment .
  • the network architecture may include terminal equipment, radio access network (RAN) equipment, UPF network elements, GW, control center, and service equipment.
  • the network architecture may be the network architecture of a mobile network.
  • the path of the business can be terminal equipment-RAN equipment-UPF network element-control center or terminal equipment-RAN equipment-UPF network element-service equipment.
  • the path of the service may be terminal equipment-RAN equipment-UPF network element-gateway-control center or terminal equipment-RAN equipment-UPF network element-gateway-service equipment.
  • the terminal equipment can be a handheld terminal, a notebook computer, a subscriber unit, a cellular phone, a smart phone, a wireless data card, a personal digital assistant (PDA) computer, and a tablet computer , Wireless modem (modem), handheld device (handheld), laptop computer (laptop computer), cordless phone (cordless phone) or wireless local loop (wireless local loop, WLL) station, machine type communication (machine type communication, MTC) terminal or other devices that can access the network.
  • the terminal device accesses the DN by establishing a session between the terminal device-RAN device-UPF network element-data network (data, network, DN), that is, a protocol data unit (protocol data unit, PDU) session.
  • the OLT is used to connect to the ONT. It is a user-end device in the optical fiberization of the access network, and can be a home optical modem.
  • ONT used to connect the user-end equipment in the optical fiber trunk.
  • BRAS is a new type of access gateway for broadband network applications. It is a bridge between the broadband access network and the backbone network, providing basic access means and management functions of the broadband access network. It is located at the edge of the network, provides broadband access services, realizes the convergence and forwarding of multiple services, and can meet the requirements of different users for transmission capacity and bandwidth utilization. It is the core equipment for broadband user access.
  • the RAN equipment is a device that provides wireless access for terminal devices, and is mainly responsible for functions such as radio resource management on the air interface side, quality of service (QoS) flow management, data compression, and encryption.
  • the RAN equipment may include various forms of base stations, such as macro base stations, micro base stations (also called small stations), relay stations, and access points.
  • the RAN device may also include a wireless fidelity (WiFi) access point (AP).
  • WiMax worldwide interoperability for microwave access
  • the UPF network element is mainly responsible for processing user messages, such as forwarding and charging.
  • User messages can be received from the DN and transmitted to the UE through the RAN equipment; user messages can also be received from the UE through the RAN equipment and forwarded to the DN.
  • the transmission resources and scheduling functions of the UPF network element to provide services for the UE are managed and controlled by the SMF network element.
  • the GW can be a connection gateway, and when the service is a dedicated connection service, that is, a high-value service, it can realize the user's Internet access and broadband billing.
  • the GW can be deployed on the BRAS, or it can be independent.
  • the control center is used to dispatch terminal equipment requests to specific service equipment, manage service equipment, etc.
  • the service device can be a server, an acceleration node, or other devices.
  • Operators are used to deploy basic networks and provide Internet access capabilities for subscribers. After the user's terminal device is connected to the Internet, the operator will assign one or more IPs to the user's terminal device for accessing Internet services, such as web traffic and video viewing.
  • the basic network can be a fixed network, a mobile network, etc. Operators can be telecom operators, mobile operators, China Unicom operators, etc.
  • Internet service providers connect their services to the Internet by purchasing bandwidth from operators to provide services to Internet users.
  • the vast majority of Internet service providers will rent services provided by CDN service providers in order to improve user experience.
  • Internet service providers can be video providers, shopping providers, and so on.
  • CDN service providers are used to cache the content that users need to access to service devices that are closer to the user's terminal device to improve the user's access speed and download rate. CDN service providers also need to purchase bandwidth from operators, connect service devices to the Internet, and send content to users' terminal devices.
  • ONT OLT
  • OLT OLT
  • BRAS RAN equipment
  • UPF network elements and gateways belong to operators
  • control centers and service equipment belong to CDN service providers.
  • Various business data in the service equipment belong to the Internet service provider.
  • Internet services are also called over-the-top (OTT) services. That is, Internet companies have gone beyond operators to develop various services based on the open Internet, such as video and data services, emphasizing the irrelevance of services to the Internet.
  • OTT over-the-top
  • the Internet service provider/CDN service provider After the Internet service provider/CDN service provider purchases the bandwidth, they can fill the bandwidth with services, such as web page caching, downloading, live video streaming, and video on demand. These businesses can be high-value businesses or low-value businesses. However, due to the large gap between the bandwidth used between high-value services and low-value services, operators cannot determine whether the transmitted services are high-value services or low-value services, which reduces the operator’s control and innovation on services ability. For example, operators want to reduce bandwidth costs for virtual reality (VR) services, which can increase user bandwidth usage, but cannot control OTT vendors to use low-cost bandwidth to provide services such as web pages and downloads, thereby reducing service costs.
  • VR virtual reality
  • FIG. 3 is a schematic flowchart of a communication method disclosed in an embodiment of the present invention. As shown in Fig. 3, the communication method may include the following steps.
  • the terminal device sends an information acquisition request to the control device.
  • the information acquisition request may carry indication information used to indicate whether the service is a dedicated connection service.
  • Services can include dedicated connection services and general connection services.
  • the dedicated connection business is the business that needs to pass through the gateway, that is, the high-value business.
  • the business of universal connection is the business that does not need to go through the gateway, namely the low-value business.
  • the IP quintuple can include a source IP address, a destination IP address, a source port, a destination port, and a transport layer protocol.
  • the source IP address of the information acquisition request is the IP address of the terminal device, and the source port is the port of the terminal device.
  • the control device can be a BRAS, a UPF network element, or a device with other equivalent functions.
  • the control device sends an information acquisition request to the gateway.
  • the control device After the control device receives the information acquisition request from the terminal device, it can determine, according to the instruction information carried in the information acquisition request, whether the service corresponding to the information acquisition request is a dedicated connection service or a general connection service. In the case where the indication information indicates that the service corresponding to the information acquisition request is a dedicated connection service, the control information may send the information acquisition request to the gateway.
  • the information acquisition request can acquire the information corresponding to the service, that is, the information acquisition request can acquire the information corresponding to the service from the device corresponding to the destination IP address of the information acquisition request.
  • the control device can send the information acquisition request to the device corresponding to the destination IP address of the information acquisition request, that is, it does not need to pass through the gateway.
  • the gateway obtains information corresponding to the service according to the information obtaining request.
  • the information acquisition request may also carry the identifier of the service corresponding to the information acquisition request.
  • the gateway may first determine whether the service corresponding to the information acquisition request is a designated service according to the identifier carried in the information acquisition request. In the case of determining that the service corresponding to the information obtaining request is the designated service according to the identifier carried in the information obtaining request, it indicates that the gateway allows the service corresponding to the information obtaining request to pass through the gateway.
  • the gateway obtains the information corresponding to the service according to the information obtaining request, which may be obtaining the information corresponding to the service from the device corresponding to the destination IP address of the information obtaining request.
  • the gateway may discard the information acquisition request.
  • the gateway may discard the information acquisition request.
  • it can also send information that the service is not allowed to pass to the control device.
  • the service identifier can be the domain name of the service or other information about the service, which is not limited here.
  • the designated business can be a specific business or a business that meets certain conditions, such as the same type of business.
  • the control device can be connected to multiple gateways, and different gateways can allow different services or services that meet different conditions to pass.
  • a white list can be set at each gateway, and each gateway can allow the services in the white list to pass.
  • the designated business is any business in the whitelist.
  • a condition can be set at each gateway, and each gateway can allow services that meet the condition to pass. For example, certain types of services can be allowed to pass.
  • the designated business is a business that meets certain conditions for a specific business.
  • the gateway sends information corresponding to the service to the control device.
  • the gateway may send the obtained information corresponding to the service to the control device.
  • the control device sends information corresponding to the service to the terminal device.
  • the control device After receiving the information corresponding to the service from the gateway, the control device can send the information corresponding to the service to the terminal device.
  • step 301 may include:
  • the terminal device sends an IP address acquisition request to the control device.
  • the terminal device can first send an IP address acquisition request to the control device.
  • the control device can receive an IP address acquisition request from the terminal device. That is, the IP address acquisition request is a request to acquire the IP address corresponding to the service device where the business is located.
  • the information acquisition request carrying indication information used to indicate whether the service is a dedicated connection service may include: the IP address acquisition request carries first indication information used to indicate whether the service is a dedicated connection service.
  • the IP address acquisition request can be a DNS request, HTTP DNS request, or other request, which is not limited here.
  • the IP address corresponding to the service device where the business is located may be the IP address of the service device where the business is located, or may be the IP address corresponding to the IP address of the service device where the business is located.
  • the service device can be a server, an acceleration node, or other devices with equivalent functions.
  • Step 302 may include:
  • the control device sends an IP address acquisition request to the gateway.
  • the gateway receives the IP address acquisition request from the control device.
  • the information obtaining request used to obtain the information corresponding to the service may include: the IP address obtaining request is used to obtain the IP address corresponding to the service device where the service is located.
  • the first indication information may be the domain name of the service.
  • the first indication information indicates that the service is a dedicated connection service, and the domain name of the service may be a designated domain name.
  • Different domain names can be set for different connected services, so that different domain names can be used to determine whether the service is a dedicated connection service or a general connection service.
  • the domain name of the universal connection service used to obtain a certain video source is xxx.com
  • the domain name of the dedicated connection service used to obtain this video source is VR.xxx.com.
  • the control device may pre-store the domain name in the domain name used to obtain the service of the dedicated connection.
  • the first indication information may also be the source IP address of the IP address acquisition request.
  • the first indication information indicates that the service is a dedicated connection service, or it may be that the source IP address of the IP address acquisition request is a designated IP address.
  • Two IP addresses can be deployed for each terminal device, one IP address can be used to obtain dedicated connection services, and the other IP address can be used to obtain general connection services.
  • the source IP address of the IP address obtaining request may be set as the IP address used to obtain the dedicated connection service.
  • the source IP address of the IP address acquisition request may be set as the IP address used to obtain the universal connection service.
  • the control device may pre-store the IP address of the terminal device for obtaining the service of the dedicated connection.
  • the designated IP address is the IP address of the terminal device used to obtain the service of the dedicated connection.
  • Step 303 may include:
  • the gateway sends an IP address acquisition request to the control center;
  • the control center sends a first IP address response to the gateway.
  • the gateway After the gateway receives the IP address acquisition request from the control device, if the service corresponding to the service identifier is a designated service, it indicates that the gateway allows the service corresponding to the IP address acquisition request to pass through the gateway, and the gateway can send the IP address acquisition to the control center request.
  • the control center After the control center receives the IP address acquisition request from the gateway, it can determine the first IP address of the service device where the service is located according to the gateway. You can first determine all service devices that can provide the service according to the service identifier, and then select a service device from all the determined service devices according to the gateway, and then determine the IP address of the selected service device as the first service device where the service is located. An IP address, and then a first IP address response carrying the first IP address can be sent to the gateway.
  • control center When the control center selects the service device, it can select the service device that is closest to the gateway, or the service device that is close to the gateway but has a small load, and can also be selected based on the distance to the gateway and other factors , No restrictions here.
  • the control center is the control center corresponding to the destination IP address of the IP address acquisition request.
  • the gateway may first replace the source IP address of the IP address acquisition request from the second IP address to the third IP address, and then may send the replacement source IP address to the control center
  • the subsequent IP address acquisition request can ensure that the Internet service provider/CDN service provider cannot see the IP address of the terminal device.
  • the second IP address is the IP address of the terminal device
  • the third IP address is the IP address of the gateway.
  • Step 304 may include:
  • the gateway sends a first IP address response to the control device.
  • the gateway After the gateway receives the first IP address response from the control center, it can send the second IP address response to the control device.
  • the second IP address response carries the first IP address or the IP address corresponding to the first IP address.
  • the gateway may record the correspondence between the service identifier and the second IP address and the first IP address, and may also record the correspondence between the second IP address and the IP address corresponding to the first IP address.
  • the gateway after the gateway receives the first IP address response from the control center, it can first replace the destination IP address of the first IP address response from the third IP address to the second IP address to obtain the second IP address response, and then Send a second IP address response to the control device.
  • the second IP address response carries the first IP address.
  • the gateway records the correspondence between the service identifier and the second IP address and the first IP address.
  • the destination IP address of the first IP address response is replaced by the third IP address to the second IP address to obtain the second IP address response
  • the address is replaced with the second IP address
  • the first IP address carried in the first IP address response can be replaced with the fourth IP address to obtain the second IP address response, which can ensure that the user of the terminal device cannot see the Internet service provider/CDN
  • the fourth IP address is the IP address assigned by the gateway to identify whether the service is a dedicated connection service, that is, the fourth IP address is the IP address of the service where the service is a dedicated connection, which can ensure that the service is identified as a dedicated connection through the IP address Business.
  • the second IP address response carries the fourth IP address corresponding to the first IP address.
  • the gateway may record the correspondence between the first IP address and the fourth IP address.
  • the correspondence between the service identifier and the second IP address and the fourth IP address can also be recorded.
  • Step 305 may include:
  • the control device sends a second IP address response to the terminal device.
  • control device After receiving the second IP address response from the gateway, the control device may send the second IP address response to the terminal device.
  • step 301 may also include:
  • the terminal device sends a data acquisition request to the control device.
  • the terminal device After receiving the second IP address response from the control device, the terminal device can parse the second IP address response to obtain the IP address corresponding to the service device where the business is located. Then, a data acquisition request can be sent to the control device with this IP address as the destination IP address, so as to acquire the data of the service from the service device corresponding to the IP address.
  • the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service may also include: the data acquisition request carrying second indication information for indicating whether the service is a dedicated connection service.
  • Step 302 may also include:
  • the control device sends a data acquisition request to the gateway.
  • the gateway receives the data acquisition request from the control device.
  • the information acquisition request used to acquire information corresponding to the service may also include: the data acquisition request is used to obtain service data from the service device corresponding to the IP address.
  • the second indication information may be the destination IP address of the data acquisition request.
  • the second indication information is used to indicate that the service is a dedicated connection service, and may be that the destination IP address of the data acquisition request is a designated IP address.
  • a service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection.
  • the control center receives the IP address acquisition request from the gateway, it can assign the service IP address of the dedicated connection service of the service device to the service.
  • the designated IP address is the first IP address. It is also possible to deploy an IP address for each service device.
  • This IP address can be the IP address of a dedicated connection service or the IP address of a general connection service. After the gateway receives the first IP address response, the dedicated IP address can be used. The IP address of the connected service replaces the first IP address. Such as the fourth IP address. At this time, the designated IP address is the fourth IP address.
  • the second indication information may also be the source IP address of the data acquisition request.
  • the second indication information is used to indicate that the service is a dedicated connection service, and may also be that the source IP address of the data acquisition request is a designated IP address.
  • Two IP addresses can be deployed for each terminal device, one IP address can be used to obtain dedicated connection services, and the other IP address can be used to obtain general connection services.
  • the source IP address of the IP address obtaining request may be set as the IP address used to obtain the dedicated connection service.
  • the source IP address of the IP address obtaining request can be set as the IP address used to obtain the service of the general connection.
  • the control device may pre-store the IP address of the terminal device for obtaining the service of the dedicated connection.
  • the designated IP address is the IP address of the terminal device used to obtain the service of the dedicated connection.
  • Step 303 may also include:
  • the gateway sends a data acquisition request to the service device corresponding to the first IP address;
  • the service device sends a data response carrying service data to the gateway.
  • the gateway After the gateway receives the data acquisition request from the control device, if the service corresponding to the data acquisition request and the IP address acquisition request is the same service, it indicates that the gateway allows the service corresponding to the information acquisition request to pass through the gateway, and the gateway can send the first IP address
  • the service device corresponding to the address sends a data acquisition request.
  • the service device After receiving the data acquisition request from the gateway, the service device can acquire the data of the service, and then can send a data response carrying the data of the service to the gateway.
  • the gateway After the gateway receives the data acquisition request from the control device, it can first determine that the business corresponding to the data acquisition request and the IP address acquisition request is the same business according to the corresponding relationship between the recorded identifier and the source IP address and destination IP address of the data acquisition request. . When the source IP address and the destination IP address of the data acquisition request are the same as the two IP addresses in the corresponding relationship, it is determined that the services corresponding to the data acquisition request and the IP address acquisition request are the same business.
  • the gateway may first replace the source IP address of the data acquisition request from the second IP address with the third IP address, and replace the source port of the data acquisition request with the first port. It is the second port, and then sends the replaced data acquisition request to the service device corresponding to the first IP address.
  • the first port is the port of the terminal device, and the second port is the port of the gateway.
  • the replaced data acquisition request may carry the service identifier, so that the service device can obtain the data of the service according to the service identifier.
  • the gateway when the gateway replaces the source IP address of the data acquisition request from the second IP address with the third IP address, and replaces the source port of the data acquisition request from the first port to the second port, the source of the data acquisition request can be changed
  • the IP address is replaced from the second IP address to the third IP address
  • the source port of the data acquisition request is replaced from the first port to the second port
  • the destination IP address of the data acquisition request is replaced from the fourth IP address to the first IP address .
  • Step 304 may also include:
  • the gateway sends a data response to the control device.
  • the gateway After the gateway receives the data response from the service device, it can send the data response to the control device.
  • the data response carries business data.
  • the gateway after the gateway receives the data response from the service device, it can first replace the destination IP address of the data response from the third IP address to the second IP address, and replace the destination port of the data response from the second port to the first. Port, and then send the replaced data response to the control device.
  • the gateway when the gateway replaces the destination IP address of the data response from the third IP address to the second IP address, and replaces the destination port of the data response from the second port to the first port, the source IP address of the data response can be replaced by The first IP address is replaced with the fourth IP address, the destination IP address of the data response is replaced from the third IP address to the second IP address, and the destination port of the data response is replaced from the second port to the first port, which can ensure The user of the terminal device cannot see the IP address of the Internet service provider/CDN service provider.
  • Step 305 may also include:
  • the control device sends a data response to the terminal device.
  • control device After the control device receives the data response from the gateway, it can send the data response to the terminal device.
  • the terminal device receives the data response from the control device.
  • the cost is required when Internet service providers/CDN service providers need to purchase broadband with large bandwidth for transmission of high-value services Higher.
  • the operator monitors that the transmitted service is a high-value service, that is, a dedicated connection service
  • charging can be performed separately.
  • the transmitted low-value service that is, the service of the universal connection
  • the existing charging method can be used for charging.
  • the gateway can access the broadband that the terminal device and the service device use. Perform billing.
  • the minimum limit flow can be set.
  • the broadband flow used between the terminal device and the service device is less than the minimum limit flow
  • the broadband used by the terminal device and the service device can be billed according to the minimum limit flow.
  • the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic
  • the broadband used by the terminal device and the service device is billed according to the broadband usage traffic between the terminal device and the service device.
  • the minimum restricted traffic is specified by the operator according to the business needs.
  • the minimum traffic limit for a dedicated connection service for 4K video is 20 Mbps
  • the minimum traffic limit for a dedicated connection service for 8K VR video is 80 Mbps. Operators can provide a variety of dedicated connections with different minimum flow rates at the same time for CDN service providers to choose according to their needs.
  • the lowest limit traffic can be set, and the lowest limit bandwidth corresponding to the lowest limit traffic can be calculated first.
  • the terminal device and The broadband used by the service equipment is billed.
  • the broadband used by the terminal device and the service device is billed according to the bandwidth used between the terminal device and the service device. That is, when the Internet access bandwidth of the terminal device is less than the lowest limit bandwidth corresponding to the lowest limit traffic, billing is based on the lowest limit bandwidth, and when the Internet traffic of the terminal device is greater than or equal to the lowest limit bandwidth, billing is based on the actual bandwidth used.
  • FIG. 4 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in Fig. 4, the communication method may include the following steps.
  • the terminal device sends an IP address acquisition request carrying the first indication information to the control device.
  • step 401 is similar to step 3011.
  • step 3011 which will not be repeated here.
  • the control device sends an IP address acquisition request to the gateway.
  • step 402 is the same as step 3021, for detailed description, please refer to step 3021, which will not be repeated here.
  • the gateway replaces the source IP address of the IP address acquisition request with the third IP address from the second IP address.
  • the gateway After the gateway receives the IP address acquisition request from the control device, it can first replace the source IP address of the IP address acquisition request from the second IP address to the third IP address, which can ensure that the Internet service provider/CDN service provider cannot see the terminal device IP address.
  • the second IP address is the IP address of the terminal device
  • the third IP address is the IP address of the gateway.
  • the gateway sends a replacement IP address acquisition request to the control center.
  • the gateway After the gateway replaces the source IP address of the IP address acquisition request from the second IP address to the third IP address, it may send the replaced IP address acquisition request to the control center.
  • the control center sends a first IP address response carrying the first IP address to the gateway.
  • step 405 is similar to step 3032, and for detailed description, please refer to the description corresponding to step 3032, which will not be repeated here.
  • the gateway replaces the destination IP address of the IP address response from the third IP address with the second IP address, and replaces the first IP address with the fourth IP address, to obtain the second IP address response.
  • the gateway sends a second IP address response to the control device.
  • step 406 and step 407 For detailed description of step 406 and step 407, reference may be made to the corresponding description of step 3041.
  • the gateway records the correspondence between the service identifier and the second IP address and the fourth IP address.
  • the gateway replaces the destination IP address of the first IP address response from the third IP address to the second IP address, and replaces the first IP address to the fourth IP address to obtain the second IP address response, and can record the service ID and the first IP address. Correspondence between the second IP address and the fourth IP address.
  • the control device sends a second IP address response to the terminal device.
  • control device After receiving the second IP address response from the gateway, the control device may send the second IP address response to the terminal device.
  • the terminal device sends a data acquisition request carrying the second indication information to the control device.
  • step 410 is similar to step 3012.
  • step 3012 which will not be repeated here.
  • the control device sends a data acquisition request to the gateway.
  • step 411 is similar to step 3022, and for detailed description, please refer to step 3022, which will not be repeated here.
  • the gateway determines that the services corresponding to the data acquisition request and the IP address acquisition request are the same business according to the correspondence relationship and the source IP address and the destination IP address of the data acquisition request.
  • the gateway replaces the source IP address of the data acquisition request from the second IP address with the third IP address, the source port from the first port to the second port, and the destination IP address from the fourth IP address to the first IP address.
  • the gateway sends the replaced data acquisition request to the service device corresponding to the first IP address.
  • step 412 to step 414 please refer to the corresponding description of step 3032.
  • the service device sends a data response carrying service data to the gateway.
  • step 415 is similar to step 3033.
  • step 3033 please refer to step 3033, which will not be repeated here.
  • the gateway replaces the source IP address of the data response from the first IP address to the fourth IP address, the destination IP address from the third IP address to the second IP address, and the destination port from the second port to the first port.
  • the gateway sends the replaced data response to the control device.
  • step 416 and step 417 reference may be made to the description corresponding to step 3042.
  • the control device sends the replaced data response to the terminal device.
  • control device After the control device receives the replaced data response from the gateway, it can send the replaced data response to the terminal device.
  • the terminal device receives the replaced data response from the control device.
  • the broadband used by the terminal device and the service device when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, the broadband used by the terminal device and the service device can be billed according to the minimum limit traffic; use between the terminal device and the service device In the case that the broadband traffic is greater than or equal to the minimum limit traffic, the broadband used by the terminal equipment and the service equipment can be billed according to the broadband usage traffic between the terminal equipment and the service equipment.
  • the lowest limit bandwidth corresponding to the lowest limit traffic can be calculated.
  • the bandwidth used by the terminal device and the service device can be performed according to the lowest limit bandwidth.
  • Billing when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum bandwidth, the broadband used by the terminal device and the service device is billed according to the bandwidth used between the terminal device and the service device .
  • FIG. 5 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in Fig. 5, the communication method may include the following steps.
  • the IP address of the service device where the business is located is IP1.
  • the IP address of the terminal device is IP2.
  • the IP address of the gateway is IP3.
  • the IP address provided in the gateway with the service proxy function is IP4, which is the IP address of the service used for the dedicated connection.
  • the IP address of the control center is IP5.
  • the BRAS stores the IP address with proxy function set in the gateway.
  • the first indication information is the domain name of the service
  • the second indication information is IP4.
  • the terminal device sends an IP address acquisition request to the BRAS through the ONT and the OLT.
  • the terminal device When the terminal device needs service data, it can first send an IP address acquisition request to the BRAS through the ONT and OLT.
  • the source IP address of the IP address acquisition request is IP2.
  • the destination IP address of the IP address acquisition request is IP5.
  • the IP address acquisition request carries the domain name of the service.
  • the domain name can be xxx.com or VR.xxx.com.
  • the terminal device may first send an IP address acquisition request to the ONT. After receiving the IP address acquisition request from the terminal device, the ONT can send an IP address acquisition request to the OLT.
  • the OLT receives the IP address acquisition request from the ONT, and can send the IP address acquisition request to the BRAS.
  • the BRAS sends an IP address acquisition request to the control center.
  • the BRAS After the BRAS receives the IP address acquisition request from the OLT, it can resolve the domain name of the service. In the case that the service corresponding to the resolved domain name is a universal connection service, the BRAS may send an IP address acquisition request to the control center.
  • the BRAS after the BRAS receives the IP address acquisition request from the OLT, it can first determine whether the packet corresponding to the IP address acquisition request is DNS, and resolves only when it determines that the packet corresponding to the IP address acquisition request is DNS The domain name of the business.
  • the control center sends an IP address response carrying IP1 to the terminal device through the BRAS, OLT and ONT.
  • the control center After the control center receives the IP address acquisition request from the BRAS, it indicates that the service is a universal connection service. It can select the service device with the best service quality according to the IP address IP2 of the terminal device, and then send an IP address response carrying IP1 to the BRAS. IP1 is the IP address of the selected service device.
  • the BRAS After the BRAS receives the IP address response from the control center, it can send the IP address response to the OLT. After receiving the IP address response from the BRAS, the OLT can send an IP address response to the ONT. After receiving the IP address response from the OLT, the ONT can send an IP address response to the terminal device.
  • the service equipment with the best service quality you can select the service equipment with the closest distance to the terminal equipment, or select the service equipment with a short distance from the terminal equipment and a small load. It can also be based on the distance from the terminal equipment and other services. Factors are selected.
  • the terminal device obtains service data from the service device corresponding to IP1 through the ONT, OLT, and BRAS.
  • the terminal device After receiving the IP address response from the ONT, the terminal device can obtain IP1 according to the IP address response, that is, it can resolve IP1 from the domain name. Afterwards, a data acquisition request can be initiated to the service device corresponding to IP1 through the ONT, OLT, and BRAS. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the BRAS, OLT, and ONT.
  • the data acquisition request may be an HTTP request.
  • the BRAS sends an IP address acquisition request to the gateway.
  • the service corresponding to the resolved domain name is a dedicated connection service, it indicates that the service can pass through the gateway, and the BRAS can send an IP address acquisition request to the gateway.
  • the gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the gateway After the gateway receives the IP address acquisition request from the BRAS, it can replace the source IP address of the IP address acquisition request from IP2 to IP3, and then can send the replaced IP address acquisition request to the control center, which can guarantee the Internet service provider/CDN service The vendor cannot see the IP address of the terminal device.
  • the control center sends an IP address response carrying IP1 to the gateway.
  • the control center After the control center receives the replaced IP address acquisition request from the gateway, it can select the service device with the best service quality according to the gateway, and then return an IP address response carrying IP1 to the gateway.
  • the service device with the best service quality you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. IP1 in step 503 and step 507 can be the same IP address or different IP addresses.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP2, and IP1 to IP4, and sends the replaced IP address response to the terminal device through the BRAS, OLT and ONT.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and replace the IP1 carried in the IP address response with IP4, and then send the replacement to the terminal device through the BRAS, OLT and ONT.
  • the IP address response can ensure that the terminal device cannot see the IP address of the Internet service provider/CDN service provider.
  • the correspondence between IP1 and IP4 can also be recorded.
  • the terminal device sends a data acquisition request to the BRAS through the ONT and the OLT.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. Afterwards, a data acquisition request can be sent to the BRAS through the ONT and OLT.
  • the source IP address of the data acquisition request is IP2
  • the destination IP address is IP4
  • the source port is the port of the terminal device
  • the destination port is the port of the service device.
  • the BRAS determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the destination IP address from IP4 to IP1, and the source port from the terminal device port to the gateway port, and sends the replaced data to the service device corresponding to IP1 Get the request.
  • the gateway After the gateway receives the data acquisition request, it can replace the source IP address of the data acquisition request from IP2 to IP3. According to the correspondence between IP4 and IP1, the destination IP address can be replaced from IP4 to IP1, so that service data can be obtained from the service device corresponding to IP1. And replace the source port from the port of the terminal device with the port of the gateway. After that, the replaced data acquisition request can be sent to the service device corresponding to IP1.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP2, the source IP address from IP1 to IP4, the destination port from the gateway port to the terminal device port, and the replacement is sent to the terminal device through the BRAS, OLT and ONT. Data response.
  • step 501 to step 504 are the flow of the universal connection service.
  • Step 501, Step 505-Step 513 are dedicated connection service procedures, which can ensure that the user of the terminal device cannot see the IP address of the ISP/CDN service provider, and at the same time, it can ensure that the ISP/CDN service provider cannot see the terminal.
  • the IP address of the device can ensure that the user of the terminal device cannot see the IP address of the ISP/CDN service provider, and at the same time, it can ensure that the ISP/CDN service provider cannot see the terminal.
  • the IP address of the device is the flow of the universal connection service.
  • FIG. 6 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 6, the communication method may include the following steps.
  • a service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection.
  • the IP address of the service of the dedicated connection of the service device may be IP4, and the IP address of the service of the general connection of the service device may be IP1. Therefore, the service can be identified as a dedicated connection service through the IP address of the service device. Operators can automatically or manually send all service equipment to the BRAS the IP addresses of dedicated connection services.
  • the first indication information may be the domain name of the service
  • the second indication information may be IP4, that is, the IP address of the service device where the service is located.
  • the IP address of the terminal device is IP2, the IP address of the gateway is IP3, and the IP address of the control center is IP5.
  • the terminal device sends an IP address acquisition request to the BRAS through the ONT and the OLT.
  • step 601 is the same as step 501.
  • step 501 for detailed description, please refer to step 501, which will not be repeated here.
  • the BRAS sends an IP address acquisition request to the control center.
  • step 602 is the same as step 502.
  • step 502 please refer to step 502, which will not be repeated here.
  • the control center sends an IP address response carrying IP1 to the terminal device through the BRAS, OLT and ONT.
  • step 603 is similar to step 503.
  • the control center selects the service device, it selects the service device deployed with the universal connection service, that is, it selects from the service device corresponding to the IP address of the service deployed with the universal connection, that is, it selects from the service equipment deployed with the universal connection
  • the service device corresponding to the service IP address of the service device includes the service device that needs to obtain the service data selected, so as to ensure that the selected service device is deployed with the service data to be obtained.
  • the terminal device obtains service data from the service device corresponding to IP1 through the ONT, OLT, and BRAS.
  • step 604 is the same as step 504.
  • step 504 please refer to step 504, which will not be repeated here.
  • the BRAS sends an IP address acquisition request to the gateway.
  • step 605 is the same as step 505.
  • step 505 please refer to step 505, which will not be repeated here.
  • the gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
  • step 606 is the same as step 506.
  • step 506 please refer to step 506, which will not be repeated here.
  • the control center sends an IP address response carrying IP4 to the gateway.
  • the control center After the control center receives the replaced IP address acquisition request from the gateway, it indicates that the service is a dedicated connection service.
  • the service device with the best service quality can be selected according to the gateway, and then the IP address response carrying IP4 is returned to the gateway.
  • the control center selects the service equipment, it selects the service equipment with the dedicated connection service, that is, it selects from the service equipment corresponding to the IP address of the service where the dedicated connection is deployed, that is, from the service where the dedicated connection is deployed.
  • the service device corresponding to the IP address of the selected service device includes the service device that needs to obtain the service data, so as to ensure that the selected service device is deployed with the service data to be obtained.
  • the dedicated connection service and the general connection service can be deployed on one service device or on different service devices.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP2, and sends the replaced IP address response to the terminal device through the BRAS, OLT and ONT.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and then send the replaced IP address response to the terminal device through the BRAS, OLT and ONT.
  • the terminal device sends a data acquisition request to the BRAS through the ONT and the OLT.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address. Afterwards, a data acquisition request can be sent to the BRAS through the ONT and OLT.
  • the source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the BRAS determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP4.
  • the gateway After the gateway receives the data acquisition request, it can replace the source IP address of the data acquisition request from IP2 to IP3, and replace the source port from the port of the terminal device to the port of the gateway. Then send the replaced data acquisition request to the service device corresponding to IP4.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP2, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data response to the terminal device through the BRAS, OLT and ONT.
  • step 601-step 604 are the flow of the universal connection service.
  • step 601-step 613 are the processes of dedicated connection services.
  • FIG. 7 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 7, the communication method may include the following steps.
  • IP4 IP4
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • All terminal devices can be used to obtain dedicated connection services automatically or manually.
  • the IP address is delivered to the BRAS.
  • the first indication information and the second indication information are IP4.
  • the IP address of the service device where the business is located is IP1.
  • the IP address of the gateway is IP3.
  • IP address of the control center IP5.
  • the terminal device sends an IP address acquisition request to the BRAS through the ONT and the OLT.
  • an IP address obtaining request can be sent to the BRAS through the ONT and OLT.
  • the source IP address of the IP address acquisition request is IP2
  • the destination IP address of the IP address acquisition request is IP5.
  • the terminal device can send an IP address acquisition request to the ONT.
  • the ONT receives the IP address acquisition request from the terminal device, and can send the IP address acquisition request to the OLT.
  • the OLT receives the IP address acquisition request from the ONT, and can send the IP address acquisition request to the BRAS.
  • the BRAS sends an IP address acquisition request to the control center.
  • the BRAS After the BRAS receives the IP address acquisition request from the OLT, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request.
  • the source IP address is IP2
  • it indicates that the service is a universal connection service and the BRAS can The control center sends an IP address acquisition request.
  • the control center sends an IP address response carrying IP1 to the terminal device through the BRAS, OLT, and ONT.
  • step 703 is the same as step 503.
  • step 503 please refer to step 503, which will not be repeated here.
  • the terminal device obtains service data from the service device corresponding to IP1 through the ONT, OLT, and BRAS.
  • the terminal device After receiving the IP address response from the ONT, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the ONT, OLT, and BRAS. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the BRAS, OLT, and ONT.
  • the data acquisition request may be an HTTP request.
  • the source IP address of the data acquisition request is IP2, and the destination IP address is IP1.
  • the terminal device sends an IP address acquisition request to the BRAS through the ONT and the OLT.
  • the ONT and OLT can send an IP address obtaining request to the BRAS.
  • the source IP address of the IP address acquisition request is IP4, and the destination IP address is IP5.
  • the BRAS sends an IP address acquisition request to the gateway.
  • the BRAS After the BRAS receives the IP address acquisition request from the OLT, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request.
  • the source IP address is IP4
  • it indicates that the service is a dedicated connection service and the BRAS can send
  • the gateway sends an IP address acquisition request.
  • the gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the gateway.
  • step 708 is the same as step 507.
  • IP1 in step 703 and step 708 may be the same IP address or different IP addresses.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the BRAS, OLT, and ONT.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then send the replaced IP address response to the terminal device through the BRAS, OLT and ONT.
  • the terminal device sends a data acquisition request to the BRAS through the ONT and the OLT.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP1 according to the replaced IP address response. Afterwards, a data acquisition request can be sent to the BRAS through the ONT and OLT.
  • the source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the BRAS determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP4 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data response to the terminal device through the BRAS, OLT and ONT.
  • step 701 to step 704 are the flow of the universal connection service.
  • Steps 705-714 are the processes of dedicated connection services.
  • FIG. 8 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention.
  • the IP address of the HTTP DNS control center of the Internet service provider/CDN service provider can be configured to the BRAS in advance. After the BRAS receives the IP address acquisition request from the terminal device through the ONT and OLT, You can determine whether the IP address acquisition request is a DNS request or an HTTP DNS request according to the destination IP address of the IP address acquisition request.
  • the destination IP address of the IP address acquisition request belongs to the stored IP address of the HTTP DNS server of the Internet service provider/CDN service provider
  • the IP address acquisition request is an HTTP DNS request, which can be processed in accordance with a similar DNS protocol.
  • the data acquisition request is an HTTP GET request, and the data response is an HTTP response.
  • the terminal device uses the DNS protocol, that is, the IP address acquisition request sent by the terminal device is a DNS request.
  • the control center uses the HTTP protocol, that is, the IP address response sent by the control center is an HTTP DNS response. Therefore, after the gateway receives the IP address acquisition request, it can convert the IP address acquisition request from a DNS request to an HTTP DNS request, and then send the converted IP address acquisition request to the control center.
  • the gateway After the gateway receives the IP address response from the control center, it can convert the IP address response from the HIIP DNS response to the DNS response, and then send it to the terminal device.
  • the data acquisition request is an HTTP GET request
  • the data response is an HTTP response.
  • terminal devices When the terminal device is a mobile terminal, there are many types of external networks that the terminal device can access, such as the Internet, a wireless application protocol (WAP) network, and an enterprise private network.
  • WAP wireless application protocol
  • terminal devices can use access point names (APN) to distinguish access network types. You can access the specific network of a specific operator by setting the mobile network + APN parameters on the mobile phone.
  • terminal devices In a 5G mobile network, terminal devices can use data network name (DNN) to distinguish access network types. The purpose and setting method of DNN are similar to APN.
  • a terminal can access multiple APN/DNN at the same time, and access different networks on demand. Every time an APN/DNN is connected, the mobile network will assign an IP address of the corresponding network of the APN/DNN to the terminal device. The terminal device selects an IP address to initiate a request according to the needs, and then can access the APN/DNN network corresponding to the IP address.
  • FIG. 9 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 9, the communication method may include the following steps.
  • the IP address of the service device where the business is located is IP1.
  • the IP address of the terminal device is IP2.
  • the IP address of the gateway is IP3.
  • the IP address with proxy function set in the gateway is IP4, which is an IP address used for a dedicated connection service.
  • the IP address of the control center is IP5.
  • the UPF network element stores an IP address with proxy function set in the gateway.
  • the first indication information is the domain name of the service, and the second indication information is IP4.
  • the 5G core network anchors the PDU session of DNN1 to the provincial UPF according to the network plan.
  • the terminal device sends an IP address acquisition request to the UPF network element through the RAN device.
  • the terminal device When the terminal device needs to obtain service data, it may first send an IP address obtaining request to the UPF network element through the RAN device.
  • the source IP address of the IP address acquisition request is IP2.
  • the destination IP address of the IP address acquisition request is IP5.
  • the IP address acquisition request carries the domain name of the service.
  • the terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the provincial UPF network element through the tunnel protocol.
  • the UPF network element sends an IP address acquisition request to the control center.
  • the UPF network element After the UPF network element receives the IP address acquisition request from the RAN device, that is, after opening the tunnel, it can resolve the domain name of the service in the IP address acquisition request. In the case where the service corresponding to the resolved domain name is a universal connection service, the UPF network element may send an IP address acquisition request to the control center.
  • the UPF network element may first determine whether the packet corresponding to the IP address acquisition request is DNS, and if it is determined that the packet corresponding to the IP address acquisition request is DNS , To resolve the IP address to obtain the domain name of the service in the request.
  • the control center sends an IP address response carrying IP1 to the terminal device through the UPF network element and the RAN device.
  • the control center After the control center receives the IP address acquisition request from the UPF network element, it indicates that the service is a universal connection service.
  • the service device with the best service quality can be selected according to the IP address IP2 of the terminal device, and then the UPF network element and the RAN device are used to send the service The device sends an IP address response carrying IP1.
  • IP1 is the IP address of the selected service device.
  • the UPF network element After the UPF network element receives the IP address response from the control center, it can send the IP address response to the RAN device. After receiving the IP address response from the UPF network element, the RAN device can send the IP address response to the terminal device.
  • the service equipment with the best service quality you can select the service equipment with the closest distance to the terminal equipment, or select the service equipment with a short distance from the terminal equipment and a small load. It can also be based on the distance from the terminal equipment and other services. Factors are selected.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the UPF network element.
  • the terminal device After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the UPF network element and the RAN device.
  • the UPF network element sends an IP address acquisition request to the gateway.
  • the service corresponding to the resolved domain name is a dedicated connection service, it indicates that the service can pass through the gateway, and the UPF network element can send an IP address acquisition request to the gateway.
  • the gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the gateway.
  • the control center After the control center receives the replaced IP address acquisition request from the gateway, it can select the service device with the best service quality according to the gateway, and then return an IP address response carrying IP1 to the gateway.
  • the service device with the best service quality you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. IP1 in step 903 and step 907 may be the same IP address or different IP addresses.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP2, and IP1 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element and the RAN device.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and replace the IP1 carried in the IP address response with IP4, and then send the replacement to the terminal device through the UPF network element and the RAN device After the IP address responds.
  • the correspondence between IP1 and IP4 can also be recorded.
  • the terminal device sends a data acquisition request to the UPF network element through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element through the RAN device.
  • the source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the destination IP address from IP4 to IP1, and the source port from the terminal device port to the gateway port, and sends the replaced data to the service device corresponding to IP1 Get the request.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP2, the source IP address is replaced from IP1 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and the replacement is sent to the terminal device through the UPF network element and the RAN device. After the data response.
  • step 901-step 904 are the flow of the universal connection service.
  • step 901, step 905-step 913 are the processes of dedicated connection services, which can ensure that the user of the terminal device cannot see the IP address of the ISP/CDN service provider, and at the same time, it can ensure that the ISP/CDN service provider cannot see the terminal The IP address of the device.
  • FIG. 10 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 10, the communication method may include the following steps.
  • a service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection.
  • the IP address of the service of the dedicated connection of the service device may be IP4, and the IP address of the service of the general connection of the service device may be IP1. Therefore, the service can be identified as a dedicated connection service through the IP address of the service device.
  • the operator can automatically or manually deliver the IP addresses of all service devices for dedicated connection services to the UPF network element.
  • the first indication information may be the domain name of the service
  • the second indication information may be IP4, that is, the IP address of the service device where the service is located.
  • the IP address of the terminal device is IP2, the IP address of the gateway is IP3, and the IP address of the control center is IP5.
  • a terminal device sends an IP address acquisition request to a UPF network element through a RAN device.
  • step 1001 is the same as step 901.
  • step 901 which is not repeated here.
  • the UPF network element sends an IP address acquisition request to the control center.
  • step 1002 is the same as step 902, for detailed description, please refer to step 902, which will not be repeated here.
  • the control center sends an IP address response carrying IP1 to the terminal device through the UPF network element and the RAN device.
  • step 1003 is similar to step 903.
  • the control center selects the service device, it selects the service device deployed with the universal connection service, that is, it selects from the service device corresponding to the IP address of the service deployed with the universal connection, that is, it selects from the service equipment deployed with the universal connection
  • the service device corresponding to the service IP address of the service device includes the service device that needs to obtain the service data selected, so as to ensure that the selected service device is deployed with the service data to be obtained.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the UPF network element.
  • step 1004 is the same as step 904.
  • step 904 please refer to step 904, which will not be repeated here.
  • the UPF network element sends an IP address acquisition request to the gateway.
  • step 1005 is the same as step 905, for detailed description, please refer to step 905, which will not be repeated here.
  • the gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP4 to the gateway.
  • the control center After the control center receives the replaced IP address acquisition request from the gateway, it indicates that the service is a dedicated connection service.
  • the service device with the best service quality can be selected according to the gateway, and then the IP address response carrying IP4 is returned to the gateway.
  • the control center selects the service equipment, it selects the service equipment with the dedicated connection service, that is, it selects from the service equipment corresponding to the IP address of the service where the dedicated connection is deployed, that is, from the service where the dedicated connection is deployed.
  • the service device corresponding to the IP address of the selected service device includes the service device that needs to obtain the service data, so as to ensure that the selected service device is deployed with the service data to be obtained.
  • the dedicated connection service and the general connection service can be deployed on one service device or on different service devices.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP2, and sends the replaced IP address response to the terminal device through the UPF network element and the RAN device.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and then send the replaced IP address response to the terminal device through the UPF network element and the RAN device.
  • the terminal device sends a data acquisition request to the UPF network element through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element through the RAN device.
  • the source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP2 to IP3, and the source port is replaced by the port of the terminal device with the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP4.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP2, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data response to the terminal device through the UPF network element and the RAN device.
  • step 1001-step 1004 are the processes of the universal connection service.
  • step 1001 is the processes of dedicated connection services.
  • FIG. 11 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 11, the communication method may include the following steps.
  • IP4 IP4
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • the first indication information and the second indication information are IP4.
  • the IP address of the service device where the business is located is IP1.
  • the IP address of the gateway is IP3.
  • the IP address of the control center is IP5.
  • DNN2 On the basis of DNN1 carrying the traffic of the service of the general connection, DNN2 is newly added to specifically carry the traffic of the service of the dedicated connection. After the terminal device is turned on, it can access DNN1 and DNN2 at the same time. DNN1 can be assigned IP address IP2, and DNN2 can be assigned IP address IP4.
  • the 5G core network can anchor the PDU session to the provincial UPF.
  • the terminal device sends an IP address acquisition request to the UPF network element through the RAN device.
  • the RAN device may send an IP address obtaining request to the UPF network element.
  • the source IP address of the IP address acquisition request is IP2
  • the destination IP address of the IP address acquisition request is IP5.
  • the terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the provincial UPF network element through the tunnel protocol.
  • the UPF network element sends the IP address acquisition request to the control center.
  • the UPF network element After the UPF network element receives the IP address acquisition request from the RAN device, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request. When the source IP address is IP2, it indicates that the service is a universal connection service. The UPF network element can send an IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the terminal device through the UPF network element and the RAN device.
  • step 1103 is similar to step 903.
  • step 903 please refer to step 903, which will not be repeated here.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the UPF network element.
  • the terminal device After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the UPF network element and the RAN device.
  • the data acquisition request may be an HTTP request.
  • the source IP address of the data acquisition request is IP2, and the destination IP address is IP1.
  • the terminal device sends an IP address acquisition request to the UPF network element through the RAN device.
  • the RAN device may send an IP address obtaining request to the UPF network element.
  • the source IP address of the IP address acquisition request is IP4, and the destination IP address of the IP address acquisition request is IP5.
  • the UPF network element sends an IP address acquisition request to the gateway.
  • the UPF network element After the UPF network element receives the IP address acquisition request from the RAN device, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request. When the source IP address is IP4, it indicates that the service is a dedicated connection service. The UPF network element may send an IP address acquisition request to the gateway.
  • the gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the gateway.
  • step 1108 is the same as step 1007.
  • IP1 in step 1103 and step 1108 may be the same IP address or different IP addresses.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element and the RAN device.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then can send the replaced IP address response to the terminal device through the UPF network element and the RAN device.
  • the terminal device sends a data acquisition request to the UPF network element through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element through the RAN device.
  • the source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP4 to IP3, and replaces the source port of the terminal device with the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data response to the terminal device through the UPF network element and the RAN device.
  • step 1101 to step 1104 are the processes of the universal connection service.
  • step 1105-steps 1114 are the processes of dedicated connection services.
  • FIG. 12 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 12, the communication method may include the following steps.
  • IP4 IP4
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • All terminal devices can be used to obtain dedicated connection services automatically or manually.
  • the IP address is delivered to the BRAS.
  • the first indication information and the second indication information are IP4.
  • the IP address of the service device where the business is located is IP1.
  • the IP address of the gateway is IP3.
  • IP address of the control center IP5.
  • DNN2 On the basis of DNN1 carrying the traffic of the service of the general connection, DNN2 is newly added to specifically carry the traffic of the service of the dedicated connection. After the terminal device is turned on, it can access DNN1 and DNN2 at the same time. DNN1 can be assigned IP address IP2, and DNN2 can be assigned IP address IP4.
  • the 5G core network can anchor the PDU session to the provincial UPF.
  • the 5G mobile network starts the construction of UPF network element edge nodes, which can offload the dedicated connection service traffic to prefectures/districts County-level UPF network element.
  • the 5G core network can anchor the PDU session of DNN1 carrying the traffic of the general connection to the provincial UPF network element, and can anchor the PDU session of the DNN2 carrying the traffic of the dedicated connection to the city/city/ UPF network element at district and county level.
  • the terminal device sends an IP address acquisition request to a provincial UPF network element through a RAN device.
  • the RAN device may send an IP address obtaining request to the provincial UPF network element.
  • the source IP address of the IP address acquisition request is IP2
  • the destination IP address of the IP address acquisition request is IP5.
  • the terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can extract the source IP address in the IP address acquisition request. In the case that the source IP address in the IP address acquisition request is IP2, it indicates that the acquired service is a universally connected service. The RAN device can package the IP address acquisition request in the PDU session of the terminal device and send it to the provincial level through the tunnel protocol. The UPF network element sends an IP address acquisition request.
  • the provincial UPF network element sends an IP address acquisition request to the control center.
  • the provincial UPF network element After the provincial UPF network element receives the IP address acquisition request from the RAN device, it can send the IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element and the RAN device.
  • step 1203 is similar to step 903.
  • step 903 please refer to step 903, which will not be repeated here.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the provincial UPF network element.
  • the terminal device After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the provincial UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the provincial UPF network element and the RAN device.
  • the data acquisition request may be an HTTP request.
  • the source IP address of the data acquisition request is IP2, and the destination IP address is IP1.
  • the terminal device sends an IP address acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
  • the RAN device can send an IP address obtaining request to the UPF network element at the prefecture/district/county level.
  • the source IP address of the IP address acquisition request is IP4, and the destination IP address of the IP address acquisition request is IP5.
  • the terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can extract the source IP address in the IP address acquisition request. When the source IP address in the IP address acquisition request is IP4, it indicates that the acquired service is a dedicated connection service. The RAN device can package the IP address acquisition request in the PDU session of the terminal device and send it to the city through the tunnel protocol. / The district/county level UPF network element sends an IP address acquisition request.
  • the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the gateway.
  • the gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the gateway.
  • step 1208 is similar to step 1007.
  • step 1007 please refer to step 1007, which will not be repeated here.
  • IP1 in step 1203 and step 1208 may be the same IP address or different IP addresses.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level and the RAN device.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then can send the replaced IP to the terminal device through the UPF network element and RAN device at the city/district/county level Address response.
  • the terminal device sends a data acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP1 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element at the prefecture/district/county level through the RAN device.
  • the source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the UPF network element at the prefecture/district/county level sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP4 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data to the terminal device through the UPF network element of the city/district and county level and the RAN device response.
  • step 1201 to step 1204 are the procedures of the universal connection service.
  • steps 1205-step 1214 are the processes of dedicated connection services.
  • FIGS 13-15 take 5G as an example for illustration. Operators do not add DNNs and use DNN1 to uniformly carry the traffic of dedicated connection services and the traffic of general connection services.
  • the 5G mobile network starts the construction of UPF network element edge nodes, which can offload the dedicated connection service traffic to prefectures/districts County-level UPF network element.
  • the PDU sessions of DNN1 that carry all the users' surfing traffic are anchored to the provincial UPF network element.
  • the offloading is processed locally; when the service is a dedicated connection service, it is forwarded to the city/district/county level UPF network element for processing.
  • FIG. 13 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 13, the communication method may include the following steps.
  • the IP address of the service device where the business is located is IP1.
  • the IP address of the terminal device is IP2.
  • the IP address of the gateway is IP3.
  • the IP address with proxy function set in the gateway is IP4, which is an IP address used for a dedicated connection service.
  • the IP address of the control center is IP5.
  • the UPF network element stores an IP address with proxy function set in the gateway.
  • the first indication information is the domain name of the service, and the second indication information is IP4.
  • a terminal device sends an IP address acquisition request to a provincial UPF network element through a RAN device.
  • the RAN device may first send an IP address obtaining request to the provincial UPF network element.
  • the source IP address of the IP address acquisition request is IP2.
  • the destination IP address of the IP address acquisition request is IP5.
  • the IP address acquisition request carries the domain name of the service.
  • the terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the provincial UPF network element through the tunnel protocol.
  • the service corresponding to the domain name is a universal connection service
  • the provincial UPF network element sends an IP address acquisition request to the control center.
  • the provincial UPF network element After the provincial UPF network element receives the IP address acquisition request from the RAN device, that is, after opening the tunnel, it can resolve the domain name of the service in the IP address acquisition request.
  • the service corresponding to the resolved domain name is a universal connection service, an IP address acquisition request may be sent to the control center.
  • the provincial UPF network element may first determine whether the packet corresponding to the IP address acquisition request is DNS, and after determining that the packet corresponding to the IP address acquisition request is DNS In this case, the IP address acquisition request is sent to the control center.
  • the control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element and the RAN device.
  • the control center After the control center receives the IP address acquisition request from the provincial UPF network element, it indicates that the service is a universally connected service. It can select the service device with the best service quality according to the provincial UPF network element, and then pass the provincial UPF network element and RAN The device sends an IP address response carrying IP1 to the terminal device. IP1 is the IP address of the selected service device.
  • the control center After the provincial UPF network element receives the IP address response from the control center, it can send the IP address response to the RAN device. After receiving the IP address response from the provincial UPF network element, the RAN device can send the IP address response to the terminal device.
  • the service equipment with the best service quality you can select the service equipment with the closest distance to the terminal equipment, or select the service equipment with a short distance from the terminal equipment and a small load. It can also be based on the distance from the terminal equipment and other services. Factors are selected.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the provincial UPF network element.
  • the terminal device After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the provincial UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the provincial UPF network element and the RAN device.
  • the national UPF network element sends an IP address acquisition request to the gateway through the prefecture/district/county UPF network element.
  • the gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the gateway.
  • the control center After the control center receives the replaced IP address acquisition request from the gateway, it can select the service device with the best service quality according to the gateway, and then return an IP address response carrying IP1 to the gateway.
  • the service device with the best service quality you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. IP1 in step 1303 and step 1307 can be the same IP address or different IP addresses.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP2, and IP1 to IP4, and sends the replaced IP address to the terminal device through the UPF network element at the prefecture/district/county level, the UPF network element at the provincial level, and the RAN device. response.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and replace the IP1 carried in the IP address response with IP4, and then send the replacement to the terminal device through the UPF network element and the RAN device After the IP address responds.
  • the correspondence between IP1 and IP4 can also be recorded.
  • the terminal device sends a data acquisition request to the provincial UPF network element through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the provincial UPF network element through the RAN device.
  • the source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the provincial UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway through the prefecture/district/county UPF network element.
  • the gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the destination IP address from IP4 to IP1, and the source port from the terminal device port to the gateway port, and sends the replaced data to the service device corresponding to IP1 Get the request.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP2, the source IP address from IP1 to IP4, and the destination port from the gateway to the port of the terminal device through the UPF network element and province
  • the level UPF network element and the RAN device send the replaced data response to the terminal device.
  • step 1301 to step 1304 are the procedures of the universal connection service.
  • step 1301, step 1305-step 1315 are the dedicated connection business processes, which can ensure that the user of the terminal device cannot see the IP address of the ISP/CDN service provider, and at the same time, it can ensure that the ISP/CDN service provider cannot see the terminal The IP address of the device.
  • FIG. 14 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 14, the communication method may include the following steps.
  • a service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection.
  • the IP address of the service of the dedicated connection of the service device may be IP4, and the IP address of the service of the general connection of the service device may be IP1. Therefore, the service can be identified as a dedicated connection service through the IP address of the service device.
  • the operator can automatically or manually deliver the IP addresses of all service devices for dedicated connection services to the UPF network element.
  • the first indication information may be the domain name of the service
  • the second indication information may be IP4, that is, the IP address of the service device where the service is located.
  • the IP address of the terminal device is IP2, the IP address of the gateway is IP3, and the IP address of the control center is IP5.
  • a terminal device sends an IP address acquisition request to a provincial UPF network element through a RAN device.
  • step 1401 is the same as step 1301.
  • step 1301 please refer to step 1301, which will not be repeated here.
  • the service corresponding to the domain name is a universal connection service
  • the provincial UPF network element sends an IP address acquisition request to the control center.
  • step 1402 is the same as step 1302.
  • step 1302 please refer to step 1302, which will not be repeated here.
  • the control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element and the RAN device.
  • step 1403 is the same as step 1303.
  • the control center selects the service device, it selects the service device deployed with the universal connection service, that is, it selects from the service device corresponding to the IP address of the service deployed with the universal connection, that is, it selects from the service equipment deployed with the universal connection
  • the service device corresponding to the service IP address of the service device includes the service device that needs to obtain the service data selected, so as to ensure that the selected service device is deployed with the service data to be obtained.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the provincial UPF network element.
  • step 1404 is the same as step 1304.
  • step 1304 please refer to step 1304, which will not be repeated here.
  • the national UPF network element sends an IP address acquisition request to the gateway through the city/district/county UPF network element.
  • step 1405 is the same as step 1305.
  • step 1305 For detailed description, please refer to step 1305, which will not be repeated here.
  • the gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP4 to the gateway.
  • the control center After the control center receives the replaced IP address acquisition request from the gateway, it indicates that the service is a dedicated connection service.
  • the service device with the best service quality can be selected according to the gateway, and then the IP address response carrying IP4 is returned to the gateway.
  • the control center selects the service equipment, it selects the service equipment with the dedicated connection service, that is, it selects from the service equipment corresponding to the IP address of the service where the dedicated connection is deployed, that is, from the service where the dedicated connection is deployed.
  • the service device corresponding to the IP address of the selected service device includes the service device that needs to obtain the service data, so as to ensure that the selected service device is deployed with the service data to be obtained.
  • the dedicated connection service and the general connection service can be deployed on one service device or on different service devices.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP2, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level, the UPF network element at the provincial level, and the RAN device.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and then send it to the terminal device through the UPF network element at the city/district/county level, the provincial UPF network element and the RAN equipment Send the replaced IP address response.
  • the terminal device sends a data acquisition request to the provincial UPF network element through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the provincial UPF network element through the RAN device.
  • the source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the provincial UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway through the prefecture/district/county UPF network element.
  • the gateway replaces the source IP address of the data acquisition request from IP2 to IP3, and replaces the source port of the terminal device with the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP2, and the destination port is replaced by the port of the gateway to the port of the terminal device, and then the UPF network element at the prefecture/district/county level, the provincial UPF network element, and the RAN equipment to the terminal
  • the device sends a data response after replacement.
  • step 1401-step 1404 are the flow of the universal connection service.
  • step 1401 is the processes of dedicated connection services.
  • FIG. 15 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 15, the communication method may include the following steps.
  • IP4 IP4
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • the first indication information and the second indication information are IP4.
  • the IP address of the service device where the business is located is IP1.
  • the IP address of the gateway is IP3.
  • the IP address of the control center is IP5.
  • a terminal device sends an IP address acquisition request to a provincial UPF network element through a RAN device.
  • the RAN device may send an IP address obtaining request to the provincial UPF network element.
  • the source IP address of the IP address acquisition request is IP2
  • the destination IP address of the IP address acquisition request is IP5.
  • the terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the provincial UPF network element through the tunnel protocol.
  • the source IP address of the IP address acquisition request is IP2
  • the provincial UPF network element sends an IP address acquisition request to the control center.
  • the provincial UPF network element After the regional UPF network element receives the IP address acquisition request from the RAN device, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request.
  • the source IP address is IP2
  • it indicates that the service is a universal connection service and the provincial UPF network element can send an IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element and the RAN device.
  • step 1503 is similar to step 1303.
  • step 1303 please refer to step 1303, which will not be repeated here.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the provincial UPF network element.
  • the terminal device After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the provincial UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the provincial UPF network element and the RAN device.
  • the source IP address of the data acquisition request is IP2, and the destination IP address is IP1.
  • the terminal device sends an IP address acquisition request to the provincial UPF network element through the RAN device.
  • the RAN device may send an IP address obtaining request to the provincial UPF network element.
  • the source IP address of the IP address acquisition request is IP4, and the destination IP address of the IP address acquisition request is IP5.
  • the provincial UPF network element sends the IP address acquisition request to the gateway through the city/district/county UPF network element.
  • the gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the gateway.
  • step 1508 is the same as step 1307.
  • IP1 in step 1503 and step 1508 may be the same IP address or different IP addresses.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level, the UPF network element at the provincial level, and the RAN device.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then send it to the terminal through the city/district/county UPF network element, provincial UPF network element, and RAN equipment The device sends a response with the replaced IP address.
  • the terminal device sends a data acquisition request to the provincial UPF network element through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP1 according to the replaced IP address response. After that, a data acquisition request can be sent to the provincial UPF network element through the RAN device.
  • the source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the provincial UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway through the prefecture/district/county UPF network element.
  • the gateway replaces the source IP address of the data acquisition request from IP4 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and then the UPF network element at the prefecture/district/county level, the provincial UPF network element, and the RAN equipment to the terminal.
  • the device sends a data response after replacement.
  • step 1501-step 1504 are the flow of the universal connection service.
  • Steps 1505-step 1514 are the processes of dedicated connection services.
  • FIGS 16-18 take 5G as an example for illustration. Operators do not add DNNs and use DNN1 to uniformly carry the traffic of dedicated connection services and the traffic of general connection services.
  • the 5G mobile network starts the construction of UPF network element edge nodes, which can offload the dedicated connection service traffic to prefectures/districts County-level UPF network element.
  • the PDU session of DNN1 that carries all user Internet traffic is anchored to the UPF network element at the prefecture/district/county level.
  • the service is a dedicated connection service, the offloading is processed locally; when the service is a general connection service, it is forwarded to the provincial UPF network element for processing.
  • FIG. 16 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 16, the communication method may include the following steps.
  • the IP address of the service device where the business is located is IP1.
  • the IP address of the terminal device is IP2.
  • the IP address of the gateway is IP3.
  • the IP address with proxy function set in the gateway is IP4, which is an IP address used for a dedicated connection service.
  • the IP address of the control center is IP5.
  • the UPF network element stores an IP address with proxy function set in the gateway.
  • the first indication information is the domain name of the service, and the second indication information is IP4.
  • a terminal device sends an IP address acquisition request to a UPF network element at the prefecture/district/county level through a RAN device.
  • the RAN device may first send an IP address obtaining request to the UPF network element at the prefecture/district/county level.
  • the source IP address of the IP address acquisition request is IP2.
  • the destination IP address of the IP address acquisition request is IP5.
  • the IP address acquisition request carries the domain name of the service.
  • the terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the UPF network element at the prefecture/district/county level through the tunnel protocol.
  • the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the control center through the provincial UPF network element.
  • the city/district/county UPF network element After the city/district/county UPF network element receives the IP address acquisition request from the RAN device, that is, after opening the tunnel, it can resolve the domain name of the service in the IP address acquisition request. In the case that the service corresponding to the resolved domain name is a universal connection service, the IP address acquisition request can be sent to the control center through the provincial UPF network element. That is, first send an IP address acquisition request to the provincial UPF network element. After the provincial UPF network element receives the IP address acquisition request from the prefecture/district/county UPF network element, it can send the IP address acquisition request to the control center.
  • the UPF network element at the prefecture/district/county level receives the IP address acquisition request from the RAN device, it can first determine whether the packet corresponding to the IP address acquisition request is DNS, and after determining the packet corresponding to the IP address acquisition request In the case of DNS, the IP address is resolved to obtain the domain name of the service in the request.
  • the control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element, the prefecture/district/county UPF network element, and the RAN device.
  • the control center After the control center receives the IP address acquisition request from the provincial UPF network element, it indicates that the service is a universally connected service. It can select the service device with the best service quality according to the provincial UPF network element, and then pass the provincial UPF network element, local The UPF network element at the city/district/county level and the RAN device send an IP address response carrying IP1 to the terminal device. IP1 is the IP address of the selected service device.
  • the state UPF network element After the regional UPF network element receives the IP address response from the control center, it can send the IP address response to the prefecture/district/county UPF network element. After receiving the IP address response from the UPF network element, the city/district/county UPF network element may send an IP address response to the RAN device. After receiving the IP address response from the UPF network element at the prefecture/district/county level, the RAN device can send an IP address response to the terminal device.
  • the service equipment with the best service quality you can select the service equipment with the closest distance to the terminal equipment, or select the service equipment with a short distance from the terminal equipment and a small load. It can also be based on the distance from the terminal equipment and other services. Factors are selected.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device, the UPF network element at the prefecture/district/county level, and the provincial UPF network element.
  • the terminal device After the terminal device receives the IP address response from the RAN device, it can get IP1 according to the IP address response, and then can initiate data to the service device corresponding to IP1 through the RAN device, city/district/county UPF network element, and provincial UPF network element Get the request. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the provincial UPF network element, the prefecture/district/county UPF network element, and the RAN device.
  • the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the gateway.
  • the gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the gateway.
  • the control center After the control center receives the replaced IP address acquisition request from the gateway, it can select the service device with the best service quality according to the gateway, and then return an IP address response carrying IP1 to the gateway.
  • the service device with the best service quality you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. IP1 in step 1603 and step 1607 can be the same IP address or different IP addresses.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP2, and IP1 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level and the RAN device.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and replace the IP1 carried in the IP address response with IP4, and then pass the UPF network element, city/district and county level UPF The network element and the RAN device send the replaced IP address response to the terminal device. In addition, the correspondence between IP1 and IP4 can also be recorded.
  • the terminal device sends a data acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element at the prefecture/district/county level through the RAN device.
  • the source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the UPF network element at the prefecture/district/county level determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the destination IP address from IP4 to IP1, and the source port from the terminal device port to the gateway port, and sends the replaced data to the service device corresponding to IP1 Get the request.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP2, the source IP address from IP1 to IP4, and the destination port from the gateway to the port of the terminal device through the UPF network element of the city/district and county level and the RAN
  • the device sends the replaced data response to the terminal device.
  • step 1601 to step 1604 are the procedures of the universal connection service.
  • step 1601 to step 1604 are the procedures of the universal connection service.
  • step 1605-step 1613 are the dedicated connection business processes, which can ensure that the user of the terminal device cannot see the IP address of the Internet service provider/CDN service provider, and it can also ensure that the Internet service provider/CDN service provider cannot see the terminal The IP address of the device.
  • FIG. 17 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 17, the communication method may include the following steps.
  • a service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection.
  • the IP address of the service of the dedicated connection of the service device may be IP4, and the IP address of the service of the general connection of the service device may be IP1. Therefore, the service can be identified as a dedicated connection service through the IP address of the service device.
  • the operator can automatically or manually deliver the IP addresses of all service devices for dedicated connection services to the UPF network element.
  • the first indication information may be the domain name of the service
  • the second indication information may be IP4, that is, the IP address of the service device where the service is located.
  • the IP address of the terminal device is IP2, the IP address of the gateway is IP3, and the IP address of the control center is IP5.
  • the terminal device sends an IP address acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
  • step 1701 is the same as step 1601.
  • step 1601 please refer to step 1601, which will not be repeated here.
  • the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the control center through the provincial UPF network element.
  • step 1702 is the same as step 1602.
  • step 1602 which will not be repeated here.
  • the control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element, the prefecture/district/county UPF network element, and the RAN device.
  • step 1704 is the same as step 1604.
  • the control center selects the service device, it selects the service device deployed with the universal connection service, that is, it selects from the service device corresponding to the IP address of the service deployed with the universal connection, that is, it selects from the service equipment deployed with the universal connection
  • the service device corresponding to the service IP address of the service device includes the service device that needs to obtain the service data selected, so as to ensure that the selected service device is deployed with the service data to be obtained.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device, the UPF network element at the prefecture/district/county level, and the provincial UPF network element.
  • step 1704 is the same as step 1604.
  • step 1604 please refer to step 1604, which will not be repeated here.
  • the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the gateway.
  • step 1705 is the same as step 1605.
  • step 1605 please refer to step 1605, which will not be repeated here.
  • the gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP4 to the gateway.
  • the control center After the control center receives the replaced IP address acquisition request from the gateway, it indicates that the service is a dedicated connection service.
  • the service device with the best service quality can be selected according to the gateway, and then the IP address response carrying IP4 is returned to the gateway.
  • the control center selects the service equipment, it selects the service equipment with the dedicated connection service, that is, it selects from the service equipment corresponding to the IP address of the service where the dedicated connection is deployed, that is, from the service where the dedicated connection is deployed.
  • the service device corresponding to the IP address of the selected service device includes the service device that needs to obtain the service data, so as to ensure that the selected service device is deployed with the service data to be obtained.
  • the dedicated connection service and the general connection service can be deployed on one service device or on different service devices.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP2, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level and the RAN device.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and then send the replaced IP address to the terminal device through the UPF network element of the city/district and county level and the RAN device response.
  • the terminal device sends a data acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element at the prefecture/district/county level through the RAN device.
  • the source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the UPF network element at the prefecture/district/county level determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP2, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data to the terminal device through the UPF network element of the city/district and county level and the RAN device response.
  • step 1701 to step 1704 are the procedures of the universal connection service.
  • step 1701, step 1705-step 1713 are the processes of dedicated connection services.
  • FIG. 18 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 18, the communication method may include the following steps.
  • IP4 IP4
  • IP2 IP2
  • IP2 IP2
  • IP2 IP2
  • the first indication information and the second indication information are IP4.
  • the IP address of the service device where the business is located is IP1.
  • the IP address of the gateway is IP3.
  • the IP address of the control center is IP5.
  • the terminal device sends an IP address acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
  • the RAN device may send an IP address obtaining request to the UPF network element at the prefecture/district/county level.
  • the source IP address of the IP address acquisition request is IP2
  • the destination IP address of the IP address acquisition request is IP5.
  • the terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the UPF network element at the prefecture/district/county level through the tunnel protocol.
  • the UPF network element at the prefecture/district/county level sends the IP address acquisition request to the control center through the provincial UPF network element.
  • the UPF network element at the city/district/county level After the UPF network element at the city/district/county level receives the IP address acquisition request from the RAN device, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request. In the case where the source IP address is IP2, it indicates that the service is a universal connection service, and the UPF network element at the prefecture/district/county level can send an IP address acquisition request to the control center through the provincial UPF network element.
  • the control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element, the prefecture/district/county UPF network element, and the RAN device.
  • step 1803 is similar to step 1603.
  • step 1603 please refer to step 1603, which will not be repeated here.
  • the terminal device obtains service data from the service device corresponding to IP1 through the RAN device, the UPF network element at the prefecture/district/county level, and the provincial UPF network element.
  • step 1804 is the same as step 1604.
  • step 1604 please refer to step 1604, which will not be repeated here.
  • the terminal device sends an IP address acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
  • the RAN device can send an IP address obtaining request to the UPF network element at the prefecture/district/county level.
  • the source IP address of the IP address acquisition request is IP4, and the destination IP address of the IP address acquisition request is IP5.
  • the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the gateway.
  • the gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
  • the control center sends an IP address response carrying IP1 to the gateway.
  • step 1808 is the same as step 1507.
  • step 1507 which will not be repeated here.
  • IP1 in step 1803 and step 1808 may be the same IP address or different IP addresses.
  • the gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level and the RAN device.
  • the gateway After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then send it to the terminal through the city/district/county UPF network element, provincial UPF network element, and RAN equipment The device sends a response with the replaced IP address.
  • the terminal device sends a data acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
  • the terminal device After the terminal device receives the replaced IP address response, it can obtain IP1 according to the replaced IP address response. After that, a data acquisition request can be sent to the provincial UPF network element through the RAN device.
  • the source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
  • the UPF network element at the prefecture/district/county level determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
  • the gateway replaces the source IP address of the data acquisition request from IP4 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
  • the service device sends a data response to the gateway.
  • the gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data to the terminal device through the UPF network element and RAN device at the city/district/county level response.
  • step 1801 to step 1804 are the flow of the universal connection service.
  • Steps 1805-step 1814 are the processes of dedicated connection services.
  • the gateway after the gateway receives the IP address acquisition request, it can first determine whether the service is a designated service, that is, whether the service is a service allowed by the gateway. When it is determined that the business is a designated business, the subsequent steps are executed.
  • the gateway after the gateway receives the data acquisition request, it can first determine whether the business corresponding to the data acquisition request and the business corresponding to the previously received IP address acquisition request are the same business, and if it is determined to be the same business, it can execute Next steps.
  • FIG. 19 is a schematic structural diagram of a communication device disclosed in an embodiment of the present invention. As shown in FIG. 19, the communication device may include:
  • the receiving unit 1901 is configured to receive an information acquisition request from a terminal device, where the information acquisition request carries indication information for indicating whether the service is a dedicated connection service;
  • the sending unit 1902 is configured to send an information acquisition request to the gateway when the indication information indicates that the service is a dedicated connection service, and the information acquisition request is used to obtain information corresponding to the service;
  • the receiving unit 1901 is further configured to receive information corresponding to the service from the gateway;
  • the sending unit 1902 is also used to send information corresponding to the service to the terminal device.
  • the receiving unit 1901 receives an information acquisition request from a terminal device, and the information acquisition request carries indication information for indicating whether the service is a dedicated connection service, including:
  • IP address acquisition request carries first indication information for indicating whether the service is a dedicated connection service
  • the sending unit 1902 sends an information acquisition request to the gateway.
  • the information acquisition request is used to acquire information corresponding to the service, including:
  • the gateway When the first indication information indicates that the service is a dedicated connection service, send an IP address acquisition request to the gateway, and the IP address acquisition request is used to acquire the IP address corresponding to the service device where the service is located;
  • the information corresponding to the service received by the receiving unit 1901 from the gateway includes:
  • the sending unit 1902 sending information corresponding to the service to the terminal device includes:
  • the receiving unit 1901 receives an information acquisition request from a terminal device, and the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service further includes:
  • the sending unit 1902 sends an information acquisition request to the gateway.
  • the information acquisition request for acquiring information corresponding to the service further includes:
  • the gateway When the second indication information indicates that the service is a dedicated connection service, sending a data acquisition request to the gateway, where the data acquisition request is used to obtain data corresponding to the service from the service device corresponding to the IP address;
  • the receiving unit 1901 receiving information corresponding to the service from the gateway further includes:
  • the sending unit 1902 sending information corresponding to the service to the terminal device further includes:
  • the first indication information is the domain name of the service
  • the first indication information used to indicate that the service is a dedicated connection service includes:
  • the domain name of this business is the designated domain name.
  • the second indication information is the destination IP address of the data acquisition request, and the second indication information is used to indicate that the service is a dedicated connection service including:
  • the destination IP address of the data acquisition request is the designated IP address.
  • the first indication information is the source IP address of the IP address acquisition request
  • the first indication information used to indicate that the service is a dedicated connection service includes:
  • the source IP address of the IP address acquisition request is the specified IP address.
  • the second indication information is the source IP address of the data acquisition request, and the second indication information is used to indicate that the service is a dedicated connection service including:
  • the source IP address of the data acquisition request is the designated IP address.
  • the IP address acquisition request is a DNS request or an HTTP DNS request.
  • the communication device may further include:
  • the determining unit 1903 is configured to determine that the IP address acquisition request is an HTTP DNS request when the destination IP address of the IP address acquisition request is a set IP address.
  • receiving unit 1901 can be obtained directly by referring to the relevant description of the UPF network element or BRAS in the foregoing method embodiment, and will not be repeated here.
  • FIG. 20 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention. As shown in FIG. 20, the communication device may include:
  • the receiving unit 2001 is configured to receive an information acquisition request from the control device, and the service corresponding to the information acquisition request is a dedicated connection service;
  • the obtaining unit 2001 is configured to obtain information corresponding to the service according to the information obtaining request when the service is a designated service;
  • the sending unit 2003 is configured to send information corresponding to the service to the control device.
  • the receiving unit 2001 is specifically configured to receive an IP address acquisition request from the control device, and the IP address acquisition request carries an identifier of the service;
  • the acquiring unit 2002 is specifically used for:
  • the first IP address response carries a first IP address
  • the first IP address is the IP address of the service device where the service is determined by the control center according to the gateway
  • the sending unit 2003 is specifically configured to send a second IP address response to the control device, where the second IP address response carries the first IP address or the IP address corresponding to the first IP address.
  • the receiving unit 2001 is specifically further configured to receive a data acquisition request from the control device;
  • the acquiring unit 2002 is also specifically used for:
  • the sending unit 2003 is specifically also used to send a data response to the control device.
  • the obtaining unit 2002 sending an IP address obtaining request to the control center includes:
  • the sending unit 2003 sending the second IP address response to the control device includes:
  • the communication device may further include:
  • the recording unit 2004 is used to record the correspondence between the identifier and the second IP address and the first IP address or the IP address corresponding to the first IP address;
  • the obtaining unit 2003 sending the data obtaining request to the service device corresponding to the first IP address includes:
  • the first port is the port of the terminal device, and the second port is The port of the gateway;
  • the sending unit 2003 sends a data response to the control device including:
  • the sending unit 2003 replaces the destination IP address of the first IP address response from the third IP address with the second IP address, and obtaining the second IP address response includes:
  • the fourth IP address is used by the gateway.
  • the obtaining unit 2002 replacing the source IP address of the data obtaining request from the second IP address to the third IP address, and replacing the source port of the data obtaining request from the first port to the second port includes:
  • the sending unit 2003 replacing the destination IP address of the data response from the third IP address to the second IP address, and replacing the destination port of the data response from the second port to the first port includes:
  • the communication device may further include a charging unit 2005, wherein:
  • the billing unit 2005 is used to charge the broadband used by the terminal device and the service device according to the minimum limit flow when the broadband traffic used between the terminal device and the service device is less than the minimum limit flow; the billing unit 2005 also When the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, the broadband used by the terminal device and the service device is billed according to the broadband usage traffic between the terminal device and the service device; or
  • the billing unit 2005 is used to charge the broadband used by the terminal device and the service device according to the minimum bandwidth when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum bandwidth, and the minimum bandwidth is the minimum bandwidth
  • the bandwidth corresponding to the traffic; the billing unit 2005 is also used for when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum limit bandwidth, according to the bandwidth of the broadband used between the terminal device and the service device, Charge the broadband used by terminal equipment and service equipment.
  • the first IP address acquisition request is a DNS request or an HTTP DNS request.
  • FIG. 21 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention. As shown in FIG. 21, the communication device may include:
  • the receiving unit 2101 is configured to receive an IP address obtaining request from the control device, and the service corresponding to the IP address obtaining request is a dedicated connection service;
  • the replacement unit 2102 is configured to replace the source IP address of the IP address acquisition request from the second IP address to the third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway;
  • the sending unit 2103 is configured to send a replacement IP address acquisition request to the control center;
  • the receiving unit 2101 is further configured to receive a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is the IP address of the service device where the service is determined by the control center according to the gateway;
  • the replacement unit 2102 is further configured to replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with the fourth IP address to obtain the second IP address response, 4.
  • the IP address is the IP address allocated by the gateway to identify whether the service is a dedicated connection service;
  • the sending unit 2103 is further configured to send a second IP address response to the control device.
  • the IP address acquisition request carries a service identifier
  • the communication device may further include:
  • the recording unit 2104 is configured to record the correspondence between the identifier and the second IP address and the fourth IP address;
  • the receiving unit 2101 is also configured to receive a data acquisition request from the control device;
  • the determining unit 2105 is configured to determine that the business corresponding to the data acquisition request and the IP address acquisition request is the same business according to the correspondence and the source IP address and the destination IP address of the data acquisition request;
  • the replacement unit 2102 is further configured to replace the source IP address of the data acquisition request from the second IP address with the third IP address, and replace the source port of the data acquisition request from the first port to the second port, and change the purpose of the data acquisition request
  • the IP address is replaced by the fourth IP address with the first IP address, the first port is the port of the terminal device, and the second port is the port of the gateway;
  • the sending unit 2103 is further configured to send the replaced data acquisition request to the service device corresponding to the first IP address;
  • the receiving unit 2101 is also configured to receive a data response from the service device, and the data response carries data of the service;
  • the replacement unit 2102 is also used to replace the source IP address of the data response from the first IP address to the fourth IP address, replace the destination IP address of the data response from the third IP address to the second IP address, and change the destination of the data response
  • the port is replaced with the first port from the second port;
  • the sending unit 2103 is also used to send the replaced data response to the control device.
  • the communication device may further include a charging unit 2106, wherein:
  • the billing unit 2106 is configured to charge the broadband used by the terminal device and the service device according to the minimum limit flow when the broadband traffic used between the terminal device and the service device is less than the minimum limit flow; the billing unit 2106 also When the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, the broadband used by the terminal device and the service device is billed according to the broadband usage traffic between the terminal device and the service device; or
  • the billing unit 2106 is used to charge the broadband used by the terminal device and the service device according to the minimum bandwidth when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum bandwidth, and the minimum bandwidth is the minimum bandwidth
  • the bandwidth corresponding to the traffic the billing unit 2106 is also used for the terminal device and the service device when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum limit bandwidth, according to the bandwidth of the broadband used between the terminal device and the service device, to the terminal
  • the broadband used by the equipment and service equipment is billed.
  • receiving unit 2101 replacing unit 2102, sending unit 2103, recording unit 2104, determining unit 2105, and charging unit 2106 can be obtained directly by referring to the relevant description of the gateway in the foregoing method embodiment, and will not be repeated here.
  • FIG. 22 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention.
  • the communication device may include a processor 2201, a memory 2202, an input interface 2203, an output interface 2204, and a bus 2205.
  • the memory 2202 may exist independently, and may be connected to the processor 2201 through the bus 2205.
  • the memory 2202 may also be integrated with the processor 2201. Among them, the bus 2205 is used to realize the connection between these components.
  • the communication device may be a UPF network element or a module (for example, a chip) in a UPF network element, the communication device may be a BRAS or a module (for example, a chip) in the BRAS, and a computer stored in the memory 2202
  • the processor 2201 is used to perform the operations performed by the determining unit 1903 in the above-mentioned embodiment
  • the input interface 2203 is used to perform the operations performed by the receiving unit 1901 in the above-mentioned embodiment
  • the output interface 2204 is used to perform the above-mentioned embodiment The operation performed by the sending unit 1902.
  • the foregoing UPF network element or modules in the UPF network element may also be used to execute various methods executed by the UPF network element in the foregoing method embodiments, and details are not described herein again.
  • the foregoing BRAS or the modules in the BRAS may also be used to execute various methods executed by the BRAS in the foregoing method embodiments, and details are not described herein again.
  • the communication device may be a GW or a module (for example, a chip) in the GW.
  • the processor 2201 is used to execute the acquiring unit 2002, the recording unit 2004, and the The charging unit 2005 performs operations in the foregoing embodiment
  • the input interface 2203 is used to perform the operations performed by the receiving unit 2001 in the foregoing embodiment
  • the output interface 2204 is used to perform the operations performed by the sending unit 2003 in the foregoing embodiment.
  • the foregoing GW or the modules in the GW may also be used to execute various methods executed by the GW in the foregoing method embodiments, and details are not described herein again.
  • the communication device may be a GW or a module (for example, a chip) in the GW.
  • the processor 2201 is configured to execute the replacement unit 2102 and the recording unit 2104 to determine The operation performed by the unit 2105 and the charging unit 2106 in the foregoing embodiment, the input interface 2203 is used to perform the operation performed by the receiving unit 2101 in the foregoing embodiment, and the output interface 2204 is used to perform the operation performed by the sending unit 2103 in the foregoing embodiment.
  • the foregoing GW or the modules in the GW may also be used to execute various methods executed by the GW in the foregoing method embodiments, and details are not described herein again.
  • FIG. 23 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention.
  • the communication device may include an input interface 2301, a logic circuit 2302, and an output interface 2303.
  • the input interface 2301 and the output interface 2303 are connected through a logic circuit 2302.
  • the input interface 2301 is used to receive information from other communication devices, and the output interface 2303 is used to output, schedule, or send information to other communication devices.
  • the logic circuit 2302 is used to perform operations other than the operations of the input interface 2301 and the output interface 2303, for example, to implement the functions implemented by the processor 2201 in the foregoing embodiment.
  • the communication device may be a UPF network element or a module in a UPF network element, a BRAS or a module in a BRAS, or a GW or a module in a GW.
  • the input interface 2301, the logic circuit 2302, and the output interface 2303 can be obtained directly by referring to the relevant description of the UPF network element, BRAS or GW in the above method embodiment, and will not be repeated here.
  • FIG. 24 is a schematic structural diagram of a GW disclosed in an embodiment of the present invention.
  • the GW may include a gateway processing module 2401, a service IP mapping management 2402, a terminal connection management 2403, a service gateway IP pool 2404, and a terminal gateway IP pool 2405.
  • the GW is responsible for the identification, establishment, and maintenance of dedicated connection services.
  • the gateway processing module 2401 includes a DNS proxy, an HTTP DNS proxy, and a connection proxy. among them:
  • the DNS proxy is responsible for proxying the DNS interaction process and replacing the IP address in the DNS protocol as needed;
  • the HTTP DNS proxy is responsible for proxying the HTTP DNS interaction process and replacing the IP address in the HTTP DNS protocol as needed;
  • the connection agent is responsible for replacing the IP address or port in the IP message of the non-DNS protocol according to the mapping relationship in the service IP mapping management 2402 and the terminal connection management 2403 according to the rules.
  • the service IP mapping management 2402 is used to dynamically/statically establish and manage the mapping relationship between the IP address of the specific Internet service equipment and the IP address of the service GW.
  • the terminal connection management 2403 is used to dynamically establish and manage the connection of the dedicated connection service.
  • the service gateway IP pool 2404 is used to provide mapped IP addresses of Internet service equipment. When the terminal device accesses the service through the GW, the destination IP address is the IP address in the service gateway IP pool 2404 instead of the IP address of the real Internet service device.
  • the service gateway IP address pool 2404 can use the private network address or the public network address of the operator's intranet.
  • the terminal gateway IP pool 2405 is used to provide an IP address for the proxy terminal device to initiate a request to the proxy service device.
  • the source IP address is the IP address in the terminal gateway IP pool 2405, rather than the real terminal device's IP address.
  • the IP address in the terminal gateway IP pool 2405 is a public network address.
  • the GW does not need to provide service gateway IP pool and service IP mapping management Features.
  • the logical functional entities connected to the GW are given here, and these functional entities can be implemented on different boards and logical network elements during specific implementation.
  • the embodiment of the present invention also discloses a computer-readable storage medium with an instruction stored thereon, and the method in the foregoing method embodiment is executed when the instruction is executed.
  • the embodiment of the present invention also discloses a computer program product containing instructions, which execute the method in the foregoing method embodiment when the instruction is executed.
  • the embodiment of the present invention also discloses a communication system.
  • the communication system includes a UPF network element and a GW, or a BRAS and a GW.
  • a UPF network element and a GW
  • BRAS and a GW.
  • a GW for a specific description, reference may be made to the relevant description in the above method embodiment.

Landscapes

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

Abstract

Disclosed are a communication method and device. The method comprises: receiving an information acquisition request from a terminal device, wherein the information acquisition request carries indication information for indicating whether a service is a service of a dedicated connection; when the indication information indicates that the service is the service of a dedicated connection, sending the information acquisition request to a gateway, wherein the information acquisition request is used for acquiring information corresponding to the service; receiving the information from the gateway; and sending the information to the terminal device. By means of the embodiments of the present invention, the capability of an operator to control an Internet service can be improved, so that differentiated pricing can be carried out.

Description

一种通信方法及设备Communication method and equipment
本申请要求于2019年11月29日提交中国专利局、申请号为201911207427.8、申请名称为“一种通信方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on November 29, 2019, the application number is 201911207427.8, and the application name is "a communication method and equipment", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种通信方法及设备。The embodiment of the present invention relates to the field of communication technology, and in particular to a communication method and device.
背景技术Background technique
当前运营商为所有的终端设备提供了无差别的基于网络协议(internet protocol,IP)可达的网络。因此,终端设备在访问互联网服务时,终端设备能够得到所有服务的IP地址,互联网服务/内容分发网络(content delivery network,CDN)也能够得到访问的终端设备的IP地址。可见,在终端设备访问互联网服务时,运营商在提供网络路由可达能力后,对业务再无控制点,以致降低了运营商对业务的控制能力。Currently, operators provide undifferentiated networks that are reachable based on Internet Protocol (IP) for all terminal devices. Therefore, when a terminal device accesses Internet services, the terminal device can obtain the IP address of all services, and the Internet service/content delivery network (CDN) can also obtain the IP address of the accessed terminal device. It can be seen that when a terminal device accesses Internet services, after the operator provides the network route reachability, there is no more control point over the service, which reduces the operator's ability to control the service.
发明内容Summary of the invention
本发明实施例公开了一种通信方法及设备,用于提高运营商对互联网业务的控制能力。The embodiment of the present invention discloses a communication method and equipment, which are used to improve the control ability of the operator over the Internet service.
第一方面公开一种通信方法,接收来自终端设备的携带有用于指示业务是否为专用连接的业务的指示信息的信息获取请求,在指示信息指示该业务为专用连接的业务的情况下,向网关发送用于获取该业务对应的信息的信息获取请求,接收来自网关的该信息,向终端设备发送该信息。在业务为专用连接的业务的情况下,才允许业务通过网关进行传输,可以提高运营商对互联网业务的控制能力。此外,在业务为专用连接的业务的情况下,允许业务通过网关进行传输,以便网关可以对专用连接的业务进行计费。The first aspect discloses a communication method that receives an information acquisition request from a terminal device that carries indication information for indicating whether the service is a dedicated connection service, and when the indication information indicates that the service is a dedicated connection service, the gateway Send an information acquisition request for acquiring information corresponding to the service, receive the information from the gateway, and send the information to the terminal device. Only when the service is a dedicated connection service, the service is allowed to be transmitted through the gateway, which can improve the operator's ability to control Internet services. In addition, when the service is a dedicated connection service, the service is allowed to be transmitted through the gateway so that the gateway can charge for the dedicated connection service.
作为一种可能的实施方式,接收来自终端设备的信息获取请求,信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息,可以为接收来自终端设备的IP地址获取请求,IP地址获取请求携带有用于指示业务是否为专用连接的业务的第一指示信息。在指示信息指示该业务为专用连接的业务的情况下,向网关发送信息获取请求,信息获取请求用于获取业务对应的信息,可以为在第一指示信息指示该业务为专用连接的业务的情况下,向网关发送IP地址获取请求,IP地址获取请求用于获取该业务所在服务设备对应的IP地址。接收来自网关的该业务对应的信息,可以为接收来自网关的该业务所在服务设备对应的IP地址。向终端设备发送该业务对应的信息,可以为向终端设备发送该业务所在服务设备对应的IP地址。在业务为专用连接的业务的情况下,可以通过网关获取业务所在服务设备对应的IP地址,以便可以通过该IP地址获取业务的数据。As a possible implementation manner, receiving an information acquisition request from a terminal device, the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service, may be receiving an IP address acquisition request from the terminal device, the IP address acquisition request The request carries first indication information used to indicate whether the service is a dedicated connection service. When the instruction information indicates that the service is a dedicated connection service, send an information acquisition request to the gateway. The information acquisition request is used to obtain information corresponding to the service. It can be a situation where the first indication information indicates that the service is a dedicated connection service. Next, send an IP address acquisition request to the gateway, and the IP address acquisition request is used to acquire the IP address corresponding to the service device where the service is located. Receiving the information corresponding to the service from the gateway may be the IP address corresponding to the service device where the service is received from the gateway. Sending the information corresponding to the service to the terminal device may be sending to the terminal device the IP address corresponding to the service device where the service is located. When the service is a dedicated connection service, the IP address corresponding to the service device where the service is located can be obtained through the gateway, so that the data of the service can be obtained through the IP address.
作为一种可能的实施方式,接收来自终端设备的信息获取请求,信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息,还可以为接收来自终端设备的数据获取请求,数据获取请求携带有用于指示该业务是否为专用连接的业务的第二指示信息。在指 示信息指示该业务为专用连接的业务的情况下,向网关发送信息获取请求,信息获取请求用于获取该业务对应的信息,还可以为在第二指示信息指示该业务为专用连接的业务的情况下,向网关发送数据获取请求,数据获取请求用于从该IP地址对应的服务设备获取该业务对应的数据。接收来自网关的业务对应的信息,还可以为接收来自网关的该业务对应的数据。向终端设备发送该业务对应的信息,还可以为向终端设备发送该业务对应的数据。在业务为专用连接的业务的情况下,可以通过网关获取业务对应的数据,以便可以对专用连接的业务进行计费。As a possible implementation manner, receiving an information acquisition request from a terminal device, the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service, or receiving a data acquisition request from the terminal device, the data acquisition request It carries second indication information used to indicate whether the service is a dedicated connection service. When the instruction information indicates that the service is a dedicated connection service, an information acquisition request is sent to the gateway. The information acquisition request is used to obtain information corresponding to the service. It may also be a service that indicates that the service is a dedicated connection in the second indication information. In the case of sending a data acquisition request to the gateway, the data acquisition request is used to acquire the data corresponding to the service from the service device corresponding to the IP address. Receiving the information corresponding to the service from the gateway may also be receiving the data corresponding to the service from the gateway. Sending the information corresponding to the service to the terminal device may also be sending the data corresponding to the service to the terminal device. When the service is a dedicated connection service, the data corresponding to the service can be obtained through the gateway, so that the dedicated connection service can be charged.
作为一种可能的实施方式,第一指示信息可以为该业务的域名。第一指示信息用于指示该业务为专用连接的业务,可以为该业务的域名为指定域名,以便可以通过业务的域名确定业务的连接方式。As a possible implementation manner, the first indication information may be the domain name of the service. The first indication information is used to indicate that the service is a dedicated connection service, and the domain name of the service may be a designated domain name, so that the service connection mode can be determined by the domain name of the service.
作为一种可能的实施方式,第二指示信息可以为数据获取请求的目的IP地址,第二指示信息用于指示该业务为专用连接的业务,可以为数据获取请求的目的IP地址为指定IP地址,以便可以通过该业务所在服务设备对应的IP地址确定业务的连接方式。As a possible implementation manner, the second indication information may be the destination IP address of the data acquisition request, the second indication information is used to indicate that the service is a dedicated connection service, and the destination IP address of the data acquisition request may be a designated IP address , So that the service connection mode can be determined by the IP address corresponding to the service device where the service is located.
作为一种可能的实施方式,第一指示信息可以为为IP地址获取请求的源IP地址,第一指示信息用于指示该业务为专用连接的业务,可以为IP地址获取请求的源IP地址为指定IP地址,以便可以通过终端设备的IP地址确定业务的连接方式。As a possible implementation manner, the first indication information may be the source IP address of the IP address acquisition request, the first indication information is used to indicate that the service is a dedicated connection service, and the source IP address of the IP address acquisition request may be Specify the IP address so that the connection mode of the service can be determined by the IP address of the terminal device.
作为一种可能的实施方式,第二指示信息可以为为数据获取请求的源IP地址,第二指示信息用于指示该业务为专用连接的业务,可以为数据获取请求的源IP地址为指定IP地址,以便可以通过终端设备的IP地址确定业务的连接方式。As a possible implementation, the second indication information may be the source IP address of the data acquisition request, the second indication information is used to indicate that the service is a dedicated connection service, and the source IP address of the data acquisition request may be a specified IP Address so that the connection mode of the service can be determined by the IP address of the terminal device.
作为一种可能的实施方式,IP地址获取请求可以为域名系统(domain name system,DNS)请求,也可以为超文本传输协议(hyper text transfer protocol,HTTP)DNS请求。As a possible implementation manner, the IP address acquisition request may be a domain name system (domain name system, DNS) request, or a hypertext transfer protocol (hypertext transfer protocol, HTTP) DNS request.
作为一种可能的实施方式,在IP地址获取请求的目的IP地址为设定IP地址的情况下,确定IP地址获取请求为HTTP DNS请求,以便可以通过控制中心的IP地址确定IP地址获取请求的类型。As a possible implementation, when the destination IP address of the IP address acquisition request is the set IP address, the IP address acquisition request is determined to be an HTTP DNS request, so that the IP address acquisition request can be determined through the IP address of the control center Types of.
第二方面公开一种通信方法,接收来自控制设备的信息获取请求,信息获取请求对应的业务为专用连接的业务,在该业务为指定业务的情况下,根据信息获取请求获取该业务对应的信息,向控制设备发送该业务对应的信息。在业务为指定业务的情况下,才可以获取该业务对应的信息,可以限制获取的业务数量,从而可以避免负载过高。The second aspect discloses a communication method that receives an information acquisition request from a control device, the service corresponding to the information acquisition request is a dedicated connection service, and in the case that the service is a designated service, the information corresponding to the service is obtained according to the information acquisition request , To send the information corresponding to the service to the control device. Only when the business is a designated business can the information corresponding to the business be acquired, and the number of acquired businesses can be limited, thereby avoiding excessive load.
作为一种可能的实施方式,接收来自控制设备的信息获取请求,可以为接收来自控制设备的IP地址获取请求,IP地址获取请求携带有该业务的标识。在该业务为指定业务的情况下,根据信息获取请求获取该业务对应的信息,可以为在该标识对应的业务为指定业务的情况下,向控制中心发送IP地址获取请求,接收来自控制中心的第一IP地址响应,第一IP地址响应携带有第一IP地址,第一IP地址为控制中心根据网关确定的业务所在服务设备的IP地址。向控制设备发送该业务对应的信息,可以为向控制设备发送第二IP地址响应,第二IP地址响应携带有第一IP地址或第一IP地址对应的IP地址。可见,在业务为指定业务的情况下,可以从控制中心获取到业务所在服务设备的IP地址。As a possible implementation manner, receiving an information acquisition request from a control device may be receiving an IP address acquisition request from the control device, and the IP address acquisition request carries an identifier of the service. In the case that the business is a designated business, obtaining the information corresponding to the business according to the information acquisition request can be, in the case that the business corresponding to the identifier is a designated business, sending an IP address acquisition request to the control center, and receiving the information from the control center The first IP address response, the first IP address response carries the first IP address, and the first IP address is the IP address of the service device where the service is determined by the control center according to the gateway. Sending the information corresponding to the service to the control device may be sending a second IP address response to the control device, and the second IP address response carries the first IP address or the IP address corresponding to the first IP address. It can be seen that when the business is a designated business, the IP address of the service device where the business is located can be obtained from the control center.
作为一种可能的实施方式,接收来自控制设备的信息获取请求,还可以为接收来自控 制设备的数据获取请求。在该业务为指定业务的情况下,根据信息获取请求获取该业务对应的信息,还可以为在数据获取请求与IP地址获取请求对应的业务为同一业务的情况下,向第一IP地址对应的服务设备发送数据获取请求,接收来自服务设备的携带有业务的数据的数据响应。向控制设备发送业务对应的信息,还可以为向控制设备发送数据响应。可见,在业务为指定业务的情况下,可以从服务设备获取到业务的数据。As a possible implementation manner, receiving the information acquisition request from the control device may also be receiving the data acquisition request from the control device. In the case that the service is a designated service, the information corresponding to the service is obtained according to the information obtaining request, or the service corresponding to the first IP address when the data obtaining request and the service corresponding to the IP address obtaining request are the same service The service device sends a data acquisition request, and receives a data response from the service device that carries business data. Sending information corresponding to the service to the control device may also be sending a data response to the control device. It can be seen that when the business is a designated business, the data of the business can be obtained from the service device.
作为一种可能的实施方式,向控制中心发送IP地址获取请求,可以先将IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,之后向控制中心发送替换后的IP地址获取请求。向控制设备发送第二IP地址响应,可以先将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址得到第二IP地址响应,之后向控制设备发送第二IP地址响应。第二IP地址为终端设备的IP地址,第三IP地址为网关的IP地址。将IP地址获取请求发送给控制中心之前,先将IP地址获取请求的源IP地址由终端设备的IP地址替换为网关的IP地址,可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。As a possible implementation, to send an IP address acquisition request to the control center, the source IP address of the IP address acquisition request can be replaced from the second IP address to the third IP address, and then the replaced IP address is sent to the control center Get the request. To send a second IP address response to the control device, you can first replace the destination IP address of the first IP address response from the third IP address to the second IP address to obtain the second IP address response, and then send the second IP address response to the control device . The second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway. Before sending the IP address acquisition request to the control center, first replace the source IP address of the IP address acquisition request from the IP address of the terminal device with the IP address of the gateway to ensure that the Internet service provider/CDN service provider cannot see the IP address of the terminal device address.
作为一种可能的实施方式,可以记录业务的标识与第二IP地址以及第一IP地址或第一IP地址对应的IP地址之间的对应关系。在数据获取请求与IP地址获取请求对应的业务为同一业务的情况下,向第一IP地址对应的服务设备发送数据获取请求,可以先根据该对应关系以及数据获取请求的源IP地址和目的IP地址,确定数据获取请求与IP地址获取请求对应的业务为同一业务,之后将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口,最后向第一IP地址对应的服务设备发送替换后的数据获取请求,第一端口为终端设备的端口,第二端口为网关的端口。向控制设备发送数据响应,可以为先将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第一端口,之后向控制设备发送替换后的数据响应。将数据获取请求发送给控制中心之前,先将数据获取请求的源IP地址由终端设备的IP地址替换为网关的IP地址,可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。As a possible implementation manner, the correspondence between the service identifier and the second IP address and the first IP address or the IP address corresponding to the first IP address may be recorded. In the case where the business corresponding to the data acquisition request and the IP address acquisition request is the same business, the data acquisition request is sent to the service device corresponding to the first IP address, and the corresponding relationship and the source IP address and destination IP of the data acquisition request can be firstly sent Address, confirm that the business corresponding to the data acquisition request and the IP address acquisition request is the same business, then replace the source IP address of the data acquisition request from the second IP address with the third IP address, and change the source port of the data acquisition request from the first port Replace with the second port, and finally send the replaced data acquisition request to the service device corresponding to the first IP address, the first port is the port of the terminal device, and the second port is the port of the gateway. To send a data response to the control device, you can first replace the destination IP address of the data response from the third IP address to the second IP address, and replace the destination port of the data response from the second port to the first port, and then send it to the control device Data response after replacement. Before sending the data acquisition request to the control center, first replace the source IP address of the data acquisition request from the IP address of the terminal device with the IP address of the gateway to ensure that the Internet service provider/CDN service provider cannot see the IP address of the terminal device.
作为一种可能的实施方式,将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址得到第二IP地址响应,可以为将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址,将第一IP地址替换为第四IP地址得到第二IP地址响应,第四IP地址为网关分配的用于识别业务是否为专用连接的业务的IP地址。将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口,可以为将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口,将数据获取请求的目的IP地址由第四IP地址替换为第一IP地址。将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第一端口,可以为将数据响应的源IP地址由第一IP地址替换为第四IP地址,将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第一端口。将IP地址响应发送给控制设备之前,先将该业务所在服务设备的IP地址替换为网关分配的用于识别业务是否为专用连接的业务的IP地址,以及将数据响应发送给控制设备之前,先将数据响应的源IP地址由该业务所在服务设备的IP地址替换为网关分配的用于识别业务是否为专用连接的业务的IP地址,可以保证终端设备无法看到互联网服务商/CDN服务商的IP地址。As a possible implementation manner, the destination IP address of the first IP address response is replaced by the third IP address with the second IP address to obtain the second IP address response, which can be that the destination IP address of the first IP address response is changed from the first IP address to the second IP address. The third IP address is replaced with a second IP address, and the first IP address is replaced with a fourth IP address to obtain a second IP address response. The fourth IP address is an IP address allocated by the gateway to identify whether the service is a dedicated connection service. Replace the source IP address of the data acquisition request from the second IP address to the third IP address, and replace the source port of the data acquisition request from the first port to the second port, which can be the source IP address of the data acquisition request from the second The IP address is replaced with the third IP address, the source port of the data acquisition request is replaced from the first port to the second port, and the destination IP address of the data acquisition request is replaced with the first IP address from the fourth IP address. Replace the destination IP address of the data response from the third IP address to the second IP address, and replace the destination port of the data response from the second port to the first port, which can replace the source IP address of the data response with the first IP address Is the fourth IP address, the destination IP address of the data response is replaced from the third IP address to the second IP address, and the destination port of the data response is replaced from the second port to the first port. Before sending the IP address response to the control device, first replace the IP address of the service device where the service is located with the IP address assigned by the gateway to identify whether the service is a dedicated connection service, and before sending the data response to the control device, The source IP address of the data response is replaced by the IP address of the service device where the service is located with the IP address assigned by the gateway to identify whether the service is a dedicated connection service, which can ensure that the terminal device cannot see the Internet service provider/CDN service provider IP address.
作为一种可能的实施方式,在终端设备与服务设备间使用的宽带的流量小于最低限制流量的情况下,可以按照最低限制流量对终端设备和服务设备使用的宽带进行计费,在终端设备与服务设备间使用的宽带的流量大于或等于最低限制流量的情况下,可以按照终端设备与服务设备间使用宽带的使用流量,对终端设备和服务设备使用的宽带进行计费。可见,在业务为专用连接的业务的情况下,在使用流量低于最低限制流量时,是按照最低流量进行计费的,而不是按照实际使用流量进行计费的,因此,可以避免互联网服务商/CDN服务商在专用连接的业务通道中填充大量的通用连接的业务的内容。As a possible implementation manner, when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, the broadband used by the terminal device and the service device can be charged according to the minimum limit traffic, and the terminal device and the service device When the broadband traffic used between the service equipment is greater than or equal to the minimum limit traffic, the broadband used by the terminal equipment and the service equipment can be billed according to the broadband usage traffic between the terminal equipment and the service equipment. It can be seen that when the service is a dedicated connection service, when the usage flow rate is lower than the minimum limit flow rate, the billing is based on the lowest flow rate instead of the actual usage flow rate. Therefore, Internet service providers can be avoided /CDN service provider fills a large amount of general-purpose connection service content in the dedicated connection service channel.
作为一种可能的实施方式,在终端设备与服务设备间使用的宽带的带宽小于最低限制带宽的情况下,可以按照最低限制带宽对终端设备和服务设备使用的宽带进行计费,最低限制带宽为最低限制流量对应的带宽;在终端设备与服务设备间使用的宽带的带宽大于或等于最低限制带宽的情况下,可以按照终端设备与服务设备间使用宽带的使用带宽,对终端设备和服务设备使用的宽带进行计费。可见,在业务为专用连接的业务的情况下,在使用带宽低于最低限制流量对应的带宽时,是按照最低限制流量对应的带宽进行计费的,而不是按照实际使用带宽进行计费的,因此,可以避免互联网服务商/CDN服务商在专用连接的业务通道中填充大量的通用连接的业务的内容。As a possible implementation manner, when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum limit bandwidth, the broadband used by the terminal device and the service device can be charged according to the minimum limit bandwidth, and the minimum limit bandwidth is The bandwidth corresponding to the lowest limit traffic; when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the lowest limit bandwidth, the use of the bandwidth between the terminal device and the service device can be used for the terminal device and the service device The broadband is billed. It can be seen that when the service is a dedicated connection service, when the bandwidth used is lower than the bandwidth corresponding to the lowest limit flow, the billing is based on the bandwidth corresponding to the lowest limit flow, rather than the actual bandwidth used. Therefore, it is possible to prevent Internet service providers/CDN service providers from filling a large amount of general connection service content in the dedicated connection service channel.
作为一种可能的实施方式,第一IP地址获取请求可以为DNS请求,也可以为HTTP DNS请求。As a possible implementation manner, the first IP address acquisition request may be a DNS request or an HTTP DNS request.
第三方面公开一种通信方法,接收来自控制设备的IP地址获取请求,将IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,向控制中心发送替换后的IP地址获取请求,接收来自控制中心的第一IP地址响应,将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址,以及将第一IP地址替换为第四IP地址得到第二IP地址响应,向控制设备发送第二IP地址响应。IP地址获取请求对应的业务为专用连接的业务,第二IP地址为终端设备的IP地址,第三IP地址为网关的IP地址,第一IP地址响应携带第一IP地址,第一IP地址为控制中心根据网关确定的该业务所在服务设备的IP地址,第四IP地址为网关分配的用于识别业务是否为专用连接的业务的IP地址。将IP地址获取请求发送给控制中心之前,先将IP地址获取请求的源IP地址由终端设备的IP地址替换为网关的IP地址,可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。将IP地址响应发送给控制设备之前,先将该业务所在服务设备的IP地址替换为网关分配的用于识别业务是否为专用连接的业务的IP地址,可以保证终端设备无法看到互联网服务商/CDN服务商的IP地址。The third aspect discloses a communication method that receives an IP address acquisition request from a control device, replaces the source IP address of the IP address acquisition request from a second IP address with a third IP address, and sends the replaced IP address acquisition to the control center Request, receive the first IP address response from the control center, replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with the fourth IP address to get the second IP address response, sending a second IP address response to the control device. The service corresponding to the IP address acquisition request is a dedicated connection service, the second IP address is the IP address of the terminal device, the third IP address is the IP address of the gateway, the first IP address response carries the first IP address, and the first IP address is The control center determines the IP address of the service device where the service is located according to the gateway, and the fourth IP address is an IP address allocated by the gateway for identifying whether the service is a dedicated connection service. Before sending the IP address acquisition request to the control center, first replace the source IP address of the IP address acquisition request from the IP address of the terminal device with the IP address of the gateway to ensure that the Internet service provider/CDN service provider cannot see the IP address of the terminal device address. Before sending the IP address response to the control device, first replace the IP address of the service device where the service is located with the IP address assigned by the gateway to identify whether the service is a dedicated connection service, which can ensure that the terminal device cannot see the Internet service provider/ The IP address of the CDN service provider.
作为一种可能的实施方式,IP地址获取请求携带有业务的标识,可以记录该标识与第二IP地址以及第四IP地址之间的对应关系,接收来自控制设备的数据获取请求,根据对应关系以及数据获取请求的源IP地址和目的IP地址,确定数据获取请求与IP地址获取请求对应的业务为同一业务,将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口,将数据获取请求的目的IP地址由第四IP地址替换为第一IP地址,向第一IP地址对应的服务设备发送替换后的数据获取请求,接收来自服务设备的数据响应,将数据响应的源IP地址由第一IP地址替换为第四IP地址,将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第 一端口,向控制设备发送替换后的数据响应。第一端口为终端设备的端口,第二端口为网关的端口,数据响应携带有该业务的数据。将数据获取请求发送给控制中心之前,先将数据获取请求的源IP地址由终端设备的IP地址替换为网关的IP地址,可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。将数据响应发送给控制设备之前,先将数据响应的源IP地址由该业务所在服务设备的IP地址替换为网关分配的用于识别业务是否为专用连接的业务的IP地址,可以保证终端设备无法看到互联网服务商/CDN服务商的IP地址。As a possible implementation manner, the IP address acquisition request carries the identifier of the service, and the corresponding relationship between the identifier and the second IP address and the fourth IP address can be recorded, and the data acquisition request from the control device is received according to the corresponding relationship. And the source IP address and destination IP address of the data acquisition request, determine that the business corresponding to the data acquisition request and the IP address acquisition request is the same business, replace the source IP address of the data acquisition request from the second IP address with the third IP address, and change The source port of the data acquisition request is replaced from the first port to the second port, the destination IP address of the data acquisition request is replaced from the fourth IP address to the first IP address, and the replaced data is sent to the service device corresponding to the first IP address Get the request, receive the data response from the service device, replace the source IP address of the data response from the first IP address to the fourth IP address, replace the destination IP address of the data response from the third IP address to the second IP address, and change The destination port of the data response is replaced from the second port to the first port, and the replaced data response is sent to the control device. The first port is the port of the terminal device, the second port is the port of the gateway, and the data response carries the data of the service. Before sending the data acquisition request to the control center, first replace the source IP address of the data acquisition request from the IP address of the terminal device with the IP address of the gateway to ensure that the Internet service provider/CDN service provider cannot see the IP address of the terminal device. Before sending the data response to the control device, replace the source IP address of the data response from the IP address of the service device where the service is located with the IP address assigned by the gateway to identify whether the service is a dedicated connection service, which can ensure that the terminal device cannot See the IP address of the Internet service provider/CDN service provider.
作为一种可能的实施方式,在终端设备与服务设备间使用的宽带的流量小于最低限制流量的情况下,可以按照最低限制流量对终端设备和服务设备使用的宽带进行计费,在终端设备与服务设备间使用的宽带的流量大于或等于最低限制流量的情况下,可以按照终端设备与服务设备间使用宽带的使用流量,对终端设备和服务设备使用的宽带进行计费。可见,在业务为专用连接的业务的情况下,在使用流量低于最低限制流量时,是按照最低流量进行计费的,而不是按照实际使用流量进行计费的,因此,可以避免互联网服务商/CDN服务商在专用连接的业务通道中填充大量的通用连接的业务的内容。As a possible implementation manner, when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, the broadband used by the terminal device and the service device can be charged according to the minimum limit traffic, and the terminal device and the service device When the broadband traffic used between the service equipment is greater than or equal to the minimum limit traffic, the broadband used by the terminal equipment and the service equipment can be billed according to the broadband usage traffic between the terminal equipment and the service equipment. It can be seen that when the service is a dedicated connection service, when the usage flow rate is lower than the minimum limit flow rate, the billing is based on the lowest flow rate instead of the actual usage flow rate. Therefore, Internet service providers can be avoided /CDN service provider fills a large amount of general-purpose connection service content in the dedicated connection service channel.
作为一种可能的实施方式,在终端设备与服务设备间使用的宽带的带宽小于最低限制带宽的情况下,可以按照最低限制带宽对终端设备和服务设备使用的宽带进行计费,最低限制带宽为最低限制流量对应的带宽;在终端设备与服务设备间使用的宽带的带宽大于或等于最低限制带宽的情况下,可以按照终端设备与服务设备间使用宽带的使用带宽,对终端设备和服务设备使用的宽带进行计费。可见,在业务为专用连接的业务的情况下,在使用带宽低于最低限制流量对应的带宽时,是按照最低限制流量对应的带宽进行计费的,而不是按照实际使用带宽进行计费的,因此,可以避免互联网服务商/CDN服务商在专用连接的业务通道中填充大量的通用连接的业务的内容。As a possible implementation manner, when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum limit bandwidth, the broadband used by the terminal device and the service device can be charged according to the minimum limit bandwidth, and the minimum limit bandwidth is The bandwidth corresponding to the lowest limit traffic; when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the lowest limit bandwidth, the use of the bandwidth between the terminal device and the service device can be used for the terminal device and the service device The broadband is billed. It can be seen that when the service is a dedicated connection service, when the bandwidth used is lower than the bandwidth corresponding to the lowest limit flow, the billing is based on the bandwidth corresponding to the lowest limit flow, rather than the actual bandwidth used. Therefore, it is possible to prevent Internet service providers/CDN service providers from filling a large amount of general connection service content in the dedicated connection service channel.
第四方面公开一种通信装置,包括:In a fourth aspect, a communication device is disclosed, including:
接收单元,用于接收来自终端设备的信息获取请求,所述信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息;A receiving unit, configured to receive an information acquisition request from a terminal device, where the information acquisition request carries indication information for indicating whether the service is a dedicated connection service;
发送单元,用于在所述指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述信息获取请求,所述信息获取请求用于获取所述业务对应的信息;A sending unit, configured to send the information acquisition request to the gateway when the indication information indicates that the service is a dedicated connection service, where the information acquisition request is used to obtain information corresponding to the service;
所述接收单元,还用于接收来自所述网关的所述信息;The receiving unit is further configured to receive the information from the gateway;
所述发送单元,还用于向所述终端设备发送所述信息。The sending unit is further configured to send the information to the terminal device.
作为一种可能的实施方式,所述接收单元接收来自终端设备的信息获取请求,所述信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息包括:As a possible implementation manner, the receiving unit receives an information acquisition request from a terminal device, where the information acquisition request carries indication information for indicating whether the service is a dedicated connection service, including:
接收来自终端设备的IP地址获取请求,所述IP地址获取请求携带有用于指示业务是否为专用连接的业务的第一指示信息;Receiving an IP address acquisition request from a terminal device, where the IP address acquisition request carries first indication information for indicating whether the service is a dedicated connection service;
所述发送单元在所述指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述信息获取请求,所述信息获取请求用于获取所述业务对应的信息包括:When the indication information indicates that the service is a dedicated connection service, the sending unit sends the information acquisition request to the gateway, where the information acquisition request is used to acquire information corresponding to the service including:
在所述第一指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述IP地址获取请求,所述IP地址获取请求用于获取所述业务所在服务设备对应的IP地址;In a case where the first indication information indicates that the service is a dedicated connection service, sending the IP address obtaining request to a gateway, where the IP address obtaining request is used to obtain the IP address corresponding to the service device where the service is located;
所述接收单元接收来自所述网关的所述信息包括:The receiving unit receiving the information from the gateway includes:
接收来自所述网关的所述IP地址;Receiving the IP address from the gateway;
所述发送单元向所述终端设备发送所述信息包括:The sending unit sending the information to the terminal device includes:
向所述终端设备发送所述IP地址。Sending the IP address to the terminal device.
作为一种可能的实施方式,所述接收单元接收来自终端设备的信息获取请求,所述信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息还包括:As a possible implementation manner, the receiving unit receives an information acquisition request from a terminal device, where the information acquisition request carries indication information for indicating whether the service is a dedicated connection service, and further includes:
接收来自所述终端设备的数据获取请求,所述数据获取请求携带有用于指示所述业务是否为专用连接的业务的第二指示信息;Receiving a data acquisition request from the terminal device, the data acquisition request carrying second indication information for indicating whether the service is a dedicated connection service;
所述发送单元在所述指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述信息获取请求,所述信息获取请求用于获取所述业务对应的信息还包括:When the indication information indicates that the service is a dedicated connection service, the sending unit sends the information acquisition request to the gateway, where the information acquisition request is used to acquire information corresponding to the service and further includes:
在所述第二指示信息指示所述业务为专用连接的业务的情况下,向所述网关发送所述数据获取请求,所述数据获取请求用于从所述IP地址对应的服务设备获取所述业务对应的数据;In the case where the second indication information indicates that the service is a dedicated connection service, the data acquisition request is sent to the gateway, and the data acquisition request is used to obtain the data acquisition request from the service device corresponding to the IP address. Data corresponding to the business;
所述接收单元接收来自所述网关的所述信息还包括:The receiving unit receiving the information from the gateway further includes:
接收来自所述网关的所述数据;Receiving the data from the gateway;
所述发送单元向所述终端设备发送所述信息还包括:The sending unit sending the information to the terminal device further includes:
向所述终端设备发送所述数据。Sending the data to the terminal device.
作为一种可能的实施方式,所述第一指示信息为所述业务的域名,所述第一指示信息用于指示所述业务为专用连接的业务包括:As a possible implementation manner, the first indication information is the domain name of the service, and the first indication information used to indicate that the service is a dedicated connection service includes:
所述域名为指定域名。The domain name is a designated domain name.
作为一种可能的实施方式,所述第二指示信息为所述数据获取请求的目的IP地址,所述第二指示信息用于指示所述业务为专用连接的业务包括:As a possible implementation manner, the second indication information is the destination IP address of the data acquisition request, and the second indication information used to indicate that the service is a dedicated connection service includes:
所述数据获取请求的目的IP地址为指定IP地址。The destination IP address of the data acquisition request is a designated IP address.
作为一种可能的实施方式,所述第一指示信息为所述IP地址获取请求的源IP地址,所述第一指示信息用于指示所述业务为专用连接的业务包括:As a possible implementation manner, the first indication information is the source IP address of the IP address acquisition request, and the first indication information used to indicate that the service is a dedicated connection service includes:
所述IP地址获取请求的源IP地址为指定IP地址。The source IP address of the IP address acquisition request is a designated IP address.
作为一种可能的实施方式,所述第二指示信息为所述数据获取请求的源IP地址,所述第二指示信息用于指示所述业务为专用连接的业务包括:As a possible implementation manner, the second indication information is the source IP address of the data acquisition request, and the second indication information used to indicate that the service is a dedicated connection service includes:
所述数据获取请求的源IP地址为所述指定IP地址。The source IP address of the data acquisition request is the designated IP address.
作为一种可能的实施方式,所述IP地址获取请求为DNS请求或HTTP DNS请求。As a possible implementation manner, the IP address acquisition request is a DNS request or an HTTP DNS request.
作为一种可能的实施方式,所述装置还包括:As a possible implementation manner, the device further includes:
确定单元,用于在所述IP地址获取请求的目的IP地址为设定IP地址的情况下,确定所述IP地址获取请求为HTTP DNS请求。The determining unit is configured to determine that the IP address acquisition request is an HTTP DNS request when the destination IP address of the IP address acquisition request is a set IP address.
第五方面公开一种通信装置,包括:In a fifth aspect, a communication device is disclosed, including:
接收单元,用于接收来自控制设备的信息获取请求,所述信息获取请求对应的业务为专用连接的业务;The receiving unit is configured to receive an information acquisition request from the control device, and the service corresponding to the information acquisition request is a dedicated connection service;
获取单元,用于在所述业务为指定业务的情况下,根据所述信息获取请求获取所述业务对应的信息;An obtaining unit, configured to obtain information corresponding to the service according to the information obtaining request when the service is a designated service;
发送单元,用于向所述控制设备发送所述信息。The sending unit is configured to send the information to the control device.
作为一种可能的实施方式,所述接收单元,具体用于接收来自控制设备的IP地址获取请求,所述IP地址获取请求携带有所述业务的标识;As a possible implementation manner, the receiving unit is specifically configured to receive an IP address acquisition request from a control device, where the IP address acquisition request carries an identifier of the service;
所述获取单元具体用于:The acquiring unit is specifically used for:
在所述标识对应的业务为指定业务的情况下,向控制中心发送所述IP地址获取请求;In the case that the service corresponding to the identifier is a designated service, sending the IP address acquisition request to the control center;
接收来自所述控制中心的第一IP地址响应,所述第一IP地址响应携带有第一IP地址,所述第一IP地址为所述控制中心根据所述网关确定的所述业务所在服务设备的IP地址;Receive a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is the service device where the service is determined by the control center according to the gateway IP address;
所述发送单元,具体用于向所述控制设备发送第二IP地址响应,所述第二IP地址响应携带有所述第一IP地址或所述第一IP地址对应的IP地址。The sending unit is specifically configured to send a second IP address response to the control device, where the second IP address response carries the first IP address or an IP address corresponding to the first IP address.
作为一种可能的实施方式,所述接收单元,具体还用于接收来自所述控制设备的数据获取请求;As a possible implementation manner, the receiving unit is specifically further configured to receive a data acquisition request from the control device;
所述获取单元具体还用于:The acquiring unit is specifically further used for:
在所述数据获取请求与所述IP地址获取请求对应的业务为同一业务的情况下,向所述第一IP地址对应的服务设备发送所述数据获取请求;In a case where the service corresponding to the data acquisition request and the IP address acquisition request is the same service, sending the data acquisition request to the service device corresponding to the first IP address;
接收来自所述服务设备的携带有所述业务的数据的数据响应;Receiving a data response from the service device that carries the data of the service;
所述发送单元,具体还用于向所述控制设备发送所述数据响应。The sending unit is specifically further configured to send the data response to the control device.
作为一种可能的实施方式,所述获取单元向控制中心发送所述IP地址获取请求包括:As a possible implementation manner, the sending, by the obtaining unit, of the IP address obtaining request to the control center includes:
将所述IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,所述第二IP地址为终端设备的IP地址,所述第三IP地址为网关的IP地址;Replacing the source IP address of the IP address acquisition request with a second IP address with a third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway;
向控制中心发送替换后的IP地址获取请求;Send a replacement IP address acquisition request to the control center;
所述发送单元向所述控制设备发送第二IP地址响应包括:The sending unit sending the second IP address response to the control device includes:
将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,得到第二IP地址响应;Replacing the destination IP address of the first IP address response from the third IP address with the second IP address to obtain a second IP address response;
向所述控制设备发送所述第二IP地址响应。Sending the second IP address response to the control device.
作为一种可能的实施方式,所述装置还包括:As a possible implementation manner, the device further includes:
记录单元,用于记录所述标识与所述第二IP地址以及所述第一IP地址或所述第一IP地址对应的IP地址之间的对应关系;A recording unit, configured to record the correspondence between the identifier and the second IP address and the first IP address or the IP address corresponding to the first IP address;
所述获取单元在所述数据获取请求与所述IP地址获取请求对应的业务为同一业务的情况下,向所述第一IP地址对应的服务设备发送所述数据获取请求包括:When the service corresponding to the data obtaining request and the IP address obtaining request are the same service, the obtaining unit sending the data obtaining request to the service device corresponding to the first IP address includes:
根据所述对应关系以及所述数据获取请求的源IP地址和目的IP地址,确定所述数据获取请求与所述IP地址获取请求对应的业务为同一业务;Determining that the service corresponding to the data obtaining request and the IP address obtaining request is the same service according to the corresponding relationship and the source IP address and the destination IP address of the data obtaining request;
将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口,所述第一端口为所述终端设备的端口,所述第二端口为所述网关的端口;Replace the source IP address of the data acquisition request from the second IP address with the third IP address, replace the source port of the data acquisition request from the first port with the second port, and the first port Is the port of the terminal device, and the second port is the port of the gateway;
向所述第一IP地址对应的服务设备发送替换后的数据获取请求;Sending a replacement data acquisition request to the service device corresponding to the first IP address;
所述发送单元向所述控制设备发送所述数据响应包括:The sending unit sending the data response to the control device includes:
将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口;Replacing the destination IP address of the data response from the third IP address to the second IP address, and replacing the destination port of the data response from the second port to the first port;
向所述控制设备发送替换后的数据响应。Send the replaced data response to the control device.
作为一种可能的实施方式,所述发送单元将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,得到第二IP地址响应包括:As a possible implementation manner, the sending unit replacing the destination IP address of the first IP address response from the third IP address to the second IP address, and obtaining the second IP address response includes:
将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述第一IP地址替换为第四IP地址,得到第二IP地址响应,所述第四IP地址为所述网关分配的用于识别业务是否为专用连接的业务的IP地址;Replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with the fourth IP address to obtain the second IP address response, so The fourth IP address is an IP address allocated by the gateway to identify whether the service is a dedicated connection service;
所述获取单元将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口包括:The obtaining unit replacing the source IP address of the data obtaining request from the second IP address to the third IP address, and replacing the source port of the data obtaining request from the first port to the second port includes:
将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口,将所述数据获取请求的目的IP地址由所述第四IP地址替换为所述第一IP地址;Replace the source IP address of the data acquisition request from the second IP address with the third IP address, replace the source port of the data acquisition request from the first port with the second port, and acquire the data The requested destination IP address is replaced by the fourth IP address with the first IP address;
所述发送单元将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口包括:The sending unit replaces the destination IP address of the data response from the third IP address to the second IP address, and replaces the destination port of the data response from the second port to the first port include:
将所述数据响应的源IP地址由所述第一IP地址替换为所述第四IP地址,将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口。Replacing the source IP address of the data response from the first IP address to the fourth IP address, and replacing the destination IP address of the data response from the third IP address to the second IP address, The destination port of the data response is replaced by the second port with the first port.
作为一种可能的实施方式,所述装置还包括:As a possible implementation manner, the device further includes:
第一计费单元,用于在所述终端设备与所述服务设备间使用的宽带的流量小于最低限制流量的情况下,按照所述最低限制流量对所述终端设备和所述服务设备使用的宽带进行计费;The first billing unit is configured to, when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, use the terminal device and the service device according to the minimum limit traffic. Broadband billing;
所述第一计费单元,还用于在所述终端设备与所述服务设备间使用的宽带的流量大于或等于所述最低限制流量的情况下,按照所述终端设备与所述服务设备间使用宽带的使用流量,对所述终端设备和所述服务设备使用的宽带进行计费。The first billing unit is further configured to: when the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, according to the difference between the terminal device and the service device The broadband usage traffic is billed for the broadband used by the terminal equipment and the service equipment.
作为一种可能的实施方式,所述装置还包括:As a possible implementation manner, the device further includes:
第二计费单元,用于在所述终端设备与所述服务设备间使用的宽带的带宽小于最低限制带宽的情况下,按照所述最低限制带宽对所述终端设备和所述服务设备使用的宽带进行计费,所述最低限制带宽为最低限制流量对应的带宽;The second billing unit is configured to, when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum limit bandwidth, use the terminal device and the service device according to the minimum limit bandwidth. Broadband is billed, and the minimum restricted bandwidth is the bandwidth corresponding to the minimum restricted traffic;
所述第二计费单元,还用于在所述终端设备与所述服务设备间使用的宽带的带宽大于或等于所述最低限制带宽的情况下,按照所述终端设备与所述服务设备间使用宽带的使用带宽,对所述终端设备和所述服务设备使用的宽带进行计费。The second charging unit is further configured to: in the case that the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum bandwidth, according to the difference between the terminal device and the service device Using the bandwidth used by the broadband, billing is performed on the broadband used by the terminal device and the service device.
作为一种可能的实施方式,所述第一IP地址获取请求为DNS请求或HTTP DNS请求。As a possible implementation manner, the first IP address acquisition request is a DNS request or an HTTP DNS request.
第六方面公开一种通信装置,包括:In a sixth aspect, a communication device is disclosed, including:
接收单元,用于接收来自控制设备的IP地址获取请求,所述IP地址获取请求对应的业务为专用连接的业务;The receiving unit is configured to receive an IP address obtaining request from the control device, and the service corresponding to the IP address obtaining request is a dedicated connection service;
替换单元,用于将所述IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,所述第二IP地址为终端设备的IP地址,所述第三IP地址为网关的IP地址;The replacement unit is configured to replace the source IP address of the IP address acquisition request from a second IP address to a third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the gateway's IP address;
发送单元,用于向控制中心发送替换后的IP地址获取请求;The sending unit is used to send a replacement IP address acquisition request to the control center;
所述接收单元,还用于接收来自所述控制中心的第一IP地址响应,所述第一IP地址响应携带第一IP地址,所述第一IP地址为所述控制中心根据所述网关确定的所述业务所在服务设备的IP地址;The receiving unit is further configured to receive a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is determined by the control center according to the gateway The IP address of the service device where the business is located;
所述替换单元,还用于将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,以及将所述第一IP地址替换为第四IP地址,得到第二IP地址响应,所述第四IP地址为所述网关分配的用于识别业务是否为专用连接的业务的IP地址;The replacement unit is further configured to replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with a fourth IP address To obtain a second IP address response, where the fourth IP address is an IP address allocated by the gateway for identifying whether the service is a dedicated connection service;
所述发送单元,还用于向所述控制设备发送所述第二IP地址响应。The sending unit is further configured to send the second IP address response to the control device.
作为一种可能的实施方式,所述IP地址获取请求携带有业务的标识,所述装置还包括:As a possible implementation manner, the IP address acquisition request carries a service identifier, and the device further includes:
记录单元,用于记录所述标识与所述第二IP地址以及所述第四IP地址之间的对应关系;A recording unit, configured to record the correspondence between the identifier and the second IP address and the fourth IP address;
所述接收单元,还用于接收来自所述控制设备的数据获取请求;The receiving unit is further configured to receive a data acquisition request from the control device;
确定单元,用于根据所述对应关系以及所述数据获取请求的源IP地址和目的IP地址,确定所述数据获取请求与所述IP地址获取请求对应的业务为同一业务;A determining unit, configured to determine that the service corresponding to the data obtaining request and the IP address obtaining request is the same service according to the corresponding relationship and the source IP address and the destination IP address of the data obtaining request;
所述替换单元,还用于将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口,将所述数据获取请求的目的IP地址由所述第四IP地址替换为所述第一IP地址,所述第一端口为所述终端设备的端口,所述第二端口为所述网关的端口;The replacement unit is further configured to replace the source IP address of the data acquisition request from the second IP address to the third IP address, and replace the source port of the data acquisition request from the first port to the first port. The second port is to replace the destination IP address of the data acquisition request from the fourth IP address to the first IP address, the first port is the port of the terminal device, and the second port is the The port of the gateway;
所述发送单元,还用于向所述第一IP地址对应的服务设备发送替换后的数据获取请求;The sending unit is further configured to send a replacement data acquisition request to the service device corresponding to the first IP address;
所述接收单元,还用于接收来自所述服务设备的数据响应,所述数据响应携带有所述业务的数据;The receiving unit is further configured to receive a data response from the service device, the data response carrying data of the service;
所述替换单元,还用于将所述数据响应的源IP地址由所述第一IP地址替换为所述第四IP地址,将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口;The replacement unit is further configured to replace the source IP address of the data response from the first IP address with the fourth IP address, and replace the destination IP address of the data response with the third IP address For the second IP address, replace the destination port of the data response from the second port to the first port;
所述发送单元,还用于向所述控制设备发送替换后的数据响应。The sending unit is further configured to send a replaced data response to the control device.
作为一种可能的实施方式,所述装置还包括:As a possible implementation manner, the device further includes:
第一计费单元,用于在所述终端设备与所述服务设备间使用的宽带的流量小于最低限制流量的情况下,按照所述最低限制流量对所述终端设备和所述服务设备使用的宽带进行计费;The first billing unit is configured to, when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, use the terminal device and the service device according to the minimum limit traffic. Broadband billing;
所述第一计费单元,还用于在所述终端设备与所述服务设备间使用的宽带的流量大于或等于所述最低限制流量的情况下,按照所述终端设备与所述服务设备间使用宽带的使用流量,对所述终端设备和所述服务设备使用的宽带进行计费。The first billing unit is further configured to: when the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, according to the difference between the terminal device and the service device The broadband usage traffic is billed for the broadband used by the terminal equipment and the service equipment.
作为一种可能的实施方式,所述装置还包括:As a possible implementation manner, the device further includes:
第二计费单元,用于在所述终端设备与所述服务设备间使用的宽带的带宽小于最低限制带宽的情况下,按照所述最低限制带宽对所述终端设备和所述服务设备使用的宽带进行计费,所述最低限制带宽为最低限制流量对应的带宽;The second billing unit is configured to, when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum limit bandwidth, use the terminal device and the service device according to the minimum limit bandwidth. Broadband is billed, and the minimum restricted bandwidth is the bandwidth corresponding to the minimum restricted traffic;
所述第二计费单元,还用于在所述终端设备与所述服务设备间使用的宽带的带宽大于或等于所述最低限制带宽的情况下,按照所述终端设备与所述服务设备间使用宽带的使用带宽,对所述终端设备和所述服务设备使用的宽带进行计费。The second charging unit is further configured to: in the case that the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum bandwidth, according to the difference between the terminal device and the service device Using the bandwidth used by the broadband, billing is performed on the broadband used by the terminal device and the service device.
第七方面公开一种通信装置,该通信装置可以为用户面功能(user plane function,UPF)网元或者UPF网元内的模块(例如,芯片),该通信装置也可以为宽带远程接入服务器(broadband remote access server,BRAS)或者BRAS内的模块(例如,芯片)。该通信装置包括处理器、存储器、输入接口和输出接口,所述输入接口用于接收来自所述通信装置之外的其它通信装置的信息,所述输出接口用于向所述通信装置之外的其它通信装置输出信息,当所述处理器执行所述存储器存储的计算机程序时,使得所述处理器执行第一方面或第一方面的任一实施方式公开的通信方法。A seventh aspect discloses a communication device. The communication device may be a user plane function (UPF) network element or a module (for example, a chip) in a UPF network element. The communication device may also be a broadband remote access server (broadband remote access server, BRAS) or a module (for example, chip) in the BRAS. The communication device includes a processor, a memory, an input interface, and an output interface. The input interface is used to receive information from other communication devices other than the communication device, and the output interface is used to send information to those other than the communication device. The other communication device outputs information, and when the processor executes the computer program stored in the memory, the processor is caused to execute the communication method disclosed in the first aspect or any one of the embodiments of the first aspect.
第八方面公开一种通信装置,该通信装置可以为网关(gateway,GW)或者GW内的模块(例如,芯片)。该通信装置包括处理器、存储器、输入接口和输出接口,所述输入接口用于接收来自所述通信装置之外的其它通信装置的信息,所述输出接口用于向所述通信装置之外的其它通信装置输出信息,当所述处理器执行所述存储器存储的计算机程序时,使得所述处理器执行第二方面或第二方面的任一实施方式公开的通信方法。An eighth aspect discloses a communication device, which may be a gateway (gateway, GW) or a module (for example, a chip) in the GW. The communication device includes a processor, a memory, an input interface, and an output interface. The input interface is used to receive information from other communication devices other than the communication device, and the output interface is used to send information to those other than the communication device. The other communication device outputs information, and when the processor executes the computer program stored in the memory, the processor is caused to execute the communication method disclosed in the second aspect or any one of the second aspect.
第九方面公开一种通信装置,该通信装置可以为GW或者GW内的模块(例如,芯片)。该通信装置包括处理器、存储器、输入接口和输出接口,所述输入接口用于接收来自所述通信装置之外的其它通信装置的信息,所述输出接口用于向所述通信装置之外的其它通信装置输出信息,当所述处理器执行所述存储器存储的计算机程序时,使得所述处理器执行第三方面或第三方面的任一实施方式公开的通信方法。A ninth aspect discloses a communication device, which may be a GW or a module (for example, a chip) in the GW. The communication device includes a processor, a memory, an input interface, and an output interface. The input interface is used to receive information from other communication devices other than the communication device, and the output interface is used to send information to those other than the communication device. The other communication device outputs information, and when the processor executes the computer program stored in the memory, the processor is caused to execute the communication method disclosed in the third aspect or any one of the embodiments of the third aspect.
第十方面公开一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序或计算机指令,当该计算机程序或计算机指令运行时,实现如第一方面或第一方面的任一实施方式公开的通信方法,或者第二方面或第二方面的任一实方式公开的通信方法,或者第三方面或第三方面的任一实施方式公开的通信方法。In a tenth aspect, a computer-readable storage medium is disclosed. The computer-readable storage medium stores a computer program or computer instruction, and when the computer program or computer instruction runs, it implements the first aspect or any implementation of the first aspect The communication method disclosed in the method, or the communication method disclosed in the second aspect or any actual manner of the second aspect, or the communication method disclosed in the third aspect or any embodiment of the third aspect.
第十一方面公开一种通信系统,该通信系统包括上述第七方面的通信装置和上述第八方面的通信装置。An eleventh aspect discloses a communication system, which includes the communication device of the seventh aspect described above and the communication device of the eighth aspect described above.
第十二方面公开一种通信系统,该通信系统包括上述第七方面的通信装置和上述第九方面的通信装置。A twelfth aspect discloses a communication system, which includes the communication device of the seventh aspect and the communication device of the ninth aspect.
附图说明Description of the drawings
图1是本发明实施例公开的一种网络架构示意图;FIG. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种网络架构示意图;Figure 2 is a schematic diagram of another network architecture disclosed in an embodiment of the present invention;
图3是本发明实施例公开的一种通信方法的流程示意图;FIG. 3 is a schematic flowchart of a communication method disclosed in an embodiment of the present invention;
图4是本发明实施例公开的另一种通信方法的流程示意图;4 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图5是本发明实施例公开的又一种通信方法的流程示意图;FIG. 5 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图6是本发明实施例公开的又一种通信方法的流程示意图;FIG. 6 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图7是本发明实施例公开的又一种通信方法的流程示意图;FIG. 7 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图8是本发明实施例公开的又一种通信方法的流程示意图;FIG. 8 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图9是本发明实施例公开的又一种通信方法的流程示意图;FIG. 9 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图10是本发明实施例公开的又一种通信方法的流程示意图;FIG. 10 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图11是本发明实施例公开的又一种通信方法的流程示意图;FIG. 11 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图12是本发明实施例公开的又一种通信方法的流程示意图;FIG. 12 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图13是本发明实施例公开的又一种通信方法的流程示意图;FIG. 13 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图14是本发明实施例公开的又一种通信方法的流程示意图;14 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图15是本发明实施例公开的又一种通信方法的流程示意图;15 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图16是本发明实施例公开的又一种通信方法的流程示意图;16 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图17是本发明实施例公开的又一种通信方法的流程示意图;FIG. 17 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图18是本发明实施例公开的又一种通信方法的流程示意图;18 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention;
图19是本发明实施例公开的一种通信装置的结构示意图;19 is a schematic structural diagram of a communication device disclosed in an embodiment of the present invention;
图20是本发明实施例公开的另一种通信装置的结构示意图;20 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention;
图21是本发明实施例公开的又一种通信装置的结构示意图;FIG. 21 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention;
图22是本发明实施例公开的又一种通信装置的结构示意图;22 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention;
图23是本发明实施例公开的又一种通信装置的结构示意图;FIG. 23 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention;
图24是本发明实施例公开的一种GW的结构示意图。Fig. 24 is a schematic structural diagram of a GW disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例公开了一种通信方法及设备,用于提高运营商对互联网业务的控制能力。以下分别进行详细说明。The embodiment of the present invention discloses a communication method and equipment, which are used to improve the control ability of the operator over the Internet service. Detailed descriptions are given below.
为了更好地理解本发明实施例公开的一种通信方法及设备,下面先对本发明实施例使用的网络架构进行描述。请参阅图1,图1是本发明实施例公开的一种网络架构示意图。如图1所示,该网络架构可以包括终端设备、光网络终端(optical network terminal,ONT)、光线路终端(optical line terminal,OLT)、BRAS、GW、控制中心和服务设备。该网络架构可以为固定网络的网络架构。在业务为通用连接的业务,即业务为低价值业务的情况下,业务的路径可以为终端设备-ONT-OLT-BRAS-控制中心或终端设备-ONT-OLT-BRAS-服务设备。在业务为专用连接的业务,即业务为高价值业务的情况下,业务的路径可以为终端设备-ONT-OLT-BRAS-网关-控制中心或终端设备-ONT-OLT-BRAS-网关-服务设备。In order to better understand a communication method and device disclosed in the embodiment of the present invention, the following first describes the network architecture used in the embodiment of the present invention. Please refer to FIG. 1. FIG. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present invention. As shown in Figure 1, the network architecture may include terminal equipment, optical network terminal (ONT), optical line terminal (OLT), BRAS, GW, control center, and service equipment. The network architecture may be the network architecture of a fixed network. When the service is a universally connected service, that is, when the service is a low-value service, the path of the service can be terminal equipment-ONT-OLT-BRAS-control center or terminal equipment-ONT-OLT-BRAS-service equipment. When the service is a dedicated connection service, that is, when the service is a high-value service, the path of the service can be terminal equipment-ONT-OLT-BRAS-gateway-control center or terminal equipment-ONT-OLT-BRAS-gateway-service equipment .
请参阅图2,图2是本发明实施例公开的另一种网络架构的结构示意图。如图2所示,该网络架构可以包括终端设备、无线接入网(radio access network,RAN)设备、UPF网元、GW、控制中心和服务设备。该网络架构可以为移动网络的网络架构。在业务为通用连接的业务,业务的路径可以为终端设备-RAN设备-UPF网元-控制中心或终端设备-RAN设备-UPF网元-服务设备。在业务为专用连接的业务的情况下,业务的路径可以为终端设备-RAN设备-UPF网元-网关-控制中心或终端设备-RAN设备-UPF网元-网关-服务设备。Please refer to FIG. 2, which is a schematic structural diagram of another network architecture disclosed in an embodiment of the present invention. As shown in Figure 2, the network architecture may include terminal equipment, radio access network (RAN) equipment, UPF network elements, GW, control center, and service equipment. The network architecture may be the network architecture of a mobile network. When the business is a universally connected business, the path of the business can be terminal equipment-RAN equipment-UPF network element-control center or terminal equipment-RAN equipment-UPF network element-service equipment. In the case where the service is a dedicated connection service, the path of the service may be terminal equipment-RAN equipment-UPF network element-gateway-control center or terminal equipment-RAN equipment-UPF network element-gateway-service equipment.
终端设备可以为手持终端、笔记本电脑、用户单元(subscriber unit)、蜂窝电话(cellular phone)、智能电话(smart phone)、无线数据卡、个人数字助理(personal digital assistant,PDA)电脑、平板型电脑、无线调制解调器(modem)、手持设备(handheld)、膝上型电脑(laptop computer)、无绳电话(cordless phone)或者无线本地环路(wireless local loop,WLL)台、机器类型通信(machine type communication,MTC)终端或其他可以接入网络的设备。终端设备通过建立终端设备-RAN设备-UPF网元-数据网络(data,network,DN) 之间的会话,即协议数据单元(protocol data unit,PDU)会话,来访问DN。The terminal equipment can be a handheld terminal, a notebook computer, a subscriber unit, a cellular phone, a smart phone, a wireless data card, a personal digital assistant (PDA) computer, and a tablet computer , Wireless modem (modem), handheld device (handheld), laptop computer (laptop computer), cordless phone (cordless phone) or wireless local loop (wireless local loop, WLL) station, machine type communication (machine type communication, MTC) terminal or other devices that can access the network. The terminal device accesses the DN by establishing a session between the terminal device-RAN device-UPF network element-data network (data, network, DN), that is, a protocol data unit (protocol data unit, PDU) session.
OLT用于连接ONT,为接入网络光纤化中的用户端设备,可以为家庭光猫等。The OLT is used to connect to the ONT. It is a user-end device in the optical fiberization of the access network, and can be a home optical modem.
ONT,用于连接光纤干线中的用户端设备。ONT, used to connect the user-end equipment in the optical fiber trunk.
BRAS为一种面向宽带网络应用的新型接入网关。它是宽带接入网和骨干网之间的桥梁,提供基本的接入手段和宽带接入网的管理功能。它位于网络的边缘,提供宽带接入服务、实现多种业务的汇聚与转发,能满足不同用户对传输容量和带宽利用率的要求。是宽带用户接入的核心设备。BRAS is a new type of access gateway for broadband network applications. It is a bridge between the broadband access network and the backbone network, providing basic access means and management functions of the broadband access network. It is located at the edge of the network, provides broadband access services, realizes the convergence and forwarding of multiple services, and can meet the requirements of different users for transmission capacity and bandwidth utilization. It is the core equipment for broadband user access.
RAN设备是为终端设备提供无线接入的设备,主要负责空口侧的无线资源管理、服务质量流(quality of service,QoS)流管理、数据压缩和加密等功能。RAN设备可以包括各种形式的基站,例如:宏基站,微基站(也称为小站),中继站,接入点等。RAN设备还可以包括无线上网(wireless fidelity,WiFi)接入节点(access point,AP)。RAN设备还可以包括全球微波互联接入(worldwide interoperability for microwave access,WiMax)基站(base station,BS)。RAN equipment is a device that provides wireless access for terminal devices, and is mainly responsible for functions such as radio resource management on the air interface side, quality of service (QoS) flow management, data compression, and encryption. The RAN equipment may include various forms of base stations, such as macro base stations, micro base stations (also called small stations), relay stations, and access points. The RAN device may also include a wireless fidelity (WiFi) access point (AP). The RAN equipment may also include a worldwide interoperability for microwave access (WiMax) base station (BS).
UPF网元主要负责对用户报文进行处理,如转发、计费等。可以从DN接收用户报文,并通过RAN设备传输给UE;也可以通过RAN设备从UE接收用户报文,并转发到DN。UPF网元为UE提供服务的传输资源和调度功能由SMF网元管理控制。The UPF network element is mainly responsible for processing user messages, such as forwarding and charging. User messages can be received from the DN and transmitted to the UE through the RAN equipment; user messages can also be received from the UE through the RAN equipment and forwarded to the DN. The transmission resources and scheduling functions of the UPF network element to provide services for the UE are managed and controlled by the SMF network element.
GW,可以为连接网关,在业务为专用连接业务,即高价值业务的情况下,实现用户的上网和宽带计费。GW可以部署在BRAS上,也可以是独立的。The GW can be a connection gateway, and when the service is a dedicated connection service, that is, a high-value service, it can realize the user's Internet access and broadband billing. The GW can be deployed on the BRAS, or it can be independent.
控制中心,用于调度终端设备的请求到具体的服务设备,管理服务设备等。The control center is used to dispatch terminal equipment requests to specific service equipment, manage service equipment, etc.
服务设备,用于为终端设备提供互联网服务。服务设备可以为服务器,也可以为加速节点,还可以为其它设备。Service equipment, used to provide Internet services for terminal equipment. The service device can be a server, an acceleration node, or other devices.
为了更好地理解本发明实施例公开的一种通信方法及设备,下面先对本发明实施例使用的应用场景进行介绍。互联网用户上网以及访问互联网业务过程中,可能会涉及到运营商、互联网服务商和CDN服务商。In order to better understand a communication method and device disclosed in the embodiments of the present invention, the following first introduces the application scenarios used in the embodiments of the present invention. When Internet users go online and access Internet services, operators, Internet service providers, and CDN service providers may be involved.
运营商,用于部署基础网络,以及为签约用户提供互联网接入能力。用户的终端设备接入互联网后,运营商会给用户的终端设备分配一个或多个IP,用于访问互联网服务,如网络(web)流量、视频观看等。基础网络可以为固定网络、移动网络等。运营商可以为电信运营商、移动运营商、联通运营商等。Operators are used to deploy basic networks and provide Internet access capabilities for subscribers. After the user's terminal device is connected to the Internet, the operator will assign one or more IPs to the user's terminal device for accessing Internet services, such as web traffic and video viewing. The basic network can be a fixed network, a mobile network, etc. Operators can be telecom operators, mobile operators, China Unicom operators, etc.
互联网服务商通过向运营商购买带宽,将自己的服务接入到互联网,为互联网用户提供服务。绝大部分互联网服务商都会租用CDN服务商提供的服务,以便可以提升用户体验。互联网服务商可以为视频提供商、购物提供商等。Internet service providers connect their services to the Internet by purchasing bandwidth from operators to provide services to Internet users. The vast majority of Internet service providers will rent services provided by CDN service providers in order to improve user experience. Internet service providers can be video providers, shopping providers, and so on.
CDN服务商,用于将用户需要访问的内容缓存到离用户的终端设备更近的服务设备,提升用户的访问速度和下载速率。CDN服务商也需要向运营商购买带宽,将服务设备接入互联网,向用户的终端设备发送内容。CDN service providers are used to cache the content that users need to access to service devices that are closer to the user's terminal device to improve the user's access speed and download rate. CDN service providers also need to purchase bandwidth from operators, connect service devices to the Internet, and send content to users' terminal devices.
其中,ONT、OLT、BRAS、RAN设备、UPF网元和网关属于运营商,控制中心和服务设备属于CDN服务商。服务设备中的各种业务数据属于互联网服务商。Among them, ONT, OLT, BRAS, RAN equipment, UPF network elements and gateways belong to operators, and control centers and service equipment belong to CDN service providers. Various business data in the service equipment belong to the Internet service provider.
当前运营商为所有用户的终端设备提供了无差别的基于IP地址可达的网络。用户上网 访问互联网服务时,用户得到所有服务的IP地址,互联网服务商/CDN服务商能看到所访问用户的终端设备的IP地址。终端设备与互联网服务/CDN服务间可以使用标准传输控制协议(transmission control protocol,TCP)/IP协议完成通信,在这过程中运营商在提供网络路由可达能力后,对业务再无控制点。Currently, operators provide undifferentiated networks that are reachable based on IP addresses for all users' terminal devices. When a user accesses Internet services on the Internet, the user gets the IP address of all services, and the Internet service provider/CDN service provider can see the IP address of the terminal device of the accessed user. The standard transmission control protocol (TCP)/IP protocol can be used to complete the communication between the terminal device and the Internet service/CDN service. In this process, the operator has no control point for the service after providing the network route reachability.
因此,互联网业务也被称为过顶传球(over the top,OTT)业务。即互联网公司越过运营商,发展基于开放互联网的各种业务,如视频、数据服务等,强调服务与互联网的无关性。Therefore, Internet services are also called over-the-top (OTT) services. That is, Internet companies have gone beyond operators to develop various services based on the open Internet, such as video and data services, emphasizing the irrelevance of services to the Internet.
在OTT业务模式下,运营商只能通过向互联网服务商/CDN服务商卖带宽获利。Under the OTT business model, operators can only profit by selling bandwidth to Internet service providers/CDN service providers.
互联网服务商/CDN服务商购买带宽后,可以在带宽中填充业务,如网页缓存、下载、视频直播、视频点播等。这些业务可以为高价值业务,也可以为低价值业务。然而,由于高价值业务和低价值业务之间使用的带宽之间差距很大,但运营商无法确定传输的业务为高价值业务,还是低价值业务,以致降低了运营商对业务的控制和创新能力。例如,运营商想针对虚拟现实(virtual reality,VR)业务降低带宽费用,可以提升用户带宽使用量,但无法控制OTT厂商使用低价的带宽提供网页、下载等业务,降低业务成本。After the Internet service provider/CDN service provider purchases the bandwidth, they can fill the bandwidth with services, such as web page caching, downloading, live video streaming, and video on demand. These businesses can be high-value businesses or low-value businesses. However, due to the large gap between the bandwidth used between high-value services and low-value services, operators cannot determine whether the transmitted services are high-value services or low-value services, which reduces the operator’s control and innovation on services ability. For example, operators want to reduce bandwidth costs for virtual reality (VR) services, which can increase user bandwidth usage, but cannot control OTT vendors to use low-cost bandwidth to provide services such as web pages and downloads, thereby reducing service costs.
基于图1和图2所示的网络架构,请参阅图3,图3是本发明实施例公开的一种通信方法的流程示意图。如图3所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 1 and FIG. 2, please refer to FIG. 3. FIG. 3 is a schematic flowchart of a communication method disclosed in an embodiment of the present invention. As shown in Fig. 3, the communication method may include the following steps.
301、终端设备向控制设备发送信息获取请求。301. The terminal device sends an information acquisition request to the control device.
用户需要从互联网获取业务的信息的情况下,可以操作终端设备,以便终端设备向控制设备发送信息获取请求。信息获取请求可以携带有用于指示业务是否为专用连接的业务的指示信息。业务可以包括专用连接的业务和通用连接的业务。专用连接的业务为需要通过网关的业务,即高价值的业务。通用连接的业务为无需通过网关的业务,即低价值业务。IP五元组可以包括源IP地址、目的IP地址、源端口、目的端口和传输层协议。信息获取请求的源IP地址为终端设备的IP地址,源端口为终端设备的端口。控制设备可以为BRAS,也可以为UPF网元,还可以为具有其它同等功能的设备。When the user needs to obtain business information from the Internet, he can operate the terminal device so that the terminal device sends an information acquisition request to the control device. The information acquisition request may carry indication information used to indicate whether the service is a dedicated connection service. Services can include dedicated connection services and general connection services. The dedicated connection business is the business that needs to pass through the gateway, that is, the high-value business. The business of universal connection is the business that does not need to go through the gateway, namely the low-value business. The IP quintuple can include a source IP address, a destination IP address, a source port, a destination port, and a transport layer protocol. The source IP address of the information acquisition request is the IP address of the terminal device, and the source port is the port of the terminal device. The control device can be a BRAS, a UPF network element, or a device with other equivalent functions.
302、在指示信息指示业务为专用连接的业务的情况下,控制设备向网关发送信息获取请求。302. In a case where the indication information indicates that the service is a dedicated connection service, the control device sends an information acquisition request to the gateway.
控制设备接收到来自终端设备的信息获取请求之后,可以根据信息获取请求携带的指示信息确定信息获取请求对应的业务为专用连接的业务还是为通用连接的业务。在指示信息指示信息获取请求对应的业务为专用连接的业务的情况下,控制信息可以向网关发送信息获取请求。信息获取请求可以获取到业务对应的信息,即信息获取请求可以从信息获取请求的目的IP地址对应的设备获取业务对应的信息。After the control device receives the information acquisition request from the terminal device, it can determine, according to the instruction information carried in the information acquisition request, whether the service corresponding to the information acquisition request is a dedicated connection service or a general connection service. In the case where the indication information indicates that the service corresponding to the information acquisition request is a dedicated connection service, the control information may send the information acquisition request to the gateway. The information acquisition request can acquire the information corresponding to the service, that is, the information acquisition request can acquire the information corresponding to the service from the device corresponding to the destination IP address of the information acquisition request.
相应地,在指示信息指示信息获取请求对应的业务为通用连接的业务的情况下,控制设备可以向信息获取请求的目的IP地址对应的设备发送信息获取请求,即不需要通过网关。Correspondingly, when the indication information indicates that the service corresponding to the information acquisition request is a universal connection service, the control device can send the information acquisition request to the device corresponding to the destination IP address of the information acquisition request, that is, it does not need to pass through the gateway.
303、在业务为指定业务的情况下,网关根据信息获取请求获取业务对应的信息。303. When the service is a designated service, the gateway obtains information corresponding to the service according to the information obtaining request.
信息获取请求还可以携带有信息获取请求对应的业务的标识。网关接收到来自控制设备的信息获取请求之后,可以先根据信息获取请求携带的标识确定信息获取请求对应的业务是否为指定业务。在根据信息获取请求携带的标识确定信息获取请求对应的业务为指定 业务的情况下,表明网关允许信息获取请求对应的业务通过该网关。网关根据信息获取请求获取业务对应的信息,可以是从信息获取请求的目的IP地址对应的设备获取业务对应的信息。相应地,在根据信息获取请求携带的标识确定信息获取请求对应的业务不是指定业务的情况下,表明网关不允许信息获取请求对应的业务通过该网关,网关可以丢弃信息获取请求。此外,还可以向控制设备发送不允许该业务通过的信息。业务的标识可以为业务的域名,也可以为业务的其它信息,在此不加限定。指定业务可以为具体的业务,也可以为满足一定条件的业务,如同一类型的业务。The information acquisition request may also carry the identifier of the service corresponding to the information acquisition request. After the gateway receives the information acquisition request from the control device, it may first determine whether the service corresponding to the information acquisition request is a designated service according to the identifier carried in the information acquisition request. In the case of determining that the service corresponding to the information obtaining request is the designated service according to the identifier carried in the information obtaining request, it indicates that the gateway allows the service corresponding to the information obtaining request to pass through the gateway. The gateway obtains the information corresponding to the service according to the information obtaining request, which may be obtaining the information corresponding to the service from the device corresponding to the destination IP address of the information obtaining request. Correspondingly, if it is determined according to the identifier carried in the information acquisition request that the service corresponding to the information acquisition request is not a designated service, it indicates that the gateway does not allow the service corresponding to the information acquisition request to pass through the gateway, and the gateway may discard the information acquisition request. In addition, it can also send information that the service is not allowed to pass to the control device. The service identifier can be the domain name of the service or other information about the service, which is not limited here. The designated business can be a specific business or a business that meets certain conditions, such as the same type of business.
控制设备可以与多个网关连接,不同网关可以允许不同的业务或满足不同条件的业务通过。在一种情况下,可以在每个网关设置一个白名单,每个网关可以允许处于白名单内的业务通过。此时,指定业务为白名单内中的任一业务。在另一种情况下,可以在每个网关设置一个条件,每个网关可以允许满足该条件的业务通过。例如,可以允许特定类型的业务通过。此时,指定业务为具体的业务满足一定条件的业务。The control device can be connected to multiple gateways, and different gateways can allow different services or services that meet different conditions to pass. In one case, a white list can be set at each gateway, and each gateway can allow the services in the white list to pass. At this time, the designated business is any business in the whitelist. In another case, a condition can be set at each gateway, and each gateway can allow services that meet the condition to pass. For example, certain types of services can be allowed to pass. At this time, the designated business is a business that meets certain conditions for a specific business.
304、网关向控制设备发送业务对应的信息。304. The gateway sends information corresponding to the service to the control device.
网关根据信息获取请求获取到业务对应的信息之后,可以向控制设备发送获取的业务对应的信息。After obtaining the information corresponding to the service according to the information obtaining request, the gateway may send the obtained information corresponding to the service to the control device.
305、控制设备向终端设备发送业务对应的信息。305. The control device sends information corresponding to the service to the terminal device.
控制设备接收到来自网关的业务对应的信息之后,可以向终端设备发送业务对应的信息。After receiving the information corresponding to the service from the gateway, the control device can send the information corresponding to the service to the terminal device.
可选地,步骤301可以包括:Optionally, step 301 may include:
3011、终端设备向控制设备发送IP地址获取请求。3011. The terminal device sends an IP address acquisition request to the control device.
用户需要从互联网获取业务的数据的情况下,先需要获取到业务所在服务设备对应的IP地址,即获取到业务的数据所在服务设备对应的IP地址,之后才能够从IP地址对应的服务设备获取业务的数据。因此,终端设备可以先向控制设备发送IP地址获取请求。相应地,控制设备可以接收来自终端设备的IP地址获取请求。即IP地址获取请求是获取业务所在服务设备对应的IP地址的请求。信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息可以包括:IP地址获取请求携带有用于指示业务是否为专用连接的业务的第一指示信息。IP地址获取请求可以为DNS请求,也可以为HTTP DNS请求,还可以为其它请求,在此不加限定。业务所在服务设备对应的IP地址,可以为业务所在服务设备的IP地址,也可以为业务所在服务设备的IP地址对应的IP地址。服务设备可以服务器,也可以为加速节点,还可以为其它具有同等功能的设备。When a user needs to obtain business data from the Internet, he first needs to obtain the IP address corresponding to the service device where the business is located, that is, obtain the IP address corresponding to the service device where the business data is located, and then obtain it from the service device corresponding to the IP address Business data. Therefore, the terminal device can first send an IP address acquisition request to the control device. Correspondingly, the control device can receive an IP address acquisition request from the terminal device. That is, the IP address acquisition request is a request to acquire the IP address corresponding to the service device where the business is located. The information acquisition request carrying indication information used to indicate whether the service is a dedicated connection service may include: the IP address acquisition request carries first indication information used to indicate whether the service is a dedicated connection service. The IP address acquisition request can be a DNS request, HTTP DNS request, or other request, which is not limited here. The IP address corresponding to the service device where the business is located may be the IP address of the service device where the business is located, or may be the IP address corresponding to the IP address of the service device where the business is located. The service device can be a server, an acceleration node, or other devices with equivalent functions.
步骤302可以包括:Step 302 may include:
3021、在第一指示信息指示业务为专用连接的业务的情况下,控制设备向网关发送IP地址获取请求。3021. In a case where the first indication information indicates that the service is a dedicated connection service, the control device sends an IP address acquisition request to the gateway.
相应地,网关接收来自控制设备的IP地址获取请求。信息获取请求用于获取业务对应的信息可以包括:IP地址获取请求用于获取业务所在服务设备对应的IP地址。Correspondingly, the gateway receives the IP address acquisition request from the control device. The information obtaining request used to obtain the information corresponding to the service may include: the IP address obtaining request is used to obtain the IP address corresponding to the service device where the service is located.
第一指示信息可以为业务的域名。第一指示信息指示业务为专用连接的业务,可以为业务的域名为指定域名。可以为不同连接的业务设置不同的域名,以便可以通过不同域名确定业务为专用连接的业务或通用连接的业务。例如,用于获取某个视频源的通用连接的 业务的域名为xxx.com,而用于获取这个视频源的专用连接的业务的域名为VR.xxx.com。控制设备可以预先存储有域名中用于获取专用连接的业务的域名。The first indication information may be the domain name of the service. The first indication information indicates that the service is a dedicated connection service, and the domain name of the service may be a designated domain name. Different domain names can be set for different connected services, so that different domain names can be used to determine whether the service is a dedicated connection service or a general connection service. For example, the domain name of the universal connection service used to obtain a certain video source is xxx.com, and the domain name of the dedicated connection service used to obtain this video source is VR.xxx.com. The control device may pre-store the domain name in the domain name used to obtain the service of the dedicated connection.
第一指示信息也可以为IP地址获取请求的源IP地址。第一指示信息指示业务为专用连接的业务,也可以为IP地址获取请求的源IP地址为指定IP地址。可以为每个终端设备部署两个IP地址,一个IP地址可以用于获取专用连接的业务,另一个IP地址可以用于获取通用连接的业务。在终端设备需要获取的业务为专用连接的业务的情况下,可以将IP地址获取请求的源IP地址设置为用于获取专用连接的业务的IP地址。在终端设备需要获取的业务为通用连接的业务的情况下,可以将IP地址获取请求的源IP地址设置为用于获取通用连接的业务的IP地址。控制设备可以预先存储有终端设备的用于获取专用连接的业务的IP地址。此时,指定IP地址为终端设备的用于获取专用连接的业务的IP地址。The first indication information may also be the source IP address of the IP address acquisition request. The first indication information indicates that the service is a dedicated connection service, or it may be that the source IP address of the IP address acquisition request is a designated IP address. Two IP addresses can be deployed for each terminal device, one IP address can be used to obtain dedicated connection services, and the other IP address can be used to obtain general connection services. In the case that the service that the terminal device needs to obtain is a dedicated connection service, the source IP address of the IP address obtaining request may be set as the IP address used to obtain the dedicated connection service. In the case that the service that the terminal device needs to obtain is a universal connection service, the source IP address of the IP address acquisition request may be set as the IP address used to obtain the universal connection service. The control device may pre-store the IP address of the terminal device for obtaining the service of the dedicated connection. At this time, the designated IP address is the IP address of the terminal device used to obtain the service of the dedicated connection.
步骤303可以包括:Step 303 may include:
3031、在业务的标识对应的业务为指定业务的情况下,网关向控制中心发送IP地址获取请求;3031. In the case that the service corresponding to the service identifier is a designated service, the gateway sends an IP address acquisition request to the control center;
3032、控制中心向网关发送第一IP地址响应。3032. The control center sends a first IP address response to the gateway.
网关接收到来自控制设备的IP地址获取请求之后,在业务的标识对应的业务为指定业务的情况下,表明网关允许IP地址获取请求对应的业务通过该网关,网关可以向控制中心发送IP地址获取请求。控制中心接收到来自网关的IP地址获取请求之后,可以根据网关确定该业务所在服务设备的第一IP地址。可以先根据业务的标识确定能够提供该业务的所有服务设备,之后根据网关从确定出的所有服务设备中选取一个服务设备,之后将选取的服务设备的IP地址确定为该业务所在服务设备的第一IP地址,之后可以向网关发送携带有第一IP地址的第一IP地址响应。控制中心选取服务设备时,可以选取与网关距离最近的服务设备,也可以选取与网关之间的距离较近但负载较小的服务设备,还可以根据与网关之间的距离以及其它因素进行选取,在此不加限定。控制中心为IP地址获取请求的目的IP地址对应的控制中心。After the gateway receives the IP address acquisition request from the control device, if the service corresponding to the service identifier is a designated service, it indicates that the gateway allows the service corresponding to the IP address acquisition request to pass through the gateway, and the gateway can send the IP address acquisition to the control center request. After the control center receives the IP address acquisition request from the gateway, it can determine the first IP address of the service device where the service is located according to the gateway. You can first determine all service devices that can provide the service according to the service identifier, and then select a service device from all the determined service devices according to the gateway, and then determine the IP address of the selected service device as the first service device where the service is located. An IP address, and then a first IP address response carrying the first IP address can be sent to the gateway. When the control center selects the service device, it can select the service device that is closest to the gateway, or the service device that is close to the gateway but has a small load, and can also be selected based on the distance to the gateway and other factors , No restrictions here. The control center is the control center corresponding to the destination IP address of the IP address acquisition request.
可选地,网关接收到来自控制设备的IP地址获取请求之后,可以先将IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,之后可以向控制中心发送替换源IP地址后的IP地址获取请求,可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。第二IP地址为终端设备的IP地址,第三IP地址为网关的IP地址。Optionally, after the gateway receives the IP address acquisition request from the control device, it may first replace the source IP address of the IP address acquisition request from the second IP address to the third IP address, and then may send the replacement source IP address to the control center The subsequent IP address acquisition request can ensure that the Internet service provider/CDN service provider cannot see the IP address of the terminal device. The second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway.
步骤304可以包括:Step 304 may include:
3041、网关向控制设备发送第一IP地址响应。3041. The gateway sends a first IP address response to the control device.
网关接收到来自控制中心的第一IP地址响应之后,可以向控制设备发送第二IP地址响应。第二IP地址响应携带有第一IP地址或第一IP地址对应的IP地址。网关可以记录业务的标识与第二IP地址以及第一IP地址的对应关系,也可以记录第二IP地址与第一IP地址对应的IP地址之间的对应关系。After the gateway receives the first IP address response from the control center, it can send the second IP address response to the control device. The second IP address response carries the first IP address or the IP address corresponding to the first IP address. The gateway may record the correspondence between the service identifier and the second IP address and the first IP address, and may also record the correspondence between the second IP address and the IP address corresponding to the first IP address.
可选地,网关接收到来自控制中心的第一IP地址响应之后,可以先将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址得到第二IP地址响应,之后可以向控制设备发送第二IP地址响应。该第二IP地址响应携带有第一IP地址。此时,网关记录的是业务的标识与第二IP地址和第一IP地址的对应关系。Optionally, after the gateway receives the first IP address response from the control center, it can first replace the destination IP address of the first IP address response from the third IP address to the second IP address to obtain the second IP address response, and then Send a second IP address response to the control device. The second IP address response carries the first IP address. At this time, the gateway records the correspondence between the service identifier and the second IP address and the first IP address.
可选地,在将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址得到第二IP地址响应时,不仅可以将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址,而且还可以将第一IP地址响应携带的第一IP地址替换为第四IP地址得到第二IP地址响应,可以保证终端设备的用户无法看到互联网服务商/CDN服务商的IP地址。第四IP地址为网关分配的用于识别业务是否为专用连接的业务的IP地址,即第四IP地址为业务为专用连接的业务的IP地址,可以保证通过该IP地址识别出业务为专用连接的业务。该第二IP地址响应携带有第一IP地址对应的第四IP地址。此时,网关可以记录第一IP地址与第四IP地址的对应关系。同时,还可以记录业务的标识与第二IP地址和第四IP地址的对应关系。Optionally, when the destination IP address of the first IP address response is replaced by the third IP address to the second IP address to obtain the second IP address response, not only can the destination IP address of the first IP address response be replaced by the third IP address The address is replaced with the second IP address, and the first IP address carried in the first IP address response can be replaced with the fourth IP address to obtain the second IP address response, which can ensure that the user of the terminal device cannot see the Internet service provider/CDN The IP address of the service provider. The fourth IP address is the IP address assigned by the gateway to identify whether the service is a dedicated connection service, that is, the fourth IP address is the IP address of the service where the service is a dedicated connection, which can ensure that the service is identified as a dedicated connection through the IP address Business. The second IP address response carries the fourth IP address corresponding to the first IP address. At this time, the gateway may record the correspondence between the first IP address and the fourth IP address. At the same time, the correspondence between the service identifier and the second IP address and the fourth IP address can also be recorded.
步骤305可以包括:Step 305 may include:
3051、控制设备向终端设备发送第二IP地址响应。3051. The control device sends a second IP address response to the terminal device.
控制设备接收到来自网关的第二IP地址响应之后,可以向终端设备发送第二IP地址响应。After receiving the second IP address response from the gateway, the control device may send the second IP address response to the terminal device.
可选地,步骤301还可以包括:Optionally, step 301 may also include:
3012、终端设备向控制设备发送数据获取请求。3012. The terminal device sends a data acquisition request to the control device.
终端设备接收到来自控制设备的第二IP地址响应之后,可以解析第二IP地址响应得到业务所在服务设备对应的IP地址。之后可以以这个IP地址为目的IP地址向控制设备发送数据获取请求,以便从该IP地址对应的服务设备获取该业务的数据。信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息还可以包括:数据获取请求携带有用于指示业务是否为专用连接的业务的第二指示信息。After receiving the second IP address response from the control device, the terminal device can parse the second IP address response to obtain the IP address corresponding to the service device where the business is located. Then, a data acquisition request can be sent to the control device with this IP address as the destination IP address, so as to acquire the data of the service from the service device corresponding to the IP address. The information acquisition request carrying indication information for indicating whether the service is a dedicated connection service may also include: the data acquisition request carrying second indication information for indicating whether the service is a dedicated connection service.
步骤302还可以包括:Step 302 may also include:
3022、在第二指示信息指示业务为专用连接的业务的情况下,控制设备向网关发送数据获取请求。3022. In a case where the second indication information indicates that the service is a dedicated connection service, the control device sends a data acquisition request to the gateway.
相应地,网关接收来自控制设备的数据获取请求。信息获取请求用于获取业务对应的信息还可以包括:数据获取请求用于从IP地址对应的服务设备获取业务的数据。Correspondingly, the gateway receives the data acquisition request from the control device. The information acquisition request used to acquire information corresponding to the service may also include: the data acquisition request is used to obtain service data from the service device corresponding to the IP address.
第二指示信息可以为数据获取请求的目的IP地址。第二指示信息用于指示业务为专用连接的业务,可以为数据获取请求的目的IP地址为指定IP地址。一个服务设备可以只部署有专用连接的业务的IP地址,也可以只部署有通用连接的业务的IP地址,还可以即部署有专用连接的业务的IP地址也部署有通用连接的业务的IP地址。在控制中心接收到来自网关的IP地址获取请求的情况下,可以为业务分配服务设备的专用连接的业务的IP地址。此时,指定IP地址为第一IP地址。也可以为每个服务设备部署一个IP地址,这个IP地址即可以为专用连接的业务的IP地址,也可以为通用连接的业务的IP地址,网关接收到第一IP地址响应之后,可以使用专用连接的业务的IP地址替换第一IP地址。如第四IP地址。此时,指定IP地址为第四IP地址。The second indication information may be the destination IP address of the data acquisition request. The second indication information is used to indicate that the service is a dedicated connection service, and may be that the destination IP address of the data acquisition request is a designated IP address. A service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection. . In the case that the control center receives the IP address acquisition request from the gateway, it can assign the service IP address of the dedicated connection service of the service device to the service. At this time, the designated IP address is the first IP address. It is also possible to deploy an IP address for each service device. This IP address can be the IP address of a dedicated connection service or the IP address of a general connection service. After the gateway receives the first IP address response, the dedicated IP address can be used. The IP address of the connected service replaces the first IP address. Such as the fourth IP address. At this time, the designated IP address is the fourth IP address.
第二指示信息也可以为数据获取请求的源IP地址。第二指示信息用于指示业务为专用连接的业务,还可以为数据获取请求的源IP地址为指定IP地址。可以为每个终端设备部署两个IP地址,一个IP地址可以用于获取专用连接的业务,另一个IP地址可以用于获取通用连接的业务。在终端设备需要获取的业务为专用连接的业务的情况下,可以将IP地址获取请求的源IP地址设置为用于获取专用连接的业务的IP地址。在终端设备需要获取的业务为通 用连接的业务的情况下,可以将IP地址获取请求的源IP地址设置为用于获取通用连接的业务的IP地址。控制设备可以预先存储有终端设备的用于获取专用连接的业务的IP地址。此时,指定IP地址为终端设备的用于获取专用连接的业务的IP地址。The second indication information may also be the source IP address of the data acquisition request. The second indication information is used to indicate that the service is a dedicated connection service, and may also be that the source IP address of the data acquisition request is a designated IP address. Two IP addresses can be deployed for each terminal device, one IP address can be used to obtain dedicated connection services, and the other IP address can be used to obtain general connection services. In the case that the service that the terminal device needs to obtain is a dedicated connection service, the source IP address of the IP address obtaining request may be set as the IP address used to obtain the dedicated connection service. In the case that the service that the terminal device needs to obtain is a service of a general connection, the source IP address of the IP address obtaining request can be set as the IP address used to obtain the service of the general connection. The control device may pre-store the IP address of the terminal device for obtaining the service of the dedicated connection. At this time, the designated IP address is the IP address of the terminal device used to obtain the service of the dedicated connection.
步骤303还可以包括:Step 303 may also include:
3032、在数据获取请求与IP地址获取请求对应的业务为同一业务的情况下,网关向第一IP地址对应的服务设备发送数据获取请求;3032. In a case where the business corresponding to the data acquisition request and the IP address acquisition request are the same business, the gateway sends a data acquisition request to the service device corresponding to the first IP address;
3033、服务设备向网关发送携带有业务的数据的数据响应。3033. The service device sends a data response carrying service data to the gateway.
网关接收到来自控制设备的数据获取请求之后,在数据获取请求与IP地址获取请求对应的业务为同一业务的情况下,表明网关允许信息获取请求对应的业务通过该网关,网关可以向第一IP地址对应的服务设备发送数据获取请求。服务设备接收到来自网关的数据获取请求之后,可以获取业务的数据,之后可以将携带有业务的数据的数据响应发送给网关。After the gateway receives the data acquisition request from the control device, if the service corresponding to the data acquisition request and the IP address acquisition request is the same service, it indicates that the gateway allows the service corresponding to the information acquisition request to pass through the gateway, and the gateway can send the first IP address The service device corresponding to the address sends a data acquisition request. After receiving the data acquisition request from the gateway, the service device can acquire the data of the service, and then can send a data response carrying the data of the service to the gateway.
网关接收到来自控制设备的数据获取请求之后,可以先根据记录的标识对应的对应关系以及数据获取请求的源IP地址和目的IP地址,确定数据获取请求与IP地址获取请求对应的业务为同一业务。在数据获取请求的源IP地址和目的IP地址与对应关系中的两个IP地址相同时,确定数据获取请求与IP地址获取请求对应的业务为同一业务。After the gateway receives the data acquisition request from the control device, it can first determine that the business corresponding to the data acquisition request and the IP address acquisition request is the same business according to the corresponding relationship between the recorded identifier and the source IP address and destination IP address of the data acquisition request. . When the source IP address and the destination IP address of the data acquisition request are the same as the two IP addresses in the corresponding relationship, it is determined that the services corresponding to the data acquisition request and the IP address acquisition request are the same business.
可选地,网关接收到来自控制设备的数据获取请求之后,可以先将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口,之后向第一IP地址对应的服务设备发送替换后的数据获取请求。第一端口为终端设备的端口,第二端口为网关的端口。替换后的数据获取请求可以携带有业务的标识,以便服务设备可以根据业务的标识获取业务的数据。Optionally, after the gateway receives the data acquisition request from the control device, it may first replace the source IP address of the data acquisition request from the second IP address with the third IP address, and replace the source port of the data acquisition request with the first port. It is the second port, and then sends the replaced data acquisition request to the service device corresponding to the first IP address. The first port is the port of the terminal device, and the second port is the port of the gateway. The replaced data acquisition request may carry the service identifier, so that the service device can obtain the data of the service according to the service identifier.
可选地,网关将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口时,可以将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口,将数据获取请求的目的IP地址由第四IP地址替换为第一IP地址。Optionally, when the gateway replaces the source IP address of the data acquisition request from the second IP address with the third IP address, and replaces the source port of the data acquisition request from the first port to the second port, the source of the data acquisition request can be changed The IP address is replaced from the second IP address to the third IP address, the source port of the data acquisition request is replaced from the first port to the second port, and the destination IP address of the data acquisition request is replaced from the fourth IP address to the first IP address .
步骤304还可以包括:Step 304 may also include:
3042、网关向控制设备发送数据响应。3042. The gateway sends a data response to the control device.
网关接收到来自服务设备的数据响应之后,可以向控制设备发送数据响应。数据响应携带有业务的数据。After the gateway receives the data response from the service device, it can send the data response to the control device. The data response carries business data.
可选地,网关接收到来自服务设备的数据响应之后,可以先将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第一端口,之后向控制设备发送替换后的数据响应。Optionally, after the gateway receives the data response from the service device, it can first replace the destination IP address of the data response from the third IP address to the second IP address, and replace the destination port of the data response from the second port to the first. Port, and then send the replaced data response to the control device.
可选地,网关将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第一端口时,可以将数据响应的源IP地址由第一IP地址替换为第四IP地址,将数据响应的目的IP地址由第三IP地址替换为所述第二IP地址,将数据响应的目的端口由第二端口替换为第一端口,可以保证终端设备的用户无法看到互联网服务商/CDN服务商的IP地址。Optionally, when the gateway replaces the destination IP address of the data response from the third IP address to the second IP address, and replaces the destination port of the data response from the second port to the first port, the source IP address of the data response can be replaced by The first IP address is replaced with the fourth IP address, the destination IP address of the data response is replaced from the third IP address to the second IP address, and the destination port of the data response is replaced from the second port to the first port, which can ensure The user of the terminal device cannot see the IP address of the Internet service provider/CDN service provider.
步骤305还可以包括:Step 305 may also include:
3052、控制设备向终端设备发送数据响应。3052. The control device sends a data response to the terminal device.
控制设备接收到来自网关的数据响应之后,可以向终端设备发送数据响应。终端设备接收来自控制设备的数据响应。After the control device receives the data response from the gateway, it can send the data response to the terminal device. The terminal device receives the data response from the control device.
在OTT业务模式下,由于运营商无法控制宽带中传输的业务的内容和传输的用户,因此,在互联网服务商/CDN服务商需要购买大带宽的宽带用于传输高价值业务时,所需成本较高。为了降低互联网服务商/CDN服务商的购买成本,可以提高运营商在宽带中的控制能力。在运营商监测到传输的业务为高价值业务,即专用连接的业务的情况下,可以单独进行计费。在监测到传输的低价值业务,即通用连接的业务的情况下,可以采用现有计费方式进行计费。In the OTT business model, because operators cannot control the content of services transmitted in broadband and the users who transmit them, the cost is required when Internet service providers/CDN service providers need to purchase broadband with large bandwidth for transmission of high-value services Higher. In order to reduce the purchase cost of Internet service providers/CDN service providers, it is possible to improve the control capabilities of operators in broadband. In the case where the operator monitors that the transmitted service is a high-value service, that is, a dedicated connection service, charging can be performed separately. In the case of monitoring the transmitted low-value service, that is, the service of the universal connection, the existing charging method can be used for charging.
可选地,在终端设备与服务设备之间进行通信,也即终端设备从服务设备获取业务的数据的过程中,也即终端设备上网的过程中,网关可以对终端设备和服务设备使用的宽带进行计费。可以设置最低限制流量,在终端设备与服务设备间使用的宽带的流量小于最低限制流量的情况下,可以按照最低限制流量对终端设备和服务设备使用的宽带进行计费。在终端设备与服务设备间使用的宽带的流量大于或等于最低限制流量的情况下,按照终端设备与服务设备间使用宽带的使用流量,对终端设备和服务设备使用的宽带进行计费。即终端设备的上网流量小于最低限制流量时,按照最低限制流量进行计费,终端设备的上网流量大于或等于最低限制流量时,按照实际使用流量进行计费。其中,最低限制流量由运营商根据业务需要自行指定。例如,用于4K视频的专用连接的业务的最低限制流量为20Mbps,用于8K VR视频的专用连接的业务的最低限制流量为80Mbps。运营商可同时提供多种最低限制流量不同的专用连接,供CDN服务商按需选择。Optionally, in the communication between the terminal device and the service device, that is, when the terminal device obtains service data from the service device, that is, when the terminal device is surfing the Internet, the gateway can access the broadband that the terminal device and the service device use. Perform billing. The minimum limit flow can be set. When the broadband flow used between the terminal device and the service device is less than the minimum limit flow, the broadband used by the terminal device and the service device can be billed according to the minimum limit flow. When the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, the broadband used by the terminal device and the service device is billed according to the broadband usage traffic between the terminal device and the service device. That is, when the Internet traffic of the terminal device is less than the minimum limit flow, billing is based on the minimum limit flow, and when the Internet traffic of the terminal device is greater than or equal to the minimum limit flow, the billing is based on the actual usage flow. Among them, the minimum restricted traffic is specified by the operator according to the business needs. For example, the minimum traffic limit for a dedicated connection service for 4K video is 20 Mbps, and the minimum traffic limit for a dedicated connection service for 8K VR video is 80 Mbps. Operators can provide a variety of dedicated connections with different minimum flow rates at the same time for CDN service providers to choose according to their needs.
通过该计费方式,在经济上避免了CDN厂商在高价值连接中填充大量低价值(低带宽)内容。Through this billing method, it is economically avoided that CDN manufacturers fill a large amount of low-value (low-bandwidth) content in high-value connections.
可选地,可以设置最低限制流量,可以先计算最低限制流量对应的最低限制带宽,在终端设备与服务设备间使用的宽带的带宽小于最低限制带宽的情况下,按照最低限制带宽对终端设备和服务设备使用的宽带进行计费。在终端设备与服务设备间使用的宽带的带宽大于或等于最低限制带宽的情况下,按照终端设备与服务设备间使用宽带的使用带宽,对终端设备和服务设备使用的宽带进行计费。即终端设备的上网带宽小于最低限制流量对应的最低限制带宽时,按照最低限制带宽进行计费,终端设备的上网流量大于或等于最低限制带宽时,按照实际使用带宽进行计费。Optionally, the lowest limit traffic can be set, and the lowest limit bandwidth corresponding to the lowest limit traffic can be calculated first. In the case that the bandwidth of the broadband used between the terminal device and the service device is less than the minimum limit bandwidth, the terminal device and The broadband used by the service equipment is billed. In the case that the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum bandwidth, the broadband used by the terminal device and the service device is billed according to the bandwidth used between the terminal device and the service device. That is, when the Internet access bandwidth of the terminal device is less than the lowest limit bandwidth corresponding to the lowest limit traffic, billing is based on the lowest limit bandwidth, and when the Internet traffic of the terminal device is greater than or equal to the lowest limit bandwidth, billing is based on the actual bandwidth used.
基于图1和图2所示的网络架构,请参阅图4,图4是本发明实施例公开的另一种通信方法的流程示意图。如图4所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 1 and FIG. 2, please refer to FIG. 4. FIG. 4 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in Fig. 4, the communication method may include the following steps.
401、终端设备向控制设备发送携带第一指示信息的IP地址获取请求。401. The terminal device sends an IP address acquisition request carrying the first indication information to the control device.
其中,步骤401与步骤3011相似,详细描述请参考步骤3011,在此不加赘述。Among them, step 401 is similar to step 3011. For detailed description, please refer to step 3011, which will not be repeated here.
402、在第一指示信息指示业务为专用连接的业务的情况下,控制设备向网关发送IP地址获取请求。402. In a case where the first indication information indicates that the service is a dedicated connection service, the control device sends an IP address acquisition request to the gateway.
其中,步骤402与步骤3021相同,详细描述请参考步骤3021,在此不加赘述。Wherein, step 402 is the same as step 3021, for detailed description, please refer to step 3021, which will not be repeated here.
403、网关将IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址。403. The gateway replaces the source IP address of the IP address acquisition request with the third IP address from the second IP address.
网关接收到来自控制设备的IP地址获取请求之后,可以先将IP地址获取请求的源IP地址 由第二IP地址替换为第三IP地址,可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。第二IP地址为终端设备的IP地址,第三IP地址为网关的IP地址。After the gateway receives the IP address acquisition request from the control device, it can first replace the source IP address of the IP address acquisition request from the second IP address to the third IP address, which can ensure that the Internet service provider/CDN service provider cannot see the terminal device IP address. The second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway.
404、网关向控制中心发送替换后的IP地址获取请求。404. The gateway sends a replacement IP address acquisition request to the control center.
网关将IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址之后,可以向控制中心发送替换后的IP地址获取请求。After the gateway replaces the source IP address of the IP address acquisition request from the second IP address to the third IP address, it may send the replaced IP address acquisition request to the control center.
405、控制中心向网关发送携带第一IP地址的第一IP地址响应。405. The control center sends a first IP address response carrying the first IP address to the gateway.
其中,步骤405与步骤3032相似,详细描述请参考步骤3032对应的描述,在此不加赘述。Among them, step 405 is similar to step 3032, and for detailed description, please refer to the description corresponding to step 3032, which will not be repeated here.
406、网关将IP地址响应的目的IP地址由第三IP地址替换为第二IP地址,以及将第一IP地址替换为第四IP地址,得到第二IP地址响应。406. The gateway replaces the destination IP address of the IP address response from the third IP address with the second IP address, and replaces the first IP address with the fourth IP address, to obtain the second IP address response.
407、网关向控制设备发送第二IP地址响应。407. The gateway sends a second IP address response to the control device.
其中,步骤406与步骤407详细的描述可以参考步骤3041对应的描述。For detailed description of step 406 and step 407, reference may be made to the corresponding description of step 3041.
408、网关记录业务的标识与第二IP地址以及第四IP地址之间的对应关系。408. The gateway records the correspondence between the service identifier and the second IP address and the fourth IP address.
网关将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址,以及将第一IP地址替换为第四IP地址得到第二IP地址响应之后,可以记录业务的标识与第二IP地址以及第四IP地址之间的对应关系。The gateway replaces the destination IP address of the first IP address response from the third IP address to the second IP address, and replaces the first IP address to the fourth IP address to obtain the second IP address response, and can record the service ID and the first IP address. Correspondence between the second IP address and the fourth IP address.
409、控制设备向终端设备发送第二IP地址响应。409. The control device sends a second IP address response to the terminal device.
控制设备接收到来自网关的第二IP地址响应之后,可以向终端设备发送第二IP地址响应。After receiving the second IP address response from the gateway, the control device may send the second IP address response to the terminal device.
410、终端设备向控制设备发送携带第二指示信息的数据获取请求。410. The terminal device sends a data acquisition request carrying the second indication information to the control device.
其中,步骤410与步骤3012相似,详细描述请参考步骤3012,在此不加赘述。Wherein, step 410 is similar to step 3012. For detailed description, please refer to step 3012, which will not be repeated here.
411、在第二指示信息指示业务为专用连接的业务的情况下,控制设备向网关发送数据获取请求。411. In a case where the second indication information indicates that the service is a dedicated connection service, the control device sends a data acquisition request to the gateway.
其中,步骤411与步骤3022相似,详细描述请参考步骤3022,在此不加赘述。Among them, step 411 is similar to step 3022, and for detailed description, please refer to step 3022, which will not be repeated here.
412、网关根据对应关系以及数据获取请求的源IP地址和目的IP地址,确定数据获取请求与IP地址获取请求对应的业务为同一业务。412. The gateway determines that the services corresponding to the data acquisition request and the IP address acquisition request are the same business according to the correspondence relationship and the source IP address and the destination IP address of the data acquisition request.
413、网关将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,源端口由第一端口替换为第二端口,目的IP地址由第四IP地址替换为第一IP地址。413. The gateway replaces the source IP address of the data acquisition request from the second IP address with the third IP address, the source port from the first port to the second port, and the destination IP address from the fourth IP address to the first IP address.
414、网关向第一IP地址对应的服务设备发送替换后的数据获取请求。414. The gateway sends the replaced data acquisition request to the service device corresponding to the first IP address.
其中,步骤412-步骤414详细的描述可以参考步骤3032对应的描述。For the detailed description of step 412 to step 414, please refer to the corresponding description of step 3032.
415、服务设备向网关发送携带业务的数据的数据响应。415. The service device sends a data response carrying service data to the gateway.
其中,步骤415与步骤3033相似,详细描述请参考步骤3033,在此不加赘述。Among them, step 415 is similar to step 3033. For detailed description, please refer to step 3033, which will not be repeated here.
416、网关将数据响应的源IP地址由第一IP地址替换为第四IP地址,目的IP地址由第三IP地址替换为第二IP地址,目的端口由第二端口替换为第一端口。416. The gateway replaces the source IP address of the data response from the first IP address to the fourth IP address, the destination IP address from the third IP address to the second IP address, and the destination port from the second port to the first port.
417、网关向控制设备发送替换后的数据响应。417. The gateway sends the replaced data response to the control device.
其中,步骤416和步骤417可以参考步骤3042对应的描述。For step 416 and step 417, reference may be made to the description corresponding to step 3042.
418、控制设备向终端设备发送替换后的数据响应。418. The control device sends the replaced data response to the terminal device.
控制设备接收到来自网关的替换后的数据响应之后,可以向终端设备发送替换后的数据响应。终端设备接收来自控制设备的替换后的数据响应。After the control device receives the replaced data response from the gateway, it can send the replaced data response to the terminal device. The terminal device receives the replaced data response from the control device.
可选地,在终端设备与服务设备间使用的宽带的流量小于最低限制流量的情况下,可以按照最低限制流量对终端设备和服务设备使用的宽带进行计费;在终端设备与服务设备间使用的宽带的流量大于或等于最低限制流量的情况下,可以按照终端设备与服务设备间使用宽带的使用流量,对终端设备和服务设备使用的宽带进行计费。Optionally, when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, the broadband used by the terminal device and the service device can be billed according to the minimum limit traffic; use between the terminal device and the service device In the case that the broadband traffic is greater than or equal to the minimum limit traffic, the broadband used by the terminal equipment and the service equipment can be billed according to the broadband usage traffic between the terminal equipment and the service equipment.
可选地,可以计算最低限制流量对应的最低限制带宽,在终端设备与服务设备间使用的宽带的带宽小于最低限制带宽的情况下,可以按照最低限制带宽对终端设备和服务设备使用的宽带进行计费;在终端设备与服务设备间使用的宽带的带宽大于或等于最低限制带宽的情况下,按照终端设备与服务设备间使用宽带的使用带宽,对终端设备和服务设备使用的宽带进行计费。Optionally, the lowest limit bandwidth corresponding to the lowest limit traffic can be calculated. When the bandwidth of the broadband used between the terminal device and the service device is less than the lowest limit bandwidth, the bandwidth used by the terminal device and the service device can be performed according to the lowest limit bandwidth. Billing; when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum bandwidth, the broadband used by the terminal device and the service device is billed according to the bandwidth used between the terminal device and the service device .
其中,上面各个部分的详细描述可以参考上一实施例中对应的描述。For the detailed description of each part above, reference may be made to the corresponding description in the previous embodiment.
基于图1所示的网络架构,请参阅图5,图5是本发明实施例公开的又一种通信方法的流程示意图。如图5所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 1, please refer to FIG. 5. FIG. 5 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in Fig. 5, the communication method may include the following steps.
业务所在服务设备的IP地址为IP1。终端设备的IP地址为IP2。网关的IP地址为IP3。网关中设置有具有业务代理功能的IP地址为IP4,为用于专用连接的业务的IP地址。控制中心的IP地址为IP5。BRAS中存储有网关中设置的具有代理功能的IP地址。第一指示信息为业务的域名,第二指示信息为IP4。The IP address of the service device where the business is located is IP1. The IP address of the terminal device is IP2. The IP address of the gateway is IP3. The IP address provided in the gateway with the service proxy function is IP4, which is the IP address of the service used for the dedicated connection. The IP address of the control center is IP5. The BRAS stores the IP address with proxy function set in the gateway. The first indication information is the domain name of the service, and the second indication information is IP4.
501、终端设备通过ONT和OLT向BRAS发送IP地址获取请求。501. The terminal device sends an IP address acquisition request to the BRAS through the ONT and the OLT.
终端设备需要业务的数据的情况下,可以先通过ONT和OLT向BRAS发送IP地址获取请求。IP地址获取请求的源IP地址为IP2。IP地址获取请求的目的IP地址为IP5。IP地址获取请求携带有业务的域名。例如,域名可以为xxx.com,也可以为VR.xxx.com。When the terminal device needs service data, it can first send an IP address acquisition request to the BRAS through the ONT and OLT. The source IP address of the IP address acquisition request is IP2. The destination IP address of the IP address acquisition request is IP5. The IP address acquisition request carries the domain name of the service. For example, the domain name can be xxx.com or VR.xxx.com.
终端设备可以先向ONT发送IP地址获取请求。ONT接收到来自终端设备的IP地址获取请求之后,可以向OLT发送IP地址获取请求。OLT接收到来自ONT的IP地址获取请求,可以向BRAS发送IP地址获取请求。The terminal device may first send an IP address acquisition request to the ONT. After receiving the IP address acquisition request from the terminal device, the ONT can send an IP address acquisition request to the OLT. The OLT receives the IP address acquisition request from the ONT, and can send the IP address acquisition request to the BRAS.
502、在域名对应的业务为通用连接的业务的情况下,BRAS向控制中心发送IP地址获取请求。502. When the service corresponding to the domain name is a universal connection service, the BRAS sends an IP address acquisition request to the control center.
BRAS接收到来自OLT的IP地址获取请求之后,可以解析业务的域名。在解析出的域名对应的业务为通用连接的业务的情况下,BRAS可以向控制中心发送IP地址获取请求。After the BRAS receives the IP address acquisition request from the OLT, it can resolve the domain name of the service. In the case that the service corresponding to the resolved domain name is a universal connection service, the BRAS may send an IP address acquisition request to the control center.
可选地,BRAS接收到来自OLT的IP地址获取请求之后,可以先判断IP地址获取请求对应的报文是否为DNS,在判断出IP地址获取请求对应的报文为DNS的情况下,才解析业务的域名。Optionally, after the BRAS receives the IP address acquisition request from the OLT, it can first determine whether the packet corresponding to the IP address acquisition request is DNS, and resolves only when it determines that the packet corresponding to the IP address acquisition request is DNS The domain name of the business.
503、控制中心通过BRAS、OLT和ONT向终端设备发送携带IP1的IP地址响应。503. The control center sends an IP address response carrying IP1 to the terminal device through the BRAS, OLT and ONT.
控制中心接收到来自BRAS的IP地址获取请求之后,表明业务为通用连接的业务,可以根据终端设备的IP地址IP2选取服务质量最优的服务设备,之后向BRAS发送携带IP1的IP地址响应。IP1为选取的服务设备的IP地址。BRAS接收到来自控制中心的IP地址响应之后,可以向OLT发送IP地址响应。OLT接收到来自BRAS的IP地址响应之后,可以向ONT发送IP地址响应。ONT接收到来自OLT的IP地址响应之后,可以向终端设备发送IP地址响应。After the control center receives the IP address acquisition request from the BRAS, it indicates that the service is a universal connection service. It can select the service device with the best service quality according to the IP address IP2 of the terminal device, and then send an IP address response carrying IP1 to the BRAS. IP1 is the IP address of the selected service device. After the BRAS receives the IP address response from the control center, it can send the IP address response to the OLT. After receiving the IP address response from the BRAS, the OLT can send an IP address response to the ONT. After receiving the IP address response from the OLT, the ONT can send an IP address response to the terminal device.
选取服务质量最优的服务设备时,可以选取与终端设备的距离最近的服务设备,也可 以选取与终端设备的距离较近以及负载较小的服务设备,还可以根据与终端设备的距离以及其它因素进行选取。When selecting the service equipment with the best service quality, you can select the service equipment with the closest distance to the terminal equipment, or select the service equipment with a short distance from the terminal equipment and a small load. It can also be based on the distance from the terminal equipment and other services. Factors are selected.
504、终端设备通过ONT、OLT和BRAS从IP1对应的服务设备获取业务的数据。504. The terminal device obtains service data from the service device corresponding to IP1 through the ONT, OLT, and BRAS.
终端设备接收到来自ONT的IP地址响应之后,可以根据IP地址响应得到IP1,即可以从域名中解析出IP1。之后可以通过ONT、OLT和BRAS向IP1对应的服务设备发起数据获取请求。服务设备接收到数据获取请求之后,可以通过BRAS、OLT和ONT向终端设备返回携带业务的数据的数据响应。数据获取请求可以为HTTP请求。After receiving the IP address response from the ONT, the terminal device can obtain IP1 according to the IP address response, that is, it can resolve IP1 from the domain name. Afterwards, a data acquisition request can be initiated to the service device corresponding to IP1 through the ONT, OLT, and BRAS. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the BRAS, OLT, and ONT. The data acquisition request may be an HTTP request.
505、在域名对应的业务为专用连接的业务的情况下,BRAS向网关发送IP地址获取请求。505. When the service corresponding to the domain name is a dedicated connection service, the BRAS sends an IP address acquisition request to the gateway.
在解析的域名对应的业务为专用连接的业务的情况下,表明该业务可以通过网关,BRAS可以向网关发送IP地址获取请求。When the service corresponding to the resolved domain name is a dedicated connection service, it indicates that the service can pass through the gateway, and the BRAS can send an IP address acquisition request to the gateway.
506、网关将IP地址获取请求的源IP地址由IP2替换为IP3,向控制中心发送替换后的IP地址获取请求。506. The gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
网关接收到来自BRAS的IP地址获取请求之后,可以将IP地址获取请求的源IP地址由IP2替换为IP3,之后可以向控制中心发送替换后的IP地址获取请求,可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。After the gateway receives the IP address acquisition request from the BRAS, it can replace the source IP address of the IP address acquisition request from IP2 to IP3, and then can send the replaced IP address acquisition request to the control center, which can guarantee the Internet service provider/CDN service The vendor cannot see the IP address of the terminal device.
507、控制中心向网关发送携带IP1的IP地址响应。507. The control center sends an IP address response carrying IP1 to the gateway.
控制中心接收到来自网关的替换后的IP地址获取请求之后,可以根据网关选择服务质量最优的服务设备,之后向网关返回携带IP1的IP地址响应。在选择服务质量最优的服务设备时,可以选取与网关的距离最近的服务设备,也可以选取与网关的距离较近以及负载较小的服务设备,还可以根据与网关的距离以及其它因素进行选取。步骤503与步骤507中的IP1可以为同样的IP地址,也可以为不同的IP地址。After the control center receives the replaced IP address acquisition request from the gateway, it can select the service device with the best service quality according to the gateway, and then return an IP address response carrying IP1 to the gateway. When selecting the service device with the best service quality, you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. IP1 in step 503 and step 507 can be the same IP address or different IP addresses.
508、网关将IP地址响应的目的IP地址由IP3替换为IP2,IP1替换为IP4,通过BRAS、OLT和ONT向终端设备发送替换后的IP地址响应。508. The gateway replaces the destination IP address of the IP address response from IP3 to IP2, and IP1 to IP4, and sends the replaced IP address response to the terminal device through the BRAS, OLT and ONT.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP2,IP地址响应携带的IP1替换为IP4,之后通过BRAS、OLT和ONT向终端设备发送替换后的IP地址响应,可以保证终端设备无法看到互联网服务商/CDN服务商的IP地址。此外,还可以记录IP1与IP4之间的对应关系。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and replace the IP1 carried in the IP address response with IP4, and then send the replacement to the terminal device through the BRAS, OLT and ONT. The IP address response can ensure that the terminal device cannot see the IP address of the Internet service provider/CDN service provider. In addition, the correspondence between IP1 and IP4 can also be recorded.
509、终端设备通过ONT和OLT向BRAS发送数据获取请求。509. The terminal device sends a data acquisition request to the BRAS through the ONT and the OLT.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP4。之后可以通过ONT和OLT向BRAS发送数据获取请求。数据获取请求的源IP地址为IP2,目的IP地址为IP4,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. Afterwards, a data acquisition request can be sent to the BRAS through the ONT and OLT. The source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
510、BRAS根据IP4确定业务为专用连接的业务,向网关发送数据获取请求。510. The BRAS determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
511、网关将数据获取请求的源IP地址由IP2替换为IP3,目的IP地址由IP4替换为IP1,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。511. The gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the destination IP address from IP4 to IP1, and the source port from the terminal device port to the gateway port, and sends the replaced data to the service device corresponding to IP1 Get the request.
网关接收到数据获取请求之后,可以将数据获取请求的源IP地址由IP2替换为IP3。根据IP4与IP1的对应关系,可以将目的IP地址由IP4替换为IP1,以便可以从IP1对应的服务设备 获取业务的数据。以及将源端口由终端设备的端口替换为网关的端口。之后可以向IP1对应的服务设备发送替换后的数据获取请求。After the gateway receives the data acquisition request, it can replace the source IP address of the data acquisition request from IP2 to IP3. According to the correspondence between IP4 and IP1, the destination IP address can be replaced from IP4 to IP1, so that service data can be obtained from the service device corresponding to IP1. And replace the source port from the port of the terminal device with the port of the gateway. After that, the replaced data acquisition request can be sent to the service device corresponding to IP1.
512、服务设备向网关发送数据响应。512. The service device sends a data response to the gateway.
513、网关将数据响应的目的IP地址由IP3替换为IP2,源IP地址由IP1替换为IP4,目的端口由网关的端口替换为终端设备的端口,通过BRAS、OLT和ONT向终端设备发送替换后的数据响应。513. The gateway replaces the destination IP address of the data response from IP3 to IP2, the source IP address from IP1 to IP4, the destination port from the gateway port to the terminal device port, and the replacement is sent to the terminal device through the BRAS, OLT and ONT. Data response.
其中,步骤501-步骤504为通用连接的业务的流程。步骤501、步骤505-步骤513为专用连接的业务的流程,可以保证终端设备的用户无法看到互联网服务商/CDN服务商的IP地址,同时可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。Among them, step 501 to step 504 are the flow of the universal connection service. Step 501, Step 505-Step 513 are dedicated connection service procedures, which can ensure that the user of the terminal device cannot see the IP address of the ISP/CDN service provider, and at the same time, it can ensure that the ISP/CDN service provider cannot see the terminal. The IP address of the device.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
基于图1所示的网络架构,请参阅图6,图6是本发明实施例公开的又一种通信方法的流程示意图。如图6所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 1, please refer to FIG. 6. FIG. 6 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 6, the communication method may include the following steps.
一个服务设备可以只部署有专用连接的业务的IP地址,也可以只部署有通用连接的业务的IP地址,还可以即部署有专用连接的业务的IP地址也部署有通用连接的业务的IP地址。服务设备的专用连接的业务的IP地址可以为IP4,服务设备的通用连接的业务的IP地址可以为IP1。因此,可以通过服务设备的IP地址识别出业务为专用连接的业务。运营商可以通过自动或人工方式将所有服务设备为专用连接的业务的IP地址下发到BRAS。第一指示信息可以为业务的域名,第二指示信息可以为IP4,即业务所在服务设备的IP地址。终端设备的IP地址为IP2,网关的IP地址为IP3,控制中心的IP地址为IP5。A service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection. . The IP address of the service of the dedicated connection of the service device may be IP4, and the IP address of the service of the general connection of the service device may be IP1. Therefore, the service can be identified as a dedicated connection service through the IP address of the service device. Operators can automatically or manually send all service equipment to the BRAS the IP addresses of dedicated connection services. The first indication information may be the domain name of the service, and the second indication information may be IP4, that is, the IP address of the service device where the service is located. The IP address of the terminal device is IP2, the IP address of the gateway is IP3, and the IP address of the control center is IP5.
601、终端设备通过ONT和OLT向BRAS发送IP地址获取请求。601. The terminal device sends an IP address acquisition request to the BRAS through the ONT and the OLT.
其中,步骤601与步骤501相同,详细描述请参考步骤501,在此不加赘述。Wherein, step 601 is the same as step 501. For detailed description, please refer to step 501, which will not be repeated here.
602、在域名对应的业务为通用连接的业务的情况下,BRAS向控制中心发送IP地址获取请求。602. When the service corresponding to the domain name is a universal connection service, the BRAS sends an IP address acquisition request to the control center.
其中,步骤602与步骤502相同,详细描述请参考步骤502,在此不加赘述。Wherein, step 602 is the same as step 502. For detailed description, please refer to step 502, which will not be repeated here.
603、控制中心通过BRAS、OLT和ONT向终端设备发送携带IP1的IP地址响应。603. The control center sends an IP address response carrying IP1 to the terminal device through the BRAS, OLT and ONT.
其中,步骤603与步骤503相似,详细描述请参考步骤503,在此不加赘述。此外,控制中心选取服务设备时,选取的是部署有通用连接的业务的服务设备,即是从部署有通用连接的业务的IP地址对应的服务设备中进行选取的,也即从部署有通用连接的业务的IP地址对应的服务设备包括有需要获取的业务的数据的服务设备中选取的,以便可以保证选取的服务设备上部署有要获取的业务的数据。Among them, step 603 is similar to step 503. For detailed description, please refer to step 503, which will not be repeated here. In addition, when the control center selects the service device, it selects the service device deployed with the universal connection service, that is, it selects from the service device corresponding to the IP address of the service deployed with the universal connection, that is, it selects from the service equipment deployed with the universal connection The service device corresponding to the service IP address of the service device includes the service device that needs to obtain the service data selected, so as to ensure that the selected service device is deployed with the service data to be obtained.
604、终端设备通过ONT、OLT和BRAS从IP1对应的服务设备获取业务的数据。604. The terminal device obtains service data from the service device corresponding to IP1 through the ONT, OLT, and BRAS.
其中,步骤604与步骤504相同,详细描述请参考步骤504,在此不加赘述。Wherein, step 604 is the same as step 504. For detailed description, please refer to step 504, which will not be repeated here.
605、在域名对应的业务为专用连接的业务的情况下,BRAS向网关发送IP地址获取请求。605. When the service corresponding to the domain name is a dedicated connection service, the BRAS sends an IP address acquisition request to the gateway.
其中,步骤605与步骤505相同,详细描述请参考步骤505,在此不加赘述。Wherein, step 605 is the same as step 505. For detailed description, please refer to step 505, which will not be repeated here.
606、网关将IP地址获取请求的源IP地址由IP2替换为IP3,向控制中心发送替换后的IP地址获取请求。606. The gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
其中,步骤606与步骤506相同,详细描述请参考步骤506,在此不加赘述。Wherein, step 606 is the same as step 506. For detailed description, please refer to step 506, which will not be repeated here.
607、控制中心向网关发送携带IP4的IP地址响应。607. The control center sends an IP address response carrying IP4 to the gateway.
控制中心接收到来自网关的替换后的IP地址获取请求之后,表明业务为专用连接的业务,可以根据网关选择服务质量最优的服务设备,之后向网关返回携带IP4的IP地址响应。在选择服务质量最优的服务设备时,可以选取与网关的距离最近的服务设备,也可以选取与网关的距离较近以及负载较小的服务设备,还可以根据与网关的距离以及其它因素进行选取。控制中心选取服务设备时,选取的是部署有专用连接的业务的服务设备,即是从部署有专用连接的业务的IP地址对应的服务设备中进行选取的,也即从部署有专用连接的业务的IP地址对应的服务设备包括有需要获取的业务的数据的服务设备中选取的,以便可以保证选取的服务设备上部署有要获取的业务的数据。其中,专用连接的业务和通用连接的业务可以部署在一个服务设备上,也可以部署在不同的服务设备上。After the control center receives the replaced IP address acquisition request from the gateway, it indicates that the service is a dedicated connection service. The service device with the best service quality can be selected according to the gateway, and then the IP address response carrying IP4 is returned to the gateway. When selecting the service device with the best service quality, you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. When the control center selects the service equipment, it selects the service equipment with the dedicated connection service, that is, it selects from the service equipment corresponding to the IP address of the service where the dedicated connection is deployed, that is, from the service where the dedicated connection is deployed The service device corresponding to the IP address of the selected service device includes the service device that needs to obtain the service data, so as to ensure that the selected service device is deployed with the service data to be obtained. Among them, the dedicated connection service and the general connection service can be deployed on one service device or on different service devices.
608、网关将IP地址响应的目的IP地址由IP3替换为IP2,通过BRAS、OLT和ONT向终端设备发送替换后的IP地址响应。608. The gateway replaces the destination IP address of the IP address response from IP3 to IP2, and sends the replaced IP address response to the terminal device through the BRAS, OLT and ONT.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP2,之后通过BRAS、OLT和ONT向终端设备发送替换后的IP地址响应。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and then send the replaced IP address response to the terminal device through the BRAS, OLT and ONT.
609、终端设备通过ONT和OLT向BRAS发送数据获取请求。609. The terminal device sends a data acquisition request to the BRAS through the ONT and the OLT.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址得到IP4。之后可以通过ONT和OLT向BRAS发送数据获取请求。数据获取请求的源IP地址为IP2,目的IP地址为IP4,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address. Afterwards, a data acquisition request can be sent to the BRAS through the ONT and OLT. The source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
610、BRAS根据IP4确定业务为专用连接的业务,向网关发送数据获取请求。610. The BRAS determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
611、网关将数据获取请求的源IP地址由IP2替换为IP3,源端口由终端设备的端口替换为网关的端口,向IP4对应的服务设备发送替换后的数据获取请求。611. The gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP4.
网关接收到数据获取请求之后,可以将数据获取请求的源IP地址由IP2替换为IP3,源端口由终端设备的端口替换为网关的端口。之后向IP4对应的服务设备发送替换后的数据获取请求。After the gateway receives the data acquisition request, it can replace the source IP address of the data acquisition request from IP2 to IP3, and replace the source port from the port of the terminal device to the port of the gateway. Then send the replaced data acquisition request to the service device corresponding to IP4.
612、服务设备向网关发送数据响应。612. The service device sends a data response to the gateway.
613、网关将数据响应的目的IP地址由IP3替换为IP2,目的端口由网关的端口替换为终端设备的端口,通过BRAS、OLT和ONT向终端设备发送替换后的数据响应。613. The gateway replaces the destination IP address of the data response from IP3 to IP2, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data response to the terminal device through the BRAS, OLT and ONT.
其中,步骤601-步骤604为通用连接的业务的流程。步骤601、步骤605-步骤613为专用连接的业务的流程。Among them, step 601-step 604 are the flow of the universal connection service. Step 601, step 605-step 613 are the processes of dedicated connection services.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
基于图1所示的网络架构,请参阅图7,图7是本发明实施例公开的又一种通信方法的流程示意图。如图7所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 1, please refer to FIG. 7. FIG. 7 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 7, the communication method may include the following steps.
可以为每个终端设备部署两个IP地址,一个IP地址为用于获取专用连接的业务的IP地址,为IP4,另一个IP地址为用于获取通用连接的业务的IP地址,为IP2。因此,可以通过终端设备的IP地址识别出业务为专用连接的业务。运营商可以为使用专用连接的业务的用户划分单独的虚拟局域网(virtual local area network,VLAN),并分配单独IP地址,可以通过自 动或人工方式将所有终端设备为用于获取专用连接的业务的IP地址下发到BRAS。第一指示信息和第二指示信息为IP4。业务所在服务设备的IP地址为IP1。网关的IP地址为IP3。控制中心的IP地址为IP5。Two IP addresses can be deployed for each terminal device. One IP address is the IP address used to obtain the dedicated connection service, which is IP4, and the other IP address is the IP address used to obtain the general connection service, which is IP2. Therefore, the service can be identified as a dedicated connection service through the IP address of the terminal device. Operators can divide a separate virtual local area network (VLAN) for users who use dedicated connection services, and assign separate IP addresses. All terminal devices can be used to obtain dedicated connection services automatically or manually. The IP address is delivered to the BRAS. The first indication information and the second indication information are IP4. The IP address of the service device where the business is located is IP1. The IP address of the gateway is IP3. The IP address of the control center is IP5.
701、终端设备通过ONT和OLT向BRAS发送IP地址获取请求。701. The terminal device sends an IP address acquisition request to the BRAS through the ONT and the OLT.
在终端设备需要获取的业务为通用连接的业务的情况下,可以通过ONT和OLT向BRAS发送IP地址获取请求。该IP地址获取请求的源IP地址为IP2,该IP地址获取请求的目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a universal connection service, an IP address obtaining request can be sent to the BRAS through the ONT and OLT. The source IP address of the IP address acquisition request is IP2, and the destination IP address of the IP address acquisition request is IP5.
终端设备可以向ONT发送IP地址获取请求。ONT接收到来自终端设备的IP地址获取请求,可以向OLT发送IP地址获取请求。OLT接收到来自ONT的IP地址获取请求,可以向BRAS发送IP地址获取请求。The terminal device can send an IP address acquisition request to the ONT. The ONT receives the IP address acquisition request from the terminal device, and can send the IP address acquisition request to the OLT. The OLT receives the IP address acquisition request from the ONT, and can send the IP address acquisition request to the BRAS.
702、在IP地址获取请求的源IP地址为IP2的情况下,BRAS向控制中心发送IP地址获取请求。702. When the source IP address of the IP address acquisition request is IP2, the BRAS sends an IP address acquisition request to the control center.
BRAS接收到来自OLT的IP地址获取请求之后,可以从IP地址获取请求中提取IP地址获取请求的源IP地址,在源IP地址为IP2的情况下,表明业务为通用连接的业务,BRAS可以向控制中心发送IP地址获取请求。After the BRAS receives the IP address acquisition request from the OLT, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request. When the source IP address is IP2, it indicates that the service is a universal connection service, and the BRAS can The control center sends an IP address acquisition request.
703、控制中心通过BRAS、OLT和ONT向终端设备发送携带IP1的IP地址响应。703. The control center sends an IP address response carrying IP1 to the terminal device through the BRAS, OLT, and ONT.
其中,步骤703与步骤503相同,详细描述请参考步骤503,在此不加赘述。Among them, step 703 is the same as step 503. For detailed description, please refer to step 503, which will not be repeated here.
704、终端设备通过ONT、OLT和BRAS从IP1对应的服务设备获取业务的数据。704. The terminal device obtains service data from the service device corresponding to IP1 through the ONT, OLT, and BRAS.
终端设备接收到来自ONT的IP地址响应之后,可以根据IP地址响应得到IP1,之后可以通过ONT、OLT和BRAS向IP1对应的服务设备发起数据获取请求。服务设备接收到数据获取请求之后,可以通过BRAS、OLT和ONT向终端设备返回携带业务的数据的数据响应。数据获取请求可以为HTTP请求。数据获取请求的源IP地址为IP2,目的IP地址为IP1。After receiving the IP address response from the ONT, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the ONT, OLT, and BRAS. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the BRAS, OLT, and ONT. The data acquisition request may be an HTTP request. The source IP address of the data acquisition request is IP2, and the destination IP address is IP1.
705、终端设备通过ONT和OLT向BRAS发送IP地址获取请求。705. The terminal device sends an IP address acquisition request to the BRAS through the ONT and the OLT.
在终端设备需要获取的业务为专用连接的业务的情况下,可以通过ONT和OLT向BRAS发送IP地址获取请求。该IP地址获取请求的源IP地址为IP4,目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a dedicated connection service, the ONT and OLT can send an IP address obtaining request to the BRAS. The source IP address of the IP address acquisition request is IP4, and the destination IP address is IP5.
706、在IP地址获取请求的源IP地址为IP4的情况下,BRAS向网关发送IP地址获取请求。706. When the source IP address of the IP address acquisition request is IP4, the BRAS sends an IP address acquisition request to the gateway.
BRAS接收到来自OLT的IP地址获取请求之后,可以从IP地址获取请求中提取IP地址获取请求的源IP地址,在源IP地址为IP4的情况下,表明业务为专用连接的业务,BRAS可以向网关发送IP地址获取请求。After the BRAS receives the IP address acquisition request from the OLT, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request. When the source IP address is IP4, it indicates that the service is a dedicated connection service, and the BRAS can send The gateway sends an IP address acquisition request.
707、网关将IP地址获取请求的源IP地址由IP4替换为IP3,向控制中心发送替换后的IP地址获取请求。707. The gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
708、控制中心向网关发送携带IP1的IP地址响应。708. The control center sends an IP address response carrying IP1 to the gateway.
其中,步骤708与步骤507相同,详细描述请参考步骤507,在此不加赘述。此外,步骤703与步骤708中的IP1可以为同样的IP地址,也可以为不同的IP地址。Wherein, step 708 is the same as step 507. For detailed description, please refer to step 507, which will not be repeated here. In addition, IP1 in step 703 and step 708 may be the same IP address or different IP addresses.
709、网关将IP地址响应的目的IP地址由IP3替换为IP4,通过BRAS、OLT和ONT向终端设备发送替换后的IP地址响应。709. The gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the BRAS, OLT, and ONT.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP4,之后通过BRAS、OLT和ONT向终端设备发送替换后的IP地址响应。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then send the replaced IP address response to the terminal device through the BRAS, OLT and ONT.
710、终端设备通过ONT和OLT向BRAS发送数据获取请求。710. The terminal device sends a data acquisition request to the BRAS through the ONT and the OLT.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP1。之后可以通过ONT和OLT向BRAS发送数据获取请求。数据获取请求的源IP地址为IP4,目的IP地址为IP1,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP1 according to the replaced IP address response. Afterwards, a data acquisition request can be sent to the BRAS through the ONT and OLT. The source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
711、BRAS根据IP4确定业务为专用连接的业务,向网关发送数据获取请求。711. The BRAS determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
712、网关将数据获取请求的源IP地址由IP4替换为IP3,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。712. The gateway replaces the source IP address of the data acquisition request from IP4 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
713、服务设备向网关发送数据响应。713. The service device sends a data response to the gateway.
714、网关将数据响应的目的IP地址由IP3替换为IP4,目的端口由网关的端口替换为终端设备的端口,通过BRAS、OLT和ONT向终端设备发送替换后的数据响应。714. The gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data response to the terminal device through the BRAS, OLT and ONT.
其中,步骤701-步骤704为通用连接的业务的流程。步骤705-步骤714为专用连接的业务的流程。Among them, step 701 to step 704 are the flow of the universal connection service. Steps 705-714 are the processes of dedicated connection services.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
目前,在一些互联网服务商/CDN服务商支持HTTP DNS调度功能的情况下,可以使用HTTP协议完成域名和IP地址的解析,可以避免DNS协议存在的域名劫持等问题。请参阅图8,图8是本发明实施例公开的又一种通信方法的流程示意图。如图8所示,在方案1中,可以预先将互联网服务商/CDN服务商的HTTP DNS控制中心的IP地址配置到BRAS,BRAS通过ONT和OLT接收到来自终端设备的IP地址获取请求之后,可以根据IP地址获取请求的目的IP地址确定IP地址获取请求为DNS请求还是HTTP DNS请求,在IP地址获取请求的目的IP地址属于存储的互联网服务商/CDN服务商的HTTP DNS服务器的IP地址的情况下,可以确定IP地址获取请求为HTTP DNS请求,可以按照类似DNS协议进行处理。数据获取请求为HTTP GET请求,数据响应为HTTP响应。在方案2中,终端设备使用DNS协议,即终端设备发送的IP地址获取请求为DNS请求。控制中心使用HTTP协议,即控制中心发送的IP地址响应为HTTP DNS响应。因此,网关接收到IP地址获取请求之后,可以将IP地址获取请求由DNS请求转换为HTTP DNS请求,之后将转换的IP地址获取请求发送给控制中心。网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应由HIIP DNS响应转换为DNS响应,之后发送给终端设备。数据获取请求为HTTP GET请求,数据响应为HTTP响应。其中,方案1与方案2的详细描述可以参考图5对应的实施例中相应的描述。At present, when some Internet service providers/CDN service providers support the HTTP DNS scheduling function, the HTTP protocol can be used to complete the resolution of domain names and IP addresses, which can avoid problems such as domain name hijacking in the DNS protocol. Please refer to FIG. 8, which is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in Figure 8, in solution 1, the IP address of the HTTP DNS control center of the Internet service provider/CDN service provider can be configured to the BRAS in advance. After the BRAS receives the IP address acquisition request from the terminal device through the ONT and OLT, You can determine whether the IP address acquisition request is a DNS request or an HTTP DNS request according to the destination IP address of the IP address acquisition request. The destination IP address of the IP address acquisition request belongs to the stored IP address of the HTTP DNS server of the Internet service provider/CDN service provider In this case, it can be determined that the IP address acquisition request is an HTTP DNS request, which can be processed in accordance with a similar DNS protocol. The data acquisition request is an HTTP GET request, and the data response is an HTTP response. In scheme 2, the terminal device uses the DNS protocol, that is, the IP address acquisition request sent by the terminal device is a DNS request. The control center uses the HTTP protocol, that is, the IP address response sent by the control center is an HTTP DNS response. Therefore, after the gateway receives the IP address acquisition request, it can convert the IP address acquisition request from a DNS request to an HTTP DNS request, and then send the converted IP address acquisition request to the control center. After the gateway receives the IP address response from the control center, it can convert the IP address response from the HIIP DNS response to the DNS response, and then send it to the terminal device. The data acquisition request is an HTTP GET request, and the data response is an HTTP response. For the detailed description of the scheme 1 and scheme 2, please refer to the corresponding description in the embodiment corresponding to FIG. 5.
在终端设备为移动终端的情况下,终端设备可以访问的外部网络类型较多,如互联网(internet)、无线应用通讯协议(wireless application protocol,WAP)网络、企业内部私网等。在4G移动网络中,终端设备可以使用接入点名称(access point name,APN)来区分接入网络类型。通过在手机上设置移动网络+APN参数就可以接入具体运营商的具体网络。在5G移动网络中,终端设备可以使用数据网络名称(data network name,DNN)来区分接入网络类型。DNN的用途和设置方法与APN类似。一个终端可以同时接入多个APN/DNN,按需访问不同网络。每接入一个APN/DNN,移动网络就会为该终端设备分配一个该APN/DNN对应网络的IP地址。终端设备根据需要选择某个IP地址发起请求,即可访问该IP地址对应的 APN/DNN网络。When the terminal device is a mobile terminal, there are many types of external networks that the terminal device can access, such as the Internet, a wireless application protocol (WAP) network, and an enterprise private network. In 4G mobile networks, terminal devices can use access point names (APN) to distinguish access network types. You can access the specific network of a specific operator by setting the mobile network + APN parameters on the mobile phone. In a 5G mobile network, terminal devices can use data network name (DNN) to distinguish access network types. The purpose and setting method of DNN are similar to APN. A terminal can access multiple APN/DNN at the same time, and access different networks on demand. Every time an APN/DNN is connected, the mobile network will assign an IP address of the corresponding network of the APN/DNN to the terminal device. The terminal device selects an IP address to initiate a request according to the needs, and then can access the APN/DNN network corresponding to the IP address.
基于图2所示的网络架构,请参阅图9,图9是本发明实施例公开的又一种通信方法的流程示意图。如图9所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 9. FIG. 9 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 9, the communication method may include the following steps.
业务所在服务设备的IP地址为IP1。终端设备的IP地址为IP2。网关的IP地址为IP3。网关中设置有具有代理功能的IP地址为IP4,为用于专用连接的业务的IP地址。控制中心的IP地址为IP5。UPF网元中存储有网关中设置的具有代理功能的IP地址。第一指示信息为业务的域名,第二指示信息为IP4。The IP address of the service device where the business is located is IP1. The IP address of the terminal device is IP2. The IP address of the gateway is IP3. The IP address with proxy function set in the gateway is IP4, which is an IP address used for a dedicated connection service. The IP address of the control center is IP5. The UPF network element stores an IP address with proxy function set in the gateway. The first indication information is the domain name of the service, and the second indication information is IP4.
下面以5G为例进行说明,运营商不新增DNN,使用DNN1统一承载专用连接的业务的流量和通用连接的业务的流量。5G核心网根据网络规划,将DNN1的PDU会话锚定到省级UPF。The following takes 5G as an example for description. Operators do not add DNNs and use DNN1 to uniformly carry the traffic of dedicated connection services and the traffic of general connection services. The 5G core network anchors the PDU session of DNN1 to the provincial UPF according to the network plan.
901、终端设备通过RAN设备向UPF网元发送IP地址获取请求。901. The terminal device sends an IP address acquisition request to the UPF network element through the RAN device.
终端设备需要获取业务的数据时,可以先通过RAN设备向UPF网元发送IP地址获取请求。IP地址获取请求的源IP地址为IP2。IP地址获取请求的目的IP地址为IP5。IP地址获取请求携带有业务的域名。When the terminal device needs to obtain service data, it may first send an IP address obtaining request to the UPF network element through the RAN device. The source IP address of the IP address acquisition request is IP2. The destination IP address of the IP address acquisition request is IP5. The IP address acquisition request carries the domain name of the service.
终端设备可以先通过无线接口向RAN设备发送IP地址获取请求。RAN设备接收到来自终端设备的IP地址获取请求之后,可以将IP地址获取请求打包在该终端设备的PDU会话里,通过隧道协议向省级UPF网元发送IP地址获取请求。The terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the provincial UPF network element through the tunnel protocol.
902、在域名对应的业务为通用连接的业务的情况下,UPF网元向控制中心发送IP地址获取请求。902. When the service corresponding to the domain name is a universal connection service, the UPF network element sends an IP address acquisition request to the control center.
UPF网元接收到来自RAN设备的IP地址获取请求之后,即打开隧道之后,可以解析IP地址获取请求中的业务的域名。在解析出的域名对应的业务为通用连接的业务的情况下,UPF网元可以向控制中心发送IP地址获取请求。After the UPF network element receives the IP address acquisition request from the RAN device, that is, after opening the tunnel, it can resolve the domain name of the service in the IP address acquisition request. In the case where the service corresponding to the resolved domain name is a universal connection service, the UPF network element may send an IP address acquisition request to the control center.
可选地,UPF网元接收到来自RAN设备的IP地址获取请求之后,可以先判断IP地址获取请求对应的报文是否为DNS,在判断出IP地址获取请求对应的报文为DNS的情况下,才解析IP地址获取请求中的业务的域名。Optionally, after the UPF network element receives the IP address acquisition request from the RAN device, it may first determine whether the packet corresponding to the IP address acquisition request is DNS, and if it is determined that the packet corresponding to the IP address acquisition request is DNS , To resolve the IP address to obtain the domain name of the service in the request.
903、控制中心通过UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。903. The control center sends an IP address response carrying IP1 to the terminal device through the UPF network element and the RAN device.
控制中心接收到来自UPF网元的IP地址获取请求之后,表明业务为通用连接的业务,可以根据终端设备的IP地址IP2选取服务质量最优的服务设备,之后通过UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。IP1为选取的服务设备的IP地址。UPF网元接收到来自控制中心的IP地址响应之后,可以向RAN设备发送IP地址响应。RAN设备接收到来自UPF网元的IP地址响应之后,可以向终端设备发送IP地址响应。After the control center receives the IP address acquisition request from the UPF network element, it indicates that the service is a universal connection service. The service device with the best service quality can be selected according to the IP address IP2 of the terminal device, and then the UPF network element and the RAN device are used to send the service The device sends an IP address response carrying IP1. IP1 is the IP address of the selected service device. After the UPF network element receives the IP address response from the control center, it can send the IP address response to the RAN device. After receiving the IP address response from the UPF network element, the RAN device can send the IP address response to the terminal device.
选取服务质量最优的服务设备时,可以选取与终端设备的距离最近的服务设备,也可以选取与终端设备的距离较近以及负载较小的服务设备,还可以根据与终端设备的距离以及其它因素进行选取。When selecting the service equipment with the best service quality, you can select the service equipment with the closest distance to the terminal equipment, or select the service equipment with a short distance from the terminal equipment and a small load. It can also be based on the distance from the terminal equipment and other services. Factors are selected.
904、终端设备通过RAN设备和UPF网元从IP1对应的服务设备获取业务的数据。904. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the UPF network element.
终端设备接收到来自RAN设备的IP地址响应之后,可以根据IP地址响应得到IP1,之后可以通过RAN设备和UPF网元向IP1对应的服务设备发起数据获取请求。服务设备接收到数据获取请求之后,可以通过UPF网元和RAN设备向终端设备返回携带业务的数据的数据响 应。After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the UPF network element and the RAN device.
905、在域名对应的业务为专用连接的业务的情况下,UPF网元向网关发送IP地址获取请求。905. When the service corresponding to the domain name is a dedicated connection service, the UPF network element sends an IP address acquisition request to the gateway.
在解析的域名对应的业务为专用连接的业务的情况下,表明该业务可以通过网关,UPF网元可以向网关发送IP地址获取请求。When the service corresponding to the resolved domain name is a dedicated connection service, it indicates that the service can pass through the gateway, and the UPF network element can send an IP address acquisition request to the gateway.
906、网关将IP地址获取请求的源IP地址由IP2替换为IP3,向控制中心发送替换后的IP地址获取请求。906. The gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
907、控制中心向网关发送携带IP1的IP地址响应。907. The control center sends an IP address response carrying IP1 to the gateway.
控制中心接收到来自网关的替换后的IP地址获取请求之后,可以根据网关选择服务质量最优的服务设备,之后向网关返回携带IP1的IP地址响应。在选择服务质量最优的服务设备时,可以选取与网关的距离最近的服务设备,也可以选取与网关的距离较近以及负载较小的服务设备,还可以根据与网关的距离以及其它因素进行选取。步骤903与步骤907中的IP1可以为同样的IP地址,也可以为不同的IP地址。After the control center receives the replaced IP address acquisition request from the gateway, it can select the service device with the best service quality according to the gateway, and then return an IP address response carrying IP1 to the gateway. When selecting the service device with the best service quality, you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. IP1 in step 903 and step 907 may be the same IP address or different IP addresses.
908、网关将IP地址响应的目的IP地址由IP3替换为IP2,IP1替换为IP4,通过UPF网元和RAN设备向终端设备发送替换后的IP地址响应。908. The gateway replaces the destination IP address of the IP address response from IP3 to IP2, and IP1 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element and the RAN device.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP2,IP地址响应携带的IP1替换为IP4,之后通过UPF网元和RAN设备向终端设备发送替换后的IP地址响应。此外,还可以记录IP1与IP4之间的对应关系。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and replace the IP1 carried in the IP address response with IP4, and then send the replacement to the terminal device through the UPF network element and the RAN device After the IP address responds. In addition, the correspondence between IP1 and IP4 can also be recorded.
909、终端设备通过RAN设备向UPF网元发送数据获取请求。909. The terminal device sends a data acquisition request to the UPF network element through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP4。之后可以通过RAN设备向UPF网元发送数据获取请求。数据获取请求的源IP地址为IP2,目的IP地址为IP4,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element through the RAN device. The source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
910、UPF网元根据IP4确定业务为专用连接的业务,向网关发送数据获取请求。910. The UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
911、网关将数据获取请求的源IP地址由IP2替换为IP3,目的IP地址由IP4替换为IP1,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。911. The gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the destination IP address from IP4 to IP1, and the source port from the terminal device port to the gateway port, and sends the replaced data to the service device corresponding to IP1 Get the request.
912、服务设备向网关发送数据响应。912. The service device sends a data response to the gateway.
913、网关将数据响应的目的IP地址由IP3替换为IP2,源IP地址由IP1替换为IP4,目的端口由网关的端口替换为终端设备的端口,通过UPF网元和RAN设备向终端设备发送替换后的数据响应。913. The gateway replaces the destination IP address of the data response from IP3 to IP2, the source IP address is replaced from IP1 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and the replacement is sent to the terminal device through the UPF network element and the RAN device. After the data response.
其中,步骤901-步骤904为通用连接的业务的流程。步骤901、步骤905-步骤913为专用连接的业务的流程,可以保证终端设备的用户无法看到互联网服务商/CDN服务商的IP地址,同时可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。Among them, step 901-step 904 are the flow of the universal connection service. Step 901, step 905-step 913 are the processes of dedicated connection services, which can ensure that the user of the terminal device cannot see the IP address of the ISP/CDN service provider, and at the same time, it can ensure that the ISP/CDN service provider cannot see the terminal The IP address of the device.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
基于图2所示的网络架构,请参阅图10,图10是本发明实施例公开的又一种通信方法的流程示意图。如图10所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 10. FIG. 10 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 10, the communication method may include the following steps.
一个服务设备可以只部署有专用连接的业务的IP地址,也可以只部署有通用连接的业 务的IP地址,还可以即部署有专用连接的业务的IP地址也部署有通用连接的业务的IP地址。服务设备的专用连接的业务的IP地址可以为IP4,服务设备的通用连接的业务的IP地址可以为IP1。因此,可以通过服务设备的IP地址识别出业务为专用连接的业务。运营商可以通过自动或人工方式将所有服务设备为专用连接的业务的IP地址下发到UPF网元。第一指示信息可以为业务的域名,第二指示信息可以为IP4,即业务所在服务设备的IP地址。终端设备的IP地址为IP2,网关的IP地址为IP3,控制中心的IP地址为IP5。A service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection. . The IP address of the service of the dedicated connection of the service device may be IP4, and the IP address of the service of the general connection of the service device may be IP1. Therefore, the service can be identified as a dedicated connection service through the IP address of the service device. The operator can automatically or manually deliver the IP addresses of all service devices for dedicated connection services to the UPF network element. The first indication information may be the domain name of the service, and the second indication information may be IP4, that is, the IP address of the service device where the service is located. The IP address of the terminal device is IP2, the IP address of the gateway is IP3, and the IP address of the control center is IP5.
1001、终端设备通过RAN设备向UPF网元发送IP地址获取请求。1001. A terminal device sends an IP address acquisition request to a UPF network element through a RAN device.
其中,步骤1001与步骤901相同,详细描述请参考步骤901,在此不加赘述。Among them, step 1001 is the same as step 901. For detailed description, please refer to step 901, which is not repeated here.
1002、在域名对应的业务为通用连接的业务的情况下,UPF网元向控制中心发送IP地址获取请求。1002. When the service corresponding to the domain name is a universal connection service, the UPF network element sends an IP address acquisition request to the control center.
其中,步骤1002与步骤902相同,详细描述请参考步骤902,在此不加赘述。Wherein, step 1002 is the same as step 902, for detailed description, please refer to step 902, which will not be repeated here.
1003、控制中心通过UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。1003. The control center sends an IP address response carrying IP1 to the terminal device through the UPF network element and the RAN device.
其中,步骤1003与步骤903相似,详细描述请参考步骤903,在此不加赘述。此外,控制中心选取服务设备时,选取的是部署有通用连接的业务的服务设备,即是从部署有通用连接的业务的IP地址对应的服务设备中进行选取的,也即从部署有通用连接的业务的IP地址对应的服务设备包括有需要获取的业务的数据的服务设备中选取的,以便可以保证选取的服务设备上部署有要获取的业务的数据。Among them, step 1003 is similar to step 903. For a detailed description, please refer to step 903, which will not be repeated here. In addition, when the control center selects the service device, it selects the service device deployed with the universal connection service, that is, it selects from the service device corresponding to the IP address of the service deployed with the universal connection, that is, it selects from the service equipment deployed with the universal connection The service device corresponding to the service IP address of the service device includes the service device that needs to obtain the service data selected, so as to ensure that the selected service device is deployed with the service data to be obtained.
1004、终端设备通过RAN设备和UPF网元从IP1对应的服务设备获取业务的数据。1004. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the UPF network element.
其中,步骤1004与步骤904相同,详细描述请参考步骤904,在此不加赘述。Wherein, step 1004 is the same as step 904. For detailed description, please refer to step 904, which will not be repeated here.
1005、在域名对应的业务为专用连接的业务的情况下,UPF网元向网关发送IP地址获取请求。1005. In a case where the service corresponding to the domain name is a dedicated connection service, the UPF network element sends an IP address acquisition request to the gateway.
其中,步骤1005与步骤905相同,详细描述请参考步骤905,在此不加赘述。Wherein, step 1005 is the same as step 905, for detailed description, please refer to step 905, which will not be repeated here.
1006、网关将IP地址获取请求的源IP地址由IP2替换为IP3,向控制中心发送替换后的IP地址获取请求。1006. The gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
1007、控制中心向网关发送携带IP4的IP地址响应。1007. The control center sends an IP address response carrying IP4 to the gateway.
控制中心接收到来自网关的替换后的IP地址获取请求之后,表明业务为专用连接的业务,可以根据网关选择服务质量最优的服务设备,之后向网关返回携带IP4的IP地址响应。在选择服务质量最优的服务设备时,可以选取与网关的距离最近的服务设备,也可以选取与网关的距离较近以及负载较小的服务设备,还可以根据与网关的距离以及其它因素进行选取。控制中心选取服务设备时,选取的是部署有专用连接的业务的服务设备,即是从部署有专用连接的业务的IP地址对应的服务设备中进行选取的,也即从部署有专用连接的业务的IP地址对应的服务设备包括有需要获取的业务的数据的服务设备中选取的,以便可以保证选取的服务设备上部署有要获取的业务的数据。其中,专用连接的业务和通用连接的业务可以部署在一个服务设备上,也可以部署在不同的服务设备上。After the control center receives the replaced IP address acquisition request from the gateway, it indicates that the service is a dedicated connection service. The service device with the best service quality can be selected according to the gateway, and then the IP address response carrying IP4 is returned to the gateway. When selecting the service device with the best service quality, you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. When the control center selects the service equipment, it selects the service equipment with the dedicated connection service, that is, it selects from the service equipment corresponding to the IP address of the service where the dedicated connection is deployed, that is, from the service where the dedicated connection is deployed The service device corresponding to the IP address of the selected service device includes the service device that needs to obtain the service data, so as to ensure that the selected service device is deployed with the service data to be obtained. Among them, the dedicated connection service and the general connection service can be deployed on one service device or on different service devices.
1008、网关将IP地址响应的目的IP地址由IP3替换为IP2,通过UPF网元和RAN设备向终端设备发送替换后的IP地址响应。1008. The gateway replaces the destination IP address of the IP address response from IP3 to IP2, and sends the replaced IP address response to the terminal device through the UPF network element and the RAN device.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP2,之后通过UPF网元和RAN设备向终端设备发送替换后的IP地址响应。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and then send the replaced IP address response to the terminal device through the UPF network element and the RAN device.
1009、终端设备通过RAN设备向UPF网元发送数据获取请求。1009. The terminal device sends a data acquisition request to the UPF network element through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP4。之后可以通过RAN设备向UPF网元发送数据获取请求。数据获取请求的源IP地址为IP2,目的IP地址为IP4,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element through the RAN device. The source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
1010、UPF网元根据IP4确定业务为专用连接的业务,向网关发送数据获取请求。1010. The UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
1011、网关将数据获取请求的源IP地址由IP2替换为IP3,源端口由终端设备的端口替换为网关的端口,向IP4对应的服务设备发送替换后的数据获取请求。1011. The gateway replaces the source IP address of the data acquisition request from IP2 to IP3, and the source port is replaced by the port of the terminal device with the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP4.
1012、服务设备向网关发送数据响应。1012. The service device sends a data response to the gateway.
1013、网关将数据响应的目的IP地址由IP3替换为IP2,目的端口由网关的端口替换为终端设备的端口,通过UPF网元和RAN设备向终端设备发送替换后的数据响应。1013. The gateway replaces the destination IP address of the data response from IP3 to IP2, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data response to the terminal device through the UPF network element and the RAN device.
其中,步骤1001-步骤1004为通用连接的业务的流程。步骤1001、步骤1005-步骤1013为专用连接的业务的流程。Among them, step 1001-step 1004 are the processes of the universal connection service. Step 1001, step 1005 to step 1013 are the processes of dedicated connection services.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
基于图2所示的网络架构,请参阅图11,图11是本发明实施例公开的又一种通信方法的流程示意图。如图11所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 11. FIG. 11 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 11, the communication method may include the following steps.
可以为每个终端设备部署两个IP地址,一个IP地址为用于获取专用连接的业务的IP地址,为IP4,另一个IP地址为用于获取通用连接的业务的IP地址,为IP2。因此,可以通过终端设备的IP地址识别出业务为专用连接的业务。运营商可以为使用专用连接的业务的用户划分单独的VLAN,并分配单独IP地址,可以通过自动或人工方式将所有终端设备为用于获取专用连接的业务的IP地址下发到BRAS。第一指示信息和第二指示信息为IP4。业务所在服务设备的IP地址为IP1。网关的IP地址为IP3。控制中心的IP地址为IP5。Two IP addresses can be deployed for each terminal device. One IP address is the IP address used to obtain the dedicated connection service, which is IP4, and the other IP address is the IP address used to obtain the general connection service, which is IP2. Therefore, the service can be identified as a dedicated connection service through the IP address of the terminal device. Operators can allocate separate VLANs for users using dedicated connection services, and assign separate IP addresses, and all terminal devices can be automatically or manually issued to the BRAS as IP addresses for obtaining dedicated connection services. The first indication information and the second indication information are IP4. The IP address of the service device where the business is located is IP1. The IP address of the gateway is IP3. The IP address of the control center is IP5.
下面以5G为例进行说明,在DNN1承载通用连接的业务的流量的基础上,新增DNN2专门承载专用连接的业务的流量。终端设备开机后,可同时接入DNN1和DNN2,可以为DNN1分配IP地址IP2,可以为DNN2分配IP地址IP4。5G核心网可以将PDU会话锚定到省级UPF。The following takes 5G as an example for description. On the basis of DNN1 carrying the traffic of the service of the general connection, DNN2 is newly added to specifically carry the traffic of the service of the dedicated connection. After the terminal device is turned on, it can access DNN1 and DNN2 at the same time. DNN1 can be assigned IP address IP2, and DNN2 can be assigned IP address IP4. The 5G core network can anchor the PDU session to the provincial UPF.
1101、终端设备通过RAN设备向UPF网元发送IP地址获取请求。1101. The terminal device sends an IP address acquisition request to the UPF network element through the RAN device.
在终端设备需要获取的业务为通用连接的业务的情况下,可以通过RAN设备向UPF网元发送IP地址获取请求。该IP地址获取请求的源IP地址为IP2,该IP地址获取请求的目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a universal connection service, the RAN device may send an IP address obtaining request to the UPF network element. The source IP address of the IP address acquisition request is IP2, and the destination IP address of the IP address acquisition request is IP5.
终端设备可以先通过无线接口向RAN设备发送IP地址获取请求。RAN设备接收到来自终端设备的IP地址获取请求之后,可以将IP地址获取请求打包在该终端设备的PDU会话里,通过隧道协议向省级UPF网元发送IP地址获取请求。The terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the provincial UPF network element through the tunnel protocol.
1102、在IP地址获取请求的源IP地址为IP2的情况下,UPF网元向控制中心发送IP地址获取请求。1102. When the source IP address of the IP address acquisition request is IP2, the UPF network element sends the IP address acquisition request to the control center.
UPF网元接收到来自RAN设备的IP地址获取请求之后,可以从IP地址获取请求中提取IP地址获取请求的源IP地址,在源IP地址为IP2的情况下,表明业务为通用连接的业务,UPF网元可以向控制中心发送IP地址获取请求。After the UPF network element receives the IP address acquisition request from the RAN device, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request. When the source IP address is IP2, it indicates that the service is a universal connection service. The UPF network element can send an IP address acquisition request to the control center.
1103、控制中心通过UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。1103. The control center sends an IP address response carrying IP1 to the terminal device through the UPF network element and the RAN device.
其中,步骤1103与步骤903相似,详细描述请参考步骤903,在此不加赘述。Among them, step 1103 is similar to step 903. For detailed description, please refer to step 903, which will not be repeated here.
1104、终端设备通过RAN设备和UPF网元从IP1对应的服务设备获取业务的数据。1104. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the UPF network element.
终端设备接收到来自RAN设备的IP地址响应之后,可以根据IP地址响应得到IP1,之后可以通过RAN设备和UPF网元向IP1对应的服务设备发起数据获取请求。服务设备接收到数据获取请求之后,可以通过UPF网元和RAN设备向终端设备返回携带业务的数据的数据响应。数据获取请求可以为HTTP请求。数据获取请求的源IP地址为IP2,目的IP地址为IP1。After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the UPF network element and the RAN device. The data acquisition request may be an HTTP request. The source IP address of the data acquisition request is IP2, and the destination IP address is IP1.
1105、终端设备通过RAN设备向UPF网元发送IP地址获取请求。1105. The terminal device sends an IP address acquisition request to the UPF network element through the RAN device.
在终端设备需要获取的业务为专用连接的业务的情况下,可以通过RAN设备向UPF网元发送IP地址获取请求。该IP地址获取请求的源IP地址为IP4,该IP地址获取请求的目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a dedicated connection service, the RAN device may send an IP address obtaining request to the UPF network element. The source IP address of the IP address acquisition request is IP4, and the destination IP address of the IP address acquisition request is IP5.
1106、在IP地址获取请求的源IP地址为IP4的情况下,UPF网元向网关发送IP地址获取请求。1106. When the source IP address of the IP address acquisition request is IP4, the UPF network element sends an IP address acquisition request to the gateway.
UPF网元接收到来自RAN设备的IP地址获取请求之后,可以从IP地址获取请求中提取IP地址获取请求的源IP地址,在源IP地址为IP4的情况下,表明业务为专用连接的业务,UPF网元可以向网关发送IP地址获取请求。After the UPF network element receives the IP address acquisition request from the RAN device, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request. When the source IP address is IP4, it indicates that the service is a dedicated connection service. The UPF network element may send an IP address acquisition request to the gateway.
1107、网关将IP地址获取请求的源IP地址由IP4替换为IP3,向控制中心发送替换后的IP地址获取请求。1107. The gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
1108、控制中心向网关发送携带IP1的IP地址响应。1108. The control center sends an IP address response carrying IP1 to the gateway.
其中,步骤1108与步骤1007相同,详细描述请参考步骤1007,在此不加赘述。此外,步骤1103与步骤1108中的IP1可以为同样的IP地址,也可以为不同的IP地址。Among them, step 1108 is the same as step 1007. For detailed description, please refer to step 1007, which will not be repeated here. In addition, IP1 in step 1103 and step 1108 may be the same IP address or different IP addresses.
1109、网关将IP地址响应的目的IP地址由IP3替换为IP4,通过UPF网元和RAN设备向终端设备发送替换后的IP地址响应。1109. The gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element and the RAN device.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP4,之后可以通过UPF网元和RAN设备向终端设备发送替换后的IP地址响应。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then can send the replaced IP address response to the terminal device through the UPF network element and the RAN device.
1110、终端设备通过RAN设备向UPF网元发送数据获取请求。1110. The terminal device sends a data acquisition request to the UPF network element through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP4。之后可以通过RAN设备向UPF网元发送数据获取请求。数据获取请求的源IP地址为IP4,目的IP地址为IP1,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element through the RAN device. The source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
1111、UPF网元根据IP4确定业务为专用连接的业务,向网关发送数据获取请求。1111. The UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
1112、网关将数据获取请求的源IP地址由IP4替换为IP3,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。1112. The gateway replaces the source IP address of the data acquisition request from IP4 to IP3, and replaces the source port of the terminal device with the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
1113、服务设备向网关发送数据响应。1113. The service device sends a data response to the gateway.
1114、网关将数据响应的目的IP地址由IP3替换为IP4,目的端口由网关的端口替换为终端设备的端口,通过UPF网元和RAN设备向终端设备发送替换后的数据响应。1114. The gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data response to the terminal device through the UPF network element and the RAN device.
其中,步骤1101-步骤1104为通用连接的业务的流程。步骤1105-步骤1114为专用连接的业务的流程。Among them, step 1101 to step 1104 are the processes of the universal connection service. Steps 1105-steps 1114 are the processes of dedicated connection services.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
基于图2所示的网络架构,请参阅图12,图12是本发明实施例公开的又一种通信方法的流程示意图。如图12所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 12. FIG. 12 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 12, the communication method may include the following steps.
可以为每个终端设备部署两个IP地址,一个IP地址为用于获取专用连接的业务的IP地址,为IP4,另一个IP地址为用于获取通用连接的业务的IP地址,为IP2。因此,可以通过终端设备的IP地址识别出业务为专用连接的业务。运营商可以为使用专用连接的业务的用户划分单独的虚拟局域网(virtual local area network,VLAN),并分配单独IP地址,可以通过自动或人工方式将所有终端设备为用于获取专用连接的业务的IP地址下发到BRAS。第一指示信息和第二指示信息为IP4。业务所在服务设备的IP地址为IP1。网关的IP地址为IP3。控制中心的IP地址为IP5。Two IP addresses can be deployed for each terminal device. One IP address is the IP address used to obtain the dedicated connection service, which is IP4, and the other IP address is the IP address used to obtain the general connection service, which is IP2. Therefore, the service can be identified as a dedicated connection service through the IP address of the terminal device. Operators can divide a separate virtual local area network (VLAN) for users who use dedicated connection services, and assign separate IP addresses. All terminal devices can be used to obtain dedicated connection services automatically or manually. The IP address is delivered to the BRAS. The first indication information and the second indication information are IP4. The IP address of the service device where the business is located is IP1. The IP address of the gateway is IP3. The IP address of the control center is IP5.
下面以5G为例进行说明,在DNN1承载通用连接的业务的流量的基础上,新增DNN2专门承载专用连接的业务的流量。终端设备开机后,可同时接入DNN1和DNN2,可以为DNN1分配IP地址IP2,可以为DNN2分配IP地址IP4。5G核心网可以将PDU会话锚定到省级UPF。为降低专用连接的业务的流量对地市级与省级中心之间的骨干网络带宽的冲击,5G移动网络启动UPF网元边缘节点建设,可以将专用连接的业务的流量卸载到地市/区县级UPF网元。5G核心网根据网络规划,可以将承载通用连接的业务的流量的DNN1的PDU会话锚定到省级UPF网元,可以将承载专用连接的业务的流量的DNN2的PDU会话锚定到地市/区县级UPF网元。The following takes 5G as an example for description. On the basis of DNN1 carrying the traffic of the service of the general connection, DNN2 is newly added to specifically carry the traffic of the service of the dedicated connection. After the terminal device is turned on, it can access DNN1 and DNN2 at the same time. DNN1 can be assigned IP address IP2, and DNN2 can be assigned IP address IP4. The 5G core network can anchor the PDU session to the provincial UPF. In order to reduce the impact of dedicated connection service traffic on the backbone network bandwidth between prefecture-level and provincial centers, the 5G mobile network starts the construction of UPF network element edge nodes, which can offload the dedicated connection service traffic to prefectures/districts County-level UPF network element. According to the network plan, the 5G core network can anchor the PDU session of DNN1 carrying the traffic of the general connection to the provincial UPF network element, and can anchor the PDU session of the DNN2 carrying the traffic of the dedicated connection to the city/city/ UPF network element at district and county level.
1201、终端设备通过RAN设备向省级UPF网元发送IP地址获取请求。1201. The terminal device sends an IP address acquisition request to a provincial UPF network element through a RAN device.
在终端设备需要获取的业务为通用连接的业务的情况下,可以通过RAN设备向省级UPF网元发送IP地址获取请求。该IP地址获取请求的源IP地址为IP2,该IP地址获取请求的目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a universal connection service, the RAN device may send an IP address obtaining request to the provincial UPF network element. The source IP address of the IP address acquisition request is IP2, and the destination IP address of the IP address acquisition request is IP5.
终端设备可以先通过无线接口向RAN设备发送IP地址获取请求。RAN设备接收到来自终端设备的IP地址获取请求之后,可以提取IP地址获取请求中的源IP地址。在IP地址获取请求中的源IP地址为IP2的情况下,表明获取的业务为通用连接的业务,RAN设备可以将IP地址获取请求打包在该终端设备的PDU会话里,通过隧道协议向省级UPF网元发送IP地址获取请求。The terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can extract the source IP address in the IP address acquisition request. In the case that the source IP address in the IP address acquisition request is IP2, it indicates that the acquired service is a universally connected service. The RAN device can package the IP address acquisition request in the PDU session of the terminal device and send it to the provincial level through the tunnel protocol. The UPF network element sends an IP address acquisition request.
1202、省级UPF网元向控制中心发送IP地址获取请求。1202. The provincial UPF network element sends an IP address acquisition request to the control center.
省级UPF网元接收到来自RAN设备的IP地址获取请求之后,可以向控制中心发送IP地址获取请求。After the provincial UPF network element receives the IP address acquisition request from the RAN device, it can send the IP address acquisition request to the control center.
1203、控制中心通过省级UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。1203. The control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element and the RAN device.
其中,步骤1203与步骤903相似,详细描述请参考步骤903,在此不加赘述。Among them, step 1203 is similar to step 903. For a detailed description, please refer to step 903, which will not be repeated here.
1204、终端设备通过RAN设备和省级UPF网元从IP1对应的服务设备获取业务的数据。1204. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the provincial UPF network element.
终端设备接收到来自RAN设备的IP地址响应之后,可以根据IP地址响应得到IP1,之后可以通过RAN设备和省级UPF网元向IP1对应的服务设备发起数据获取请求。服务设备接收到数据获取请求之后,可以通过省级UPF网元和RAN设备向终端设备返回携带业务的数据的数据响应。数据获取请求可以为HTTP请求。数据获取请求的源IP地址为IP2,目的IP地址为IP1。After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the provincial UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the provincial UPF network element and the RAN device. The data acquisition request may be an HTTP request. The source IP address of the data acquisition request is IP2, and the destination IP address is IP1.
1205、终端设备通过RAN设备向地市/区县级UPF网元发送IP地址获取请求。1205. The terminal device sends an IP address acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
在终端设备需要获取的业务为专用连接的业务的情况下,可以通过RAN设备向地市/区县级UPF网元发送IP地址获取请求。该IP地址获取请求的源IP地址为IP4,该IP地址获取请求的目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a dedicated connection service, the RAN device can send an IP address obtaining request to the UPF network element at the prefecture/district/county level. The source IP address of the IP address acquisition request is IP4, and the destination IP address of the IP address acquisition request is IP5.
终端设备可以先通过无线接口向RAN设备发送IP地址获取请求。RAN设备接收到来自终端设备的IP地址获取请求之后,可以提取IP地址获取请求中的源IP地址。在IP地址获取请求中的源IP地址为IP4的情况下,表明获取的业务为专用连接的业务,RAN设备可以将IP地址获取请求打包在该终端设备的PDU会话里,通过隧道协议向地市/区县级UPF网元发送IP地址获取请求。The terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can extract the source IP address in the IP address acquisition request. When the source IP address in the IP address acquisition request is IP4, it indicates that the acquired service is a dedicated connection service. The RAN device can package the IP address acquisition request in the PDU session of the terminal device and send it to the city through the tunnel protocol. / The district/county level UPF network element sends an IP address acquisition request.
1206、地市/区县级UPF网元向网关发送IP地址获取请求。1206. The UPF network element at the prefecture/district/county level sends an IP address acquisition request to the gateway.
1207、网关将IP地址获取请求的源IP地址由IP4替换为IP3,向控制中心发送替换后的IP地址获取请求。1207. The gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
1208、控制中心向网关发送携带IP1的IP地址响应。1208. The control center sends an IP address response carrying IP1 to the gateway.
其中,步骤1208与步骤1007相似,详细描述请参考步骤1007,在此不加赘述。此外,步骤1203与步骤1208中的IP1可以为同样的IP地址,也可以为不同的IP地址。Among them, step 1208 is similar to step 1007. For detailed description, please refer to step 1007, which will not be repeated here. In addition, IP1 in step 1203 and step 1208 may be the same IP address or different IP addresses.
1209、网关将IP地址响应的目的IP地址由IP3替换为IP4,通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。1209. The gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level and the RAN device.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP4,之后可以通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then can send the replaced IP to the terminal device through the UPF network element and RAN device at the city/district/county level Address response.
1210、终端设备通过RAN设备向地市/区县级UPF网元发送数据获取请求。1210. The terminal device sends a data acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP1。之后可以通过RAN设备向地市/区县级UPF网元发送数据获取请求。数据获取请求的源IP地址为IP4,目的IP地址为IP1,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP1 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element at the prefecture/district/county level through the RAN device. The source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
1211、地市/区县级UPF网元向网关发送数据获取请求。1211. The UPF network element at the prefecture/district/county level sends a data acquisition request to the gateway.
1212、网关将数据获取请求的源IP地址由IP4替换为IP3,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。1212. The gateway replaces the source IP address of the data acquisition request from IP4 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
1213、服务设备向网关发送数据响应。1213. The service device sends a data response to the gateway.
1214、网关将数据响应的目的IP地址由IP3替换为IP4,目的端口由网关的端口替换为终端设备的端口,通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的数据响应。1214. The gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data to the terminal device through the UPF network element of the city/district and county level and the RAN device response.
其中,步骤1201-步骤1204为通用连接的业务的流程。步骤1205-步骤1214为专用连接的业务的流程。Among them, step 1201 to step 1204 are the procedures of the universal connection service. Steps 1205-step 1214 are the processes of dedicated connection services.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
图13-图15是以5G为例进行说明,运营商不新增DNN,使用DNN1统一承载专用连接的业务的流量和通用连接的业务的流量。为降低专用连接的业务的流量对地市级与省级中心之间的骨干网络带宽的冲击,5G移动网络启动UPF网元边缘节点建设,可以将专用连接的业务的流量卸载到地市/区县级UPF网元。为保障用户上网流程简单,承载用户所有上网流 量的DNN1的PDU会话都锚定到省级UPF网元。在业务为通用连接的业务的情况下,卸载在本地处理;在业务为专用连接的业务的情况下,转发到地市/区县级UPF网元处理。Figures 13-15 take 5G as an example for illustration. Operators do not add DNNs and use DNN1 to uniformly carry the traffic of dedicated connection services and the traffic of general connection services. In order to reduce the impact of dedicated connection service traffic on the backbone network bandwidth between prefecture-level and provincial centers, the 5G mobile network starts the construction of UPF network element edge nodes, which can offload the dedicated connection service traffic to prefectures/districts County-level UPF network element. In order to ensure the user's simple surfing process, the PDU sessions of DNN1 that carry all the users' surfing traffic are anchored to the provincial UPF network element. When the service is a general connection service, the offloading is processed locally; when the service is a dedicated connection service, it is forwarded to the city/district/county level UPF network element for processing.
基于图2所示的网络架构,请参阅图13,图13是本发明实施例公开的又一种通信方法的流程示意图。如图13所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 13. FIG. 13 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 13, the communication method may include the following steps.
业务所在服务设备的IP地址为IP1。终端设备的IP地址为IP2。网关的IP地址为IP3。网关中设置有具有代理功能的IP地址为IP4,为用于专用连接的业务的IP地址。控制中心的IP地址为IP5。UPF网元中存储有网关中设置的具有代理功能的IP地址。第一指示信息为业务的域名,第二指示信息为IP4。The IP address of the service device where the business is located is IP1. The IP address of the terminal device is IP2. The IP address of the gateway is IP3. The IP address with proxy function set in the gateway is IP4, which is an IP address used for a dedicated connection service. The IP address of the control center is IP5. The UPF network element stores an IP address with proxy function set in the gateway. The first indication information is the domain name of the service, and the second indication information is IP4.
1301、终端设备通过RAN设备向省级UPF网元发送IP地址获取请求。1301. A terminal device sends an IP address acquisition request to a provincial UPF network element through a RAN device.
在终端设备需要获取业务的情况下,可以先通过RAN设备向省级UPF网元发送IP地址获取请求。IP地址获取请求的源IP地址为IP2。IP地址获取请求的目的IP地址为IP5。IP地址获取请求携带有业务的域名。In the case that the terminal device needs to obtain the service, the RAN device may first send an IP address obtaining request to the provincial UPF network element. The source IP address of the IP address acquisition request is IP2. The destination IP address of the IP address acquisition request is IP5. The IP address acquisition request carries the domain name of the service.
终端设备可以先通过无线接口向RAN设备发送IP地址获取请求。RAN设备接收到来自终端设备的IP地址获取请求之后,可以将IP地址获取请求打包在该终端设备的PDU会话里,通过隧道协议向省级UPF网元发送IP地址获取请求。The terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the provincial UPF network element through the tunnel protocol.
1302、在域名对应的业务为通用连接的业务的情况下,省级UPF网元向控制中心发送IP地址获取请求。1302. When the service corresponding to the domain name is a universal connection service, the provincial UPF network element sends an IP address acquisition request to the control center.
省级UPF网元接收到来自RAN设备的IP地址获取请求之后,即打开隧道之后,可以解析IP地址获取请求中的业务的域名。在解析出的域名对应的业务为通用连接的业务的情况下,可以向控制中心发送IP地址获取请求。After the provincial UPF network element receives the IP address acquisition request from the RAN device, that is, after opening the tunnel, it can resolve the domain name of the service in the IP address acquisition request. In the case that the service corresponding to the resolved domain name is a universal connection service, an IP address acquisition request may be sent to the control center.
可选地,省级UPF网元接收到来自RAN设备的IP地址获取请求之后,可以先判断IP地址获取请求对应的报文是否为DNS,在判断出IP地址获取请求对应的报文为DNS的情况下,才向控制中心发送IP地址获取请求。Optionally, after the provincial UPF network element receives the IP address acquisition request from the RAN device, it may first determine whether the packet corresponding to the IP address acquisition request is DNS, and after determining that the packet corresponding to the IP address acquisition request is DNS In this case, the IP address acquisition request is sent to the control center.
1303、控制中心通过省级UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。1303. The control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element and the RAN device.
控制中心接收到来自省级UPF网元的IP地址获取请求之后,表明业务为通用连接的业务,可以根据省级UPF网元选取服务质量最优的服务设备,之后通过省级UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。IP1为选取的服务设备的IP地址。省级UPF网元接收到来自控制中心的IP地址响应之后,可以向RAN设备发送IP地址响应。RAN设备接收到来自省级UPF网元的IP地址响应之后,可以向终端设备发送IP地址响应。After the control center receives the IP address acquisition request from the provincial UPF network element, it indicates that the service is a universally connected service. It can select the service device with the best service quality according to the provincial UPF network element, and then pass the provincial UPF network element and RAN The device sends an IP address response carrying IP1 to the terminal device. IP1 is the IP address of the selected service device. After the provincial UPF network element receives the IP address response from the control center, it can send the IP address response to the RAN device. After receiving the IP address response from the provincial UPF network element, the RAN device can send the IP address response to the terminal device.
选取服务质量最优的服务设备时,可以选取与终端设备的距离最近的服务设备,也可以选取与终端设备的距离较近以及负载较小的服务设备,还可以根据与终端设备的距离以及其它因素进行选取。When selecting the service equipment with the best service quality, you can select the service equipment with the closest distance to the terminal equipment, or select the service equipment with a short distance from the terminal equipment and a small load. It can also be based on the distance from the terminal equipment and other services. Factors are selected.
1304、终端设备通过RAN设备和省级UPF网元从IP1对应的服务设备获取业务的数据。1304. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the provincial UPF network element.
终端设备接收到来自RAN设备的IP地址响应之后,可以根据IP地址响应得到IP1,之后可以通过RAN设备和省级UPF网元向IP1对应的服务设备发起数据获取请求。服务设备接收到数据获取请求之后,可以通过省级UPF网元和RAN设备向终端设备返回携带业务的数据的数据响应。After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the provincial UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the provincial UPF network element and the RAN device.
1305、在域名对应的业务为专用连接的业务的情况下,省级UPF网元通过地市/区县级 UPF网元向网关发送IP地址获取请求。1305. In the case that the service corresponding to the domain name is a dedicated connection service, the provincial UPF network element sends an IP address acquisition request to the gateway through the prefecture/district/county UPF network element.
1306、网关将IP地址获取请求的源IP地址由IP2替换为IP3,向控制中心发送替换后的IP地址获取请求。1306. The gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
1307、控制中心向网关发送携带IP1的IP地址响应。1307. The control center sends an IP address response carrying IP1 to the gateway.
控制中心接收到来自网关的替换后的IP地址获取请求之后,可以根据网关选择服务质量最优的服务设备,之后向网关返回携带IP1的IP地址响应。在选择服务质量最优的服务设备时,可以选取与网关的距离最近的服务设备,也可以选取与网关的距离较近以及负载较小的服务设备,还可以根据与网关的距离以及其它因素进行选取。步骤1303与步骤1307中的IP1可以为同样的IP地址,也可以为不同的IP地址。After the control center receives the replaced IP address acquisition request from the gateway, it can select the service device with the best service quality according to the gateway, and then return an IP address response carrying IP1 to the gateway. When selecting the service device with the best service quality, you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. IP1 in step 1303 and step 1307 can be the same IP address or different IP addresses.
1308、网关将IP地址响应的目的IP地址由IP3替换为IP2,IP1替换为IP4,通过地市/区县级UPF网元、省级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。1308. The gateway replaces the destination IP address of the IP address response from IP3 to IP2, and IP1 to IP4, and sends the replaced IP address to the terminal device through the UPF network element at the prefecture/district/county level, the UPF network element at the provincial level, and the RAN device. response.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP2,IP地址响应携带的IP1替换为IP4,之后通过UPF网元和RAN设备向终端设备发送替换后的IP地址响应。此外,还可以记录IP1与IP4之间的对应关系。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and replace the IP1 carried in the IP address response with IP4, and then send the replacement to the terminal device through the UPF network element and the RAN device After the IP address responds. In addition, the correspondence between IP1 and IP4 can also be recorded.
1309、终端设备通过RAN设备向省级UPF网元发送数据获取请求。1309. The terminal device sends a data acquisition request to the provincial UPF network element through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP4。之后可以通过RAN设备向省级UPF网元发送数据获取请求。数据获取请求的源IP地址为IP2,目的IP地址为IP4,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the provincial UPF network element through the RAN device. The source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
1310、省级UPF网元根据IP4确定业务为专用连接的业务,通过地市/区县级UPF网元向网关发送数据获取请求。1310. The provincial UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway through the prefecture/district/county UPF network element.
1311、网关将数据获取请求的源IP地址由IP2替换为IP3,目的IP地址由IP4替换为IP1,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。1311. The gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the destination IP address from IP4 to IP1, and the source port from the terminal device port to the gateway port, and sends the replaced data to the service device corresponding to IP1 Get the request.
1312、服务设备向网关发送数据响应。1312. The service device sends a data response to the gateway.
1313、网关将数据响应的目的IP地址由IP3替换为IP2,源IP地址由IP1替换为IP4,目的端口由网关的端口替换为终端设备的端口,通过地市/区县级UPF网元、省级UPF网元和RAN设备向终端设备发送替换后的数据响应。1313. The gateway replaces the destination IP address of the data response from IP3 to IP2, the source IP address from IP1 to IP4, and the destination port from the gateway to the port of the terminal device through the UPF network element and province The level UPF network element and the RAN device send the replaced data response to the terminal device.
其中,步骤1301-步骤1304为通用连接的业务的流程。步骤1301、步骤1305-步骤1315为专用连接的业务的流程,可以保证终端设备的用户无法看到互联网服务商/CDN服务商的IP地址,同时可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。Among them, step 1301 to step 1304 are the procedures of the universal connection service. Step 1301, step 1305-step 1315 are the dedicated connection business processes, which can ensure that the user of the terminal device cannot see the IP address of the ISP/CDN service provider, and at the same time, it can ensure that the ISP/CDN service provider cannot see the terminal The IP address of the device.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
基于图2所示的网络架构,请参阅图14,图14是本发明实施例公开的又一种通信方法的流程示意图。如图14所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 14. FIG. 14 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 14, the communication method may include the following steps.
一个服务设备可以只部署有专用连接的业务的IP地址,也可以只部署有通用连接的业务的IP地址,还可以即部署有专用连接的业务的IP地址也部署有通用连接的业务的IP地址。服务设备的专用连接的业务的IP地址可以为IP4,服务设备的通用连接的业务的IP地址可以为IP1。因此,可以通过服务设备的IP地址识别出业务为专用连接的业务。运营商可以通过 自动或人工方式将所有服务设备为专用连接的业务的IP地址下发到UPF网元。第一指示信息可以为业务的域名,第二指示信息可以为IP4,即业务所在服务设备的IP地址。终端设备的IP地址为IP2,网关的IP地址为IP3,控制中心的IP地址为IP5。A service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection. . The IP address of the service of the dedicated connection of the service device may be IP4, and the IP address of the service of the general connection of the service device may be IP1. Therefore, the service can be identified as a dedicated connection service through the IP address of the service device. The operator can automatically or manually deliver the IP addresses of all service devices for dedicated connection services to the UPF network element. The first indication information may be the domain name of the service, and the second indication information may be IP4, that is, the IP address of the service device where the service is located. The IP address of the terminal device is IP2, the IP address of the gateway is IP3, and the IP address of the control center is IP5.
1401、终端设备通过RAN设备向省级UPF网元发送IP地址获取请求。1401. A terminal device sends an IP address acquisition request to a provincial UPF network element through a RAN device.
其中,步骤1401与步骤1301相同,详细描述请参考步骤1301,在此不加赘述。Among them, step 1401 is the same as step 1301. For detailed description, please refer to step 1301, which will not be repeated here.
1402、在域名对应的业务为通用连接的业务的情况下,省级UPF网元向控制中心发送IP地址获取请求。1402. When the service corresponding to the domain name is a universal connection service, the provincial UPF network element sends an IP address acquisition request to the control center.
其中,步骤1402与步骤1302相同,详细描述请参考步骤1302,在此不加赘述。Among them, step 1402 is the same as step 1302. For detailed description, please refer to step 1302, which will not be repeated here.
1403、控制中心通过省级UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。1403. The control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element and the RAN device.
其中,步骤1403与步骤1303相同,详细描述请参考步骤1303,在此不加赘述。此外,控制中心选取服务设备时,选取的是部署有通用连接的业务的服务设备,即是从部署有通用连接的业务的IP地址对应的服务设备中进行选取的,也即从部署有通用连接的业务的IP地址对应的服务设备包括有需要获取的业务的数据的服务设备中选取的,以便可以保证选取的服务设备上部署有要获取的业务的数据。Among them, step 1403 is the same as step 1303. For detailed description, please refer to step 1303, which will not be repeated here. In addition, when the control center selects the service device, it selects the service device deployed with the universal connection service, that is, it selects from the service device corresponding to the IP address of the service deployed with the universal connection, that is, it selects from the service equipment deployed with the universal connection The service device corresponding to the service IP address of the service device includes the service device that needs to obtain the service data selected, so as to ensure that the selected service device is deployed with the service data to be obtained.
1404、终端设备通过RAN设备和省级UPF网元从IP1对应的服务设备获取业务的数据。1404. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the provincial UPF network element.
其中,步骤1404与步骤1304相同,详细描述请参考步骤1304,在此不加赘述。Among them, step 1404 is the same as step 1304. For detailed description, please refer to step 1304, which will not be repeated here.
1405、在域名对应的业务为专用连接的业务的情况下,省级UPF网元通过地市/区县级UPF网元向网关发送IP地址获取请求。1405. In the case that the service corresponding to the domain name is a dedicated connection service, the provincial UPF network element sends an IP address acquisition request to the gateway through the city/district/county UPF network element.
其中,步骤1405与步骤1305相同,详细描述请参考步骤1305,在此不加赘述。Among them, step 1405 is the same as step 1305. For detailed description, please refer to step 1305, which will not be repeated here.
1406、网关将IP地址获取请求的源IP地址由IP2替换为IP3,向控制中心发送替换后的IP地址获取请求。1406. The gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
1407、控制中心向网关发送携带IP4的IP地址响应。1407. The control center sends an IP address response carrying IP4 to the gateway.
控制中心接收到来自网关的替换后的IP地址获取请求之后,表明业务为专用连接的业务,可以根据网关选择服务质量最优的服务设备,之后向网关返回携带IP4的IP地址响应。在选择服务质量最优的服务设备时,可以选取与网关的距离最近的服务设备,也可以选取与网关的距离较近以及负载较小的服务设备,还可以根据与网关的距离以及其它因素进行选取。控制中心选取服务设备时,选取的是部署有专用连接的业务的服务设备,即是从部署有专用连接的业务的IP地址对应的服务设备中进行选取的,也即从部署有专用连接的业务的IP地址对应的服务设备包括有需要获取的业务的数据的服务设备中选取的,以便可以保证选取的服务设备上部署有要获取的业务的数据。其中,专用连接的业务和通用连接的业务可以部署在一个服务设备上,也可以部署在不同的服务设备上。After the control center receives the replaced IP address acquisition request from the gateway, it indicates that the service is a dedicated connection service. The service device with the best service quality can be selected according to the gateway, and then the IP address response carrying IP4 is returned to the gateway. When selecting the service device with the best service quality, you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. When the control center selects the service equipment, it selects the service equipment with the dedicated connection service, that is, it selects from the service equipment corresponding to the IP address of the service where the dedicated connection is deployed, that is, from the service where the dedicated connection is deployed The service device corresponding to the IP address of the selected service device includes the service device that needs to obtain the service data, so as to ensure that the selected service device is deployed with the service data to be obtained. Among them, the dedicated connection service and the general connection service can be deployed on one service device or on different service devices.
1408、网关将IP地址响应的目的IP地址由IP3替换为IP2,通过地市/区县级UPF网元、省级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。1408. The gateway replaces the destination IP address of the IP address response from IP3 to IP2, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level, the UPF network element at the provincial level, and the RAN device.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP2,之后通过地市/区县级UPF网元、省级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and then send it to the terminal device through the UPF network element at the city/district/county level, the provincial UPF network element and the RAN equipment Send the replaced IP address response.
1409、终端设备通过RAN设备向省级UPF网元发送数据获取请求。1409. The terminal device sends a data acquisition request to the provincial UPF network element through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP4。之 后可以通过RAN设备向省级UPF网元发送数据获取请求。数据获取请求的源IP地址为IP2,目的IP地址为IP4,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the provincial UPF network element through the RAN device. The source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
1410、省级UPF网元根据IP4确定业务为专用连接的业务,通过地市/区县级UPF网元向网关发送数据获取请求。1410. The provincial UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway through the prefecture/district/county UPF network element.
1411、网关将数据获取请求的源IP地址由IP2替换为IP3,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。1411. The gateway replaces the source IP address of the data acquisition request from IP2 to IP3, and replaces the source port of the terminal device with the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
1412、服务设备向网关发送数据响应。1412. The service device sends a data response to the gateway.
1413、网关将数据响应的目的IP地址由IP3替换为IP2,目的端口由网关的端口替换为终端设备的端口,通过地市/区县级UPF网元、省级UPF网元和RAN设备向终端设备发送替换后的数据响应。1413. The gateway replaces the destination IP address of the data response from IP3 to IP2, and the destination port is replaced by the port of the gateway to the port of the terminal device, and then the UPF network element at the prefecture/district/county level, the provincial UPF network element, and the RAN equipment to the terminal The device sends a data response after replacement.
其中,步骤1401-步骤1404为通用连接的业务的流程。步骤1401、步骤1405-步骤1413为专用连接的业务的流程。Among them, step 1401-step 1404 are the flow of the universal connection service. Step 1401, step 1405-step 1413 are the processes of dedicated connection services.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
基于图2所示的网络架构,请参阅图15,图15是本发明实施例公开的又一种通信方法的流程示意图。如图15所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 15. FIG. 15 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 15, the communication method may include the following steps.
可以为每个终端设备部署两个IP地址,一个IP地址为用于获取专用连接的业务的IP地址,为IP4,另一个IP地址为用于获取通用连接的业务的IP地址,为IP2。因此,可以通过终端设备的IP地址识别出业务为专用连接的业务。运营商可以为使用专用连接的业务的用户划分单独的VLAN,并分配单独IP地址,可以通过自动或人工方式将所有终端设备为用于获取专用连接的业务的IP地址下发到BRAS。第一指示信息和第二指示信息为IP4。业务所在服务设备的IP地址为IP1。网关的IP地址为IP3。控制中心的IP地址为IP5。Two IP addresses can be deployed for each terminal device. One IP address is the IP address used to obtain the dedicated connection service, which is IP4, and the other IP address is the IP address used to obtain the general connection service, which is IP2. Therefore, the service can be identified as a dedicated connection service through the IP address of the terminal device. Operators can allocate separate VLANs for users using dedicated connection services, and assign separate IP addresses, and all terminal devices can be automatically or manually issued to the BRAS as IP addresses for obtaining dedicated connection services. The first indication information and the second indication information are IP4. The IP address of the service device where the business is located is IP1. The IP address of the gateway is IP3. The IP address of the control center is IP5.
1501、终端设备通过RAN设备向省级UPF网元发送IP地址获取请求。1501. A terminal device sends an IP address acquisition request to a provincial UPF network element through a RAN device.
在终端设备需要获取的业务为通用连接的业务的情况下,可以通过RAN设备向省级UPF网元发送IP地址获取请求。该IP地址获取请求的源IP地址为IP2,该IP地址获取请求的目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a universal connection service, the RAN device may send an IP address obtaining request to the provincial UPF network element. The source IP address of the IP address acquisition request is IP2, and the destination IP address of the IP address acquisition request is IP5.
终端设备可以先通过无线接口向RAN设备发送IP地址获取请求。RAN设备接收到来自终端设备的IP地址获取请求之后,可以将IP地址获取请求打包在该终端设备的PDU会话里,通过隧道协议向省级UPF网元发送IP地址获取请求。The terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the provincial UPF network element through the tunnel protocol.
1502、在IP地址获取请求的源IP地址为IP2的情况下,省级UPF网元向控制中心发送IP地址获取请求。1502. When the source IP address of the IP address acquisition request is IP2, the provincial UPF network element sends an IP address acquisition request to the control center.
省级UPF网元接收到来自RAN设备的IP地址获取请求之后,可以从IP地址获取请求中提取IP地址获取请求的源IP地址。在源IP地址为IP2的情况下,表明业务为通用连接的业务,省级UPF网元可以向控制中心发送IP地址获取请求。After the provincial UPF network element receives the IP address acquisition request from the RAN device, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request. When the source IP address is IP2, it indicates that the service is a universal connection service, and the provincial UPF network element can send an IP address acquisition request to the control center.
1503、控制中心通过省级UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。1503. The control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element and the RAN device.
其中,步骤1503与步骤1303相似,详细描述请参考步骤1303,在此不加赘述。Among them, step 1503 is similar to step 1303. For detailed description, please refer to step 1303, which will not be repeated here.
1504、终端设备通过RAN设备和省级UPF网元从IP1对应的服务设备获取业务的数据。1504. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device and the provincial UPF network element.
终端设备接收到来自RAN设备的IP地址响应之后,可以根据IP地址响应得到IP1,之后 可以通过RAN设备和省级UPF网元向IP1对应的服务设备发起数据获取请求。服务设备接收到数据获取请求之后,可以通过省级UPF网元和RAN设备向终端设备返回携带业务的数据的数据响应。数据获取请求的源IP地址为IP2,目的IP地址为IP1。After receiving the IP address response from the RAN device, the terminal device can obtain IP1 according to the IP address response, and then can initiate a data acquisition request to the service device corresponding to IP1 through the RAN device and the provincial UPF network element. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the provincial UPF network element and the RAN device. The source IP address of the data acquisition request is IP2, and the destination IP address is IP1.
1505、终端设备通过RAN设备向省级UPF网元发送IP地址获取请求。1505. The terminal device sends an IP address acquisition request to the provincial UPF network element through the RAN device.
在终端设备需要获取的业务为专用连接的业务的情况下,可以通过RAN设备向省级UPF网元发送IP地址获取请求。该IP地址获取请求的源IP地址为IP4,该IP地址获取请求的目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a dedicated connection service, the RAN device may send an IP address obtaining request to the provincial UPF network element. The source IP address of the IP address acquisition request is IP4, and the destination IP address of the IP address acquisition request is IP5.
1506、在IP地址获取请求的源IP地址为IP4的情况下,省级UPF网元通过地市/区县级UPF网元向网关发送IP地址获取请求。1506. In the case where the source IP address of the IP address acquisition request is IP4, the provincial UPF network element sends the IP address acquisition request to the gateway through the city/district/county UPF network element.
1507、网关将IP地址获取请求的源IP地址由IP4替换为IP3,向控制中心发送替换后的IP地址获取请求。1507. The gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
1508、控制中心向网关发送携带IP1的IP地址响应。1508. The control center sends an IP address response carrying IP1 to the gateway.
其中,步骤1508与步骤1307相同,详细描述请参考步骤1307,在此不加赘述。此外,步骤1503与步骤1508中的IP1可以为同样的IP地址,也可以为不同的IP地址。Among them, step 1508 is the same as step 1307. For detailed description, please refer to step 1307, which will not be repeated here. In addition, IP1 in step 1503 and step 1508 may be the same IP address or different IP addresses.
1509、网关将IP地址响应的目的IP地址由IP3替换为IP4,通过地市/区县级UPF网元、省级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。1509. The gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level, the UPF network element at the provincial level, and the RAN device.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP4,之后可以通过地市/区县级UPF网元、省级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then send it to the terminal through the city/district/county UPF network element, provincial UPF network element, and RAN equipment The device sends a response with the replaced IP address.
1510、终端设备通过RAN设备向省级UPF网元发送数据获取请求。1510. The terminal device sends a data acquisition request to the provincial UPF network element through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP1。之后可以通过RAN设备向省级UPF网元发送数据获取请求。数据获取请求的源IP地址为IP4,目的IP地址为IP1,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP1 according to the replaced IP address response. After that, a data acquisition request can be sent to the provincial UPF network element through the RAN device. The source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
1511、省级UPF网元根据IP4确定业务为专用连接的业务,通过地市/区县级UPF网元向网关发送数据获取请求。1511. The provincial UPF network element determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway through the prefecture/district/county UPF network element.
1512、网关将数据获取请求的源IP地址由IP4替换为IP3,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。1512. The gateway replaces the source IP address of the data acquisition request from IP4 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
1513、服务设备向网关发送数据响应。1513. The service device sends a data response to the gateway.
1514、网关将数据响应的目的IP地址由IP3替换为IP4,目的端口由网关的端口替换为终端设备的端口,通过地市/区县级UPF网元、省级UPF网元和RAN设备向终端设备发送替换后的数据响应。1514. The gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and then the UPF network element at the prefecture/district/county level, the provincial UPF network element, and the RAN equipment to the terminal The device sends a data response after replacement.
其中,步骤1501-步骤1504为通用连接的业务的流程。步骤1505-步骤1514为专用连接的业务的流程。Among them, step 1501-step 1504 are the flow of the universal connection service. Steps 1505-step 1514 are the processes of dedicated connection services.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
图16-图18以5G为例进行说明,运营商不新增DNN,使用DNN1统一承载专用连接的业务的流量和通用连接的业务的流量。为降低专用连接的业务的流量对地市级与省级中心之间的骨干网络带宽的冲击,5G移动网络启动UPF网元边缘节点建设,可以将专用连接的业 务的流量卸载到地市/区县级UPF网元。为保障用户上网流程简单,承载用户所有上网流量的DNN1的PDU会话都锚定到地市/区县级UPF网元。在业务为专用连接的业务的情况下,卸载在本地处理;在业务为通用连接的业务的情况下,转发到省级UPF网元处理。Figures 16-18 take 5G as an example for illustration. Operators do not add DNNs and use DNN1 to uniformly carry the traffic of dedicated connection services and the traffic of general connection services. In order to reduce the impact of dedicated connection service traffic on the backbone network bandwidth between prefecture-level and provincial centers, the 5G mobile network starts the construction of UPF network element edge nodes, which can offload the dedicated connection service traffic to prefectures/districts County-level UPF network element. In order to ensure that the user's Internet access process is simple, the PDU session of DNN1 that carries all user Internet traffic is anchored to the UPF network element at the prefecture/district/county level. When the service is a dedicated connection service, the offloading is processed locally; when the service is a general connection service, it is forwarded to the provincial UPF network element for processing.
基于图2所示的网络架构,请参阅图16,图16是本发明实施例公开的又一种通信方法的流程示意图。如图16所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 16. FIG. 16 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 16, the communication method may include the following steps.
业务所在服务设备的IP地址为IP1。终端设备的IP地址为IP2。网关的IP地址为IP3。网关中设置有具有代理功能的IP地址为IP4,为用于专用连接的业务的IP地址。控制中心的IP地址为IP5。UPF网元中存储有网关中设置的具有代理功能的IP地址。第一指示信息为业务的域名,第二指示信息为IP4。The IP address of the service device where the business is located is IP1. The IP address of the terminal device is IP2. The IP address of the gateway is IP3. The IP address with proxy function set in the gateway is IP4, which is an IP address used for a dedicated connection service. The IP address of the control center is IP5. The UPF network element stores an IP address with proxy function set in the gateway. The first indication information is the domain name of the service, and the second indication information is IP4.
1601、终端设备通过RAN设备向地市/区县级UPF网元发送IP地址获取请求。1601. A terminal device sends an IP address acquisition request to a UPF network element at the prefecture/district/county level through a RAN device.
在终端设备需要获取业务的情况下,可以先通过RAN设备向地市/区县级UPF网元发送IP地址获取请求。IP地址获取请求的源IP地址为IP2。IP地址获取请求的目的IP地址为IP5。IP地址获取请求携带有业务的域名。In the case that the terminal device needs to obtain the service, the RAN device may first send an IP address obtaining request to the UPF network element at the prefecture/district/county level. The source IP address of the IP address acquisition request is IP2. The destination IP address of the IP address acquisition request is IP5. The IP address acquisition request carries the domain name of the service.
终端设备可以先通过无线接口向RAN设备发送IP地址获取请求。RAN设备接收到来自终端设备的IP地址获取请求之后,可以将IP地址获取请求打包在该终端设备的PDU会话里,通过隧道协议向地市/区县级UPF网元发送IP地址获取请求。The terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the UPF network element at the prefecture/district/county level through the tunnel protocol.
1602、在域名对应的业务为通用连接的业务的情况下,地市/区县级UPF网元通过省级UPF网元向控制中心发送IP地址获取请求。1602. When the service corresponding to the domain name is a universal connection service, the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the control center through the provincial UPF network element.
地市/区县级UPF网元接收到来自RAN设备的IP地址获取请求之后,即打开隧道之后,可以解析IP地址获取请求中的业务的域名。在解析出的域名对应的业务为通用连接的业务的情况下,可以通过省级UPF网元向控制中心发送IP地址获取请求。即先向省级UPF网元发送IP地址获取请求。省级UPF网元接收到来自地市/区县级UPF网元的IP地址获取请求之后,可以向控制中心发送IP地址获取请求。After the city/district/county UPF network element receives the IP address acquisition request from the RAN device, that is, after opening the tunnel, it can resolve the domain name of the service in the IP address acquisition request. In the case that the service corresponding to the resolved domain name is a universal connection service, the IP address acquisition request can be sent to the control center through the provincial UPF network element. That is, first send an IP address acquisition request to the provincial UPF network element. After the provincial UPF network element receives the IP address acquisition request from the prefecture/district/county UPF network element, it can send the IP address acquisition request to the control center.
可选地,地市/区县级UPF网元接收到来自RAN设备的IP地址获取请求之后,可以先判断IP地址获取请求对应的报文是否为DNS,在判断出IP地址获取请求对应的报文为DNS的情况下,才解析IP地址获取请求中的业务的域名。Optionally, after the UPF network element at the prefecture/district/county level receives the IP address acquisition request from the RAN device, it can first determine whether the packet corresponding to the IP address acquisition request is DNS, and after determining the packet corresponding to the IP address acquisition request In the case of DNS, the IP address is resolved to obtain the domain name of the service in the request.
1603、控制中心通过省级UPF网元、地市/区县级UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。1603. The control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element, the prefecture/district/county UPF network element, and the RAN device.
控制中心接收到来自省级UPF网元的IP地址获取请求之后,表明业务为通用连接的业务,可以根据省级UPF网元选取服务质量最优的服务设备,之后通过省级UPF网元、地市/区县级UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。IP1为选取的服务设备的IP地址。省级UPF网元接收到来自控制中心的IP地址响应之后,可以向地市/区县级UPF网元发送IP地址响应。地市/区县级UPF网元接收到来自UPF网元的IP地址响应之后,可以向RAN设备发送IP地址响应。RAN设备接收到来自地市/区县级UPF网元的IP地址响应之后,可以向终端设备发送IP地址响应。After the control center receives the IP address acquisition request from the provincial UPF network element, it indicates that the service is a universally connected service. It can select the service device with the best service quality according to the provincial UPF network element, and then pass the provincial UPF network element, local The UPF network element at the city/district/county level and the RAN device send an IP address response carrying IP1 to the terminal device. IP1 is the IP address of the selected service device. After the provincial UPF network element receives the IP address response from the control center, it can send the IP address response to the prefecture/district/county UPF network element. After receiving the IP address response from the UPF network element, the city/district/county UPF network element may send an IP address response to the RAN device. After receiving the IP address response from the UPF network element at the prefecture/district/county level, the RAN device can send an IP address response to the terminal device.
选取服务质量最优的服务设备时,可以选取与终端设备的距离最近的服务设备,也可以选取与终端设备的距离较近以及负载较小的服务设备,还可以根据与终端设备的距离以及其它因素进行选取。When selecting the service equipment with the best service quality, you can select the service equipment with the closest distance to the terminal equipment, or select the service equipment with a short distance from the terminal equipment and a small load. It can also be based on the distance from the terminal equipment and other services. Factors are selected.
1604、终端设备通过RAN设备、地市/区县级UPF网元和省级UPF网元从IP1对应的服务设备获取业务的数据。1604. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device, the UPF network element at the prefecture/district/county level, and the provincial UPF network element.
终端设备接收到来自RAN设备的IP地址响应之后,可以根据IP地址响应得到IP1,之后可以通过RAN设备、地市/区县级UPF网元和省级UPF网元向IP1对应的服务设备发起数据获取请求。服务设备接收到数据获取请求之后,可以通过省级UPF网元、地市/区县级UPF网元和RAN设备向终端设备返回携带业务的数据的数据响应。After the terminal device receives the IP address response from the RAN device, it can get IP1 according to the IP address response, and then can initiate data to the service device corresponding to IP1 through the RAN device, city/district/county UPF network element, and provincial UPF network element Get the request. After receiving the data acquisition request, the service device can return a data response carrying service data to the terminal device through the provincial UPF network element, the prefecture/district/county UPF network element, and the RAN device.
1605、在域名对应的业务为专用连接的业务的情况下,地市/区县级UPF网元向网关发送IP地址获取请求。1605. When the service corresponding to the domain name is a dedicated connection service, the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the gateway.
1606、网关将IP地址获取请求的源IP地址由IP2替换为IP3,向控制中心发送替换后的IP地址获取请求。1606. The gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
1607、控制中心向网关发送携带IP1的IP地址响应。1607. The control center sends an IP address response carrying IP1 to the gateway.
控制中心接收到来自网关的替换后的IP地址获取请求之后,可以根据网关选择服务质量最优的服务设备,之后向网关返回携带IP1的IP地址响应。在选择服务质量最优的服务设备时,可以选取与网关的距离最近的服务设备,也可以选取与网关的距离较近以及负载较小的服务设备,还可以根据与网关的距离以及其它因素进行选取。步骤1603与步骤1607中的IP1可以为同样的IP地址,也可以为不同的IP地址。After the control center receives the replaced IP address acquisition request from the gateway, it can select the service device with the best service quality according to the gateway, and then return an IP address response carrying IP1 to the gateway. When selecting the service device with the best service quality, you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. IP1 in step 1603 and step 1607 can be the same IP address or different IP addresses.
1608、网关将IP地址响应的目的IP地址由IP3替换为IP2,IP1替换为IP4,通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。1608. The gateway replaces the destination IP address of the IP address response from IP3 to IP2, and IP1 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level and the RAN device.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP2,IP地址响应携带的IP1替换为IP4,之后通过UPF网元、地市/区县级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。此外,还可以记录IP1与IP4之间的对应关系。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and replace the IP1 carried in the IP address response with IP4, and then pass the UPF network element, city/district and county level UPF The network element and the RAN device send the replaced IP address response to the terminal device. In addition, the correspondence between IP1 and IP4 can also be recorded.
1609、终端设备通过RAN设备向地市/区县级UPF网元发送数据获取请求。1609. The terminal device sends a data acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP4。之后可以通过RAN设备向地市/区县级UPF网元发送数据获取请求。数据获取请求的源IP地址为IP2,目的IP地址为IP4,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element at the prefecture/district/county level through the RAN device. The source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
1610、地市/区县级UPF网元根据IP4确定业务为专用连接的业务,向网关发送数据获取请求。1610. The UPF network element at the prefecture/district/county level determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
1611、网关将数据获取请求的源IP地址由IP2替换为IP3,目的IP地址由IP4替换为IP1,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。1611. The gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the destination IP address from IP4 to IP1, and the source port from the terminal device port to the gateway port, and sends the replaced data to the service device corresponding to IP1 Get the request.
1612、服务设备向网关发送数据响应。1612. The service device sends a data response to the gateway.
1613、网关将数据响应的目的IP地址由IP3替换为IP2,源IP地址由IP1替换为IP4,目的端口由网关的端口替换为终端设备的端口,通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的数据响应。1613. The gateway replaces the destination IP address of the data response from IP3 to IP2, the source IP address from IP1 to IP4, and the destination port from the gateway to the port of the terminal device through the UPF network element of the city/district and county level and the RAN The device sends the replaced data response to the terminal device.
其中,步骤1601-步骤1604为通用连接的业务的流程。步骤1601、步骤1605-步骤1613为专用连接的业务的流程,可以保证终端设备的用户无法看到互联网服务商/CDN服务商的IP地址,同时可以保证互联网服务商/CDN服务商无法看到终端设备的IP地址。Among them, step 1601 to step 1604 are the procedures of the universal connection service. Step 1601, step 1605-step 1613 are the dedicated connection business processes, which can ensure that the user of the terminal device cannot see the IP address of the Internet service provider/CDN service provider, and it can also ensure that the Internet service provider/CDN service provider cannot see the terminal The IP address of the device.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
基于图2所示的网络架构,请参阅图17,图17是本发明实施例公开的又一种通信方法的流程示意图。如图17所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 17. FIG. 17 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 17, the communication method may include the following steps.
一个服务设备可以只部署有专用连接的业务的IP地址,也可以只部署有通用连接的业务的IP地址,还可以即部署有专用连接的业务的IP地址也部署有通用连接的业务的IP地址。服务设备的专用连接的业务的IP地址可以为IP4,服务设备的通用连接的业务的IP地址可以为IP1。因此,可以通过服务设备的IP地址识别出业务为专用连接的业务。运营商可以通过自动或人工方式将所有服务设备为专用连接的业务的IP地址下发到UPF网元。第一指示信息可以为业务的域名,第二指示信息可以为IP4,即业务所在服务设备的IP地址。终端设备的IP地址为IP2,网关的IP地址为IP3,控制中心的IP地址为IP5。A service device can be deployed with only the IP address of the dedicated connection service, or only the IP address of the service with general connection, or both the IP address of the service with dedicated connection and the IP address of the service with general connection. . The IP address of the service of the dedicated connection of the service device may be IP4, and the IP address of the service of the general connection of the service device may be IP1. Therefore, the service can be identified as a dedicated connection service through the IP address of the service device. The operator can automatically or manually deliver the IP addresses of all service devices for dedicated connection services to the UPF network element. The first indication information may be the domain name of the service, and the second indication information may be IP4, that is, the IP address of the service device where the service is located. The IP address of the terminal device is IP2, the IP address of the gateway is IP3, and the IP address of the control center is IP5.
1701、终端设备通过RAN设备向地市/区县级UPF网元发送IP地址获取请求。1701. The terminal device sends an IP address acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
其中,步骤1701与步骤1601相同,详细描述请参考步骤1601,在此不加赘述。Among them, step 1701 is the same as step 1601. For detailed description, please refer to step 1601, which will not be repeated here.
1702、在域名对应的业务为通用连接的业务的情况下,地市/区县级UPF网元通过省级UPF网元向控制中心发送IP地址获取请求。1702. When the service corresponding to the domain name is a universal connection service, the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the control center through the provincial UPF network element.
其中,步骤1702与步骤1602相同,详细描述请参考步骤1602,在此不加赘述。Among them, step 1702 is the same as step 1602. For detailed description, please refer to step 1602, which will not be repeated here.
1703、控制中心通过省级UPF网元、地市/区县级UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。1703. The control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element, the prefecture/district/county UPF network element, and the RAN device.
其中,步骤1704与步骤1604相同,详细描述请参考步骤1604,在此不加赘述。此外,控制中心选取服务设备时,选取的是部署有通用连接的业务的服务设备,即是从部署有通用连接的业务的IP地址对应的服务设备中进行选取的,也即从部署有通用连接的业务的IP地址对应的服务设备包括有需要获取的业务的数据的服务设备中选取的,以便可以保证选取的服务设备上部署有要获取的业务的数据。Among them, step 1704 is the same as step 1604. For detailed description, please refer to step 1604, which will not be repeated here. In addition, when the control center selects the service device, it selects the service device deployed with the universal connection service, that is, it selects from the service device corresponding to the IP address of the service deployed with the universal connection, that is, it selects from the service equipment deployed with the universal connection The service device corresponding to the service IP address of the service device includes the service device that needs to obtain the service data selected, so as to ensure that the selected service device is deployed with the service data to be obtained.
1704、终端设备通过RAN设备、地市/区县级UPF网元和省级UPF网元从IP1对应的服务设备获取业务的数据。1704. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device, the UPF network element at the prefecture/district/county level, and the provincial UPF network element.
其中,步骤1704与步骤1604相同,详细描述请参考步骤1604,在此不加赘述。Among them, step 1704 is the same as step 1604. For detailed description, please refer to step 1604, which will not be repeated here.
1705、在域名对应的业务为专用连接的业务的情况下,地市/区县级UPF网元向网关发送IP地址获取请求。1705. When the service corresponding to the domain name is a dedicated connection service, the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the gateway.
其中,步骤1705与步骤1605相同,详细描述请参考步骤1605,在此不加赘述。Among them, step 1705 is the same as step 1605. For detailed description, please refer to step 1605, which will not be repeated here.
1706、网关将IP地址获取请求的源IP地址由IP2替换为IP3,向控制中心发送替换后的IP地址获取请求。1706. The gateway replaces the source IP address of the IP address acquisition request from IP2 to IP3, and sends the replaced IP address acquisition request to the control center.
1707、控制中心向网关发送携带IP4的IP地址响应。1707. The control center sends an IP address response carrying IP4 to the gateway.
控制中心接收到来自网关的替换后的IP地址获取请求之后,表明业务为专用连接的业务,可以根据网关选择服务质量最优的服务设备,之后向网关返回携带IP4的IP地址响应。在选择服务质量最优的服务设备时,可以选取与网关的距离最近的服务设备,也可以选取与网关的距离较近以及负载较小的服务设备,还可以根据与网关的距离以及其它因素进行选取。控制中心选取服务设备时,选取的是部署有专用连接的业务的服务设备,即是从部署有专用连接的业务的IP地址对应的服务设备中进行选取的,也即从部署有专用连接的业务的IP地址对应的服务设备包括有需要获取的业务的数据的服务设备中选取的,以便可以 保证选取的服务设备上部署有要获取的业务的数据。其中,专用连接的业务和通用连接的业务可以部署在一个服务设备上,也可以部署在不同的服务设备上。After the control center receives the replaced IP address acquisition request from the gateway, it indicates that the service is a dedicated connection service. The service device with the best service quality can be selected according to the gateway, and then the IP address response carrying IP4 is returned to the gateway. When selecting the service device with the best service quality, you can choose the service device that is closest to the gateway, or the service device that is closer to the gateway and has a smaller load, and can also be based on the distance to the gateway and other factors. Select. When the control center selects the service equipment, it selects the service equipment with the dedicated connection service, that is, it selects from the service equipment corresponding to the IP address of the service where the dedicated connection is deployed, that is, from the service where the dedicated connection is deployed The service device corresponding to the IP address of the selected service device includes the service device that needs to obtain the service data, so as to ensure that the selected service device is deployed with the service data to be obtained. Among them, the dedicated connection service and the general connection service can be deployed on one service device or on different service devices.
1708、网关将IP地址响应的目的IP地址由IP3替换为IP2,通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。1708. The gateway replaces the destination IP address of the IP address response from IP3 to IP2, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level and the RAN device.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP2,之后通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP2, and then send the replaced IP address to the terminal device through the UPF network element of the city/district and county level and the RAN device response.
1709、终端设备通过RAN设备向地市/区县级UPF网元发送数据获取请求。1709. The terminal device sends a data acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP4。之后可以通过RAN设备向地市/区县级UPF网元发送数据获取请求。数据获取请求的源IP地址为IP2,目的IP地址为IP4,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP4 according to the replaced IP address response. After that, a data acquisition request can be sent to the UPF network element at the prefecture/district/county level through the RAN device. The source IP address of the data acquisition request is IP2, the destination IP address is IP4, the source port is the port of the terminal device, and the destination port is the port of the service device.
1710、地市/区县级UPF网元根据IP4确定业务为专用连接的业务,向网关发送数据获取请求。1710. The UPF network element at the prefecture/district/county level determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
1711、网关将数据获取请求的源IP地址由IP2替换为IP3,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。1711. The gateway replaces the source IP address of the data acquisition request from IP2 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
1712、服务设备向网关发送数据响应。1712. The service device sends a data response to the gateway.
1713、网关将数据响应的目的IP地址由IP3替换为IP2,目的端口由网关的端口替换为终端设备的端口,通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的数据响应。1713. The gateway replaces the destination IP address of the data response from IP3 to IP2, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data to the terminal device through the UPF network element of the city/district and county level and the RAN device response.
其中,步骤1701-步骤1704为通用连接的业务的流程。步骤1701、步骤1705-步骤1713为专用连接的业务的流程。Among them, step 1701 to step 1704 are the procedures of the universal connection service. Step 1701, step 1705-step 1713 are the processes of dedicated connection services.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
基于图2所示的网络架构,请参阅图18,图18是本发明实施例公开的又一种通信方法的流程示意图。如图18所示,该通信方法可以包括以下步骤。Based on the network architecture shown in FIG. 2, please refer to FIG. 18. FIG. 18 is a schematic flowchart of another communication method disclosed in an embodiment of the present invention. As shown in FIG. 18, the communication method may include the following steps.
可以为每个终端设备部署两个IP地址,一个IP地址为用于获取专用连接的业务的IP地址,为IP4,另一个IP地址为用于获取通用连接的业务的IP地址,为IP2。因此,可以通过终端设备的IP地址识别出业务为专用连接的业务。运营商可以为使用专用连接的业务的用户划分单独的VLAN,并分配单独IP地址,可以通过自动或人工方式将所有终端设备为用于获取专用连接的业务的IP地址下发到BRAS。第一指示信息和第二指示信息为IP4。业务所在服务设备的IP地址为IP1。网关的IP地址为IP3。控制中心的IP地址为IP5。Two IP addresses can be deployed for each terminal device. One IP address is the IP address used to obtain the dedicated connection service, which is IP4, and the other IP address is the IP address used to obtain the general connection service, which is IP2. Therefore, the service can be identified as a dedicated connection service through the IP address of the terminal device. Operators can allocate separate VLANs for users using dedicated connection services, and assign separate IP addresses, and all terminal devices can be automatically or manually issued to the BRAS as IP addresses for obtaining dedicated connection services. The first indication information and the second indication information are IP4. The IP address of the service device where the business is located is IP1. The IP address of the gateway is IP3. The IP address of the control center is IP5.
1801、终端设备通过RAN设备向地市/区县级UPF网元发送IP地址获取请求。1801. The terminal device sends an IP address acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
在终端设备需要获取的业务为通用连接的业务的情况下,可以通过RAN设备向地市/区县级UPF网元发送IP地址获取请求。该IP地址获取请求的源IP地址为IP2,该IP地址获取请求的目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a universal connection service, the RAN device may send an IP address obtaining request to the UPF network element at the prefecture/district/county level. The source IP address of the IP address acquisition request is IP2, and the destination IP address of the IP address acquisition request is IP5.
终端设备可以先通过无线接口向RAN设备发送IP地址获取请求。RAN设备接收到来自终端设备的IP地址获取请求之后,可以将IP地址获取请求打包在该终端设备的PDU会话里,通过隧道协议向地市/区县级UPF网元发送IP地址获取请求。The terminal device may first send an IP address acquisition request to the RAN device through the wireless interface. After the RAN device receives the IP address acquisition request from the terminal device, it can package the IP address acquisition request in the PDU session of the terminal device, and send the IP address acquisition request to the UPF network element at the prefecture/district/county level through the tunnel protocol.
1802、在IP地址获取请求的源IP地址为IP2的情况下,地市/区县级UPF网元通过省级UPF网元向控制中心发送IP地址获取请求。1802. When the source IP address of the IP address acquisition request is IP2, the UPF network element at the prefecture/district/county level sends the IP address acquisition request to the control center through the provincial UPF network element.
地市/区县级UPF网元接收到来自RAN设备的IP地址获取请求之后,可以从IP地址获取请求中提取IP地址获取请求的源IP地址。在源IP地址为IP2的情况下,表明业务为通用连接的业务,地市/区县级UPF网元可以通过省级UPF网元向控制中心发送IP地址获取请求。After the UPF network element at the city/district/county level receives the IP address acquisition request from the RAN device, it can extract the source IP address of the IP address acquisition request from the IP address acquisition request. In the case where the source IP address is IP2, it indicates that the service is a universal connection service, and the UPF network element at the prefecture/district/county level can send an IP address acquisition request to the control center through the provincial UPF network element.
1803、控制中心通过省级UPF网元、地市/区县级UPF网元和RAN设备向终端设备发送携带IP1的IP地址响应。1803. The control center sends an IP address response carrying IP1 to the terminal device through the provincial UPF network element, the prefecture/district/county UPF network element, and the RAN device.
其中,步骤1803与步骤1603相似,详细描述请参考步骤1603,在此不加赘述。Among them, step 1803 is similar to step 1603. For detailed description, please refer to step 1603, which will not be repeated here.
1804、终端设备通过RAN设备、地市/区县级UPF网元和省级UPF网元从IP1对应的服务设备获取业务的数据。1804. The terminal device obtains service data from the service device corresponding to IP1 through the RAN device, the UPF network element at the prefecture/district/county level, and the provincial UPF network element.
其中,步骤1804与步骤1604相同,详细描述请参考步骤1604,在此不加赘述。Among them, step 1804 is the same as step 1604. For detailed description, please refer to step 1604, which will not be repeated here.
1805、终端设备通过RAN设备向地市/区县级UPF网元发送IP地址获取请求。1805. The terminal device sends an IP address acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
在终端设备需要获取的业务为专用连接的业务的情况下,可以通过RAN设备向地市/区县级UPF网元发送IP地址获取请求。该IP地址获取请求的源IP地址为IP4,该IP地址获取请求的目的IP地址为IP5。In the case that the service that the terminal device needs to obtain is a dedicated connection service, the RAN device can send an IP address obtaining request to the UPF network element at the prefecture/district/county level. The source IP address of the IP address acquisition request is IP4, and the destination IP address of the IP address acquisition request is IP5.
1806、在IP地址获取请求的源IP地址为IP4的情况下,地市/区县级UPF网元向网关发送IP地址获取请求。1806. When the source IP address of the IP address acquisition request is IP4, the UPF network element at the prefecture/district/county level sends an IP address acquisition request to the gateway.
1807、网关将IP地址获取请求的源IP地址由IP4替换为IP3,向控制中心发送替换后的IP地址获取请求。1807. The gateway replaces the source IP address of the IP address acquisition request from IP4 to IP3, and sends the replaced IP address acquisition request to the control center.
1808、控制中心向网关发送携带IP1的IP地址响应。1808. The control center sends an IP address response carrying IP1 to the gateway.
其中,步骤1808与步骤1507相同,详细描述请参考步骤1507,在此不加赘述。此外,步骤1803与步骤1808中的IP1可以为同样的IP地址,也可以为不同的IP地址。Among them, step 1808 is the same as step 1507. For detailed description, please refer to step 1507, which will not be repeated here. In addition, IP1 in step 1803 and step 1808 may be the same IP address or different IP addresses.
1809、网关将IP地址响应的目的IP地址由IP3替换为IP4,通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。1809. The gateway replaces the destination IP address of the IP address response from IP3 to IP4, and sends the replaced IP address response to the terminal device through the UPF network element at the prefecture/district/county level and the RAN device.
网关接收到来自控制中心的IP地址响应之后,可以将IP地址响应的目的IP地址由IP3替换为IP4,之后可以通过地市/区县级UPF网元、省级UPF网元和RAN设备向终端设备发送替换后的IP地址响应。After the gateway receives the IP address response from the control center, it can replace the destination IP address of the IP address response from IP3 to IP4, and then send it to the terminal through the city/district/county UPF network element, provincial UPF network element, and RAN equipment The device sends a response with the replaced IP address.
1810、终端设备通过RAN设备向地市/区县级UPF网元发送数据获取请求。1810. The terminal device sends a data acquisition request to the UPF network element at the prefecture/district/county level through the RAN device.
终端设备接收到替换后的IP地址响应之后,可以根据替换后的IP地址响应得到IP1。之后可以通过RAN设备向省级UPF网元发送数据获取请求。数据获取请求的源IP地址为IP4,目的IP地址为IP1,源端口为终端设备的端口,目的端口为服务设备的端口。After the terminal device receives the replaced IP address response, it can obtain IP1 according to the replaced IP address response. After that, a data acquisition request can be sent to the provincial UPF network element through the RAN device. The source IP address of the data acquisition request is IP4, the destination IP address is IP1, the source port is the port of the terminal device, and the destination port is the port of the service device.
1811、地市/区县级UPF网元根据IP4确定业务为专用连接的业务,向网关发送数据获取请求。1811. The UPF network element at the prefecture/district/county level determines that the service is a dedicated connection service according to IP4, and sends a data acquisition request to the gateway.
1812、网关将数据获取请求的源IP地址由IP4替换为IP3,源端口由终端设备的端口替换为网关的端口,向IP1对应的服务设备发送替换后的数据获取请求。1812. The gateway replaces the source IP address of the data acquisition request from IP4 to IP3, the source port is replaced from the port of the terminal device to the port of the gateway, and sends the replaced data acquisition request to the service device corresponding to IP1.
1813、服务设备向网关发送数据响应。1813. The service device sends a data response to the gateway.
1814、网关将数据响应的目的IP地址由IP3替换为IP4,目的端口由网关的端口替换为终端设备的端口,通过地市/区县级UPF网元和RAN设备向终端设备发送替换后的数据响应。1814. The gateway replaces the destination IP address of the data response from IP3 to IP4, and the destination port is replaced by the port of the gateway to the port of the terminal device, and sends the replaced data to the terminal device through the UPF network element and RAN device at the city/district/county level response.
其中,步骤1801-步骤1804为通用连接的业务的流程。步骤1805-步骤1814为专用连接的业务的流程。Among them, step 1801 to step 1804 are the flow of the universal connection service. Steps 1805-step 1814 are the processes of dedicated connection services.
上述步骤相关的详细描述可以参考上面实施例中对应的描述。For detailed descriptions related to the above steps, reference may be made to the corresponding descriptions in the above embodiments.
其中,上面几个实施例中,网关接收到IP地址获取请求之后,可以先判断业务是否为指定业务,即判断业务是否为网关允许通过的业务。在判断出业务为指定业务的情况下,才执行后续的步骤。相应地,网关接收到数据获取请求之后,可以先判断该数据获取请求对应的业务与之前接收到的IP地址获取请求对应的业务是否为同一业务,在判断出为同一业务的情况下,可以执行后续步骤。Among them, in the above several embodiments, after the gateway receives the IP address acquisition request, it can first determine whether the service is a designated service, that is, whether the service is a service allowed by the gateway. When it is determined that the business is a designated business, the subsequent steps are executed. Correspondingly, after the gateway receives the data acquisition request, it can first determine whether the business corresponding to the data acquisition request and the business corresponding to the previously received IP address acquisition request are the same business, and if it is determined to be the same business, it can execute Next steps.
基于图1或图2所示的网络架构,请参阅图19,图19是本发明实施例公开的一种通信装置的结构示意图。如图19所示,该通信装置可以包括:Based on the network architecture shown in FIG. 1 or FIG. 2, please refer to FIG. 19. FIG. 19 is a schematic structural diagram of a communication device disclosed in an embodiment of the present invention. As shown in FIG. 19, the communication device may include:
接收单元1901,用于接收来自终端设备的信息获取请求,信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息;The receiving unit 1901 is configured to receive an information acquisition request from a terminal device, where the information acquisition request carries indication information for indicating whether the service is a dedicated connection service;
发送单元1902,用于在该指示信息指示该业务为专用连接的业务的情况下,向网关发送信息获取请求,信息获取请求用于获取该业务对应的信息;The sending unit 1902 is configured to send an information acquisition request to the gateway when the indication information indicates that the service is a dedicated connection service, and the information acquisition request is used to obtain information corresponding to the service;
接收单元1901,还用于接收来自网关的该业务对应的信息;The receiving unit 1901 is further configured to receive information corresponding to the service from the gateway;
发送单元1902,还用于向终端设备发送该业务对应的信息。The sending unit 1902 is also used to send information corresponding to the service to the terminal device.
在一个实施例中,接收单元1901接收来自终端设备的信息获取请求,信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息包括:In an embodiment, the receiving unit 1901 receives an information acquisition request from a terminal device, and the information acquisition request carries indication information for indicating whether the service is a dedicated connection service, including:
接收来自终端设备的IP地址获取请求,IP地址获取请求携带有用于指示业务是否为专用连接的业务的第一指示信息;Receiving an IP address acquisition request from a terminal device, where the IP address acquisition request carries first indication information for indicating whether the service is a dedicated connection service;
发送单元1902在指示信息指示该业务为专用连接的业务的情况下,向网关发送信息获取请求,信息获取请求用于获取该业务对应的信息包括:When the indication information indicates that the service is a dedicated connection service, the sending unit 1902 sends an information acquisition request to the gateway. The information acquisition request is used to acquire information corresponding to the service, including:
在第一指示信息指示该业务为专用连接的业务的情况下,向网关发送IP地址获取请求,IP地址获取请求用于获取该业务所在服务设备对应的IP地址;When the first indication information indicates that the service is a dedicated connection service, send an IP address acquisition request to the gateway, and the IP address acquisition request is used to acquire the IP address corresponding to the service device where the service is located;
接收单元1901接收来自网关的该业务对应的信息包括:The information corresponding to the service received by the receiving unit 1901 from the gateway includes:
接收来自网关的该业务所在服务设备对应的IP地址;Receive the IP address corresponding to the service device where the business is located from the gateway;
发送单元1902向终端设备发送该业务对应的信息包括:The sending unit 1902 sending information corresponding to the service to the terminal device includes:
向终端设备发送该业务所在服务设备对应的IP地址。Send the IP address corresponding to the service device where the service is located to the terminal device.
在一个实施例中,接收单元1901接收来自终端设备的信息获取请求,信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息还包括:In an embodiment, the receiving unit 1901 receives an information acquisition request from a terminal device, and the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service further includes:
接收来自终端设备的数据获取请求,数据获取请求携带有用于指示该业务是否为专用连接的业务的第二指示信息;Receiving a data acquisition request from a terminal device, where the data acquisition request carries second indication information for indicating whether the service is a dedicated connection service;
发送单元1902在指示信息指示该业务为专用连接的业务的情况下,向网关发送信息获取请求,信息获取请求用于获取该业务对应的信息还包括:When the indication information indicates that the service is a dedicated connection service, the sending unit 1902 sends an information acquisition request to the gateway. The information acquisition request for acquiring information corresponding to the service further includes:
在第二指示信息指示该业务为专用连接的业务的情况下,向网关发送数据获取请求,数据获取请求用于从IP地址对应的服务设备获取该业务对应的数据;When the second indication information indicates that the service is a dedicated connection service, sending a data acquisition request to the gateway, where the data acquisition request is used to obtain data corresponding to the service from the service device corresponding to the IP address;
接收单元1901接收来自网关的该业务对应的信息还包括:The receiving unit 1901 receiving information corresponding to the service from the gateway further includes:
接收来自网关的该业务对应的数据;Receive data corresponding to the service from the gateway;
发送单元1902向终端设备发送该业务对应的信息还包括:The sending unit 1902 sending information corresponding to the service to the terminal device further includes:
向终端设备发送该业务对应的数据。Send the data corresponding to the service to the terminal device.
在一个实施例中,第一指示信息为该业务的域名,第一指示信息用于指示该业务为专用连接的业务包括:In an embodiment, the first indication information is the domain name of the service, and the first indication information used to indicate that the service is a dedicated connection service includes:
该业务的域名为指定域名。The domain name of this business is the designated domain name.
在一个实施例中,第二指示信息为数据获取请求的目的IP地址,第二指示信息用于指示该业务为专用连接的业务包括:In an embodiment, the second indication information is the destination IP address of the data acquisition request, and the second indication information is used to indicate that the service is a dedicated connection service including:
数据获取请求的目的IP地址为指定IP地址。The destination IP address of the data acquisition request is the designated IP address.
在一个实施例中,第一指示信息为IP地址获取请求的源IP地址,第一指示信息用于指示该业务为专用连接的业务包括:In an embodiment, the first indication information is the source IP address of the IP address acquisition request, and the first indication information used to indicate that the service is a dedicated connection service includes:
IP地址获取请求的源IP地址为指定IP地址。The source IP address of the IP address acquisition request is the specified IP address.
在一个实施例中,第二指示信息为数据获取请求的源IP地址,第二指示信息用于指示该业务为专用连接的业务包括:In an embodiment, the second indication information is the source IP address of the data acquisition request, and the second indication information is used to indicate that the service is a dedicated connection service including:
数据获取请求的源IP地址为指定IP地址。The source IP address of the data acquisition request is the designated IP address.
在一个实施例中,IP地址获取请求为DNS请求或HTTP DNS请求。In an embodiment, the IP address acquisition request is a DNS request or an HTTP DNS request.
在一个实施例中,该通信装置还可以包括:In an embodiment, the communication device may further include:
确定单元1903,用于在IP地址获取请求的目的IP地址为设定IP地址的情况下,确定IP地址获取请求为HTTP DNS请求。The determining unit 1903 is configured to determine that the IP address acquisition request is an HTTP DNS request when the destination IP address of the IP address acquisition request is a set IP address.
有关上述接收单元1901、发送单元1902和确定单元1903更详细的描述可以直接参考上述方法实施例中UPF网元或BRAS的相关描述直接得到,这里不加赘述。More detailed descriptions of the foregoing receiving unit 1901, sending unit 1902, and determining unit 1903 can be obtained directly by referring to the relevant description of the UPF network element or BRAS in the foregoing method embodiment, and will not be repeated here.
基于图1或图2所示的网络架构,请参阅图20,图20是本发明实施例公开的另一种通信装置的结构示意图。如图20所示,该通信装置可以包括:Based on the network architecture shown in FIG. 1 or FIG. 2, please refer to FIG. 20. FIG. 20 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention. As shown in FIG. 20, the communication device may include:
接收单元2001,用于接收来自控制设备的信息获取请求,信息获取请求对应的业务为专用连接的业务;The receiving unit 2001 is configured to receive an information acquisition request from the control device, and the service corresponding to the information acquisition request is a dedicated connection service;
获取单元2001,用于在该业务为指定业务的情况下,根据信息获取请求获取该业务对应的信息;The obtaining unit 2001 is configured to obtain information corresponding to the service according to the information obtaining request when the service is a designated service;
发送单元2003,用于向控制设备发送该业务对应的信息。The sending unit 2003 is configured to send information corresponding to the service to the control device.
在一个实施例中,接收单元2001,具体用于接收来自控制设备的IP地址获取请求,IP地址获取请求携带有该业务的标识;In one embodiment, the receiving unit 2001 is specifically configured to receive an IP address acquisition request from the control device, and the IP address acquisition request carries an identifier of the service;
获取单元2002具体用于:The acquiring unit 2002 is specifically used for:
在该标识对应的业务为指定业务的情况下,向控制中心发送IP地址获取请求;In the case that the business corresponding to the identifier is a designated business, send an IP address acquisition request to the control center;
接收来自控制中心的第一IP地址响应,第一IP地址响应携带有第一IP地址,第一IP地址为控制中心根据网关确定的该业务所在服务设备的IP地址;Receiving a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is the IP address of the service device where the service is determined by the control center according to the gateway;
发送单元2003,具体用于向控制设备发送第二IP地址响应,第二IP地址响应携带有第一IP地址或第一IP地址对应的IP地址。The sending unit 2003 is specifically configured to send a second IP address response to the control device, where the second IP address response carries the first IP address or the IP address corresponding to the first IP address.
在一个实施例中,接收单元2001,具体还用于接收来自控制设备的数据获取请求;In an embodiment, the receiving unit 2001 is specifically further configured to receive a data acquisition request from the control device;
获取单元2002具体还用于:The acquiring unit 2002 is also specifically used for:
在数据获取请求与IP地址获取请求对应的业务为同一业务的情况下,向第一IP地址对应的服务设备发送数据获取请求;In the case where the business corresponding to the data acquisition request and the IP address acquisition request are the same business, sending the data acquisition request to the service device corresponding to the first IP address;
接收来自服务设备的携带有该业务的数据的数据响应;Receive a data response from the service device that carries the data of the service;
发送单元2003,具体还用于向控制设备发送数据响应。The sending unit 2003 is specifically also used to send a data response to the control device.
在一个实施例中,获取单元2002向控制中心发送IP地址获取请求包括:In an embodiment, the obtaining unit 2002 sending an IP address obtaining request to the control center includes:
将IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,第二IP地址为终端设备的IP地址,第三IP地址为网关的IP地址;Replace the source IP address of the IP address acquisition request from the second IP address with the third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway;
向控制中心发送替换后的IP地址获取请求;Send a replacement IP address acquisition request to the control center;
发送单元2003向控制设备发送第二IP地址响应包括:The sending unit 2003 sending the second IP address response to the control device includes:
将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址,得到第二IP地址响应;Replace the destination IP address of the first IP address response from the third IP address with the second IP address to obtain the second IP address response;
向控制设备发送第二IP地址响应。Send a second IP address response to the control device.
在一个实施例中,该通信装置还可以包括:In an embodiment, the communication device may further include:
记录单元2004,用于记录该标识与第二IP地址以及第一IP地址或第一IP地址对应的IP地址之间的对应关系;The recording unit 2004 is used to record the correspondence between the identifier and the second IP address and the first IP address or the IP address corresponding to the first IP address;
获取单元2003在数据获取请求与IP地址获取请求对应的业务为同一业务的情况下,向第一IP地址对应的服务设备发送数据获取请求包括:When the service corresponding to the data obtaining request and the IP address obtaining request are the same service, the obtaining unit 2003 sending the data obtaining request to the service device corresponding to the first IP address includes:
根据该对应关系以及数据获取请求的源IP地址和目的IP地址,确定数据获取请求与IP地址获取请求对应的业务为同一业务;According to the corresponding relationship and the source IP address and destination IP address of the data acquisition request, it is determined that the business corresponding to the data acquisition request and the IP address acquisition request is the same business;
将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口,第一端口为终端设备的端口,第二端口为网关的端口;Replace the source IP address of the data acquisition request from the second IP address with the third IP address, and replace the source port of the data acquisition request from the first port to the second port. The first port is the port of the terminal device, and the second port is The port of the gateway;
向第一IP地址对应的服务设备发送替换后的数据获取请求;Sending the replaced data acquisition request to the service device corresponding to the first IP address;
发送单元2003向控制设备发送数据响应包括:The sending unit 2003 sends a data response to the control device including:
将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第一端口;Replace the destination IP address of the data response from the third IP address to the second IP address, and replace the destination port of the data response from the second port to the first port;
向控制设备发送替换后的数据响应。Send the replaced data response to the control device.
在一个实施例中,发送单元2003将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址,得到第二IP地址响应包括:In one embodiment, the sending unit 2003 replaces the destination IP address of the first IP address response from the third IP address with the second IP address, and obtaining the second IP address response includes:
将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址,将第一IP地址替换为第四IP地址,得到第二IP地址响应,第四IP地址为网关分配的用于识别业务是否为专用连接的业务的IP地址;Replace the destination IP address of the first IP address response from the third IP address with the second IP address, replace the first IP address with the fourth IP address, and get the second IP address response. The fourth IP address is used by the gateway. The IP address used to identify whether the service is a dedicated connection service;
获取单元2002将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口包括:The obtaining unit 2002 replacing the source IP address of the data obtaining request from the second IP address to the third IP address, and replacing the source port of the data obtaining request from the first port to the second port includes:
将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口,将数据获取请求的目的IP地址由第四IP地址替换为第一IP地址;Replace the source IP address of the data acquisition request from the second IP address with the third IP address, replace the source port of the data acquisition request from the first port with the second port, and replace the destination IP address of the data acquisition request with the fourth IP address Replace with the first IP address;
发送单元2003将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第一端口包括:The sending unit 2003 replacing the destination IP address of the data response from the third IP address to the second IP address, and replacing the destination port of the data response from the second port to the first port includes:
将数据响应的源IP地址由第一IP地址替换为第四IP地址,将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第一端口。Replace the source IP address of the data response from the first IP address to the fourth IP address, replace the destination IP address of the data response from the third IP address to the second IP address, and replace the destination port of the data response from the second port to the second IP address The first port.
在一个实施例中,该通信装置还可以包括计费单元2005,其中:In an embodiment, the communication device may further include a charging unit 2005, wherein:
计费单元2005,用于在终端设备与服务设备间使用的宽带的流量小于最低限制流量的情况下,按照最低限制流量对终端设备和服务设备使用的宽带进行计费;计费单元2005,还用于在终端设备与服务设备间使用的宽带的流量大于或等于最低限制流量的情况下,按照终端设备与服务设备间使用宽带的使用流量,对终端设备和服务设备使用的宽带进行计费;或者The billing unit 2005 is used to charge the broadband used by the terminal device and the service device according to the minimum limit flow when the broadband traffic used between the terminal device and the service device is less than the minimum limit flow; the billing unit 2005 also When the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, the broadband used by the terminal device and the service device is billed according to the broadband usage traffic between the terminal device and the service device; or
计费单元2005,用于在终端设备与服务设备间使用的宽带的带宽小于最低限制带宽的情况下,按照最低限制带宽对终端设备和服务设备使用的宽带进行计费,最低限制带宽为最低限制流量对应的带宽;计费单元2005,还用于在终端设备与所述服务设备间使用的宽带的带宽大于或等于最低限制带宽的情况下,按照终端设备与服务设备间使用宽带的使用带宽,对终端设备和服务设备使用的宽带进行计费。The billing unit 2005 is used to charge the broadband used by the terminal device and the service device according to the minimum bandwidth when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum bandwidth, and the minimum bandwidth is the minimum bandwidth The bandwidth corresponding to the traffic; the billing unit 2005 is also used for when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum limit bandwidth, according to the bandwidth of the broadband used between the terminal device and the service device, Charge the broadband used by terminal equipment and service equipment.
在一个实施例中,第一IP地址获取请求为DNS请求或HTTP DNS请求。In an embodiment, the first IP address acquisition request is a DNS request or an HTTP DNS request.
有关上述接收单元2001、获取单元2002、发送单元2003、记录单元2004和计费单元2005更详细的描述可以直接参考上述方法实施例中网关的相关描述直接得到,这里不加赘述。More detailed descriptions of the foregoing receiving unit 2001, obtaining unit 2002, sending unit 2003, recording unit 2004, and charging unit 2005 can be obtained directly by referring to the relevant description of the gateway in the foregoing method embodiment, and will not be repeated here.
基于图1或图2所示的网络架构,请参阅图21,图21是本发明实施例公开的又一种通信装置的结构示意图。如图21所示,该通信装置可以包括:Based on the network architecture shown in FIG. 1 or FIG. 2, please refer to FIG. 21. FIG. 21 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention. As shown in FIG. 21, the communication device may include:
接收单元2101,用于接收来自控制设备的IP地址获取请求,IP地址获取请求对应的业务为专用连接的业务;The receiving unit 2101 is configured to receive an IP address obtaining request from the control device, and the service corresponding to the IP address obtaining request is a dedicated connection service;
替换单元2102,用于将IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,第二IP地址为终端设备的IP地址,第三IP地址为网关的IP地址;The replacement unit 2102 is configured to replace the source IP address of the IP address acquisition request from the second IP address to the third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway;
发送单元2103,用于向控制中心发送替换后的IP地址获取请求;The sending unit 2103 is configured to send a replacement IP address acquisition request to the control center;
接收单元2101,还用于接收来自控制中心的第一IP地址响应,第一IP地址响应携带第一IP地址,第一IP地址为控制中心根据网关确定的该业务所在服务设备的IP地址;The receiving unit 2101 is further configured to receive a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is the IP address of the service device where the service is determined by the control center according to the gateway;
替换单元2102,还用于将第一IP地址响应的目的IP地址由第三IP地址替换为第二IP地址,以及将第一IP地址替换为第四IP地址,得到第二IP地址响应,第四IP地址为网关分配的用于识别业务是否为专用连接的业务的IP地址;The replacement unit 2102 is further configured to replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with the fourth IP address to obtain the second IP address response, 4. The IP address is the IP address allocated by the gateway to identify whether the service is a dedicated connection service;
发送单元2103,还用于向控制设备发送第二IP地址响应。The sending unit 2103 is further configured to send a second IP address response to the control device.
在一个实施例中,IP地址获取请求携带有业务的标识,该通信装置还可以包括:In an embodiment, the IP address acquisition request carries a service identifier, and the communication device may further include:
记录单元2104,用于记录该标识与第二IP地址以及第四IP地址之间的对应关系;The recording unit 2104 is configured to record the correspondence between the identifier and the second IP address and the fourth IP address;
接收单元2101,还用于接收来自控制设备的数据获取请求;The receiving unit 2101 is also configured to receive a data acquisition request from the control device;
确定单元2105,用于根据该对应关系以及数据获取请求的源IP地址和目的IP地址,确定数据获取请求与IP地址获取请求对应的业务为同一业务;The determining unit 2105 is configured to determine that the business corresponding to the data acquisition request and the IP address acquisition request is the same business according to the correspondence and the source IP address and the destination IP address of the data acquisition request;
替换单元2102,还用于将数据获取请求的源IP地址由第二IP地址替换为第三IP地址,将数据获取请求的源端口由第一端口替换为第二端口,将数据获取请求的目的IP地址由第四IP地址替换为第一IP地址,第一端口为终端设备的端口,第二端口为网关的端口;The replacement unit 2102 is further configured to replace the source IP address of the data acquisition request from the second IP address with the third IP address, and replace the source port of the data acquisition request from the first port to the second port, and change the purpose of the data acquisition request The IP address is replaced by the fourth IP address with the first IP address, the first port is the port of the terminal device, and the second port is the port of the gateway;
发送单元2103,还用于向第一IP地址对应的服务设备发送替换后的数据获取请求;The sending unit 2103 is further configured to send the replaced data acquisition request to the service device corresponding to the first IP address;
接收单元2101,还用于接收来自服务设备的数据响应,数据响应携带有该业务的数据;The receiving unit 2101 is also configured to receive a data response from the service device, and the data response carries data of the service;
替换单元2102,还用于将数据响应的源IP地址由第一IP地址替换为第四IP地址,将数据响应的目的IP地址由第三IP地址替换为第二IP地址,将数据响应的目的端口由第二端口替换为第一端口;The replacement unit 2102 is also used to replace the source IP address of the data response from the first IP address to the fourth IP address, replace the destination IP address of the data response from the third IP address to the second IP address, and change the destination of the data response The port is replaced with the first port from the second port;
发送单元2103,还用于向控制设备发送替换后的数据响应。The sending unit 2103 is also used to send the replaced data response to the control device.
在一个实施例中,该通信装置还可以包括计费单元2106,其中:In an embodiment, the communication device may further include a charging unit 2106, wherein:
计费单元2106,用于在终端设备与服务设备间使用的宽带的流量小于最低限制流量的情况下,按照最低限制流量对终端设备和服务设备使用的宽带进行计费;计费单元2106,还用于在终端设备与服务设备间使用的宽带的流量大于或等于最低限制流量的情况下,按照终端设备与服务设备间使用宽带的使用流量,对终端设备和服务设备使用的宽带进行计费;或者The billing unit 2106 is configured to charge the broadband used by the terminal device and the service device according to the minimum limit flow when the broadband traffic used between the terminal device and the service device is less than the minimum limit flow; the billing unit 2106 also When the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, the broadband used by the terminal device and the service device is billed according to the broadband usage traffic between the terminal device and the service device; or
计费单元2106,用于在终端设备与服务设备间使用的宽带的带宽小于最低限制带宽的情况下,按照最低限制带宽对终端设备和服务设备使用的宽带进行计费,最低限制带宽为最低限制流量对应的带宽;计费单元2106,还用于在终端设备与服务设备间使用的宽带的带宽大于或等于最低限制带宽的情况下,按照终端设备与服务设备间使用宽带的使用带宽,对终端设备和服务设备使用的宽带进行计费。The billing unit 2106 is used to charge the broadband used by the terminal device and the service device according to the minimum bandwidth when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum bandwidth, and the minimum bandwidth is the minimum bandwidth The bandwidth corresponding to the traffic; the billing unit 2106 is also used for the terminal device and the service device when the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum limit bandwidth, according to the bandwidth of the broadband used between the terminal device and the service device, to the terminal The broadband used by the equipment and service equipment is billed.
有关上述接收单元2101、替换单元2102、发送单元2103、记录单元2104、确定单元2105和计费单元2106更详细的描述可以直接参考上述方法实施例中网关的相关描述直接得到,这里不加赘述。More detailed descriptions of the foregoing receiving unit 2101, replacing unit 2102, sending unit 2103, recording unit 2104, determining unit 2105, and charging unit 2106 can be obtained directly by referring to the relevant description of the gateway in the foregoing method embodiment, and will not be repeated here.
基于图1或图2所示的网络架构,请参阅图22,图22是本发明实施例公开的又一种通信装置的结构示意图。如图22所示,该通信装置可以包括处理器2201、存储器2202、输入接口2203、输出接口2204和总线2205。存储器2202可以是独立存在的,可以通过总线2205与处理器2201相连接。存储器2202也可以和处理器2201集成在一起。其中,总线2205用于实现这些组件之间的连接。Based on the network architecture shown in FIG. 1 or FIG. 2, please refer to FIG. 22. FIG. 22 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention. As shown in FIG. 22, the communication device may include a processor 2201, a memory 2202, an input interface 2203, an output interface 2204, and a bus 2205. The memory 2202 may exist independently, and may be connected to the processor 2201 through the bus 2205. The memory 2202 may also be integrated with the processor 2201. Among them, the bus 2205 is used to realize the connection between these components.
在一个实施例中,该通信装置可以为UPF网元或者UPF网元内的模块(例如,芯片),该通信装置可以为BRAS或者BRAS内的模块(例如,芯片),存储器2202中存储的计算机程序指令被执行时,该处理器2201用于执行确定单元1903上述实施例中执行的操作,输入接口2203用于执行上述实施例中接收单元1901执行的操作,输出接口2204用于执行上述实施例中发送单元1902执行的操作。上述UPF网元或者UPF网元内的模块还可以用于执行前述方法实施例中UPF网元执行的各种方法,不再赘述。上述BRAS或者BRAS内的模块还可以用于执行前述方法实施例中BRAS执行的各种方法,不再赘述。In one embodiment, the communication device may be a UPF network element or a module (for example, a chip) in a UPF network element, the communication device may be a BRAS or a module (for example, a chip) in the BRAS, and a computer stored in the memory 2202 When the program instructions are executed, the processor 2201 is used to perform the operations performed by the determining unit 1903 in the above-mentioned embodiment, the input interface 2203 is used to perform the operations performed by the receiving unit 1901 in the above-mentioned embodiment, and the output interface 2204 is used to perform the above-mentioned embodiment The operation performed by the sending unit 1902. The foregoing UPF network element or modules in the UPF network element may also be used to execute various methods executed by the UPF network element in the foregoing method embodiments, and details are not described herein again. The foregoing BRAS or the modules in the BRAS may also be used to execute various methods executed by the BRAS in the foregoing method embodiments, and details are not described herein again.
在一个实施例中,该通信装置可以为GW或者GW内的模块(例如,芯片),存储器2202中存储的计算机程序指令被执行时,该处理器2201用于执行获取单元2002、记录单元2004和计费单元2005上述实施例中执行的操作,输入接口2203用于执行上述实施例中接收单元2001执行的操作,输出接口2204用于执行上述实施例中发送单元2003执行的操作。上述GW或者GW内的模块还可以用于执行前述方法实施例中GW执行的各种方法,不再赘述。In one embodiment, the communication device may be a GW or a module (for example, a chip) in the GW. When the computer program instructions stored in the memory 2202 are executed, the processor 2201 is used to execute the acquiring unit 2002, the recording unit 2004, and the The charging unit 2005 performs operations in the foregoing embodiment, the input interface 2203 is used to perform the operations performed by the receiving unit 2001 in the foregoing embodiment, and the output interface 2204 is used to perform the operations performed by the sending unit 2003 in the foregoing embodiment. The foregoing GW or the modules in the GW may also be used to execute various methods executed by the GW in the foregoing method embodiments, and details are not described herein again.
在一个实施例中,该通信装置可以为GW或者GW内的模块(例如,芯片),存储器2202中存储的计算机程序指令被执行时,该处理器2201用于执行替换单元2102、记录单元2104 确定单元2105和计费单元2106上述实施例中执行的操作,输入接口2203用于执行上述实施例中接收单元2101执行的操作,输出接口2204用于执行上述实施例中发送单元2103执行的操作。上述GW或者GW内的模块还可以用于执行前述方法实施例中GW执行的各种方法,不再赘述。In one embodiment, the communication device may be a GW or a module (for example, a chip) in the GW. When the computer program instructions stored in the memory 2202 are executed, the processor 2201 is configured to execute the replacement unit 2102 and the recording unit 2104 to determine The operation performed by the unit 2105 and the charging unit 2106 in the foregoing embodiment, the input interface 2203 is used to perform the operation performed by the receiving unit 2101 in the foregoing embodiment, and the output interface 2204 is used to perform the operation performed by the sending unit 2103 in the foregoing embodiment. The foregoing GW or the modules in the GW may also be used to execute various methods executed by the GW in the foregoing method embodiments, and details are not described herein again.
基于图1或图2所示的网络架构,请参阅图23,图23是本发明实施例公开的又一种通信装置的结构示意图。如图23所示,该通信装置可以包括输入接口2301、逻辑电路2302和输出接口2303。输入接口2301与输出接口2303通过逻辑电路2302相连接。其中,输入接口2301用于接收来自其它通信装置的信息,输出接口2303用于向其它通信装置输出、调度或者发送信息。逻辑电路2302用于执行除输入接口2301与输出接口2303的操作之外的操作,例如实现上述实施例中处理器2201实现的功能。其中,该通信装置可以为UPF网元或者UPF网元内的模块,也可以为BRAS或者BRAS内的模块,还可以为GW或者GW内的模块。其中,有关输入接口2301、逻辑电路2302和输出接口2303更详细的描述可以直接参考上述方法实施例中UPF网元、BRAS或GW的相关描述直接得到,这里不加赘述。Based on the network architecture shown in FIG. 1 or FIG. 2, please refer to FIG. 23. FIG. 23 is a schematic structural diagram of another communication device disclosed in an embodiment of the present invention. As shown in FIG. 23, the communication device may include an input interface 2301, a logic circuit 2302, and an output interface 2303. The input interface 2301 and the output interface 2303 are connected through a logic circuit 2302. The input interface 2301 is used to receive information from other communication devices, and the output interface 2303 is used to output, schedule, or send information to other communication devices. The logic circuit 2302 is used to perform operations other than the operations of the input interface 2301 and the output interface 2303, for example, to implement the functions implemented by the processor 2201 in the foregoing embodiment. Wherein, the communication device may be a UPF network element or a module in a UPF network element, a BRAS or a module in a BRAS, or a GW or a module in a GW. Among them, more detailed descriptions of the input interface 2301, the logic circuit 2302, and the output interface 2303 can be obtained directly by referring to the relevant description of the UPF network element, BRAS or GW in the above method embodiment, and will not be repeated here.
基于图1或图2所示的网络架构,请参阅图24,图24是本发明实施例公开的一种GW的结构示意图。如图24所示,该GW可以包括网关处理模块2401、业务IP映射管理2402、终端连接管理2403、业务网关IP池2404和终端网关IP池2405。Based on the network architecture shown in FIG. 1 or FIG. 2, please refer to FIG. 24. FIG. 24 is a schematic structural diagram of a GW disclosed in an embodiment of the present invention. As shown in FIG. 24, the GW may include a gateway processing module 2401, a service IP mapping management 2402, a terminal connection management 2403, a service gateway IP pool 2404, and a terminal gateway IP pool 2405.
GW负责专用连接的业务的识别、建立、维护。The GW is responsible for the identification, establishment, and maintenance of dedicated connection services.
网关处理模块2401包括DNS代理、HTTP DNS代理和连接代理。其中:The gateway processing module 2401 includes a DNS proxy, an HTTP DNS proxy, and a connection proxy. among them:
DNS代理负责代理DNS交互流程,并按需替换DNS协议中的IP地址;The DNS proxy is responsible for proxying the DNS interaction process and replacing the IP address in the DNS protocol as needed;
HTTP DNS代理负责代理HTTP DNS交互流程,并按需替换HTTP DNS协议中的IP地址;The HTTP DNS proxy is responsible for proxying the HTTP DNS interaction process and replacing the IP address in the HTTP DNS protocol as needed;
连接代理负责根据业务IP映射管理2402和终端连接管理2403中的映射关系,按规则替换非DNS协议的IP报文中的IP地址或端口。The connection agent is responsible for replacing the IP address or port in the IP message of the non-DNS protocol according to the mapping relationship in the service IP mapping management 2402 and the terminal connection management 2403 according to the rules.
业务IP映射管理2402,用于动态/静态建立、管理具体的互联网业务服务设备的IP地址和业务GW的IP地址的映射关系。The service IP mapping management 2402 is used to dynamically/statically establish and manage the mapping relationship between the IP address of the specific Internet service equipment and the IP address of the service GW.
终端连接管理2403,用于动态建立、管理专用连接的业务的连接。The terminal connection management 2403 is used to dynamically establish and manage the connection of the dedicated connection service.
业务网关IP池2404,用于提供互联网业务服务设备的映射IP地址。终端设备通过GW访问业务时,目的IP地址为业务网关IP池2404中的IP地址而非真实的互联网业务服务设备的IP地址。业务网关IP地址池2404可以使用运营商内网的私网地址或公网地址。The service gateway IP pool 2404 is used to provide mapped IP addresses of Internet service equipment. When the terminal device accesses the service through the GW, the destination IP address is the IP address in the service gateway IP pool 2404 instead of the IP address of the real Internet service device. The service gateway IP address pool 2404 can use the private network address or the public network address of the operator's intranet.
终端网关IP池2405用于提供代理终端设备向代理业务服务设备发起请求的IP地址。终端设备通过GW访问业务时,源IP地址为终端网关IP池2405中的IP地址,而非真实的终端设备的IP地址。终端网关IP池2405中的IP地址为公网地址。The terminal gateway IP pool 2405 is used to provide an IP address for the proxy terminal device to initiate a request to the proxy service device. When the terminal device accesses the service through the GW, the source IP address is the IP address in the terminal gateway IP pool 2405, rather than the real terminal device's IP address. The IP address in the terminal gateway IP pool 2405 is a public network address.
在固定网络中终端设备具有用于专用连接的业务的IP地址,移动网络中终端设备具有用于获取专用连接的业务的APN/DNN的情况下,GW无需提供业务网关IP池、业务IP映射管理功能。In the case that the terminal device in the fixed network has the IP address for the dedicated connection service, and the terminal device in the mobile network has the APN/DNN for obtaining the dedicated connection service, the GW does not need to provide service gateway IP pool and service IP mapping management Features.
这里给出了连接GW的逻辑功能实体,具体实现时可以将这些功能实体放在不同的单板、逻辑网元上实现。The logical functional entities connected to the GW are given here, and these functional entities can be implemented on different boards and logical network elements during specific implementation.
本发明实施例还公开一种计算机可读存储介质,其上存储有指令,该指令被执行时执行上述方法实施例中的方法。The embodiment of the present invention also discloses a computer-readable storage medium with an instruction stored thereon, and the method in the foregoing method embodiment is executed when the instruction is executed.
本发明实施例还公开一种包含指令的计算机程序产品,该指令被执行时执行上述方法实施例中的方法。The embodiment of the present invention also discloses a computer program product containing instructions, which execute the method in the foregoing method embodiment when the instruction is executed.
本发明实施例还公开一种通信系统,该通信系统包括UPF网元和GW,或者BRAS和GW,具体描述可以参考上述方法实施例中的相关描述。The embodiment of the present invention also discloses a communication system. The communication system includes a UPF network element and a GW, or a BRAS and a GW. For a specific description, reference may be made to the relevant description in the above method embodiment.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The specific implementations described above further describe the purpose, technical solutions, and beneficial effects of the application in detail. It should be understood that the foregoing are only specific implementations of the application and are not intended to limit the scope of the application. The scope of protection, any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of this application shall be included in the scope of protection of this application.

Claims (47)

  1. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    接收来自终端设备的信息获取请求,所述信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息;Receiving an information acquisition request from a terminal device, the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service;
    在所述指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述信息获取请求,所述信息获取请求用于获取所述业务对应的信息;In a case where the indication information indicates that the service is a dedicated connection service, sending the information acquisition request to the gateway, where the information acquisition request is used to acquire information corresponding to the service;
    接收来自所述网关的所述信息;Receiving the information from the gateway;
    向所述终端设备发送所述信息。Sending the information to the terminal device.
  2. 根据权利要求1所述的方法,其特征在于,所述接收来自终端设备的信息获取请求,所述信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息包括:The method according to claim 1, wherein the receiving an information acquisition request from a terminal device, the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service, comprises:
    接收来自终端设备的IP地址获取请求,所述IP地址获取请求携带有用于指示业务是否为专用连接的业务的第一指示信息;Receiving an IP address acquisition request from a terminal device, where the IP address acquisition request carries first indication information for indicating whether the service is a dedicated connection service;
    所述在所述指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述信息获取请求,所述信息获取请求用于获取所述业务对应的信息包括:In a case where the indication information indicates that the service is a dedicated connection service, sending the information acquisition request to a gateway, where the information acquisition request is used to acquire information corresponding to the service includes:
    在所述第一指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述IP地址获取请求,所述IP地址获取请求用于获取所述业务所在服务设备对应的IP地址;In a case where the first indication information indicates that the service is a dedicated connection service, sending the IP address obtaining request to a gateway, where the IP address obtaining request is used to obtain the IP address corresponding to the service device where the service is located;
    所述接收来自所述网关的所述信息包括:The receiving the information from the gateway includes:
    接收来自所述网关的所述IP地址;Receiving the IP address from the gateway;
    所述向所述终端设备发送所述信息包括:The sending the information to the terminal device includes:
    向所述终端设备发送所述IP地址。Sending the IP address to the terminal device.
  3. 根据权利要求2所述的方法,其特征在于,所述接收来自终端设备的信息获取请求,所述信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息还包括:The method according to claim 2, wherein the receiving an information acquisition request from a terminal device, the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service, further comprises:
    接收来自所述终端设备的数据获取请求,所述数据获取请求携带有用于指示所述业务是否为专用连接的业务的第二指示信息;Receiving a data acquisition request from the terminal device, the data acquisition request carrying second indication information for indicating whether the service is a dedicated connection service;
    所述在所述指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述信息获取请求,所述信息获取请求用于获取所述业务对应的信息还包括:When the indication information indicates that the service is a dedicated connection service, sending the information acquisition request to a gateway, where the information acquisition request is used to acquire information corresponding to the service, further includes:
    在所述第二指示信息指示所述业务为专用连接的业务的情况下,向所述网关发送所述数据获取请求,所述数据获取请求用于从所述IP地址对应的服务设备获取所述业务对应的数据;In the case where the second indication information indicates that the service is a dedicated connection service, the data acquisition request is sent to the gateway, and the data acquisition request is used to obtain the data acquisition request from the service device corresponding to the IP address. Data corresponding to the business;
    所述接收来自所述网关的所述信息还包括:The receiving the information from the gateway further includes:
    接收来自所述网关的所述数据;Receiving the data from the gateway;
    所述向所述终端设备发送所述信息还包括:The sending the information to the terminal device further includes:
    向所述终端设备发送所述数据。Sending the data to the terminal device.
  4. 根据权利要求2或3所述的方法,其特征在于,所述第一指示信息为所述业务的域名,所述第一指示信息用于指示所述业务为专用连接的业务包括:The method according to claim 2 or 3, wherein the first indication information is a domain name of the service, and the first indication information used to indicate that the service is a dedicated connection service includes:
    所述域名为指定域名。The domain name is a designated domain name.
  5. 根据权利要求4所述的方法,其特征在于,所述第二指示信息为所述数据获取请求 的目的IP地址,所述第二指示信息用于指示所述业务为专用连接的业务包括:The method according to claim 4, wherein the second indication information is a destination IP address of the data acquisition request, and the second indication information used to indicate that the service is a dedicated connection service includes:
    所述数据获取请求的目的IP地址为指定IP地址。The destination IP address of the data acquisition request is a designated IP address.
  6. 根据权利要求2或3所述方法,其特征在于,所述第一指示信息为所述IP地址获取请求的源IP地址,所述第一指示信息用于指示所述业务为专用连接的业务包括:The method according to claim 2 or 3, wherein the first indication information is the source IP address of the IP address acquisition request, and the first indication information is used to indicate that the service is a dedicated connection service including :
    所述IP地址获取请求的源IP地址为指定IP地址。The source IP address of the IP address acquisition request is a designated IP address.
  7. 根据权利要求6所述的方法,其特征在于,所述第二指示信息为所述数据获取请求的源IP地址,所述第二指示信息用于指示所述业务为专用连接的业务包括:The method according to claim 6, wherein the second indication information is a source IP address of the data acquisition request, and the second indication information used to indicate that the service is a dedicated connection service comprises:
    所述数据获取请求的源IP地址为所述指定IP地址。The source IP address of the data acquisition request is the designated IP address.
  8. 根据权利要求2-7任一项所述的方法,其特征在于,所述IP地址获取请求为域名系统DNS请求或超文本传输协议HTTP DNS请求。The method according to any one of claims 2-7, wherein the IP address acquisition request is a Domain Name System DNS request or a Hypertext Transfer Protocol HTTP DNS request.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    在所述IP地址获取请求的目的IP地址为设定IP地址的情况下,确定所述IP地址获取请求为HTTP DNS请求。In a case where the destination IP address of the IP address acquisition request is a set IP address, it is determined that the IP address acquisition request is an HTTP DNS request.
  10. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    接收来自控制设备的信息获取请求,所述信息获取请求对应的业务为专用连接的业务;Receiving an information acquisition request from the control device, where the service corresponding to the information acquisition request is a dedicated connection service;
    在所述业务为指定业务的情况下,根据所述信息获取请求获取所述业务对应的信息;In the case that the business is a designated business, acquiring information corresponding to the business according to the information acquisition request;
    向所述控制设备发送所述信息。Sending the information to the control device.
  11. 根据权利要求10所述的方法,其特征在于,所述接收来自控制设备的信息获取请求包括:The method according to claim 10, wherein said receiving an information acquisition request from a control device comprises:
    接收来自控制设备的IP地址获取请求,所述IP地址获取请求携带有所述业务的标识;Receiving an IP address acquisition request from a control device, where the IP address acquisition request carries an identifier of the service;
    所述在所述业务为指定业务的情况下,根据所述信息获取请求获取所述业务对应的信息包括:In the case that the business is a designated business, acquiring information corresponding to the business according to the information acquisition request includes:
    在所述标识对应的业务为指定业务的情况下,向控制中心发送所述IP地址获取请求;In the case that the service corresponding to the identifier is a designated service, sending the IP address acquisition request to the control center;
    接收来自所述控制中心的第一IP地址响应,所述第一IP地址响应携带有第一IP地址,所述第一IP地址为所述控制中心根据所述网关确定的所述业务所在服务设备的IP地址;Receive a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is the service device where the service is determined by the control center according to the gateway IP address;
    所述向所述控制设备发送所述信息包括:The sending the information to the control device includes:
    向所述控制设备发送第二IP地址响应,所述第二IP地址响应携带有所述第一IP地址或所述第一IP地址对应的IP地址。A second IP address response is sent to the control device, where the second IP address response carries the first IP address or the IP address corresponding to the first IP address.
  12. 根据权利要求11所述的方法,其特征在于,所述接收来自控制设备的信息获取请求还包括:The method according to claim 11, wherein said receiving an information acquisition request from a control device further comprises:
    接收来自所述控制设备的数据获取请求;Receiving a data acquisition request from the control device;
    所述在所述业务为指定业务的情况下,根据所述信息获取请求获取所述业务对应的信息还包括:In the case that the business is a designated business, acquiring information corresponding to the business according to the information acquisition request further includes:
    在所述数据获取请求与所述IP地址获取请求对应的业务为同一业务的情况下,向所述第一IP地址对应的服务设备发送所述数据获取请求;In a case where the service corresponding to the data acquisition request and the IP address acquisition request is the same service, sending the data acquisition request to the service device corresponding to the first IP address;
    接收来自所述服务设备的携带有所述业务的数据的数据响应;Receiving a data response from the service device that carries the data of the service;
    所述向所述控制设备发送所述信息还包括:The sending the information to the control device further includes:
    向所述控制设备发送所述数据响应。Send the data response to the control device.
  13. 根据权利要求12所述的方法,其特征在于,所述向控制中心发送所述IP地址获取请求包括:The method according to claim 12, wherein the sending the IP address acquisition request to the control center comprises:
    将所述IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,所述第二IP地址为终端设备的IP地址,所述第三IP地址为网关的IP地址;Replacing the source IP address of the IP address acquisition request with a second IP address with a third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway;
    向控制中心发送替换后的IP地址获取请求;Send a replacement IP address acquisition request to the control center;
    所述向所述控制设备发送第二IP地址响应包括:The sending a second IP address response to the control device includes:
    将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,得到第二IP地址响应;Replacing the destination IP address of the first IP address response from the third IP address with the second IP address to obtain a second IP address response;
    向所述控制设备发送所述第二IP地址响应。Sending the second IP address response to the control device.
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method according to claim 13, wherein the method further comprises:
    记录所述标识与所述第二IP地址以及所述第一IP地址或所述第一IP地址对应的IP地址之间的对应关系;Record the correspondence between the identifier and the second IP address and the first IP address or the IP address corresponding to the first IP address;
    所述在所述数据获取请求与所述IP地址获取请求对应的业务为同一业务的情况下,向所述第一IP地址对应的服务设备发送所述数据获取请求包括:When the service corresponding to the data acquisition request and the IP address acquisition request is the same service, sending the data acquisition request to the service device corresponding to the first IP address includes:
    根据所述对应关系以及所述数据获取请求的源IP地址和目的IP地址,确定所述数据获取请求与所述IP地址获取请求对应的业务为同一业务;Determining that the service corresponding to the data obtaining request and the IP address obtaining request is the same service according to the corresponding relationship and the source IP address and the destination IP address of the data obtaining request;
    将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口,所述第一端口为所述终端设备的端口,所述第二端口为所述网关的端口;Replace the source IP address of the data acquisition request from the second IP address with the third IP address, replace the source port of the data acquisition request from the first port with the second port, and the first port Is the port of the terminal device, and the second port is the port of the gateway;
    向所述第一IP地址对应的服务设备发送替换后的数据获取请求;Sending a replacement data acquisition request to the service device corresponding to the first IP address;
    所述向所述控制设备发送所述数据响应包括:The sending the data response to the control device includes:
    将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口;Replacing the destination IP address of the data response from the third IP address to the second IP address, and replacing the destination port of the data response from the second port to the first port;
    向所述控制设备发送替换后的数据响应。Send the replaced data response to the control device.
  15. 根据权利要求14所述的方法,其特征在于,所述将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,得到第二IP地址响应包括:The method according to claim 14, wherein the replacing the destination IP address of the first IP address response from the third IP address to the second IP address, and obtaining the second IP address response comprises :
    将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述第一IP地址替换为第四IP地址,得到第二IP地址响应,所述第四IP地址为所述网关分配的用于识别业务是否为专用连接的业务的IP地址;Replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with the fourth IP address to obtain the second IP address response, so The fourth IP address is an IP address allocated by the gateway to identify whether the service is a dedicated connection service;
    所述将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口包括:The replacing the source IP address of the data acquisition request from the second IP address to the third IP address, and replacing the source port of the data acquisition request from the first port to the second port includes:
    将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口,将所述数据获取请求的目的IP地址由所述第四IP地址替换为所述第一IP地址;Replace the source IP address of the data acquisition request from the second IP address with the third IP address, replace the source port of the data acquisition request from the first port with the second port, and acquire the data The requested destination IP address is replaced by the fourth IP address with the first IP address;
    所述将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口包括:The replacing the destination IP address of the data response from the third IP address to the second IP address, and replacing the destination port of the data response from the second port to the first port includes:
    将所述数据响应的源IP地址由所述第一IP地址替换为所述第四IP地址,将所述数据响应 的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口。Replacing the source IP address of the data response from the first IP address to the fourth IP address, and replacing the destination IP address of the data response from the third IP address to the second IP address, The destination port of the data response is replaced by the second port with the first port.
  16. 根据权利要求12-15任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 12-15, wherein the method further comprises:
    在所述终端设备与所述服务设备间使用的宽带的流量小于最低限制流量的情况下,按照所述最低限制流量对所述终端设备和所述服务设备使用的宽带进行计费;In the case that the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, charging the broadband used by the terminal device and the service device according to the minimum limit traffic;
    在所述终端设备与所述服务设备间使用的宽带的流量大于或等于所述最低限制流量的情况下,按照所述终端设备与所述服务设备间使用宽带的使用流量,对所述终端设备和所述服务设备使用的宽带进行计费。In the case that the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, the terminal device is Billing is performed with the broadband used by the service equipment.
  17. 根据权利要求12-15任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 12-15, wherein the method further comprises:
    在所述终端设备与所述服务设备间使用的宽带的带宽小于最低限制带宽的情况下,按照所述最低限制带宽对所述终端设备和所述服务设备使用的宽带进行计费,所述最低限制带宽为最低限制流量对应的带宽;In the case that the bandwidth of the broadband used between the terminal device and the service device is less than the minimum restricted bandwidth, the broadband used by the terminal device and the service device is charged according to the minimum restricted bandwidth, and the minimum Restricted bandwidth is the bandwidth corresponding to the lowest restricted traffic;
    在所述终端设备与所述服务设备间使用的宽带的带宽大于或等于所述最低限制带宽的情况下,按照所述终端设备与所述服务设备间使用宽带的使用带宽,对所述终端设备和所述服务设备使用的宽带进行计费。In the case where the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum limit bandwidth, the terminal device is Billing is performed with the broadband used by the service equipment.
  18. 根据权利要求11-17任一项所述的方法,其特征在于,所述第一IP地址获取请求为域名系统DNS请求或超文本传输协议HTTP DNS请求。The method according to any one of claims 11-17, wherein the first IP address acquisition request is a Domain Name System DNS request or a Hypertext Transfer Protocol HTTP DNS request.
  19. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    接收来自控制设备的IP地址获取请求,所述IP地址获取请求对应的业务为专用连接的业务;Receiving an IP address acquisition request from the control device, where the service corresponding to the IP address acquisition request is a dedicated connection service;
    将所述IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,所述第二IP地址为终端设备的IP地址,所述第三IP地址为网关的IP地址;Replacing the source IP address of the IP address acquisition request with a second IP address with a third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway;
    向控制中心发送替换后的IP地址获取请求;Send a replacement IP address acquisition request to the control center;
    接收来自所述控制中心的第一IP地址响应,所述第一IP地址响应携带第一IP地址,所述第一IP地址为所述控制中心根据所述网关确定的所述业务所在服务设备的IP地址;Receive a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is the service device where the service is determined by the control center according to the gateway IP address;
    将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,以及将所述第一IP地址替换为第四IP地址,得到第二IP地址响应,所述第四IP地址为所述网关分配的用于识别业务是否为专用连接的业务的IP地址;Replacing the destination IP address of the first IP address response from the third IP address with the second IP address, and replacing the first IP address with a fourth IP address to obtain a second IP address response, The fourth IP address is an IP address allocated by the gateway for identifying whether the service is a dedicated connection service;
    向所述控制设备发送所述第二IP地址响应。Sending the second IP address response to the control device.
  20. 根据权利要求19所述的方法,其特征在于,所述IP地址获取请求携带有业务的标识,所述方法还包括:The method according to claim 19, wherein the IP address acquisition request carries a service identifier, and the method further comprises:
    记录所述标识与所述第二IP地址以及所述第四IP地址之间的对应关系;Record the correspondence between the identifier and the second IP address and the fourth IP address;
    接收来自所述控制设备的数据获取请求;Receiving a data acquisition request from the control device;
    根据所述对应关系以及所述数据获取请求的源IP地址和目的IP地址,确定所述数据获取请求与所述IP地址获取请求对应的业务为同一业务;Determining that the service corresponding to the data obtaining request and the IP address obtaining request is the same service according to the corresponding relationship and the source IP address and the destination IP address of the data obtaining request;
    将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口,将所述数据获取请求的目的IP地址由所述 第四IP地址替换为所述第一IP地址,所述第一端口为所述终端设备的端口,所述第二端口为所述网关的端口;Replace the source IP address of the data acquisition request from the second IP address with the third IP address, replace the source port of the data acquisition request from the first port with the second port, and acquire the data The requested destination IP address is replaced with the first IP address from the fourth IP address, the first port is the port of the terminal device, and the second port is the port of the gateway;
    向所述第一IP地址对应的服务设备发送替换后的数据获取请求;Sending a replacement data acquisition request to the service device corresponding to the first IP address;
    接收来自所述服务设备的数据响应,所述数据响应携带有所述业务的数据;Receiving a data response from the service device, the data response carrying data of the service;
    将所述数据响应的源IP地址由所述第一IP地址替换为所述第四IP地址,将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口;Replacing the source IP address of the data response from the first IP address to the fourth IP address, and replacing the destination IP address of the data response from the third IP address to the second IP address, Replacing the destination port of the data response from the second port to the first port;
    向所述控制设备发送替换后的数据响应。Send the replaced data response to the control device.
  21. 根据权利要求20所述的方法,其特征在于,所述方法还包括:The method according to claim 20, wherein the method further comprises:
    在所述终端设备与所述服务设备间使用的宽带的流量小于最低限制流量的情况下,按照所述最低限制流量对所述终端设备和所述服务设备使用的宽带进行计费;In the case that the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, charging the broadband used by the terminal device and the service device according to the minimum limit traffic;
    在所述终端设备与所述服务设备间使用的宽带的流量大于或等于所述最低限制流量的情况下,按照所述终端设备与所述服务设备间使用宽带的使用流量,对所述终端设备和所述服务设备使用的宽带进行计费。In the case that the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, the terminal device is treated according to the broadband usage traffic between the terminal device and the service device Billing is performed with the broadband used by the service equipment.
  22. 根据权利要求20所述的方法,其特征在于,所述方法还包括:The method according to claim 20, wherein the method further comprises:
    在所述终端设备与所述服务设备间使用的宽带的带宽小于最低限制带宽的情况下,按照所述最低限制带宽对所述终端设备和所述服务设备使用的宽带进行计费,所述最低限制带宽为最低限制流量对应的带宽;In the case that the bandwidth of the broadband used between the terminal device and the service device is less than the minimum restricted bandwidth, the broadband used by the terminal device and the service device is charged according to the minimum restricted bandwidth, and the minimum Restricted bandwidth is the bandwidth corresponding to the lowest restricted traffic;
    在所述终端设备与所述服务设备间使用的宽带的带宽大于或等于所述最低限制带宽的情况下,按照所述终端设备与所述服务设备间使用宽带的使用带宽,对所述终端设备和所述服务设备使用的宽带进行计费。In the case where the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum limit bandwidth, the terminal device is Billing is performed with the broadband used by the service equipment.
  23. 一种通信装置,其特征在于,包括:A communication device, characterized in that it comprises:
    接收单元,用于接收来自终端设备的信息获取请求,所述信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息;A receiving unit, configured to receive an information acquisition request from a terminal device, where the information acquisition request carries indication information for indicating whether the service is a dedicated connection service;
    发送单元,用于在所述指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述信息获取请求,所述信息获取请求用于获取所述业务对应的信息;A sending unit, configured to send the information acquisition request to the gateway when the indication information indicates that the service is a dedicated connection service, where the information acquisition request is used to obtain information corresponding to the service;
    所述接收单元,还用于接收来自所述网关的所述信息;The receiving unit is further configured to receive the information from the gateway;
    所述发送单元,还用于向所述终端设备发送所述信息。The sending unit is further configured to send the information to the terminal device.
  24. 根据权利要求23所述的装置,其特征在于,所述接收单元接收来自终端设备的信息获取请求,所述信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息包括:The apparatus according to claim 23, wherein the receiving unit receives an information acquisition request from a terminal device, and the information acquisition request carries indication information for indicating whether the service is a dedicated connection service, including:
    接收来自终端设备的IP地址获取请求,所述IP地址获取请求携带有用于指示业务是否为专用连接的业务的第一指示信息;Receiving an IP address acquisition request from a terminal device, where the IP address acquisition request carries first indication information for indicating whether the service is a dedicated connection service;
    所述发送单元在所述指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述信息获取请求,所述信息获取请求用于获取所述业务对应的信息包括:When the indication information indicates that the service is a dedicated connection service, the sending unit sends the information acquisition request to the gateway, where the information acquisition request is used to acquire information corresponding to the service including:
    在所述第一指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述IP地址获取请求,所述IP地址获取请求用于获取所述业务所在服务设备对应的IP地址;In a case where the first indication information indicates that the service is a dedicated connection service, sending the IP address obtaining request to a gateway, where the IP address obtaining request is used to obtain the IP address corresponding to the service device where the service is located;
    所述接收单元接收来自所述网关的所述信息包括:The receiving unit receiving the information from the gateway includes:
    接收来自所述网关的所述IP地址;Receiving the IP address from the gateway;
    所述发送单元向所述终端设备发送所述信息包括:The sending unit sending the information to the terminal device includes:
    向所述终端设备发送所述IP地址。Sending the IP address to the terminal device.
  25. 根据权利要求24所述的装置,其特征在于,所述接收单元接收来自终端设备的信息获取请求,所述信息获取请求携带有用于指示业务是否为专用连接的业务的指示信息还包括:The apparatus according to claim 24, wherein the receiving unit receives an information acquisition request from a terminal device, and the information acquisition request carrying indication information for indicating whether the service is a dedicated connection service further comprises:
    接收来自所述终端设备的数据获取请求,所述数据获取请求携带有用于指示所述业务是否为专用连接的业务的第二指示信息;Receiving a data acquisition request from the terminal device, the data acquisition request carrying second indication information for indicating whether the service is a dedicated connection service;
    所述发送单元在所述指示信息指示所述业务为专用连接的业务的情况下,向网关发送所述信息获取请求,所述信息获取请求用于获取所述业务对应的信息还包括:When the indication information indicates that the service is a dedicated connection service, the sending unit sends the information acquisition request to the gateway, where the information acquisition request is used to acquire information corresponding to the service and further includes:
    在所述第二指示信息指示所述业务为专用连接的业务的情况下,向所述网关发送所述数据获取请求,所述数据获取请求用于从所述IP地址对应的服务设备获取所述业务对应的数据;In the case where the second indication information indicates that the service is a dedicated connection service, the data acquisition request is sent to the gateway, and the data acquisition request is used to obtain the data acquisition request from the service device corresponding to the IP address. Data corresponding to the business;
    所述接收单元接收来自所述网关的所述信息还包括:The receiving unit receiving the information from the gateway further includes:
    接收来自所述网关的所述数据;Receiving the data from the gateway;
    所述发送单元向所述终端设备发送所述信息还包括:The sending unit sending the information to the terminal device further includes:
    向所述终端设备发送所述数据。Sending the data to the terminal device.
  26. 根据权利要求24或25所述的装置,其特征在于,所述第一指示信息为所述业务的域名,所述第一指示信息用于指示所述业务为专用连接的业务包括:The apparatus according to claim 24 or 25, wherein the first indication information is a domain name of the service, and the first indication information used to indicate that the service is a dedicated connection service includes:
    所述域名为指定域名。The domain name is a designated domain name.
  27. 根据权利要求26所述的装置,其特征在于,所述第二指示信息为所述数据获取请求的目的IP地址,所述第二指示信息用于指示所述业务为专用连接的业务包括:The apparatus according to claim 26, wherein the second indication information is a destination IP address of the data acquisition request, and the second indication information is used to indicate that the service is a dedicated connection service including:
    所述数据获取请求的目的IP地址为指定IP地址。The destination IP address of the data acquisition request is a designated IP address.
  28. 根据权利要求24或25所述的装置,其特征在于,所述第一指示信息为所述IP地址获取请求的源IP地址,所述第一指示信息用于指示所述业务为专用连接的业务包括:The apparatus according to claim 24 or 25, wherein the first indication information is a source IP address of the IP address acquisition request, and the first indication information is used to indicate that the service is a dedicated connection service include:
    所述IP地址获取请求的源IP地址为指定IP地址。The source IP address of the IP address acquisition request is a designated IP address.
  29. 根据权利要求28所述的装置,其特征在于,所述第二指示信息为所述数据获取请求的源IP地址,所述第二指示信息用于指示所述业务为专用连接的业务包括:The apparatus according to claim 28, wherein the second indication information is a source IP address of the data acquisition request, and the second indication information is used to indicate that the service is a dedicated connection service comprising:
    所述数据获取请求的源IP地址为所述指定IP地址。The source IP address of the data acquisition request is the designated IP address.
  30. 根据权利要求24-29任一项所述的装置,其特征在于,所述IP地址获取请求为域名系统DNS请求或超文本传输协议HTTP DNS请求。The device according to any one of claims 24-29, wherein the IP address acquisition request is a Domain Name System DNS request or a Hypertext Transfer Protocol HTTP DNS request.
  31. 根据权利要求30所述的装置,其特征在于,所述装置还包括:The device according to claim 30, wherein the device further comprises:
    确定单元,用于在所述IP地址获取请求的目的IP地址为设定IP地址的情况下,确定所述IP地址获取请求为HTTP DNS请求。The determining unit is configured to determine that the IP address acquisition request is an HTTP DNS request when the destination IP address of the IP address acquisition request is a set IP address.
  32. 一种通信装置,其特征在于,包括:A communication device, characterized in that it comprises:
    接收单元,用于接收来自控制设备的信息获取请求,所述信息获取请求对应的业务为 专用连接的业务;The receiving unit is configured to receive an information acquisition request from the control device, and the service corresponding to the information acquisition request is a dedicated connection service;
    获取单元,用于在所述业务为指定业务的情况下,根据所述信息获取请求获取所述业务对应的信息;An obtaining unit, configured to obtain information corresponding to the service according to the information obtaining request when the service is a designated service;
    发送单元,用于向所述控制设备发送所述信息。The sending unit is configured to send the information to the control device.
  33. 根据权利要求32所述的装置,其特征在于,所述接收单元,具体用于接收来自控制设备的IP地址获取请求,所述IP地址获取请求携带有所述业务的标识;The apparatus according to claim 32, wherein the receiving unit is specifically configured to receive an IP address acquisition request from a control device, and the IP address acquisition request carries an identifier of the service;
    所述获取单元具体用于:The acquiring unit is specifically used for:
    在所述标识对应的业务为指定业务的情况下,向控制中心发送所述IP地址获取请求;In the case that the service corresponding to the identifier is a designated service, sending the IP address acquisition request to the control center;
    接收来自所述控制中心的第一IP地址响应,所述第一IP地址响应携带有第一IP地址,所述第一IP地址为所述控制中心根据所述网关确定的所述业务所在服务设备的IP地址;Receive a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is the service device where the service is determined by the control center according to the gateway IP address;
    所述发送单元,具体用于向所述控制设备发送第二IP地址响应,所述第二IP地址响应携带有所述第一IP地址或所述第一IP地址对应的IP地址。The sending unit is specifically configured to send a second IP address response to the control device, where the second IP address response carries the first IP address or an IP address corresponding to the first IP address.
  34. 根据权利要求33所述的装置,其特征在于,所述接收单元,具体还用于接收来自所述控制设备的数据获取请求;The apparatus according to claim 33, wherein the receiving unit is specifically further configured to receive a data acquisition request from the control device;
    所述获取单元具体还用于:The acquiring unit is specifically further used for:
    在所述数据获取请求与所述IP地址获取请求对应的业务为同一业务的情况下,向所述第一IP地址对应的服务设备发送所述数据获取请求;In a case where the service corresponding to the data acquisition request and the IP address acquisition request is the same service, sending the data acquisition request to the service device corresponding to the first IP address;
    接收来自所述服务设备的携带有所述业务的数据的数据响应;Receiving a data response from the service device that carries the data of the service;
    所述发送单元,具体还用于向所述控制设备发送所述数据响应。The sending unit is specifically further configured to send the data response to the control device.
  35. 根据权利要求34所述的装置,其特征在于,所述获取单元向控制中心发送所述IP地址获取请求包括:The device according to claim 34, wherein the obtaining unit sending the IP address obtaining request to the control center comprises:
    将所述IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,所述第二IP地址为终端设备的IP地址,所述第三IP地址为网关的IP地址;Replacing the source IP address of the IP address acquisition request with a second IP address with a third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the IP address of the gateway;
    向控制中心发送替换后的IP地址获取请求;Send a replacement IP address acquisition request to the control center;
    所述发送单元向所述控制设备发送第二IP地址响应包括:The sending unit sending the second IP address response to the control device includes:
    将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,得到第二IP地址响应;Replacing the destination IP address of the first IP address response from the third IP address with the second IP address to obtain a second IP address response;
    向所述控制设备发送所述第二IP地址响应。Sending the second IP address response to the control device.
  36. 根据权利要求35所述的装置,其特征在于,所述装置还包括:The device according to claim 35, wherein the device further comprises:
    记录单元,用于记录所述标识与所述第二IP地址以及所述第一IP地址或所述第一IP地址对应的IP地址之间的对应关系;A recording unit, configured to record the correspondence between the identifier and the second IP address and the first IP address or the IP address corresponding to the first IP address;
    所述获取单元在所述数据获取请求与所述IP地址获取请求对应的业务为同一业务的情况下,向所述第一IP地址对应的服务设备发送所述数据获取请求包括:When the service corresponding to the data obtaining request and the IP address obtaining request are the same service, the obtaining unit sending the data obtaining request to the service device corresponding to the first IP address includes:
    根据所述对应关系以及所述数据获取请求的源IP地址和目的IP地址,确定所述数据获取请求与所述IP地址获取请求对应的业务为同一业务;Determining that the service corresponding to the data obtaining request and the IP address obtaining request is the same service according to the corresponding relationship and the source IP address and the destination IP address of the data obtaining request;
    将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口,所述第一端口为所述终端设备的端口,所述第二端口为所述网关的端口;Replace the source IP address of the data acquisition request from the second IP address with the third IP address, replace the source port of the data acquisition request from the first port with the second port, and the first port Is the port of the terminal device, and the second port is the port of the gateway;
    向所述第一IP地址对应的服务设备发送替换后的数据获取请求;Sending a replacement data acquisition request to the service device corresponding to the first IP address;
    所述发送单元向所述控制设备发送所述数据响应包括:The sending unit sending the data response to the control device includes:
    将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口;Replacing the destination IP address of the data response from the third IP address to the second IP address, and replacing the destination port of the data response from the second port to the first port;
    向所述控制设备发送替换后的数据响应。Send the replaced data response to the control device.
  37. 根据权利要求36所述的装置,其特征在于,所述发送单元将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,得到第二IP地址响应包括:The device according to claim 36, wherein the sending unit replaces the destination IP address of the first IP address response from the third IP address with the second IP address to obtain the second IP address The response includes:
    将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述第一IP地址替换为第四IP地址,得到第二IP地址响应,所述第四IP地址为所述网关分配的用于识别业务是否为专用连接的业务的IP地址;Replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with the fourth IP address to obtain the second IP address response, so The fourth IP address is an IP address allocated by the gateway to identify whether the service is a dedicated connection service;
    所述获取单元将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口包括:The obtaining unit replacing the source IP address of the data obtaining request from the second IP address to the third IP address, and replacing the source port of the data obtaining request from the first port to the second port includes:
    将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口,将所述数据获取请求的目的IP地址由所述第四IP地址替换为所述第一IP地址;Replace the source IP address of the data acquisition request from the second IP address with the third IP address, replace the source port of the data acquisition request from the first port with the second port, and acquire the data The requested destination IP address is replaced by the fourth IP address with the first IP address;
    所述发送单元将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口包括:The sending unit replaces the destination IP address of the data response from the third IP address to the second IP address, and replaces the destination port of the data response from the second port to the first port include:
    将所述数据响应的源IP地址由所述第一IP地址替换为所述第四IP地址,将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口。Replacing the source IP address of the data response from the first IP address to the fourth IP address, and replacing the destination IP address of the data response from the third IP address to the second IP address, The destination port of the data response is replaced by the second port with the first port.
  38. 根据权利要求34-37任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 34-37, wherein the device further comprises:
    第一计费单元,用于在所述终端设备与所述服务设备间使用的宽带的流量小于最低限制流量的情况下,按照所述最低限制流量对所述终端设备和所述服务设备使用的宽带进行计费;The first billing unit is configured to, when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, use the terminal device and the service device according to the minimum limit traffic. Broadband billing;
    所述第一计费单元,还用于在所述终端设备与所述服务设备间使用的宽带的流量大于或等于所述最低限制流量的情况下,按照所述终端设备与所述服务设备间使用宽带的使用流量,对所述终端设备和所述服务设备使用的宽带进行计费。The first billing unit is further configured to: when the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, according to the difference between the terminal device and the service device The broadband usage traffic is billed for the broadband used by the terminal equipment and the service equipment.
  39. 根据权利要求34-37任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 34-37, wherein the device further comprises:
    第二计费单元,用于在所述终端设备与所述服务设备间使用的宽带的带宽小于最低限制带宽的情况下,按照所述最低限制带宽对所述终端设备和所述服务设备使用的宽带进行计费,所述最低限制带宽为最低限制流量对应的带宽;The second billing unit is configured to, when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum limit bandwidth, use the terminal device and the service device according to the minimum limit bandwidth. Broadband is billed, and the minimum restricted bandwidth is the bandwidth corresponding to the minimum restricted traffic;
    所述第二计费单元,还用于在所述终端设备与所述服务设备间使用的宽带的带宽大于或等于所述最低限制带宽的情况下,按照所述终端设备与所述服务设备间使用宽带的使用带宽,对所述终端设备和所述服务设备使用的宽带进行计费。The second charging unit is further configured to: in the case that the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum bandwidth, according to the difference between the terminal device and the service device Using the bandwidth used by the broadband, billing is performed on the broadband used by the terminal device and the service device.
  40. 根据权利要求33-39任一项所述的装置,其特征在于,所述第一IP地址获取请求为域名系统DNS请求或超文本传输协议HTTP DNS请求。The device according to any one of claims 33-39, wherein the first IP address acquisition request is a Domain Name System DNS request or a Hypertext Transfer Protocol HTTP DNS request.
  41. 一种通信装置,其特征在于,包括:A communication device, characterized in that it comprises:
    接收单元,用于接收来自控制设备的IP地址获取请求,所述IP地址获取请求对应的业务为专用连接的业务;The receiving unit is configured to receive an IP address obtaining request from the control device, and the service corresponding to the IP address obtaining request is a dedicated connection service;
    替换单元,用于将所述IP地址获取请求的源IP地址由第二IP地址替换为第三IP地址,所述第二IP地址为终端设备的IP地址,所述第三IP地址为网关的IP地址;The replacement unit is configured to replace the source IP address of the IP address acquisition request from a second IP address to a third IP address, where the second IP address is the IP address of the terminal device, and the third IP address is the gateway's IP address;
    发送单元,用于向控制中心发送替换后的IP地址获取请求;The sending unit is used to send a replacement IP address acquisition request to the control center;
    所述接收单元,还用于接收来自所述控制中心的第一IP地址响应,所述第一IP地址响应携带第一IP地址,所述第一IP地址为所述控制中心根据所述网关确定的所述业务所在服务设备的IP地址;The receiving unit is further configured to receive a first IP address response from the control center, where the first IP address response carries a first IP address, and the first IP address is determined by the control center according to the gateway The IP address of the service device where the business is located;
    所述替换单元,还用于将所述第一IP地址响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,以及将所述第一IP地址替换为第四IP地址,得到第二IP地址响应,所述第四IP地址为所述网关分配的用于识别业务是否为专用连接的业务的IP地址;The replacement unit is further configured to replace the destination IP address of the first IP address response from the third IP address with the second IP address, and replace the first IP address with a fourth IP address To obtain a second IP address response, where the fourth IP address is an IP address allocated by the gateway for identifying whether the service is a dedicated connection service;
    所述发送单元,还用于向所述控制设备发送所述第二IP地址响应。The sending unit is further configured to send the second IP address response to the control device.
  42. 根据权利要求41所述的装置,其特征在于,所述IP地址获取请求携带有业务的标识,所述装置还包括:The device according to claim 41, wherein the IP address acquisition request carries a service identifier, and the device further comprises:
    记录单元,用于记录所述标识与所述第二IP地址以及所述第四IP地址之间的对应关系;A recording unit, configured to record the correspondence between the identifier and the second IP address and the fourth IP address;
    所述接收单元,还用于接收来自所述控制设备的数据获取请求;The receiving unit is further configured to receive a data acquisition request from the control device;
    确定单元,用于根据所述对应关系以及所述数据获取请求的源IP地址和目的IP地址,确定所述数据获取请求与所述IP地址获取请求对应的业务为同一业务;A determining unit, configured to determine that the service corresponding to the data obtaining request and the IP address obtaining request is the same service according to the corresponding relationship and the source IP address and the destination IP address of the data obtaining request;
    所述替换单元,还用于将所述数据获取请求的源IP地址由所述第二IP地址替换为所述第三IP地址,将所述数据获取请求的源端口由第一端口替换为第二端口,将所述数据获取请求的目的IP地址由所述第四IP地址替换为所述第一IP地址,所述第一端口为所述终端设备的端口,所述第二端口为所述网关的端口;The replacement unit is further configured to replace the source IP address of the data acquisition request from the second IP address to the third IP address, and replace the source port of the data acquisition request from the first port to the first port. The second port is to replace the destination IP address of the data acquisition request from the fourth IP address to the first IP address, the first port is the port of the terminal device, and the second port is the The port of the gateway;
    所述发送单元,还用于向所述第一IP地址对应的服务设备发送替换后的数据获取请求;The sending unit is further configured to send a replacement data acquisition request to the service device corresponding to the first IP address;
    所述接收单元,还用于接收来自所述服务设备的数据响应,所述数据响应携带有所述业务的数据;The receiving unit is further configured to receive a data response from the service device, the data response carrying data of the service;
    所述替换单元,还用于将所述数据响应的源IP地址由所述第一IP地址替换为所述第四IP地址,将所述数据响应的目的IP地址由所述第三IP地址替换为所述第二IP地址,将所述数据响应的目的端口由所述第二端口替换为所述第一端口;The replacement unit is further configured to replace the source IP address of the data response from the first IP address with the fourth IP address, and replace the destination IP address of the data response with the third IP address For the second IP address, replace the destination port of the data response from the second port to the first port;
    所述发送单元,还用于向所述控制设备发送替换后的数据响应。The sending unit is further configured to send a replaced data response to the control device.
  43. 根据权利要求42所述的装置,其特征在于,所述装置还包括:The device according to claim 42, wherein the device further comprises:
    第一计费单元,用于在所述终端设备与所述服务设备间使用的宽带的流量小于最低限制流量的情况下,按照所述最低限制流量对所述终端设备和所述服务设备使用的宽带进行计费;The first billing unit is configured to, when the broadband traffic used between the terminal device and the service device is less than the minimum limit traffic, use the terminal device and the service device according to the minimum limit traffic. Broadband billing;
    所述第一计费单元,还用于在所述终端设备与所述服务设备间使用的宽带的流量大于或等于所述最低限制流量的情况下,按照所述终端设备与所述服务设备间使用宽带的使用流量,对所述终端设备和所述服务设备使用的宽带进行计费。The first billing unit is further configured to: when the broadband traffic used between the terminal device and the service device is greater than or equal to the minimum limit traffic, according to the difference between the terminal device and the service device The broadband usage traffic is billed for the broadband used by the terminal equipment and the service equipment.
  44. 根据权利要求42所述的装置,其特征在于,所述装置还包括:The device according to claim 42, wherein the device further comprises:
    第二计费单元,用于在所述终端设备与所述服务设备间使用的宽带的带宽小于最低限 制带宽的情况下,按照所述最低限制带宽对所述终端设备和所述服务设备使用的宽带进行计费,所述最低限制带宽为最低限制流量对应的带宽;The second billing unit is configured to, when the bandwidth of the broadband used between the terminal device and the service device is less than the minimum limit bandwidth, use the terminal device and the service device according to the minimum limit bandwidth. Broadband is billed, and the minimum restricted bandwidth is the bandwidth corresponding to the minimum restricted traffic;
    所述第二计费单元,还用于在所述终端设备与所述服务设备间使用的宽带的带宽大于或等于所述最低限制带宽的情况下,按照所述终端设备与所述服务设备间使用宽带的使用带宽,对所述终端设备和所述服务设备使用的宽带进行计费。The second charging unit is further configured to: in the case that the bandwidth of the broadband used between the terminal device and the service device is greater than or equal to the minimum bandwidth, according to the difference between the terminal device and the service device Using the bandwidth used by the broadband, billing is performed on the broadband used by the terminal device and the service device.
  45. 一种通信装置,其特征在于,包括处理器、存储器、输入接口和输出接口,所述输入接口用于接收来自所述通信装置之外的其它通信装置的信息,所述输出接口用于向所述通信装置之外的其它通信装置输出信息,所述处理器调用所述存储器中存储的计算机程序实现如权利要求1-22任一项所述的方法。A communication device, characterized by comprising a processor, a memory, an input interface and an output interface, the input interface is used to receive information from other communication devices other than the communication device, and the output interface is used to send When other communication devices other than the communication device output information, the processor invokes the computer program stored in the memory to implement the method according to any one of claims 1-22.
  46. 一种通信系统,其特征在于,包括:A communication system, characterized in that it comprises:
    如权利要求23-31任一项所述的通信装置以及如权利要求32-40任一项所述的通信装置;或者The communication device according to any one of claims 23-31 and the communication device according to any one of claims 32-40; or
    如权利要求23-31任一项所述的通信装置以及如权利要求41-44任一项所述的通信装置。The communication device according to any one of claims 23-31 and the communication device according to any one of claims 41-44.
  47. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或计算机指令,当所述计算机程序或计算机指令被运行时,实现如权利要求1-22任一项所述的方法。A computer-readable storage medium, characterized in that a computer program or computer instruction is stored in the computer-readable storage medium, and when the computer program or computer instruction is executed, it implements any one of claims 1-22 The method described.
PCT/CN2020/131956 2019-11-29 2020-11-26 Communication method and device WO2021104405A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911207427.8 2019-11-29
CN201911207427.8A CN112887103B (en) 2019-11-29 2019-11-29 Communication method and device

Publications (1)

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

Family

ID=76039193

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/131956 WO2021104405A1 (en) 2019-11-29 2020-11-26 Communication method and device

Country Status (2)

Country Link
CN (1) CN112887103B (en)
WO (1) WO2021104405A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212461A (en) * 2006-12-26 2008-07-02 华为技术有限公司 Data transmission method and system and core network gateway during switching of heterogeneous IP network
CN101577949A (en) * 2008-05-08 2009-11-11 华为技术有限公司 Method and device for acquiring information for cell reselection
CN105207858A (en) * 2014-06-16 2015-12-30 华为技术有限公司 Access device and method for connecting user equipment to network executed by access device
WO2018170703A1 (en) * 2017-03-20 2018-09-27 华为技术有限公司 Connection establishment method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2689567B1 (en) * 2011-03-22 2015-06-24 Telefonaktiebolaget L M Ericsson (publ) Network node and method to route through or around traffic detection function nodes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212461A (en) * 2006-12-26 2008-07-02 华为技术有限公司 Data transmission method and system and core network gateway during switching of heterogeneous IP network
CN101577949A (en) * 2008-05-08 2009-11-11 华为技术有限公司 Method and device for acquiring information for cell reselection
CN105207858A (en) * 2014-06-16 2015-12-30 华为技术有限公司 Access device and method for connecting user equipment to network executed by access device
WO2018170703A1 (en) * 2017-03-20 2018-09-27 华为技术有限公司 Connection establishment method and device

Also Published As

Publication number Publication date
CN112887103A (en) 2021-06-01
CN112887103B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
RU2536374C2 (en) Method, apparatus and system for accessing service by mobile station
CN1859437B (en) Method for obtaining cut-in position information for user terminal and user terminal and relative device
RU2572825C1 (en) METHOD AND APPARATUS FOR Wi-Fi TERMINAL FOR ACCESSING DIFFERENT SERVICE DOMAINS
US11968128B2 (en) Management, by an intermediate device, of the quality of transmission of a data stream to a mobile terminal
US10382336B2 (en) Dynamically adjusting network services stratum parameters based on access and/or connectivity stratum utilization and/or congestion information
WO2014117376A1 (en) Customizable mobile broadband network system, and method for customizing mobile broadband network
WO2012051885A1 (en) Method, terminal and system for service data distribution
US20130343269A1 (en) Routing data over a non-3rd generation partnership project trusted network
US20100254319A1 (en) Joint resource management in a femtocell network
US9655124B2 (en) Policy and charging control (PCC) for NAT64 and DNS64
US20160112742A1 (en) Managing wireless transmission capacity
CN102802206B (en) A kind of WLAN shunt method and shunting network element
JP5426017B2 (en) Dedicated gateway for mobile broadband devices
US8516109B2 (en) Method for obtaining information relating to a local environment of a terminal
CN108574965B (en) Method and equipment for processing request
JP2004348494A (en) Content distribution network
CN111092842B (en) Information processing method, server, network element and storage medium
JP2015512096A (en) Virtualized open wireless service software architecture
WO2021115429A1 (en) Communication method and apparatus
WO2021104405A1 (en) Communication method and device
US20220116305A1 (en) Message sending and receiving methods and apparatuses, and communication system
WO2021179598A1 (en) Communication method, apparatus and system
JP2023537794A (en) Wireless communication method and device
CN101730156B (en) Resource admission control method
CN114285696B (en) Fixed network broadband service scheduling system, method, device and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1