WO2019061340A1 - 报文转发控制方法和装置 - Google Patents

报文转发控制方法和装置 Download PDF

Info

Publication number
WO2019061340A1
WO2019061340A1 PCT/CN2017/104527 CN2017104527W WO2019061340A1 WO 2019061340 A1 WO2019061340 A1 WO 2019061340A1 CN 2017104527 W CN2017104527 W CN 2017104527W WO 2019061340 A1 WO2019061340 A1 WO 2019061340A1
Authority
WO
WIPO (PCT)
Prior art keywords
gateway
message
data forwarding
forwarding policy
server
Prior art date
Application number
PCT/CN2017/104527
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to PCT/CN2017/104527 priority Critical patent/WO2019061340A1/zh
Publication of WO2019061340A1 publication Critical patent/WO2019061340A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a packet forwarding control method and apparatus.
  • the data flow between the terminal device and the Internet in the same home network may need to perform value-added services. For example, some terminal devices do not need to perform green Internet filtering, and some terminal devices need to perform green Internet filtering.
  • a physical gateway device is disposed at an exit of the home network, and the physical gateway device can configure which terminal devices need to perform value-added services, and which terminal devices do not need to perform value-added services.
  • the physical gateway When the data flows reach the physical gateway device, the physical gateway The device processes the data stream accordingly.
  • a virtual gateway device concept is proposed, which is set on the server of the cloud operator of the communication carrier, and is virtualized.
  • the processing performance of the gateway device is very strong, so the processing performance of the value-added service of the data stream is better. Therefore, you need to configure the data forwarding policy. That is, the user manually sets the physical gateway device to configure which terminals need to perform value-added services, and which terminal devices do not need to perform value-added services.
  • the data of the terminal device that needs to be forwarded to the virtual gateway device for value-added service processing without the value-added service need not be forwarded to the virtual gateway device.
  • the embodiment of the present invention provides a packet forwarding control method and device.
  • the user does not need to manually configure a data forwarding policy on the physical gateway device, but the server sends a data forwarding policy to the physical gateway device, which improves the efficiency of data forwarding policy configuration.
  • the embodiment of the present application provides a packet forwarding control method, including: a gateway device receiving a data forwarding policy sent by a server, where the data forwarding policy includes: a first gateway address and identifier information of the terminal device, and a data forwarding policy.
  • the data indicating that the terminal device needs to be forwarded to the virtual gateway device according to the first gateway address for value-added service processing; after the gateway device receives the packet sent by the terminal device, the gateway device according to the identification information of the terminal device in the packet and the data forwarding policy And determining a first gateway address corresponding to the identifier information of the terminal device; and then sending the packet according to the first gateway address.
  • the gateway device before receiving the first gateway address and the data forwarding policy sent by the server, the gateway device further receives a first message sent by the server, where the first message is used to instruct the physical gateway device to re-apply the gateway address; and send the message to the server.
  • the second message is used to request the gateway address of the gateway device.
  • one way for the gateway device to send a message according to the first gateway address is: The gateway address is encapsulated in the packet, and the packet encapsulating the first gateway address is sent.
  • the gateway device receives a data forwarding policy sent by the server by receiving a Dynamic Host Configuration Protocol (DHCP) message sent by the server or an Ethernet-based point-to-point communication protocol (Point to Point Protocol Over Ethernet (PPPOE) messages, DHCP messages or PPPOE messages include data forwarding policies.
  • DHCP Dynamic Host Configuration Protocol
  • PPPOE Point to Point Protocol Over Ethernet
  • the first gateway address and the data forwarding policy are included in an option field of the DHCP message.
  • the data forwarding policy further includes: a second gateway address and identifier information of the terminal device that does not need to perform value-added service processing, and the data forwarding policy is further used to indicate the terminal device that does not need to perform value-added service processing.
  • the data is forwarded according to the second gateway address.
  • the identification information includes at least one of the following: a Media Access Control (MAC) address of the terminal device, a username, and an account number.
  • MAC Media Access Control
  • the embodiment of the present invention provides a packet forwarding control method, including: a server receiving a value-added service request, where the value-added service request includes identifier information of the terminal device, and the value-added service request is used to request data of the terminal device to perform value-added service processing.
  • the data forwarding policy includes: a first gateway address and identifier information of the terminal device, where the data forwarding policy is used to indicate the terminal
  • the data of the device needs to be forwarded to the virtual gateway device according to the first gateway address for value-added service processing; and then the data forwarding policy is sent to the physical gateway device.
  • the server before the server sends the data forwarding policy to the physical gateway device, the server sends a first message to the physical gateway device, where the first message is used to instruct the physical gateway device to apply for the gateway address; a second message, the second message is used to request a gateway address of the physical gateway device;
  • One way for the server to send a data forwarding policy to the physical gateway device is to send a data forwarding policy to the physical gateway device according to the second message.
  • the server after the server allocates the first gateway address to the physical gateway device connected to the terminal device according to the value-added service request, the server also establishes between the first gateway address and the virtual gateway device that processes the value-added service.
  • the server After the server sends the data forwarding policy to the physical gateway device, the server also receives the packet encapsulating the first gateway address, and according to the first gateway address encapsulated in the packet, and the first gateway address and the virtual gateway that processes the value-added service.
  • the virtual gateway device that processes the value-added service corresponding to the first gateway address is determined by the corresponding relationship between the devices; and then the virtual gateway device is controlled to perform value-added service processing on the packet.
  • the server sends the data forwarding policy to the physical gateway device by sending a DHCP message or a PPPOE message to the physical gateway device, where the DHCP message or the PPPOE message includes a data forwarding policy.
  • the data forwarding policy is included in the option field of the DHCP message.
  • the data forwarding policy further includes: a second gateway address and identifier information of the terminal device that does not need to perform value-added service processing, and the data forwarding policy is further used to indicate data according to the terminal device that does not need to perform value-added service processing.
  • the second gateway address is forwarded.
  • the identification information includes at least one of the following: a MAC address of the terminal device, a username, and an account.
  • the embodiment of the present application provides a gateway device, including:
  • the receiving module is configured to receive a data forwarding policy sent by the server, where the data forwarding policy includes: a first gateway address and identifier information of the terminal device, where the data forwarding policy is used to indicate that the data of the terminal device needs to be forwarded to the virtual gateway device according to the first gateway address. Perform value-added service processing; and also receive the message sent by the terminal device;
  • the processing module is configured to: after receiving the packet sent by the terminal device, the receiving module determines, according to the identifier information of the terminal device in the packet and the data forwarding policy, the first gateway address corresponding to the identifier information of the terminal device;
  • the sending module is further configured to send a packet according to the first gateway address.
  • the receiving module is further configured to receive a first message sent by the server, where the first message is used to instruct the physical gateway device to re-apply the gateway address;
  • the sending module is further configured to send a second message to the server, where the second message is used to request a gateway address of the gateway device.
  • the sending module is specifically configured to: encapsulate the first gateway address in the packet, and send a packet encapsulating the first gateway address.
  • the receiving module is specifically configured to: receive a DHCP message or a PPPOE message sent by the server, and the DHCP message or the PPPOE message includes a data forwarding policy.
  • the first gateway address and data forwarding policy are included in the option field of the DHCP message.
  • the data forwarding policy further includes: a second gateway address and identifier information of the terminal device that does not need to perform value-added service processing, and the data forwarding policy is further used to indicate data according to the terminal device that does not need to perform value-added service processing.
  • the second gateway address is forwarded.
  • the identification information includes at least one of the following: a MAC address of the terminal device, a username, and an account.
  • an embodiment of the present application provides a server, including:
  • the receiving module is configured to receive the value-added service request, where the value-added service request includes the identifier information of the terminal device, and the value-added service request is used to request the data of the terminal device to perform the value-added service processing;
  • the processing module is configured to allocate a first gateway address to the physical gateway device connected to the terminal device according to the value-added service request, and generate a data forwarding policy, where the data forwarding policy includes: the first gateway address and the identifier information of the terminal device, and the data forwarding policy The data used to indicate the terminal device needs to be forwarded to the virtual gateway device according to the first gateway address for value-added service processing;
  • the sending module is configured to send a data forwarding policy to the physical gateway device.
  • the sending module is further configured to: before sending the data forwarding policy to the physical gateway device, send a first message to the physical gateway device, where the first message is used to indicate that the physical gateway device applies for the gateway address;
  • the receiving module is further configured to receive a second message sent by the physical gateway device, where the second message is used to request a gateway address of the physical gateway device;
  • the sending module When the sending module sends a data forwarding policy to the physical gateway device, the sending module is specifically configured to send a data forwarding policy to the physical gateway device according to the second message.
  • the processing module is further configured to: after the first gateway address is allocated to the physical gateway device connected to the terminal device according to the value-added service request, establish a first gateway address and a virtual gateway device that processes the value-added service Correspondence relationship;
  • the receiving module is further configured to: after the sending module sends a data forwarding policy to the physical gateway device, receive a packet that encapsulates the first gateway address;
  • the processing module is further configured to: determine, according to the first gateway address encapsulated in the packet, and the corresponding relationship between the first gateway address and the virtual gateway device that processes the value-added service, the virtual gateway device that processes the value-added service corresponding to the first gateway address And controlling the virtual gateway device to perform value-added service processing on the packet.
  • the sending module is specifically configured to: send a DHCP message or a PPPOE message to the physical gateway device, where the DHCP message or the PPPOE message includes a data forwarding policy.
  • the data forwarding policy is included in the option field of the DHCP message.
  • the data forwarding policy does not require the identification information of the terminal device and the second gateway address for performing the value-added service processing, and the data forwarding policy is further used to indicate the data of the terminal device that does not need to perform the value-added service processing according to the second gateway. Address forwarding.
  • the identification information includes at least one of the following: a MAC address of the terminal device, a username, and an account.
  • an embodiment of the present application provides a gateway device, including: a memory and a processor.
  • the memory is configured to store program instructions.
  • the processor is configured to invoke the program instruction stored in the memory to implement the message forwarding control method according to the first aspect of the present application.
  • an embodiment of the present application provides a server, including: a memory and a processor.
  • the memory is configured to store program instructions.
  • the processor is configured to invoke the program instruction stored in the memory to implement the message forwarding control method according to the second aspect of the present application.
  • the embodiment of the present application provides a storage medium, including: a readable storage medium and a computer program, where the computer program is used to implement the packet forwarding control method according to the first aspect of the present application.
  • the embodiment of the present application provides a storage medium, including: a readable storage medium and a computer program, where the computer program is used to implement the packet forwarding control method according to the second aspect of the present application.
  • the embodiment of the present application provides a program product, where the program product includes a computer program, where the computer program is stored in a readable storage medium, and at least one processor of the gateway device can read from the readable storage medium. Taking the computer program, the at least one processor executing the computer program causes the gateway device to implement the message forwarding control method according to the first aspect of the present application.
  • an embodiment of the present application provides a program product, where the program product includes a computer program, where the computer program is stored in a readable storage medium, and at least one processor of the server can read from the readable storage medium.
  • the server allocates the gateway address and generates a data forwarding policy, and sends the data forwarding policy to the physical gateway device connected to the terminal device, where the physical gateway device receives the terminal device and sends the data to the terminal device.
  • the packet is sent according to the data forwarding policy, and the data of the terminal device can be forwarded to the virtual gateway device for value-added service processing, and the data forwarding policy in this embodiment is not needed.
  • the user is manually configured on the physical gateway device, but is sent to the physical gateway device by the server. Therefore, the efficiency of the data forwarding policy configuration is improved, and the packet forwarding control efficiency is also improved.
  • FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a packet forwarding control method according to an embodiment of the present application
  • FIG. 3 is a flowchart of a packet forwarding control method according to another embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a gateway device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a gateway device according to another embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a server according to another embodiment of the present application.
  • FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present disclosure.
  • the application scenario of the embodiment includes: at least one terminal device, a physical gateway device, a forwarding device, and a server.
  • the application scenario of the embodiment includes: at least one terminal device, a physical gateway device, a forwarding device, and a server.
  • two terminal devices are taken as an example, and one terminal device is used as a mobile phone, and the other terminal device is a computer as an example.
  • the embodiment is not limited thereto, and at least, in this embodiment, at least A terminal device can be a mobile phone or a computer.
  • the physical gateway device is shown as a physical home gateway (PRG) in FIG. 1 , and at least one terminal device is in the same home network as the PRG.
  • PRG physical home gateway
  • the server in this embodiment is configured in the cloud and may be referred to as a cloud server, and a virtual home gateway (VRG) may be configured in the server.
  • VRG virtual home gateway
  • the data of the mobile phone in FIG. 1 is processed by the VRG for value-added services, and the data of the computer does not need to be processed by the VRG for value-added services.
  • value-added service processing includes but is not limited to: green Internet filtering, video acceleration, and the like.
  • FIG. 2 is a flowchart of a packet forwarding control method according to an embodiment of the present disclosure. As shown in FIG. 2, the method in this embodiment may include:
  • the server receives a value-added service request.
  • the server receives the value-added service request, and the value-added service request includes the identifier information of the terminal device, where the value-added service request is used to request the data of the terminal device to perform value-added service processing.
  • the identifier information is used to distinguish different terminal devices.
  • the identifier information may include at least one of the following: a MAC address of the terminal device, a user name, an account number, and the like.
  • the value-added service request may also include identification information of multiple different terminal devices, which means that the value-added service request is used to request the multiple different terminal devices to perform value-added service processing, and each terminal device and the following are as follows. The implementation scheme of the terminal device is similar, and details are not described herein again.
  • the method for the server to receive the value-added service request is as follows: the user passes through a terminal device (it is required that the terminal device may be a terminal device that needs to perform value-added service processing, or may not be, or even the terminal device may not be the same)
  • the terminal device in the home network is connected to a server (for example, a webpage of an operator), and the operator's webpage displays a value-added service processing option, and the user inputs the terminal device that needs to perform value-added service processing in the webpage by operating the terminal device. Identify information so that the server can receive value-added service requests.
  • the server allocates a gateway address to the PRG connected to the terminal device according to the value-added service request, and generates a data forwarding policy.
  • the server determines that the data of the terminal device needs to perform value-added service processing through the virtual gateway device. Therefore, the PRG needs to be assigned a gateway address to the terminal device, so that the PRG is the terminal device.
  • the packet encapsulates the gateway address
  • the data of the terminal device can be forwarded to the VRG for value-added service processing, and the gateway address can also be regarded as the gateway address of the VRG. Therefore, the server in this embodiment may allocate a gateway address from the address pool for the PRG connected to the terminal device, and then generate a data forwarding policy according to the gateway address.
  • the data forwarding policy includes: the assigned gateway address and the identifier information of the terminal device, and the data forwarding policy is used to indicate that the data of the terminal device needs to be forwarded to the virtual gateway device according to the gateway address for value-added service processing.
  • the server sends the data forwarding policy to the PRG.
  • the server after allocating the gateway address and generating the data forwarding policy, the server sends the foregoing data forwarding policy to the PRG connected to the terminal device.
  • the PRG receives the data forwarding policy sent by the server, and the PRG can determine that one of the gateway addresses of the PRG is the received gateway address, and according to the data forwarding policy, it can be determined that the data of the terminal device needs to encapsulate the gateway address, so as to be forwarded. Perform value-added service processing on the virtual gateway device.
  • the server sends a DHCP message to the PRG, the DHCP message including the data forwarding policy.
  • the PRG receives the DHCP message sent by the server, and acquires the data forwarding policy from the DHCP message.
  • the data forwarding policy is included in an option field of the DHCP message, for example, as shown below, the data forwarding policy includes an Acl rule 1 as described below, that is, a terminal indicating a MAC address of 0011-1111-1111 The data of the device needs to be processed according to the gateway address of 11.11.11.11 for value-added services.
  • the server sends a PPPOE message to the PRG, the PPPOE message including the data forwarding policy.
  • the PRG receives the PPPOE message sent by the server, and obtains the data forwarding policy from the PPPOE message.
  • the PRG receives the packet sent by the terminal device.
  • the PRG determines, according to the identifier information of the terminal device and the data forwarding policy in the packet, the gateway address corresponding to the identifier information of the terminal device.
  • the PRG receives the packet sent by the terminal device, and the terminal device is a terminal device that needs to perform value-added service processing on the data indicated in the data forwarding policy, for example, the packet includes the terminal device that sends the packet.
  • the identification information if the identification information of the terminal device included in the packet is the same as the identification information of the terminal device indicated in the data forwarding policy, the PRG determines that the data in the packet needs to perform value-added service processing. Then, the PRG determines the gateway address corresponding to the terminal device according to the identification information of the terminal device and the data forwarding policy.
  • the PRG sends the packet according to the gateway address.
  • the PRG sends the packet according to the gateway address, so that the packet is forwarded to the VRG for value-added service processing.
  • the server after receiving the value-added service request, allocates the gateway address and generates a data forwarding policy, and sends the data forwarding policy to the PRG connected to the terminal device, after the PRG receives the packet sent by the terminal device.
  • the data forwarding policy is sent according to the gateway address, so that the data of the terminal device can be forwarded to the VRG for value-added service processing, and the data forwarding policy in this embodiment does not need to be manually performed on the PRG by the user.
  • the configuration is sent to the PRG by the server. Therefore, the efficiency of data forwarding policy configuration is improved.
  • FIG. 3 is a flowchart of a packet forwarding control method according to another embodiment of the present invention.
  • the server is a DHCP server, and the method in this embodiment may include:
  • the DHCP server receives the value-added service request.
  • the DHCP server allocates a gateway address for the PRG connected to the terminal device according to the value-added service request, and generates a data forwarding policy.
  • the DHCP server establishes a correspondence between the gateway address and a VRG that processes the value-added service.
  • the DHCP server further establishes a correspondence between the gateway address and the VRG that processes the value-added service, so that when the DHCP server receives the packet encapsulating the gateway address, according to the correspondence, the VRG pair The message is processed for value-added services.
  • the DHCP server can actively send a data forwarding policy to the PRG.
  • the DHCP server may send a data forwarding policy after receiving the request sent by the PRG.
  • the DHCP server sends a DHCP mandatory update message to the PRG.
  • the DHCP server sends a first message to the PRG, where the first message is used to instruct the PRG to re-apply the gateway address.
  • the PRG receives the first message sent by the DHCP server, and according to the first message, determines that the gateway address needs to be re-applied.
  • the first message described above is a DHCP Force Update message (DHCP force renew message).
  • the PRG sends a DHCP request message to the DHCP server according to the DHCP forced update message.
  • the PRG after determining that the gateway address needs to be re-applied, the PRG sends a second message to the server according to the first message, where the second message is used to request the gateway address of the PRG.
  • the second message described above is a DHCP request message (DHCP request message).
  • the DHCP server sends a DHCP response message to the PRG according to the DHCP request message.
  • the DHCP server determines that the assigned gateway address needs to be sent to the PRG according to the received second message (for example, a DHCP request message).
  • the DHCP server then sends a data forwarding policy to the PRG.
  • the DHCP server sends a DHCP response message (DHCP offer message) to the PRG, the DHCP offer message including a data forwarding policy.
  • the PRG receives the packet sent by the terminal device.
  • the PRG determines, according to the identifier information of the terminal device and the data forwarding policy in the packet, the gateway address corresponding to the identifier information of the terminal device.
  • the PRG encapsulates the gateway address in the packet, and sends a packet encapsulating the gateway address.
  • the PRG after determining the gateway address corresponding to the identifier information of the terminal device, the PRG encapsulates the gateway address in the packet, and sends a packet encapsulating the gateway address. Because the gateway address is encapsulated in the packet, the packet is forwarded by the forwarding device to the DHCP server in the cloud.
  • the DHCP server receives a packet that encapsulates the gateway address.
  • the DHCP server determines, according to the gateway address encapsulated in the packet, and the correspondence between the gateway address and the VRG that processes the value-added service, the VRG that processes the value-added service corresponding to the gateway address.
  • the server receives the packet encapsulating the gateway address, and determines the gateway address according to the gateway address encapsulated in the packet and the correspondence between the gateway address established by the DHCP server and the VRG processing the value-added service.
  • the VRG that handles value-added services.
  • the DHCP server controls the VRG to perform value-added service processing on the packet.
  • the VRG is a virtual gateway device that is configured on the DHCP server. Therefore, the DHCP server can control the VRG to perform value-added service processing on the packet. After the value-added service processing is completed, the DHCP server sends the report after the value-added service processing. For example, it is sent to the forwarding device, sent to the Internet by the forwarding device, and the like.
  • the DHCP server after receiving the value-added service request, allocates the gateway address and generates a data forwarding policy, and the data forwarding policy is included in the DHCP message and sent to the PRG connected to the terminal device, and the terminal device is received by the PRG.
  • the packet After the packet is sent, the packet is sent according to the gateway address, so that the data of the terminal device can be forwarded to the VRG for value-added service processing, and the data forwarding policy in this embodiment does not need to be manually configured on the PRG.
  • the data forwarding policy is included in the option field of the DHCP message. Therefore, the data forwarding policy can be sent to the PRG by the DHCP server through the DHCP message, thereby improving the efficiency of the data forwarding policy configuration.
  • the home network includes: N terminal devices, N is an integer greater than 1, and the number of terminal devices that need to perform value-added service processing is N1, and the data does not need to be added.
  • the gateway address assigned by the server to the PRG in the above embodiments is referred to as the first gateway address, the server allocates the first gateway address to the PRG according to the N1 terminal devices.
  • the server Since the data of the N2 terminal devices does not need to perform value-added service processing, the server also allocates a gateway address for the PRG according to the N2 terminal devices, the gateway address is referred to as a second gateway address, and the second gateway address is sent to the PRG.
  • the packets of the N2 terminal devices are forwarded according to the second gateway address, they are not forwarded to the VRG for value-added service processing.
  • the server allocates two gateway addresses for the PRG, one is the first gateway address, and the other is the second gateway address, wherein the first gateway address corresponds to N1 terminal devices, and the second gateway address and N2
  • the terminal device corresponds to the terminal
  • the data forwarding policy sent by the server to the PRG further includes the second gateway address and the identifier information of the N2 terminal devices, and the data forwarding policy is further used to indicate that the terminal does not need to perform value-added service processing. Number of devices According to the second gateway address forwarding. If the packet received by the PRG is sent by any of the N1 terminal devices, the PRG forwards the packet according to the first gateway address, and the packet is forwarded to the VRG for value-added service processing. If the packet received by the PRG is sent by any of the N2 terminal devices, the PRG forwards the packet according to the second gateway address, and the packet is not forwarded to the VRG for value-added service processing.
  • the PRG is connected to two terminal devices, the MAC address of one terminal device is 0011-1111-1111, and the MAC address of the other terminal device is 0022-2222-2222, where the MAC address is 0011-1111-
  • the data of the terminal device of 1111 needs to be processed by value-added services, such as green Internet filtering.
  • the data of the terminal device with the MAC address of 0022-2222-2222 does not need to be processed by the value-added service.
  • the value-added service request is used to request the terminal device with the MAC address of 0011-1111-1111 to perform value-added service processing.
  • the PRG is allocated.
  • the gateway address is 11.11.11.11, and the 11.11.11.11 is the first gateway address, and the correspondence between the gateway address 11.11.11.11 and the VRG processing the value-added service is established.
  • the PRG is also connected to the terminal device with the MAC address of 0022-2222-2222, and the terminal device with the MAC address of 0022-2222-2222 does not need to perform value-added service processing, and the server is based on the terminal device with the MAC address of 0022-2222-2222.
  • the gateway address 22.22.22.22 is also assigned to the PRG, and the 22.222.2.22 is the second gateway address described above.
  • the gateway address assigned by the server to the PRG is two, and the gateway address 11.11.11.11 is used to forward the data of the terminal device with the MAC address 0011-1111-1111, and the gateway address 22.22.22.22 is used to forward the MAC address to 0022-2222. -2222 data for the terminal device.
  • the server sends a data forwarding policy to the PRG, where the data forwarding policy includes: MAC addresses 0011-1111-1111 and 0022-2222-2222, gateway addresses 11.11.11.11 and 22.22.22.22, and the data forwarding policy is used to indicate the MAC address.
  • the data of the terminal device of 0011-1111-1111 is forwarded to the VRG for value-added service processing according to the gateway address 11.11.11.11, and the data of the terminal device of the MAC address 0022-2222-2222 is forwarded according to the gateway address 22.22.22.22.
  • the data forwarding policy may be included in a DHCP message, for example as follows:
  • the data forwarding policy includes Acl rule1 and Acl rule2 as shown above.
  • the PRG forwards the packet including the MAC address 0011-1111-1111 according to the gateway address 11.11.11.11 according to Acl rule1.
  • the packet includes the MAC address of 0022-2222.
  • the packet of the -2222 is forwarded according to the gateway address of 22.22.22.22.
  • FIG. 4 is a schematic structural diagram of a gateway device according to an embodiment of the present disclosure.
  • the gateway device in this embodiment may include: a receiving module 41, a processing module 42, and a sending module 43.
  • the receiving module 41 is configured to receive a data forwarding policy sent by the server, where the data forwarding policy includes: a first gateway address and identifier information of the terminal device, where the data forwarding policy is used to indicate that the data of the terminal device needs to be according to the The first gateway address is forwarded to the virtual gateway device for value-added service processing;
  • the receiving module 41 is further configured to receive a packet sent by the terminal device
  • the processing module 42 is configured to determine, after the receiving module 41 receives the packet sent by the terminal device, the terminal device according to the identifier information of the terminal device and the data forwarding policy in the packet.
  • the first gateway address corresponding to the identifier information
  • the sending module 43 is further configured to send the packet according to the first gateway address.
  • the receiving module 41 is further configured to receive a first message sent by the server, where the first message is used to instruct the physical gateway device to re-apply a gateway address;
  • the sending module 43 is further configured to send a second message to the server, where the second message is used to request a gateway address of the gateway device.
  • the sending module 43 is configured to: encapsulate the first gateway address in the packet, and send a packet encapsulating the first gateway address.
  • the receiving module 41 is specifically configured to: receive a DHCP message or a PPPOE message sent by the server, where the DHCP message or the PPPOE message includes the data forwarding policy.
  • the first gateway address and the data forwarding policy are included in an option field of the DHCP message.
  • the data forwarding policy further includes: a second gateway address and identifier information of the terminal device that does not need to perform value-added service processing, where the data forwarding policy is further used to indicate that the value-added service processing is not required.
  • the data of the terminal device is forwarded according to the second gateway address.
  • the identification information includes at least one of the following: a MAC address of the terminal device, a username, and an account.
  • the gateway device described in this embodiment may be used to perform the technical solution executed by the gateway device in the foregoing method embodiments.
  • the implementation principle and the technical effect are similar.
  • the function of each module may refer to the corresponding description in the method embodiment. I will not repeat them here.
  • FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • the server in this embodiment may include: a receiving module 51, a processing module 52, and a sending module 53.
  • the receiving module 51 is configured to receive a value-added service request, where the value-added service request includes identifier information of the terminal device, where the value-added service request is used to request data of the terminal device to perform value-added service processing;
  • the processing module 52 is configured to allocate a first gateway address to the physical gateway device connected to the terminal device according to the value-added service request, and generate a data forwarding policy, where the data forwarding policy includes: the first gateway address and The identifier information of the terminal device, where the data forwarding policy is used to indicate that the data of the terminal device needs to be forwarded to the virtual gateway device according to the first gateway address for value-added service processing;
  • the sending module 53 is configured to send the data forwarding policy to the physical gateway device.
  • the sending module 53 is further configured to send a first message to the physical gateway device before sending the data forwarding policy to the physical gateway device, where the first message is used to indicate The physical gateway device applies for a gateway address;
  • the receiving module 51 is further configured to receive a second message sent by the physical gateway device, where the second message is used to request a gateway address of the physical gateway device;
  • the sending module 53 When the sending module 53 sends the data forwarding policy to the physical gateway device, the sending module 53 is specifically configured to send the data forwarding policy to the physical gateway device according to the second message.
  • the processing module 52 is further configured to, according to the value added service request, After the physical gateway device connected to the terminal device allocates the first gateway address, establish a correspondence between the first gateway address and the virtual gateway device that processes the value-added service;
  • the receiving module 51 is further configured to: after the sending module 53 sends the data forwarding policy to the physical gateway device, receive a packet encapsulating the first gateway address;
  • the processing module 52 is further configured to determine the first according to a first gateway address encapsulated in the packet, and a correspondence between the first gateway address and a virtual gateway device that processes the value-added service. a virtual gateway device that processes the value-added service corresponding to the gateway address; and controls the virtual gateway device to perform value-added service processing on the packet.
  • the sending module 53 is specifically configured to: send a DHCP message or a PPPOE message to the physical gateway device, where the DHCP message or the PPPOE message includes the data forwarding policy.
  • the data forwarding policy is included in an option field of the DHCP message.
  • the data forwarding policy further includes: a second gateway address and identifier information of the terminal device that does not need to perform value-added service processing, where the data forwarding policy is further used to indicate the terminal that does not need to perform value-added service processing.
  • the data of the device is forwarded according to the second gateway address.
  • the identification information includes at least one of the following: a MAC address of the terminal device, a username, and an account number.
  • the server described in this embodiment may be used to perform the technical solution executed by the server in the foregoing method embodiments.
  • the implementation principle and the technical effect are similar.
  • the function of each module may refer to the corresponding description in the method embodiment. No longer.
  • FIG. 6 is a schematic structural diagram of a gateway device according to another embodiment of the present disclosure.
  • the gateway device in this embodiment may include: a memory 61 and a processor 62.
  • the memory 61 is communicatively coupled to the processor 62.
  • the processor 62 may include a central processing unit (CPU), a digital signal processor (DSP), a microcontroller (Microcontroller Unit (MCU), and an application specific integrated circuit (ASIC). Or at least one of a Field-Programmable Gate Array (FPGA).
  • CPU central processing unit
  • DSP digital signal processor
  • MCU microcontroller
  • ASIC application specific integrated circuit
  • FPGA Field-Programmable Gate Array
  • the memory 61 is configured to store program instructions
  • the processor 62 is configured to invoke the program instructions stored in the memory 61 to implement the following:
  • the data forwarding policy includes: a first gateway address and identifier information of the terminal device, where the data forwarding policy is used to indicate that the data of the terminal device needs to be forwarded according to the first gateway address to The virtual gateway device performs value-added service processing;
  • the terminal device After receiving the packet sent by the terminal device, determining, according to the identifier information of the terminal device and the data forwarding policy in the packet, the first gateway address corresponding to the identifier information of the terminal device;
  • the processor 62 is further configured to: before receiving the first gateway address and the data forwarding policy sent by the server, receive the first message sent by the server, where the first message is used to indicate the The physical gateway device re-applies for the gateway address; and sends a second message to the server, the second message being used to request the gateway address of the gateway device.
  • the processor 62 is configured to: encapsulate the first gateway address in the packet, and send a packet encapsulating the first gateway address.
  • the processor 62 is configured to: receive a DHCP message or a PPPOE message sent by the server, where the DHCP message or the PPPOE message includes the data forwarding policy.
  • the first gateway address and the data forwarding policy are included in an option field of the DHCP message.
  • the data forwarding policy further includes: a second gateway address and identifier information of the terminal device that does not need to perform value-added service processing, where the data forwarding policy is further used to indicate that the value-added service processing is not required.
  • the data of the terminal device is forwarded according to the second gateway address.
  • the identification information includes at least one of the following: a media access control MAC address of the terminal device, a username, and an account.
  • the program instructions may be implemented in the form of a software functional unit and can be sold or used as a stand-alone product, which may be any form of computer readable storage medium. Based on such understanding, all or part of the technical solutions of the present application may be embodied in the form of a software product, including a plurality of instructions for causing a computer device, specifically a processor 62, to perform the gateway in various embodiments of the present application. All or part of the steps of the device.
  • the foregoing computer readable storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. The medium of the code.
  • the gateway device described in this embodiment may be used to perform the technical solution executed by the gateway device in the foregoing method embodiments, and the implementation principle and the technical effect are similar.
  • the function of each device may refer to the corresponding description in the method embodiment. I will not repeat them here.
  • FIG. 7 is a schematic structural diagram of a server according to another embodiment of the present disclosure.
  • the server in this embodiment may include: a memory 71 and a processor 72.
  • the memory 71 is communicatively coupled to the processor 72.
  • the processor 72 can include at least one of a CPU, a DSP, an MCU, an ASIC, or an FPGA.
  • the memory 71 is configured to store program instructions
  • the processor 72 is configured to invoke the program instructions stored in the memory 71 to implement the following:
  • the value-added service request includes the identifier information of the terminal device, where the value-added service request is used to request the data of the terminal device to perform value-added service processing;
  • the data forwarding policy includes: the first gateway address and the identifier of the terminal device
  • the data forwarding policy is used to indicate that the data of the terminal device needs to be forwarded to the virtual gateway device according to the first gateway address for value-added service processing;
  • the processor 72 is further configured to send a first message to the physical gateway device before sending the data forwarding policy to the physical gateway device, where the first message is used to indicate the The physical gateway device applies for a gateway address; and receives a second message sent by the physical gateway device, where the second message is used to request a gateway address of the physical gateway device;
  • the processor 72 When the processor 72 sends the data forwarding policy to the physical gateway device, the processor 72 is specifically configured to send the data forwarding policy to the physical gateway device according to the second message.
  • the processor 72 is further configured to establish the first gateway address and the processing center after the first gateway address is allocated to the physical gateway device connected to the terminal device according to the value-added service request. Description Corresponding relationship between the virtual gateway devices of the value-added service; and after transmitting the data forwarding policy to the physical gateway device, receiving a packet encapsulating the first gateway address; and according to the first gateway address encapsulated in the packet And determining, by the first gateway address, a virtual gateway device that processes the value-added service corresponding to the first gateway address; and controlling the virtual gateway device pair The message performs value-added service processing.
  • the processor 72 is specifically configured to: send a DHCP message or a PPPOE message to the physical gateway device, where the DHCP message or the PPPOE message includes the data forwarding policy.
  • the data forwarding policy is included in an option field of the DHCP message.
  • the data forwarding policy further includes: a second gateway address and identifier information of the terminal device that does not need to perform value-added service processing, where the data forwarding policy is further used to indicate that the value-added service processing is not required.
  • the data of the terminal device is forwarded according to the second gateway address.
  • the identification information includes at least one of the following: a MAC address of the terminal device, a username, and an account.
  • the program instructions may be implemented in the form of a software functional unit and can be sold or used as a standalone product, which may be any form of computer readable storage medium. Based on such understanding, all or part of the technical solution of the present application may be embodied in the form of a software product, including a plurality of instructions for causing a computer device, specifically a processor 72, to execute the server in each embodiment of the present application. All or part of the steps.
  • the aforementioned computer readable storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the server described in this embodiment may be used to perform the technical solution executed by the server in the foregoing method embodiments, and the implementation principle and the technical effect are similar.
  • the function of each device may refer to the corresponding description in the method embodiment. No longer.

Abstract

本申请实施例提供一种报文转发控制方法和装置,此方法包括:网关设备接收服务器发送的数据转发策略,数据转发策略包括:第一网关地址和终端设备的标识信息,数据转发策略用于指示终端设备的数据需要根据第一网关地址转发至虚拟网关设备进行增值业务处理;网关设备接收到所述终端设备发送的报文后,网关设备根据报文中的所述终端设备的标识信息以及数据转发策略,确定所述终端设备的标识信息对应的所述第一网关地址;网关设备根据所述第一网关地址,发送所述报文。数据转发策略无需用户人工在物理网关设备上进行配置,而是服务器下发给物理网关设备的,因此,提高了数据转发策略配置效率,也提高了报文转发控制效率。

Description

报文转发控制方法和装置 技术领域
本申请涉及通信技术领域,尤其涉及一种报文转发控制方法和装置。
背景技术
同一家庭网络中的终端设备与互联网之间的数据流可能需要执行增值业务,例如:有些终端设备不需要进行绿色上网过滤,有些终端设备需要进行绿色上网过滤。一般在家庭网络的出口处设置有物理网关设备,该物理网关设备可以配置哪些终端设备需要执行增值业务,而哪些终端设备不需要执行增值业务,当数据流到达该物理网关设备时,该物理网关设备对数据流进行相应处理。
但是,由于家庭网络中的物理网关设备处理能力有限,对有些增值业务的处理性能较差,因此,提出了虚拟网关设备的概念,该虚拟网关设备设置在通信运营商的云端的服务器上,虚拟网关设备的处理性能很强,所以对数据流的增值业务的处理性能更好。因此,需要配置数据转发策略,即用户手动对物理网关设备进行操作设置,以配置哪些终端需要执行增值业务,哪些终端设备不需要执行增值业务,基于上述配置,需要执行增值业务的终端设备的数据需要转发到虚拟网关设备进行增值业务处理,而不需要执行增值业务的终端设备的数据不需要转发到虚拟网关设备。
然而,现有技术中的转发策略需要用户手工在物理网关设备上配置,效率低下。
发明内容
本申请实施例提供一种报文转发控制方法和装置,无需用户手工在物理网关设备上配置数据转发策略,而是由服务器向物理网关设备下发数据转发策略,提高了数据转发策略配置效率。
第一方面,本申请实施例提供一种报文转发控制方法,包括:网关设备接收服务器发送的数据转发策略,该数据转发策略包括:第一网关地址和终端设备的标识信息,数据转发策略用于指示终端设备的数据需要根据第一网关地址转发至虚拟网关设备进行增值业务处理;网关设备接收到终端设备发送的报文后,网关设备根据报文中的终端设备的标识信息以及数据转发策略,确定终端设备的标识信息对应的第一网关地址;然后根据所述第一网关地址,发送报文。
在一种可能的设计,网关设备接收服务器发送的第一网关地址以及数据转发策略之前,还接收服务器发送的第一消息,第一消息用于指示物理网关设备重新申请网关地址;以及向服务器发送第二消息,第二消息用于请求网关设备的网关地址。
在一种可能的设计,网关设备根据第一网关地址发送报文的一种方式为:将第一 网关地址封装在报文中,发送封装第一网关地址的报文。
在一种可能的设计,网关设备接收服务器发送的数据转发策略的一种方式为:接收服务器发送的动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)消息或者基于以太网的点对点通讯协议(Point to Point Protocol Over Ethernet,PPPOE)消息,DHCP消息或者PPPOE消息包括数据转发策略。
在一种可能的设计,所述第一网关地址和所述数据转发策略包括在所述DHCP消息的选项字段中。
在一种可能的设计,所述数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,数据转发策略还用于指示该不需要进行增值业务处理的终端设备的数据根据第二网关地址转发。
在一种可能的设计,标识信息包括以下至少一项:终端设备的媒体访问控制(Media Access Control,MAC)地址、用户名、账号。
第二方面,本申请实施例提供一种报文转发控制方法,包括:服务器接收增值业务请求,增值业务请求包括终端设备的标识信息,增值业务请求用于请求终端设备的数据需要进行增值业务处理;根据增值业务请求,为与终端设备连接的物理网关设备分配第一网关地址,并生成数据转发策略,数据转发策略包括:第一网关地址和终端设备的标识信息,数据转发策略用于指示终端设备的数据需要根据第一网关地址转发至虚拟网关设备进行增值业务处理;然后向物理网关设备发送数据转发策略。
在一种可能的设计,服务器向物理网关设备发送所述数据转发策略之前,还向物理网关设备发送第一消息,第一消息用于指示物理网关设备申请网关地址;接收物理网关设备发送的第二消息,第二消息用于请求物理网关设备的网关地址;
服务器向物理网关设备发送数据转发策略的一种方式为:根据第二消息,向物理网关设备发送数据转发策略。
在一种可能的设计,服务器根据增值业务请求,为与终端设备连接的物理网关设备分配第一网关地址之后,还建立所述第一网关地址与处理所述增值业务的虚拟网关设备之间的对应关系;
服务器向物理网关设备发送所述数据转发策略之后,还接收封装第一网关地址的报文;并根据所述报文中封装的第一网关地址,以及第一网关地址与处理增值业务的虚拟网关设备之间的对应关系,确定第一网关地址对应的处理增值业务的虚拟网关设备;然后控制虚拟网关设备对报文进行增值业务处理。
在一种可能的设计,服务器向物理网关设备发送所述数据转发策略的一种方式为:向物理网关设备发送DHCP消息或者PPPOE消息,DHCP消息或者PPPOE消息包括数据转发策略。
在一种可能的设计,数据转发策略包括在DHCP消息的选项字段中。
在一种可能的设计,数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,数据转发策略还用于指示不需要进行增值业务处理的终端设备的数据根据第二网关地址转发。
在一种可能的设计,标识信息包括以下至少一项:终端设备的MAC地址、用户名、账号。
第三方面,本申请实施例提供一种网关设备,包括:
接收模块,用于接收服务器发送的数据转发策略,数据转发策略包括:第一网关地址和终端设备的标识信息,数据转发策略用于指示终端设备的数据需要根据第一网关地址转发至虚拟网关设备进行增值业务处理;还用于接收终端设备发送的报文;
处理模块,用于接收模块接收到终端设备发送的报文后,根据报文中的终端设备的标识信息以及数据转发策略,确定终端设备的标识信息对应的第一网关地址;
发送模块,还用于根据第一网关地址,发送报文。
在一种可能的设计,接收模块,还用于接收服务器发送的第一消息,第一消息用于指示物理网关设备重新申请网关地址;
所述发送模块,还用于向服务器发送第二消息,第二消息用于请求网关设备的网关地址。
在一种可能的设计,发送模块,具体用于:将第一网关地址封装在报文中,发送封装第一网关地址的报文。
在一种可能的设计,接收模块,具体用于:接收服务器发送的DHCP消息或者PPPOE消息,DHCP消息或者PPPOE消息包括数据转发策略。
在一种可能的设计,第一网关地址和数据转发策略包括在DHCP消息的选项字段中。
在一种可能的设计,数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,数据转发策略还用于指示不需要进行增值业务处理的终端设备的数据根据第二网关地址转发。
在一种可能的设计,标识信息包括以下至少一项:终端设备的MAC地址、用户名、账号。
第四方面,本申请实施例提供一种服务器,包括:
接收模块,用于接收增值业务请求,增值业务请求包括终端设备的标识信息,增值业务请求用于请求终端设备的数据需要进行增值业务处理;
处理模块,用于根据增值业务请求,为与终端设备连接的物理网关设备分配第一网关地址,并生成数据转发策略,数据转发策略包括:第一网关地址和终端设备的标识信息,数据转发策略用于指示终端设备的数据需要根据第一网关地址转发至虚拟网关设备进行增值业务处理;
发送模块,用于向物理网关设备发送数据转发策略。
在一种可能的设计,发送模块,还用于在向物理网关设备发送数据转发策略之前,向物理网关设备发送第一消息,第一消息用于指示物理网关设备申请网关地址;
接收模块,还用于接收物理网关设备发送的第二消息,第二消息用于请求物理网关设备的网关地址;
发送模块在向物理网关设备发送数据转发策略时,具体用于:根据第二消息,向物理网关设备发送数据转发策略。
在一种可能的设计,处理模块,还用于在根据增值业务请求,为与终端设备连接的物理网关设备分配第一网关地址之后,建立第一网关地址与处理增值业务的虚拟网关设备之间的对应关系;
接收模块,还用于在发送模块向物理网关设备发送数据转发策略之后,接收封装第一网关地址的报文;
处理模块,还用于根据报文中封装的第一网关地址,以及第一网关地址与处理增值业务的虚拟网关设备之间的对应关系,确定第一网关地址对应的处理增值业务的虚拟网关设备;以及控制虚拟网关设备对报文进行增值业务处理。
在一种可能的设计,发送模块,具体用于:向物理网关设备发送DHCP消息或者PPPOE消息,DHCP消息或者PPPOE消息包括数据转发策略。
在一种可能的设计,数据转发策略包括在DHCP消息的选项字段中。
在一种可能的设计,数据转发策略不需要进行增值业务处理的终端设备的标识信息和第二网关地址,数据转发策略还用于指示不需要进行增值业务处理的终端设备的数据根据第二网关地址转发。
在一种可能的设计,标识信息包括以下至少一项:终端设备的MAC地址、用户名、账号。
第五方面,本申请实施例提供一种网关设备,包括:存储器和处理器。
所述存储器,用于存储程序指令。
所述处理器,用于调用所述存储器中存储的所述程序指令以实现如第一方面本申请实施例所述的报文转发控制方法。
第六方面,本申请实施例提供一种服务器,包括:存储器和处理器。
所述存储器,用于存储程序指令。
所述处理器,用于调用所述存储器中存储的所述程序指令以实现如第二方面本申请实施例所述的报文转发控制方法。
第七方面,本申请实施例提供一种存储介质,包括:可读存储介质和计算机程序,所述计算机程序用于实现如第一方面本申请实施例所述的报文转发控制方法。
第八方面,本申请实施例提供一种存储介质,包括:可读存储介质和计算机程序,所述计算机程序用于实现如第二方面本申请实施例所述的报文转发控制方法。
第九方面,本申请实施例提供一种程序产品,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,网关设备的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得网关设备实施第一方面本申请实施例所述的报文转发控制方法。
第十方面,本申请实施例提供一种程序产品,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,服务器的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得服务器实施第二方面本申请实施例所述的报文转发控制方法。
综上所述,服务器在接收到增值业务请求后,分配网关地址并生成数据转发策略,并将该数据转发策略发送给终端设备连接的物理网关设备,由物理网关设备在接收到该终端设备发送的报文后,基于该数据转发策略,根据该网关地址发送所述报文,实现了终端设备的数据可被转发至虚拟网关设备进行增值业务处理,并且,本实施例中的数据转发策略无需用户人工在物理网关设备上进行配置,而是服务器下发给物理网关设备的,因此,提高了数据转发策略配置效率,也提高了报文转发控制效率。
附图说明
图1为本申请实施例提供的一种应用场景的示意图;
图2为本申请一实施例提供的报文转发控制方法的流程图;
图3为本申请另一实施例提供的报文转发控制方法的流程图;
图4为本申请一实施例提供的网关设备的结构示意图;
图5为本申请一实施例提供的服务器的结构示意图;
图6为本申请另一实施例提供的网关设备的结构示意图;
图7为本申请另一实施例提供的服务器的结构示意图。
具体实施方式
图1为本申请实施例提供的一种应用场景的示意图,如图1所示,本实施例的应用场景中包括:至少一个终端设备、物理网关设备、转发设备、服务器。其中,图1中以两个终端设备为例示出,且以一个终端设备为手机,另一个终端设备为电脑为例子示出,但是本实施例并不限于此,另外,本实施例中的至少一个终端设备可以均为手机或者电脑等。图1中以物理网关设备为物理家庭网关(Physical Residence Gateway,PRG)为例示出,且至少一个终端设备与PRG处于同一家庭网络中。另外,本实施例中的该服务器设置在云端,可以称为云服务器,而且该服务器中可以配置虚拟家庭网关(Virtual Residence Gateway,VRG)。其中,图1中示出手机的数据经由VRG进行增值业务处理,而电脑的数据无需经由VRG进行增值业务处理。其中,增值业务处理包括但不限于:绿色上网过滤、视频加速等。
结合图1所示的应用场景,对本申请的方案进行描述。
图2为本申请一实施例提供的报文转发控制方法的流程图,如图2所示,本实施例的方法可以包括:
S201、服务器接收增值业务请求。
本实施例中,服务器接收到增值业务请求,该增值业务请求包括终端设备的标识信息,该增值业务请求用于请求该终端设备的数据需要进行增值业务处理。其中,该标识信息用于区分不同的终端设备,例如:该标识信息可以包括以下至少一项:终端设备的MAC地址,用户名,账号等。需要说明的是,该增值业务请求也可以包括多个不同终端设备的标识信息,这表示增值业务请求用于请求该多个不同终端设备也需要进行增值业务处理,每个终端设备与参见下述终端设备的实现方案类似,此处不再赘述。
其中,服务器接收增值业务请求的一种方式为:用户通过一个终端设备(需要说明的是,该终端设备可以是需要进行增值业务处理的终端设备,也可以不是,甚至该终端设备也可以不是该家庭网络中的终端设备)连接到服务器(例如运营商的网页),该运营商的网页中显示有增值业务处理选项,用户通过操作终端设备在该网页中输入需要进行增值业务处理的终端设备的标识信息,从而使得服务器可以接收到增值业务请求。
S202、所述服务器根据所述增值业务请求,为与所述终端设备连接的PRG分配网关地址,并生成数据转发策略。
本实施例中,服务器接收到增值业务请求之后,确定该终端设备的数据需要经由虚拟网关设备进行增值业务处理,因此,需要为与该终端设备连接的PRG分配网关地址,使得PRG为该终端设备的报文封装该网关地址时,该终端设备的数据可以转发至VRG进行增值业务处理,该网关地址也可以认为是VRG的网关地址。所以,本实施例的服务器可以从地址池中为与该终端设备连接的PRG分配网关地址,然后根据该网关地址,生成数据转发策略。其中,该数据转发策略包括:分配的该网关地址以及该终端设备的标识信息,并且数据转发策略用于指示该终端设备的数据需要根据该网关地址转发至虚拟网关设备进行增值业务处理。
S203、服务器向PRG发送所述数据转发策略。
本实施例中,服务器在分配网关地址和生成数据转发策略之后,向与该终端设备连接的PRG发送上述的数据转发策略。相应地,PRG接收到服务器发送的数据转发策略,PRG可以确定该PRG的其中一个网关地址为接收的网关地址,并且根据该数据转发策略可以确定该终端设备的数据需要封装该网关地址,以便转发至虚拟网关设备进行增值业务处理。
在一些实施例中,服务器向PRG发送DHCP消息,所述DHCP消息包括所述数据转发策略。相应地,PRG接收服务器发送的DHCP消息,从DHCP消息获取所述数据转发策略。在一些实施例中,所述数据转发策略包括在所述DHCP消息的选项字段中,例如如下所示,数据转发策略包括如下所述的Acl rule1,即表示MAC地址为0011-1111-1111的终端设备的数据需要根据网关地址为11.11.11.11进行增值业务处理。
Option(XX)pRG NFV Service
Length:XXX
Acl rule1:MAC==0011-1111-1111
Gateway:11.11.11.11
在一些实施例中,服务器向PRG发送PPPOE消息,所述PPPOE消息包括所述数据转发策略。相应地,PRG接收服务器发送的PPPOE消息,从PPPOE消息获取所述数据转发策略。
S204、PRG接收终端设备发送的报文。
S205、PRG根据所述报文中的所述终端设备的标识信息以及所述数据转发策略,确定所述终端设备的标识信息对应的所述网关地址。
本实施例中,PRG接收终端设备发送的报文,而且该终端设备为数据转发策略中指示的数据需要进行增值业务处理的终端设备,例如:该报文中包括发送该报文的终端设备的标识信息,如果该报文中包括的终端设备的标识信息与数据转发策略中指示的终端设备的标识信息相同,则PRG确定该报文中的数据需要进行增值业务处理。然后,PRG根据该终端设备的标识信息以及该数据转发策略,确定该终端设备对应的网关地址。
S206、PRG根据所述网关地址,发送所述报文。
本实施例中,PRG根据该网关地址,发送所述报文,使得该报文转发至VRG进行增值业务处理。
本实施例中,服务器在接收到增值业务请求后,分配网关地址并生成数据转发策略,并将该数据转发策略发送给终端设备连接的PRG,由PRG在接收到该终端设备发送的报文后,基于该数据转发策略,根据该网关地址发送所述报文,实现了终端设备的数据可被转发至VRG进行增值业务处理,并且,本实施例中的数据转发策略无需用户人工在PRG上进行配置,而是服务器下发给PRG的,因此,提高了数据转发策略配置效率。
图3为本申请另一实施例提供的报文转发控制方法的流程图,如图3所示,本实施例以服务器为DHCP服务器为例,本实施例的方法可以包括:
S301、DHCP服务器接收增值业务请求。
S302、所述DHCP服务器根据所述增值业务请求,为与所述终端设备连接的PRG分配网关地址,并生成数据转发策略。
本实施例中,S301和S302的具体实现过程可以参见图2所示实施例中的相关描述,此处不再赘述。
S303、所述DHCP服务器建立所述网关地址与处理所述增值业务的VRG之间的对应关系。
本实施例中,DHCP服务器还建立该网关地址与处理该增值业务的VRG之间的对应关系,以便DHCP服务器在接收到封装有该网关地址的报文时,根据该对应关系,由该VRG对该报文进行增值业务处理。
本实施例中,DHCP服务器为PRG分配网关地址并生成数据转发策略之后,在一些实施例中,DHCP服务器可以主动向PRG下发数据转发策略。而在另一些实施例中,DHCP服务器可以在接收PRG发送的请求之后再下发数据转发策略,具体实现过程可以见如下所述。
S304、DHCP服务器向所述PRG发送DHCP强制更新消息。
本实施例中,DHCP服务器向PRG发送第一消息,该第一消息用于指示所述PRG重新申请网关地址。相应地,PRG接收到DHCP服务器发送的第一消息,根据该第一消息,确定需要重新申请网关地址。
在一些实施例中,上述的第一消息为DHCP强制更新消息(DHCP force renew消息)。
S305、PRG根据DHCP强制更新消息,向DHCP服务器发送DHCP请求消息。
本实施例中,PRG根据第一消息,确定需要重新申请网关地址后,向服务器发送第二消息,该第二消息用于请求该PRG的网关地址。
在一些实施例中,上述的第二消息为DHCP请求消息(DHCP request消息)。
S306、DHCP服务器根据DHCP请求消息,向PRG发送DHCP应答消息。
本实施例中,DHCP服务器根据接收的第二消息(例如DHCP request消息),确定需要向PRG发送分配的网关地址。然后DHCP服务器向PRG发送数据转发策略,在一些实施例中,DHCP服务器向PRG发送DHCP应答消息(DHCP offer消息),该DHCP offer消息包括数据转发策略。
S307、PRG接收终端设备发送的报文。
S308、PRG根据所述报文中的所述终端设备的标识信息以及所述数据转发策略,确定所述终端设备的标识信息对应的所述网关地址。
本实施例中,S307和S308的具体实现过程可以参见图2所示实施例中的相关描述,此处不再赘述。
S309、PRG将所述网关地址封装在所述报文中,发送封装所述网关地址的报文。
本实施例中,PRG在确定该终端设备的标识信息对应的网关地址之后,将所述网关地址封装在所述报文中,并发送封装所述网关地址的报文。由于该报文中封装有所述网关地址,因此,该报文会被转发设备转发至云端的DHCP服务器中。
S310、所述DHCP服务器接收封装所述网关地址的报文。
S311、所述DHCP服务器根据所述报文中封装的网关地址,以及网关地址与处理增值业务的VRG之间的对应关系,确定所述网关地址对应的处理所述增值业务的VRG。
本实施例中,服务器接收封装所述网关地址的报文,根据该报文中封装的网关地址,以及DHCP服务器建立的网关地址与处理增值业务的VRG之间的对应关系,确定该网关地址对应的处理增值业务的VRG。
S312、所述DHCP服务器控制所述VRG对所述报文进行增值业务处理。
本实施例中,VRG是设置在DHCP服务器上的虚拟网关设备,因此,DHCP服务器可以控制VRG对该报文进行增值业务处理,在完成增值业务处理之后,DHCP服务器发送该增值业务处理后的报文,例如发送至转发设备,由转发设备发送至互联网等。
本实施例中,DHCP服务器在接收到增值业务请求后,分配网关地址并生成数据转发策略,并将数据转发策略包括在DHCP消息中发送给终端设备连接的PRG,由PRG在接收到该终端设备发送的报文后,根据该网关地址发送所述报文,实现了终端设备的数据可被转发至VRG进行增值业务处理,并且,本实施例中的数据转发策略无需用户人工在PRG上进行配置,另外,数据转发策略包括在DHCP消息的选项字段中,因此,数据转发策略可以通过DHCP消息由DHCP服务器下发给PRG,从而提高了数据转发策略配置效率。
在上述各实施例的基础上,如果家庭网络中包括:N个终端设备,N为大于1的整数,而数据需要进行增值业务处理的终端设备的个数为N1个,而数据不需要进行增值业务处理的终端设备的个数为N2个,N1+N2=N,N1和N2分别为大于0的整数。若以上述各实施例中服务器为PRG分配的网关地址称为第一网关地址,则服务器根据该N1个终端设备为PRG分配第一网关地址。由于N2个终端设备的数据不需要进行增值业务处理,因此,服务器还根据N2个终端设备为PRG分配网关地址,该网关地址称为第二网关地址,并将该第二网关地址发送给PRG,该N2个终端设备的报文根据该第二网关地址转发时不会被转发至VRG进行增值业务处理。由此可知,服务器为PRG分配了两个网关地址,一个为第一网关地址,另一个为第二网关地址,其中,该第一网关地址与N1个终端设备对应,该第二网关地址与N2个终端设备对应,而且,服务器发送给PRG的该数据转发策略中还包括第二网关地址以及该N2个终端设备的标识信息,并且该数据转发策略还用于指示不需要进行增值业务处理的终端设备的数 据根据所述第二网关地址转发。如果PRG接收的报文是N1个终端设备中任一终端设备发送的,则PRG根据第一网关地址转发该报文,则该报文会被转发至VRG进行增值业务处理。如果PRG接收的报文是N2个终端设备中任一终端设备发送的,则PRG根据第二网关地址转发该报文,则该报文不会被转发至VRG进行增值业务处理。
其中,举例来说,PRG连接了两个终端设备,一个终端设备的MAC地址为0011-1111-1111,另一个终端设备的MAC地址为0022-2222-2222,其中,MAC地址为0011-1111-1111的终端设备的数据需要进行增值业务处理,例如绿色上网过滤。而MAC地址为0022-2222-2222的终端设备的数据不需要进行增值业务处理。在服务器接收到增值业务请求之后,该增值业务请求用于请求MAC地址为0011-1111-1111的终端设备需要进行增值业务处理,根据MAC地址为0011-1111-1111的终端设备,为该PRG分配网关地址为11.11.11.11,该11.11.11.11为上述的第一网关地址,并建立该网关地址11.11.11.11与处理增值业务处理的VRG之间的对应关系。另外,PRG还连接MAC地址为0022-2222-2222的终端设备,而且MAC地址为0022-2222-2222的终端设备不需要进行增值业务处理,服务器根据该MAC地址为0022-2222-2222的终端设备,还为PRG分配网关地址22.22.22.22,该22.22.22.22为上述的第二网关地址。因此,服务器为PRG分配的网关地址为两个,而且网关地址11.11.11.11用于转发MAC地址为0011-1111-1111的终端设备的数据,网关地址22.22.22.22用于转发MAC地址为0022-2222-2222的终端设备的数据。然后,服务器向PRG发送数据转发策略,该数据转发策略包括:MAC地址0011-1111-1111和0022-2222-2222,网关地址11.11.11.11和22.22.22.22,并且该数据转发策略用于指示MAC地址0011-1111-1111的终端设备的数据根据网关地址11.11.11.11转发至VRG进行增值业务处理,以及MAC地址0022-2222-2222的终端设备的数据根据网关地址22.22.22.22转发。其中,该数据转发策略可以包括在DHCP消息中,例如如下所示:
Option(XX)pRG NFV Service
Length:XXX
Acl rule1:MAC==0011-1111-1111
Gateway:11.11.11.11
Acl rule2:MAC==0022-2222-2222
Gateway:22.22.22.22
其中,数据转发策略包括如上所示的Acl rule1和Acl rule2。
相应地,PRG接收到数据转发策略之后,根据Acl rule1,将包括MAC地址为0011-1111-1111的报文根据网关地址为11.11.11.11进行转发,根据Acl rule2,将包括MAC地址为0022-2222-2222的报文根据网关地址为22.22.22.22进行转发。
图4为本申请一实施例提供的网关设备的结构示意图,如图4所示,本实施例的网关设备可以包括:接收模块41、处理模块42和发送模块43。
接收模块41,用于接收服务器发送的数据转发策略,所述数据转发策略包括:第一网关地址和终端设备的标识信息,所述数据转发策略用于指示所述终端设备的数据需要根据所述第一网关地址转发至虚拟网关设备进行增值业务处理;
所述接收模块41,还用于接收所述终端设备发送的报文;
处理模块42,用于所述接收模块41接收到所述终端设备发送的报文后,根据所述报文中的所述终端设备的标识信息以及所述数据转发策略,确定所述终端设备的标识信息对应的所述第一网关地址;
发送模块43,还用于根据所述第一网关地址,发送所述报文。
在一些实施例中,所述接收模块41,还用于接收所述服务器发送的第一消息,所述第一消息用于指示所述物理网关设备重新申请网关地址;
所述发送模块43,还用于向所述服务器发送第二消息,所述第二消息用于请求所述网关设备的网关地址。
在一些实施例中,所述发送模块43,具体用于:将所述第一网关地址封装在所述报文中,发送封装所述第一网关地址的报文。
在一些实施例中,所述接收模块41,具体用于:接收所述服务器发送的DHCP消息或者PPPOE消息,所述DHCP消息或者PPPOE消息包括所述数据转发策略。
在一些实施例中,所述第一网关地址和所述数据转发策略包括在所述DHCP消息的选项字段中。
在一些实施例中,所述数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,所述数据转发策略还用于指示所述不需要进行增值业务处理的终端设备的数据根据所述第二网关地址转发。
在一些实施例中,所述标识信息包括以下至少一项:终端设备的MAC地址、用户名、账号。
本实施例以上所述的网关设备,可以用于执行上述各方法实施例中网关设备执行的技术方案,其实现原理和技术效果类似,其中各个模块的功能可以参考方法实施例中相应的描述,此处不再赘述。
图5为本申请一实施例提供的服务器的结构示意图,如图5所示,本实施例的服务器可以包括:接收模块51、处理模块52和发送模块53。
接收模块51,用于接收增值业务请求,所述增值业务请求包括终端设备的标识信息,所述增值业务请求用于请求所述终端设备的数据需要进行增值业务处理;
处理模块52,用于根据所述增值业务请求,为与所述终端设备连接的物理网关设备分配第一网关地址,并生成数据转发策略,所述数据转发策略包括:所述第一网关地址和所述终端设备的标识信息,所述数据转发策略用于指示所述终端设备的数据需要根据所述第一网关地址转发至虚拟网关设备进行增值业务处理;
发送模块53,用于向所述物理网关设备发送所述数据转发策略。
在一些实施例中,所述发送模块53,还用于在向所述物理网关设备发送所述数据转发策略之前,向所述物理网关设备发送第一消息,所述第一消息用于指示所述物理网关设备申请网关地址;
所述接收模块51,还用于接收所述物理网关设备发送的第二消息,所述第二消息用于请求所述物理网关设备的网关地址;
所述发送模块53在向所述物理网关设备发送所述数据转发策略时,具体用于:根据所述第二消息,向所述物理网关设备发送所述数据转发策略。
在一些实施例中,所述处理模块52,还用于在根据所述增值业务请求,为与所述 终端设备连接的物理网关设备分配第一网关地址之后,建立所述第一网关地址与处理所述增值业务的虚拟网关设备之间的对应关系;
所述接收模块51,还用于在所述发送模块53向所述物理网关设备发送所述数据转发策略之后,接收封装第一网关地址的报文;
所述处理模块52,还用于根据所述报文中封装的第一网关地址,以及所述第一网关地址与处理所述增值业务的虚拟网关设备之间的对应关系,确定所述第一网关地址对应的处理所述增值业务的虚拟网关设备;以及控制所述虚拟网关设备对所述报文进行增值业务处理。
在一些实施例中,所述发送模块53,具体用于:向所述物理网关设备发送DHCP消息或者PPPOE消息,所述DHCP消息或者PPPOE消息包括所述数据转发策略。
在一些实施例中所述数据转发策略包括在所述DHCP消息的选项字段中。
在一些实施例中所述数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,所述数据转发策略还用于指示所述不需要进行增值业务处理的终端设备的数据根据所述第二网关地址转发。
在一些实施例中所述标识信息包括以下至少一项:终端设备的MAC地址、用户名、账号。
本实施例以上所述的服务器,可以用于执行上述各方法实施例中服务器执行的技术方案,其实现原理和技术效果类似,其中各个模块的功能可以参考方法实施例中相应的描述,此处不再赘述。
图6为本申请另一实施例提供的网关设备的结构示意图,如图6所示,本实施例的网关设备可以包括:存储器61和处理器62。存储器61与处理器62通信连接。所述处理器62可以包括中央处理单元(Central Processing Unit,CPU)、数字信号处理器(Digital Signal Processor,DSP)、微控制器(Microcontroller Unit,MCU)、专用集成电路(Application Specific Integrated Circuit,ASIC)或现场可编程逻辑门阵列(Field-Programmable Gate Array,FPGA)中的至少一个。
所述存储器61,用于存储程序指令;
所述处理器62,用于调用所述存储器61中存储的所述程序指令以实现如下:
接收服务器发送的数据转发策略,所述数据转发策略包括:第一网关地址和终端设备的标识信息,所述数据转发策略用于指示所述终端设备的数据需要根据所述第一网关地址转发至虚拟网关设备进行增值业务处理;
接收到所述终端设备发送的报文后,根据所述报文中的所述终端设备的标识信息以及所述数据转发策略,确定所述终端设备的标识信息对应的所述第一网关地址;
根据所述第一网关地址,发送所述报文。
在一些实施例中,所述处理器62,还用于在接收服务器发送的第一网关地址以及数据转发策略之前,接收所述服务器发送的第一消息,所述第一消息用于指示所述物理网关设备重新申请网关地址;以及向所述服务器发送第二消息,所述第二消息用于请求所述网关设备的网关地址。
在一些实施例中,所述处理器62,具体用于:将所述第一网关地址封装在所述报文中,发送封装所述第一网关地址的报文。
在一些实施例中,所述处理器62,具体用于:接收所述服务器发送的DHCP消息或者PPPOE消息,所述DHCP消息或者PPPOE消息包括所述数据转发策略。
在一些实施例中,所述第一网关地址和所述数据转发策略包括在所述DHCP消息的选项字段中。
在一些实施例中,所述数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,所述数据转发策略还用于指示所述不需要进行增值业务处理的终端设备的数据根据所述第二网关地址转发。
在一些实施例中,所述标识信息包括以下至少一项:终端设备的媒体访问控制MAC地址、用户名、账号。
所述程序指令可以以软件功能单元的形式实现并能够作为独立的产品销售或使用,所述存储器61可以是任意形式的计算机可读取存储介质。基于这样的理解,本申请的技术方案的全部或部分可以以软件产品的形式体现出来,包括若干指令用以使得一台计算机设备,具体可以是处理器62,来执行本申请各个实施例中网关设备的全部或部分步骤。而前述的计算机可读存储介质包括:U盘、移动硬盘、只读内存(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
本实施例以上所述的网关设备,可以用于执行上述各方法实施例中网关设备执行的技术方案,其实现原理和技术效果类似,其中各个器件的功能可以参考方法实施例中相应的描述,此处不再赘述。
图7为本申请另一实施例提供的服务器的结构示意图,如图7所示,本实施例的服务器可以包括:存储器71和处理器72。存储器71与处理器72通信连接。所述处理器72可以包括CPU、DSP、MCU、ASIC或FPGA中的至少一个。
所述存储器71,用于存储程序指令;
所述处理器72,用于调用所述存储器71中存储的所述程序指令以实现如下:
接收增值业务请求,所述增值业务请求包括终端设备的标识信息,所述增值业务请求用于请求所述终端设备的数据需要进行增值业务处理;
根据所述增值业务请求,为与所述终端设备连接的物理网关设备分配第一网关地址,并生成数据转发策略,所述数据转发策略包括:所述第一网关地址和所述终端设备的标识信息,所述数据转发策略用于指示所述终端设备的数据需要根据所述第一网关地址转发至虚拟网关设备进行增值业务处理;
向所述物理网关设备发送所述数据转发策略。
在一些实施例中,所述处理器72还用于在向所述物理网关设备发送所述数据转发策略之前,向所述物理网关设备发送第一消息,所述第一消息用于指示所述物理网关设备申请网关地址;以及接收所述物理网关设备发送的第二消息,所述第二消息用于请求所述物理网关设备的网关地址;
所述处理器72在向所述物理网关设备发送所述数据转发策略时,具体用于:根据所述第二消息,向所述物理网关设备发送所述数据转发策略。
在一些实施例中,所述处理器72还用于在根据所述增值业务请求,为与所述终端设备连接的物理网关设备分配第一网关地址之后,建立所述第一网关地址与处理所述 增值业务的虚拟网关设备之间的对应关系;以及在向所述物理网关设备发送所述数据转发策略之后,接收封装第一网关地址的报文;根据所述报文中封装的第一网关地址,以及所述第一网关地址与处理所述增值业务的虚拟网关设备之间的对应关系,确定所述第一网关地址对应的处理所述增值业务的虚拟网关设备;控制所述虚拟网关设备对所述报文进行增值业务处理。
在一些实施例中,所述处理器72,具体用于:向所述物理网关设备发送DHCP消息或者PPPOE消息,所述DHCP消息或者PPPOE消息包括所述数据转发策略。
在一些实施例中,所述数据转发策略包括在所述DHCP消息的选项字段中。
在一些实施例中,所述数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,所述数据转发策略还用于指示所述不需要进行增值业务处理的终端设备的数据根据所述第二网关地址转发。
在一些实施例中,所述标识信息包括以下至少一项:终端设备的MAC地址、用户名、账号。
所述程序指令可以以软件功能单元的形式实现并能够作为独立的产品销售或使用,所述存储器71可以是任意形式的计算机可读取存储介质。基于这样的理解,本申请的技术方案的全部或部分可以以软件产品的形式体现出来,包括若干指令用以使得一台计算机设备,具体可以是处理器72,来执行本申请各个实施例中服务器的全部或部分步骤。而前述的计算机可读存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
本实施例以上所述的服务器,可以用于执行上述各方法实施例中服务器执行的技术方案,其实现原理和技术效果类似,其中各个器件的功能可以参考方法实施例中相应的描述,此处不再赘述。

Claims (34)

  1. 一种报文转发控制方法,其特征在于,包括:
    网关设备接收服务器发送的数据转发策略,所述数据转发策略包括:第一网关地址和终端设备的标识信息,所述数据转发策略用于指示所述终端设备的数据需要根据所述第一网关地址转发至虚拟网关设备进行增值业务处理;
    所述网关设备接收到所述终端设备发送的报文后,根据所述报文中的所述终端设备的标识信息以及所述数据转发策略,确定所述终端设备的标识信息对应的所述第一网关地址;
    所述网关设备根据所述第一网关地址,发送所述报文。
  2. 根据权利要求1所述的方法,其特征在于,所述网关设备接收服务器发送的第一网关地址以及数据转发策略之前,还包括:
    所述网关设备接收所述服务器发送的第一消息,所述第一消息用于指示所述物理网关设备重新申请网关地址;
    所述网关设备向所述服务器发送第二消息,所述第二消息用于请求所述网关设备的网关地址。
  3. 根据权利要求1或2所述的方法,其特征在于,所述网关设备根据所述第一网关地址,发送所述报文,包括:
    所述网关设备将所述第一网关地址封装在所述报文中,发送封装所述第一网关地址的报文。
  4. 根据权利要求1-3任意一项所述的方法,其特征在于,所述网关设备接收服务器发送的数据转发策略,包括:
    所述网关设备接收所述服务器发送的动态主机配置协议DHCP消息或者基于以太网的点对点通讯协议PPPOE消息,所述DHCP消息或者所述PPPOE消息包括所述数据转发策略。
  5. 根据权利要求4所述的方法,其特征在于,所述第一网关地址和所述数据转发策略包括在所述DHCP消息的选项字段中。
  6. 根据权利要求1-5任意一项所述的方法,其特征在于,所述数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,所述数据转发策略还用于指示所述不需要进行增值业务处理的终端设备的数据根据所述第二网关地址转发。
  7. 根据权利要求1-6任意一项所述的方法,其特征在于,所述标识信息包括以下至少一项:终端设备的媒体访问控制MAC地址、用户名、账号。
  8. 一种报文转发控制方法,其特征在于,包括:
    服务器接收增值业务请求,所述增值业务请求包括终端设备的标识信息,所述增值业务请求用于请求所述终端设备的数据需要进行增值业务处理;
    所述服务器根据所述增值业务请求,为与所述终端设备连接的物理网关设备分配第一网关地址,并生成数据转发策略,所述数据转发策略包括:所述第一网关地址和所述终端设备的标识信息,所述数据转发策略用于指示所述终端设备的数据需要根据 所述第一网关地址转发至虚拟网关设备进行增值业务处理;
    所述服务器向所述物理网关设备发送所述数据转发策略。
  9. 根据权利要求8所述的方法,其特征在于,所述服务器向所述物理网关设备发送所述数据转发策略之前,还包括:
    所述服务器向所述物理网关设备发送第一消息,所述第一消息用于指示所述物理网关设备申请网关地址;
    所述服务器接收所述物理网关设备发送的第二消息,所述第二消息用于请求所述物理网关设备的网关地址;
    所述服务器向所述物理网关设备发送所述数据转发策略,包括:
    所述服务器根据所述第二消息,向所述物理网关设备发送所述数据转发策略。
  10. 根据权利要求8或9所述的方法,其特征在于,所述服务器根据所述增值业务请求,为与所述终端设备连接的物理网关设备分配第一网关地址之后,还包括:
    所述服务器建立所述第一网关地址与处理所述增值业务的虚拟网关设备之间的对应关系;
    所述服务器向所述物理网关设备发送所述数据转发策略之后,还包括:
    所述服务器接收封装第一网关地址的报文;
    所述服务器根据所述报文中封装的第一网关地址,以及所述第一网关地址与处理所述增值业务的虚拟网关设备之间的对应关系,确定所述第一网关地址对应的处理所述增值业务的虚拟网关设备;
    所述服务器控制所述虚拟网关设备对所述报文进行增值业务处理。
  11. 根据权利要求8-10任意一项所述的方法,其特征在于,所述服务器向所述物理网关设备发送所述数据转发策略,包括:
    所述服务器向所述物理网关设备发送动态主机配置协议DHCP消息或者基于以太网的点对点通讯协议PPPOE消息,所述DHCP消息或者所述PPPOE消息包括所述数据转发策略。
  12. 根据权利要求11所述的方法,其特征在于,所述数据转发策略包括在所述DHCP消息的选项字段中。
  13. 根据权利要求8-12任意一项所述的方法,其特征在于,所述数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,所述数据转发策略还用于指示所述不需要进行增值业务处理的终端设备的数据根据所述第二网关地址转发。
  14. 根据权利要求8-13任意一项所述的方法,其特征在于,所述标识信息包括以下至少一项:终端设备的媒体访问控制MAC地址、用户名、账号。
  15. 一种网关设备,其特征在于,包括:
    接收模块,用于接收服务器发送的数据转发策略,所述数据转发策略包括:第一网关地址和终端设备的标识信息,所述数据转发策略用于指示所述终端设备的数据需要根据所述第一网关地址转发至虚拟网关设备进行增值业务处理;
    所述接收模块,还用于接收所述终端设备发送的报文;
    处理模块,用于所述接收模块接收到所述终端设备发送的报文后,根据所述报文 中的所述终端设备的标识信息以及所述数据转发策略,确定所述终端设备的标识信息对应的所述第一网关地址;
    发送模块,还用于根据所述第一网关地址,发送所述报文。
  16. 根据权利要求15所述的网关设备,其特征在于,所述接收模块,还用于接收所述服务器发送的第一消息,所述第一消息用于指示所述物理网关设备重新申请网关地址;
    所述发送模块,还用于向所述服务器发送第二消息,所述第二消息用于请求所述网关设备的网关地址。
  17. 根据权利要求15或16所述的网关设备,其特征在于,所述发送模块,具体用于:将所述第一网关地址封装在所述报文中,发送封装所述第一网关地址的报文。
  18. 根据权利要求15-17任意一项所述的网关设备,其特征在于,所述接收模块,具体用于:接收所述服务器发送的动态主机配置协议DHCP消息或者基于以太网的点对点通讯协议PPPOE消息,所述DHCP消息或者所述PPPOE消息包括所述数据转发策略。
  19. 根据权利要求18所述的网关设备,其特征在于,所述第一网关地址和所述数据转发策略包括在所述DHCP消息的选项字段中。
  20. 根据权利要求15-19任意一项所述的网关设备,其特征在于,所述数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,所述数据转发策略还用于指示所述不需要进行增值业务处理的终端设备的数据根据所述第二网关地址转发。
  21. 根据权利要求15-20任意一项所述的网关设备,其特征在于,所述标识信息包括以下至少一项:终端设备的媒体访问控制MAC地址、用户名、账号。
  22. 一种服务器,其特征在于,包括:
    接收模块,用于接收增值业务请求,所述增值业务请求包括终端设备的标识信息,所述增值业务请求用于请求所述终端设备的数据需要进行增值业务处理;
    处理模块,用于根据所述增值业务请求,为与所述终端设备连接的物理网关设备分配第一网关地址,并生成数据转发策略,所述数据转发策略包括:所述第一网关地址和所述终端设备的标识信息,所述数据转发策略用于指示所述终端设备的数据需要根据所述第一网关地址转发至虚拟网关设备进行增值业务处理;
    发送模块,用于向所述物理网关设备发送所述数据转发策略。
  23. 根据权利要求22所述的服务器,其特征在于,所述发送模块,还用于在向所述物理网关设备发送所述数据转发策略之前,向所述物理网关设备发送第一消息,所述第一消息用于指示所述物理网关设备申请网关地址;
    所述接收模块,还用于接收所述物理网关设备发送的第二消息,所述第二消息用于请求所述物理网关设备的网关地址;
    所述发送模块在向所述物理网关设备发送所述数据转发策略时,具体用于:根据所述第二消息,向所述物理网关设备发送所述数据转发策略。
  24. 根据权利要求22或23所述的服务器,其特征在于,所述处理模块,还用于在根据所述增值业务请求,为与所述终端设备连接的物理网关设备分配第一网关地址 之后,建立所述第一网关地址与处理所述增值业务的虚拟网关设备之间的对应关系;
    所述接收模块,还用于在所述发送模块向所述物理网关设备发送所述数据转发策略之后,接收封装第一网关地址的报文;
    所述处理模块,还用于根据所述报文中封装的第一网关地址,以及所述第一网关地址与处理所述增值业务的虚拟网关设备之间的对应关系,确定所述第一网关地址对应的处理所述增值业务的虚拟网关设备;以及控制所述虚拟网关设备对所述报文进行增值业务处理。
  25. 根据权利要求22-24任意一项所述的服务器,其特征在于,所述发送模块,具体用于:向所述物理网关设备发送动态主机配置协议DHCP消息或者基于以太网的点对点通讯协议PPPOE消息,所述DHCP消息或者所述PPPOE消息包括所述数据转发策略。
  26. 根据权利要求25所述的服务器,其特征在于,所述数据转发策略包括在所述DHCP消息的选项字段中。
  27. 根据权利要求22-26任意一项所述的服务器,其特征在于,所述数据转发策略还包括:第二网关地址和不需要进行增值业务处理的终端设备的标识信息,所述数据转发策略还用于指示所述不需要进行增值业务处理的终端设备的数据根据所述第二网关地址转发。
  28. 根据权利要求22-27任意一项所述的服务器,其特征在于,所述标识信息包括以下至少一项:终端设备的媒体访问控制MAC地址、用户名、账号。
  29. 一种网关设备,其特征在于,包括:存储器和处理器;
    所述存储器,用于存储程序指令;
    所述处理器,用于调用所述存储器中存储的所述程序指令以实现如权利要求1-7任意一项所述的报文转发控制方法。
  30. 一种服务器,其特征在于,包括:存储器和处理器;
    所述存储器,用于存储程序指令;
    所述处理器,用于调用所述存储器中存储的所述程序指令以实现如权利要求8-14任意一项所述的报文转发控制方法。
  31. 一种存储介质,其特征在于,包括:可读存储介质和计算机程序,所述计算机程序用于实现如权利要求1-7任意一项所述的报文转发控制方法。
  32. 一种存储介质,其特征在于,包括:可读存储介质和计算机程序,所述计算机程序用于实现如权利要求8-14任意一项所述的报文转发控制方法。
  33. 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,网关设备的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得网关设备实施权利要求1-7任意一项所述的报文转发控制方法。
  34. 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,服务器的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得服务器实施权利要求8-14任意一项所述的报文转发控制方法。
PCT/CN2017/104527 2017-09-29 2017-09-29 报文转发控制方法和装置 WO2019061340A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/104527 WO2019061340A1 (zh) 2017-09-29 2017-09-29 报文转发控制方法和装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/104527 WO2019061340A1 (zh) 2017-09-29 2017-09-29 报文转发控制方法和装置

Publications (1)

Publication Number Publication Date
WO2019061340A1 true WO2019061340A1 (zh) 2019-04-04

Family

ID=65900181

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104527 WO2019061340A1 (zh) 2017-09-29 2017-09-29 报文转发控制方法和装置

Country Status (1)

Country Link
WO (1) WO2019061340A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009146621A1 (zh) * 2008-06-04 2009-12-10 华为技术有限公司 数据处理方法及宽带网络网关、策略控制器和接入设备
CN102098649A (zh) * 2010-12-09 2011-06-15 成都市华为赛门铁克科技有限公司 基于策略计费控制系统的增值业务处理方法、装置及系统
CN102256348A (zh) * 2010-05-21 2011-11-23 华为技术有限公司 一种上行消息的路由方法、装置及系统
CN106533890A (zh) * 2016-12-30 2017-03-22 华为技术有限公司 一种报文处理方法、装置及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009146621A1 (zh) * 2008-06-04 2009-12-10 华为技术有限公司 数据处理方法及宽带网络网关、策略控制器和接入设备
CN102256348A (zh) * 2010-05-21 2011-11-23 华为技术有限公司 一种上行消息的路由方法、装置及系统
CN102098649A (zh) * 2010-12-09 2011-06-15 成都市华为赛门铁克科技有限公司 基于策略计费控制系统的增值业务处理方法、装置及系统
CN106533890A (zh) * 2016-12-30 2017-03-22 华为技术有限公司 一种报文处理方法、装置及系统

Similar Documents

Publication Publication Date Title
JP5351338B2 (ja) 無線通信ネットワークのための方法、移動局およびネットワークシステム
US9906491B2 (en) Improving transmission efficiency of data frames by using shorter addresses in the frame header
JP7282146B2 (ja) Brasシステムベースのパケットカプセル化方法および装置
CN108432194B (zh) 一种拥塞处理的方法、主机及系统
US11240198B2 (en) Session management method and apparatus
US20160285820A1 (en) Method for processing address resolution protocol message, switch, and controller
US10348680B2 (en) UDP-based control command transmission method, sender and receiver
CN111031078B (zh) 一种通信方法及装置
WO2011150883A2 (zh) 一种终端批量升级方法及装置
CN108667888B (zh) 一种负载均衡方法和装置
EP4024779A1 (en) Communication method, device and system
US20200274948A1 (en) Service flow configuration method and apparatus
US20160246638A1 (en) Setting up a virtual machine for an ip device
US10972356B2 (en) Method for selecting negotiation counterpart, method for responding to discovery message, and related apparatus
CN107547684B (zh) 一种IPv6地址分配方法和装置
WO2019061340A1 (zh) 报文转发控制方法和装置
WO2014169590A1 (zh) 一种数据业务通信方法、设备及系统
CN114268591B (zh) 数据分流方法和装置
JP6256471B2 (ja) 通信装置、通信方法、及びプログラム
US20200252341A1 (en) Service processing method, apparatus, and system
CN102739814B (zh) 一种建立动态主机配置协议窥探绑定表的方法及系统
WO2023005620A1 (zh) 报文处理方法、装置及通信系统
WO2023056784A1 (zh) 数据收集方法、通信装置及通信系统
CN108234362B (zh) Vxlan报文加速转发方法和系统、vnf和nfvi
CN115460143A (zh) 报文的处理方法、装置及电子设备

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

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

Country of ref document: EP

Kind code of ref document: A1