CN115665095A - Message processing method, device and system and computer readable storage medium - Google Patents

Message processing method, device and system and computer readable storage medium Download PDF

Info

Publication number
CN115665095A
CN115665095A CN202111016498.7A CN202111016498A CN115665095A CN 115665095 A CN115665095 A CN 115665095A CN 202111016498 A CN202111016498 A CN 202111016498A CN 115665095 A CN115665095 A CN 115665095A
Authority
CN
China
Prior art keywords
lease
message
terminal device
packet
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111016498.7A
Other languages
Chinese (zh)
Inventor
李娟�
余舟毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP22836746.2A priority Critical patent/EP4358476A1/en
Priority to PCT/CN2022/101308 priority patent/WO2023279992A1/en
Publication of CN115665095A publication Critical patent/CN115665095A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a message processing method, a device, a system and a computer readable storage medium, and relates to the technical field of communication. The method is applied to the UP equipment of the virtual broadband network gateway, and comprises the following steps: the method comprises the steps that UP equipment receives a first message sent by CP equipment, wherein the first message carries first indication information, and the first indication information is used for indicating the UP equipment to carry out online management on terminal equipment based on a virtual broadband access gateway access network; determining an agent lease of a first terminal device based on a first message, wherein the first terminal device is a terminal device based on a virtual broadband access gateway access network; and based on the first indication information, performing online management on the first terminal equipment according to the agent lease of the first terminal equipment. The method can realize the online management of the first terminal device without the UP device passing through the CP device.

Description

Message processing method, device and system and computer readable storage medium
The present application claims priority of chinese patent application No. 202110772864.5 entitled "a DHCP subscriber online processing method and network device" filed on 7/8/2021, the entire contents of which are incorporated herein by reference.
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and a computer-readable storage medium for processing a packet.
Background
A Broadband Network Gateway (BNG) is a bridge for a terminal device to access a broadband network. The BNG is mainly used for managing a session initiated by a terminal device, forwarding traffic of the terminal device, and the like. With the development of Software Defined Networking (SDN) technology and Network Function Virtualization (NFV) technology, the forwarding function and the control function of the BNG need to be decoupled to improve the performance of the BNG. The virtual BNG (vBNG) system after the forwarding function and the control function are decoupled includes at least one Control Plane (CP) device and at least one User Plane (UP) device, where the CP device is configured to manage the at least one UP device, and any UP device is configured to forward traffic of the terminal device.
Generally, after a user successfully comes online through a BNG, the user accesses a network based on an allocated Internet Protocol (IP) address, and forwards user traffic through an UP device. In the related art, since the allocated IP address has the server lease, when the user needs to renew the IP address, a lease renewal request packet needs to be sent to the UP device, and the UP device forwards the lease renewal request packet to the CP device, so that the lease renewal request packet is processed by the CP device, thereby implementing lease renewal of the IP address of the user.
Disclosure of Invention
The application provides a message processing method, a device, a system and a computer readable storage medium, which are used for enabling a UP device to perform online management on a terminal device.
In a first aspect, a method for processing a packet is provided, where the method is applied to a UP device of a virtual broadband network gateway, and the virtual broadband network gateway further includes a CP device, and the method includes: the method comprises the steps that UP equipment receives a first message sent by CP equipment, wherein the first message carries first indication information, and the first indication information is used for indicating the UP equipment to carry out online management on terminal equipment based on a virtual broadband access gateway access network; determining an agent lease of a first terminal device based on a first message, wherein the first terminal device is a terminal device based on a virtual broadband access gateway access network; and based on the first indication information, performing online management on the first terminal equipment according to the agent lease of the first terminal equipment.
In the method, the UP device can determine the proxy lease of the first terminal device based on the first message sent by the CP device, and perform online management on the first terminal device according to the proxy lease of the first terminal device. Therefore, the UP device can realize the online management of the first terminal device without passing through the CP device. Therefore, in the method, the CP device can initiatively delegate the lease management authority to the UP device, and the UP device carries out online management on the terminal device based on the proxy lease, so that the online management of the virtual broadband network gateway on the terminal device is more flexible.
In a possible implementation manner, the duration of the agent lease is less than or equal to the duration of a server lease, and the server lease is used for representing the duration that the server allows the first terminal device to access the network.
The agent lease and the server lease can be defined independently, namely the agent lease of the UP device and the server lease set by the CP device are isolated from each other, so that the UP device can flexibly control the lease renewal management of the first terminal device.
In a possible implementation manner, after receiving the first packet sent by the CP device, the method further includes: and sending a second message aiming at the first message to the CP equipment, wherein the second message carries the processing result of the first message.
And responding to the second message corresponding to the corresponding first message to the CP equipment, so that the CP equipment can know the sending result of the first message.
In a possible implementation manner, the first packet is a Packet Forwarding Control Protocol (PFCP) packet, and the first indication information is carried in an Information Element (IE) IE of the first packet.
The PFCP message realizes that the CP device sends the first message to the UP device, so that the PFCP message can carry the first indication information through IE.
In a possible implementation manner, the performing online management on the first terminal device according to the agent lease of the first terminal device based on the first indication information includes: receiving a first lease renewal request message sent by the first terminal equipment, wherein the first lease renewal request message is used for requesting lease renewal of the first terminal equipment; and returning a first lease renewal response message aiming at the first lease renewal request message to the first terminal equipment according to the agent lease of the first terminal equipment based on the first indication information, wherein the first lease renewal response message is used for indicating whether lease renewal is successful or not.
And returning a first lease renewal response message aiming at the first lease renewal request message sent by the first terminal equipment to the first terminal equipment by the UP equipment, so that the UP equipment can realize lease renewal management on the first terminal equipment without passing through the CP equipment.
In a possible implementation manner, the returning a first lease renewal response message for the first lease renewal request message to the first terminal device according to the agent lease of the first terminal device based on the first indication information includes: and when the link between the UP equipment and the CP equipment fails, the UP equipment returns a first lease renewal response message aiming at the first lease renewal request message to the first terminal equipment according to the proxy lease of the first terminal equipment based on the first indication information.
When the link between the UP device and the CP device fails, the UP device returns a first lease renewal response message aiming at a first lease renewal request message sent by the first terminal device to the first terminal device, so that the lease renewal management of the UP device on the first terminal device is not influenced when the link between the UP device and the CP device fails, and the offline maintaining function of the first terminal device is realized.
In a possible implementation manner, a second lease renewal request message of the first terminal device is sent to the CP device according to a server lease of the first terminal device, where the server lease is used to indicate a duration for allowing the first terminal device to access a network by a server; and receiving a second lease renewal response message which is returned by the CP equipment and aims at the second lease renewal request message, and updating the server lease of the first terminal equipment based on the second lease renewal response message.
And actively sending a second lease renewal request message of the first terminal equipment to the server through the UP equipment, so that the UP equipment can update the server lease term of the first terminal equipment according to a second lease renewal response message of the server.
In a possible implementation manner, the performing online management on the first terminal device according to the agent lease of the first terminal device based on the first indication information includes: receiving an offline request message sent by the first terminal equipment; and when the link between the UP equipment and the CP equipment fails, returning an offline response message aiming at the offline request message to the first terminal equipment according to the proxy lease of the first terminal equipment based on the first indication information.
When the link between the UP device and the CP device fails, the UP device returns an offline request response message aiming at the offline request message sent by the first terminal device to the first terminal device, so that the offline management of the UP device on the first terminal device is not influenced when the link between the UP device and the CP device fails, and the offline management function of the first terminal device is realized.
In a possible implementation manner, the performing online management on the first terminal device according to the agent lease of the first terminal device based on the first indication information includes: caching offline request data of the offline request message when a link between the UP device and the CP device fails; when the link failure between the UP device and the CP device is recovered, the UP device sends a logoff message of the first terminal device to the CP device based on the logoff request data, wherein the logoff message is used for indicating that the first terminal device is offline.
When the link failure between the UP device and the CP device is recovered, the CP device can acquire that the first terminal device is offline when the link failure between the UP device and the CP device occurs, and then perform offline processing on the first terminal device at the CP device side, so that the first terminal device that is offline is prevented from continuously occupying network resources, and the keep-alive function of the first terminal device at the user side is realized.
In a possible implementation manner, the offline message is a PFCP resource report, where the PFCP resource report carries an offline trigger identifier through an extended IE, and the offline trigger identifier is used for the CP device to perform offline processing on the first terminal device.
The PFCP resource report extension IE can carry a offline trigger identifier, and is compatible with an interaction mechanism of the existing CP surface and the UP surface, so that the offline message can be sent to CP equipment.
In a possible implementation manner, the performing online management on the first terminal device according to the agent lease of the first terminal device based on the first indication information includes: and responding to the expiration of the server lease of the first terminal device, and sending a logoff message of the first terminal device to the CP device, wherein the logoff message is used for indicating that the first terminal device is offline.
And actively sending the offline message of the first terminal equipment to the CP equipment based on the server lease of the first terminal equipment, preventing the offline first terminal equipment from continuously occupying network resources, and realizing the keep-alive function of the first terminal equipment.
In a possible implementation manner, before performing online management on the first terminal device according to the agent lease of the first terminal device based on the first indication information, the method further includes: receiving a user table entry and an online response message of the first terminal device, which are sent by the CP device, wherein the user table entry comprises user information of the first terminal device, and the online response message comprises a server lease of the first terminal device; and acquiring the user information of the first terminal equipment based on the user table item, and acquiring the server lease of the first terminal equipment based on the online response message.
By saving the server lease of the first terminal device carried in the on-line response message forwarded in the on-line process, the UP device can perform on-line management based on the server lease of the first terminal device.
In a possible implementation manner, the determining, based on the first packet, a proxy lease of the first terminal device includes: and determining that the server lease of the first terminal equipment is the proxy lease of the first terminal equipment based on the first indication information carried in the first message.
The server lease of the first terminal device is used as the proxy lease of the first terminal device, so that the UP device can perform online management on the first terminal device under the condition that the defined proxy lease is not available.
In a possible implementation manner, the first packet further carries a proxy lease of the UP device; the determining the agent lease of the first terminal device based on the first message includes: and taking the proxy lease of the UP equipment carried in the first message as the proxy lease of the first terminal equipment.
And taking the proxy lease of the UP device carried in the first message as the proxy lease of the first terminal device, so that the proxy lease and the server lease are respectively and independently defined, and the UP device can flexibly control the lease renewal management of the terminal device.
In a possible implementation manner, after determining the agent lease of the first terminal device based on the first packet, the method further includes: and sending the agent lease of the first terminal equipment to the first terminal equipment.
Therefore, the first terminal device can acquire the proxy lease and then renews the lease to the UP device based on the proxy lease.
In a possible implementation manner, after the UP device receives the first packet sent by the CP device, the method further includes: receiving a third message sent by the CP device, wherein the third message carries cancel first indication information, and the cancel first indication information is used for indicating the UP device to cancel the online management of the first terminal device; and sending a fourth message aiming at the third message to the CP equipment, wherein the fourth message carries the processing result of the third message.
The third message can also cancel the on-line management of the UP device to the first terminal device.
In a second aspect, a method for processing a packet is provided, where the method is applied to a CP device of a virtual broadband network gateway, where the virtual broadband network gateway further includes an UP device, and the method includes: the CP device sends a first message to the UP device, the first message carries first indication information, the first indication information is used for indicating the UP device to carry out online management on a first terminal device, and the first terminal device is a terminal device based on a virtual broadband access gateway access network.
In the method, the CP device can send the first message carrying the first indication information to the UP device, so that the UP device can realize the online management of the first terminal device without passing through the CP device.
In a possible implementation manner, after the CP device sends the first packet to the UP device, the method further includes: and receiving a second message aiming at the first message, which is sent by the UP device, wherein the second message carries the processing result of the first message.
In a possible implementation manner, the first packet is a packet forwarding control protocol PFCP packet, and the first indication information is carried in the first packet through an extended information element IE.
In a possible implementation manner, the first packet further carries a proxy lease of the UP device, where a duration of the proxy lease is less than or equal to a duration of a server lease, and the server lease is used to indicate a duration that the server allows the first terminal device to access the network.
In a possible implementation manner, after the CP device sends the first packet to the UP device, the method further includes: when the link between the CP device and the UP device fails, the CP device sends a third lease renewal request message to a server based on the server lease of the first terminal device, wherein the third lease renewal request message is used for requesting lease renewal of the first terminal device; receiving a third lease renewal response message which is returned by the server and aims at the third lease renewal request message, wherein the third lease renewal response message is used for indicating whether lease renewal is successful or not; responding to the third lease renewal response message indicating lease renewal failure, and caching the lease renewal failure data; and when the link failure between the CP device and the UP device is recovered, the CP device carries out offline processing on the first terminal device based on the lease renewal failure data.
When the link between the CP device and the UP device fails, the CP device cannot receive the lease renewing request message sent by the UP device, and the CP device can actively send the third lease renewing request message of the first terminal device to the server, so that the situation that the first terminal device is forced to be offline due to the fact that the server cannot receive the third lease renewing request message of the first terminal device is avoided, and the occupation of the user address on the server is kept.
In a possible implementation manner, after the CP device sends the first packet to the UP device, the method further includes: receiving a second lease renewal request message of the first terminal device, which is sent by the UP device, sending the second lease renewal request message to a server, and receiving a second lease renewal response message which is returned by the server and aims at the second lease renewal request message; and returning the second lease renewal response message to the UP device, wherein the second lease renewal response message is used for updating the server lease of the first terminal device by the UP device.
In a possible implementation manner, after the CP device sends the first packet to the UP device, the method further includes: receiving an offline message sent by the UP device, wherein the offline message is used for indicating that the first terminal device is offline; and performing offline processing on the first terminal equipment based on the offline message.
In a possible implementation manner, the offline message is a PFCP resource report, where the PFCP resource report carries an offline trigger identifier through an extended IE, and the offline trigger identifier is used for the CP device to perform offline processing on the first terminal device.
In a possible implementation manner, after the CP device sends the first packet to the UP device, the method further includes: sending a third message to the UP device, wherein the third message carries cancelling first indication information, and the cancelling first indication information is used for indicating the UP device to cancel online management of the first terminal device; and receiving a fourth message aiming at the third message and sent by the UP device, wherein the fourth message carries the processing result of the third message.
In a third aspect, a packet processing apparatus is provided, which is applied to a user plane UP device of a virtual broadband network gateway, where the virtual broadband network gateway further includes a control plane CP device, and the apparatus includes:
a protocol module, configured to receive a first packet sent by the CP device, where the first packet carries first indication information, and the first indication information is used to indicate the UP device to perform online management on a terminal device based on the virtual broadband access gateway access network;
the proxy module is used for determining a proxy lease of first terminal equipment based on the first message, wherein the first terminal equipment is the terminal equipment based on the virtual broadband access gateway access network; and based on the first indication information, performing online management on the first terminal equipment according to the agent lease of the first terminal equipment.
In a possible implementation manner, the duration of the proxy lease is less than or equal to the duration of a server lease, and the server lease is used for indicating the duration for allowing the first terminal device to access the network by the server.
In a possible implementation manner, the protocol module is further configured to send a second packet for the first packet to the CP device, where the second packet carries a processing result of the first packet.
In a possible implementation manner, the first packet is a packet forwarding control protocol, PFCP, packet, and the first packet carries the first indication information through an extended information element, IE.
In a possible implementation manner, the agent module is configured to receive a first lease renewal request packet sent by the first terminal device, where the first lease renewal request packet is used to request lease renewal of the first terminal device; and returning a first lease renewal response message aiming at the first lease renewal request message to the first terminal equipment according to the agent lease of the first terminal equipment based on the first indication information, wherein the first lease renewal response message is used for indicating whether lease renewal is successful or not.
In a possible implementation manner, the proxy module is configured to, when a link between the UP device and the CP device fails, return a first lease renewal response packet for the first lease renewal request packet to the first terminal device according to a proxy lease of the first terminal device based on the first indication information.
In a possible implementation manner, the protocol module is further configured to send a second lease renewal request packet of the first terminal device to the CP device according to a server lease of the first terminal device, where the server lease is used to indicate a duration that a server allows the first terminal device to access a network; and receiving a second lease renewal response message which is returned by the CP equipment and aims at the second lease renewal request message, and updating the server lease of the first terminal equipment based on the second lease renewal response message.
In a possible implementation manner, the agent module is configured to receive a logoff request message sent by the first terminal device; and when the link between the UP equipment and the CP equipment fails, returning an offline response message aiming at the offline request message to the first terminal equipment according to the proxy lease of the first terminal equipment based on the first indication information.
In a possible implementation manner, the proxy module is configured to, when a link between the UP device and the CP device fails, cache downline request data of the downline request packet; the protocol module is configured to send, to the CP device, an offline message of the first terminal device based on the offline request data when the link failure between the UP device and the CP device is recovered, where the offline message is used to indicate that the first terminal device is offline.
In a possible implementation manner, the offline message is a PFCP resource report, where the PFCP resource report carries an offline trigger identifier through an extended IE, and the offline trigger identifier is used for the CP device to perform offline processing on the first terminal device.
In a possible implementation manner, the protocol module is configured to send, to the CP device, a logout message of the first terminal device in response to expiration of a server lease of the first terminal device, where the logout message is used to indicate that the first terminal device is offline.
In a possible implementation manner, the protocol module is further configured to receive a user entry and an online response message of the first terminal device, where the user entry includes user information of the first terminal device, and the online response message includes a server lease of the first terminal device; and the proxy module is used for acquiring the user information of the first terminal equipment based on the user table entry and acquiring the server lease of the first terminal equipment based on the online response message.
In a possible implementation manner, the proxy module is configured to determine, based on the first indication information carried in the first packet, that a server lease of the first terminal device is a proxy lease of the first terminal device.
In a possible implementation manner, the first packet further carries a proxy lease of the UP device; the proxy module is configured to use the proxy lease of the UP device carried in the first packet as a proxy lease of the first terminal device.
In a possible implementation manner, the agent module is further configured to send an agent lease of the first terminal device to the first terminal device.
In a possible implementation manner, the protocol module is further configured to receive a third packet sent by the CP device, where the third packet carries cancellation first indication information, and the cancellation first indication information is used to indicate that the UP device cancels online management of the first terminal device; and sending a fourth message aiming at the third message to the CP equipment, wherein the fourth message carries the processing result of the third message.
In a fourth aspect, a packet processing apparatus is provided, which is applied to a control plane CP device of a virtual broadband network gateway, where the virtual broadband network gateway further includes a user plane UP device, and the apparatus includes:
and the protocol module is used for sending a first message to the UP device, wherein the first message carries first indication information, the first indication information is used for indicating the UP device to perform online management on a first terminal device, and the first terminal device is a terminal device based on the virtual broadband access gateway access network.
In a possible implementation manner, the protocol module is further configured to receive a second packet, which is sent by the UP device and is directed to the first packet, where the second packet carries a processing result of the first packet.
In a possible implementation manner, the first packet is a packet forwarding control protocol, PFCP, packet, and the first packet carries the first indication information through an extended information element, IE.
In a possible implementation manner, the first packet further carries a proxy lease of the UP device, where a duration of the proxy lease is less than or equal to a duration of a server lease, and the server lease is used to indicate a duration that the server allows the first terminal device to access the network.
In a possible embodiment, the apparatus further comprises:
a management module, configured to send a third lease renewal request packet to a server based on a server lease of the first terminal device when a link between the CP device and the UP device fails, where the third lease renewal request packet is used to request lease renewal of the first terminal device; receiving a third lease renewal response message which is returned by the server and aims at the third lease renewal request message, wherein the third lease renewal response message is used for indicating whether lease renewal is successful or not; responding to the third lease renewal response message indicating lease renewal failure, and caching the lease renewal failure data; and when the link failure between the CP equipment and the UP equipment is recovered, performing offline processing on the first terminal equipment based on the lease renewal failure data.
In a possible implementation manner, the management module is further configured to receive a second lease renewal request packet of the first terminal device sent by the UP device, send the second lease renewal request packet to a server, and receive a second lease renewal response packet, which is returned by the server and is directed to the second lease renewal request packet; and returning the second lease renewal response message, wherein the second lease renewal response message is used for updating the server lease of the first terminal equipment by the UP equipment.
In a possible implementation manner, the management module is further configured to receive an offline message sent by the UP device, where the offline message is used to indicate that the first terminal device is offline; and performing offline processing on the first terminal equipment based on the offline message.
In a possible implementation manner, the offline message is a PFCP resource report, where the PFCP resource report carries an offline trigger identifier through an extended IE, and the offline trigger identifier is used for the CP device to perform offline processing on the first terminal device.
In a possible implementation manner, the protocol module is further configured to send a third packet to the UP device, where the third packet carries cancellation first indication information, and the cancellation first indication information is used to indicate the UP device to cancel online management on the first terminal device; and receiving a fourth message aiming at the third message and sent by the UP device, wherein the fourth message carries the processing result of the third message.
In a fifth aspect, a network device is provided, which includes: a processor coupled to a memory, the memory having stored therein at least one program instruction or code, the at least one program instruction or code being loaded and executed by the processor to cause the network device to implement the message processing method as described in any above.
In an exemplary embodiment, the processor is one or more, and the memory is one or more.
As an example embodiment, the memory may be integrated with the processor or provided separately from the processor.
In a specific implementation process, the memory may be a non-transient memory, such as a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips.
In a sixth aspect, there is provided a communication apparatus comprising: a transceiver, a memory, and a processor. Wherein the transceiver, the memory and the processor are in communication with each other via an internal connection path, the memory is configured to store instructions, and the processor is configured to execute the instructions stored by the memory to control the transceiver to receive signals and control the transceiver to transmit signals, and when the instructions stored by the memory are executed by the processor, to cause the communication device to perform the method of the first aspect or any of the possible embodiments of the first aspect, or to perform the method of the second aspect or any of the possible embodiments of the second aspect.
A seventh aspect provides a packet processing system, where the packet processing system includes a UP device and a CP device; the UP device is configured to perform the method of the first aspect or any one of the possible implementations of the first aspect, and the CP device is configured to perform the method of the second aspect or any one of the possible implementations of the second aspect.
In an eighth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor, so as to enable a computer to implement the message processing method as described in any one of the above.
In a ninth aspect, there is provided a computer program (product) comprising: computer program code which, when run by a computer, causes the computer to perform the method of the above aspects.
In a tenth aspect, a chip is provided, which includes a processor for calling and executing instructions stored in a memory from the memory, so that a communication device in which the chip is installed executes the method in the above aspects.
In an eleventh aspect, there is provided another chip comprising: the system comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method in the aspects.
It should be understood that, for the technical effects of the third aspect and the fourth aspect and the corresponding possible implementations of the embodiments of the present application, reference may be made to the technical effects of the first aspect and the second aspect and the corresponding possible implementations, and details are not described herein again.
Drawings
Fig. 1 is a schematic architecture diagram of a network architecture according to an embodiment of the present application;
fig. 2 is an interaction diagram of a user online process and a user online management provided in an embodiment of the present application;
fig. 3 is an interaction diagram of a message processing method according to an embodiment of the present application;
fig. 4 is an interaction diagram of another message processing method according to an embodiment of the present application;
fig. 5 is a schematic diagram of an extended node-level message according to an embodiment of the present application;
fig. 6 is a schematic diagram of an IE list provided in an embodiment of the present application;
fig. 7 is a schematic diagram of another IE list provided in an embodiment of the present application;
fig. 8 is a schematic diagram of an extended IE provided in an embodiment of the present application;
fig. 9 is a schematic diagram of an extended sub IE provided in an embodiment of the present application;
fig. 10 is an interaction diagram of another message processing method according to an embodiment of the present application;
fig. 11 is an interaction diagram of another message processing method according to the embodiment of the present application;
fig. 12 is an interaction diagram of another message processing method according to the embodiment of the present application;
fig. 13 is an interaction diagram of another message processing method according to the embodiment of the present application;
fig. 14 is a schematic diagram of another IE list provided in an embodiment of the present application;
fig. 15 is a schematic diagram of another extended IE provided in an embodiment of the present application;
fig. 16 is a schematic diagram of another extended sub IE provided in an embodiment of the present application;
fig. 17 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of another message processing apparatus according to an embodiment of the present application;
fig. 19 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 20 is a schematic structural diagram of another network device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Before explaining the embodiments of the present application in detail, an application scenario of the embodiments of the present application is explained.
With the development of SDN technology and NFV technology, the network architecture of the metropolitan area network evolves from the traditional network-centric network architecture to the data center-centric network architecture. In this evolution process, the traditional devices and the like also evolve from specialization to generalization. Wherein, the traditional device mainly solves two decouples from specialization to generalization evolution: decoupling of control function and forwarding function, and decoupling of software and hardware.
BNG is as a gateway device of a traditional access broadband network, and is very important in a scenario where a user accesses the broadband network. In the process of accessing the broadband network, the BNG needs to have functions of user management (user management), authentication, authorization, and accounting (AAA) service, address management (address management), RADIUS service (RADIUS is a document Protocol for authenticating, authorizing, and accounting information between the network access server and the shared authentication server that need to authenticate its link), routing control (routing control), point-to-Point Protocol Over Ethernet (PPPoE) service, dynamic Host Configuration Protocol (DHCP) service, forwarding engine (forward engine), and so on. The functions that these BNGs need to support are deployed on the same hardware device, which may be a switch or the like, at the same time.
With the endless emergence of various internet services, the requirements on the number of sessions of users supported by BNG are continuously increasing, the bandwidth of the user access network is also continuously increasing, and especially the requirements on the capability of BNG to provide services open and programmable services are also higher and higher. Based on these factors, BNG SDN/NFV based architectures require the aforementioned two decouples to be implemented.
Based on the broadband forum (BBF) protocol, after the BNG forwarding function is decoupled from the control function (or referred to as control plane and user plane separation, that is, CU separation), the BNG includes at least one CP device and a plurality of UP devices. One CP device can manage multiple UP devices and perform scheduling of users, traffic and resources among the multiple UP devices, that is, the CP device cooperates with the multiple UP devices to implement the above BNG function. Compared with a single BNG without decoupling, the utilization rate and the reliability of the BNG with the decoupling of the forwarding function and the control function can be greatly improved.
For a BNG after CU separation, the BNG may also be referred to as a virtual broadband network gateway (vBNG). The vBNG includes at least one virtual broadband network gateway control plane (vBNG-CP) device and a plurality of virtual broadband network gateway user plane (vBNG-UP) devices. The vBNG-CP device is used for providing functions of user management, AAA service, address management, RADIUS service, PPPoE service, DHCP service, etc. required by the vBNG, and in addition, the vBNG-CP device also needs to provide an UP device management (UP management) function required by the BNG. Any vBNG-UP device is used to provide functions such as routing, multicast (multicast) service, quality of service (QoS), forwarding (forwarding) service, access Control List (ACL) service, multi-protocol label switching (MPLS)/Label Distribution Protocol (LDP) service, and the like, which are required by BNG.
In case the vBNG comprises one vBNG-CP device and a plurality of vBNG-UP devices, the vBNG-CP device and the vBNG-UP device may be connected via three interfaces. These three interfaces are respectively the following three interfaces.
(1) Management interface (Mi). Mi may specifically employ a network configuration (netconf) interface. The vBNG-CP device adopts the interface to issue configuration to the vBNG-UP device. And the vBNG-UP device reports some running states by adopting the interface.
(2) A Control Packet Redirection Interface (CPRi). The CPRi may employ a General Packet Radio Service (GPRS) tunneling protocol (GTP) interface. The CPRi is configured to implement message forwarding between the terminal device and the vBNG-CP device, and illustratively, when the vBNG-UP device receives a user access protocol message sent by the terminal device, the vBNG-UP device encapsulates the user access protocol message through the interface, and then sends the encapsulated user access protocol message to the vBNG-CP device, and the vBNG-CP device processes the user access protocol message.
(3) State Control Interface (SCi). SCi may employ a PFCP interface. The vBNG-UP device reports the terminal device information to the vBNG-CP device through the interface, and the vBNG-CP device processes the user access protocol message to complete the user protocol interaction. After the terminal device is on line, the vBNG-CP device issues the user table entry to the corresponding vBNG-UP device through the interface. The user table entry is used for carrying user information of the terminal device, so that the subsequent vBNG-UP device forwards the traffic of the terminal device based on the user table entry. The detailed functions related to the user entry will be explained in the following embodiments.
Alternatively, in the PFCP protocol, the vBNG-CP device is also referred to as vBNG-CP component (CP function, CPF), i.e. vBNG-CPF; the vBNG-UP device is also referred to as vBNG-UP component (UP function, UPF), or vBNG-UPF.
Since the vBNG-CP device can manage many vBNG-UP devices, all users are managed uniformly on the vBNG-CP device. The process of accessing the service in the network by the terminal device usually includes two basic processes, one is a user online processing process, and the other is a user online management process. Optionally, the user online management process includes a user renewal process, a user offline process, and the like. In the BBF protocol, a user online processing flow and a user online management flow are controlled by vBNG-CP equipment.
Referring to fig. 1, fig. 1 shows an architecture diagram of a network architecture 10 according to an embodiment of the present application, and the vBNG described above may be applied to the network architecture 10. As shown in fig. 1, the network architecture 10 includes a user side 11, a vBNG system 12, a server side 13, and a network side 14. Here, the vBNG system 12 is a vBNG system with a separate CU, and thus the vBNG system 12 is a broadband access gateway provided in the embodiment of the present application.
The user terminal 11 comprises a terminal device 111 used by the user and a vBNG-UP 122 in the vBNG system 12, wherein the terminal device 111 is connected to the vBNG-UP 122 and can access the network of the network terminal 14 through the vBNG system 12.
Optionally, the terminal device 111 may be connected to the vBNG-UP 122 in the vBNG system 12 through AN Access Network (AN) device 112. The AN device 112 may be AN Optical Line Terminal (OLT) device, which serves as a switching device and may connect a plurality of user terminal devices including the terminal device 111 to the vBNG-UP 122.
In a possible embodiment, the terminal device 111 may be a client device supporting Address Resolution Protocol (ARP), or may be a client device supporting neighbor discovery protocol (ND), or may be a client device supporting point-to-point protocol (PPP), or may be a client device supporting DHCP, which is not limited in this application.
vBNG system 12 includes vBNG-CP 121 and vBNG-UP 122. Wherein the vBNG-CP 121 may be configured to control and manage network access of the user terminal 11 connected to the vBNG-UP 122. Optionally, vBNG-CP 121 may be further connected with a plurality of vBNG-UPs (not shown in fig. 1) in addition to vBNG-UP 122, so as to serve as a plurality of broadband access gateways for providing network access to a plurality of user terminal devices.
In general, vBNG-CP 121 is installed in server 13 and can communicate with server connections having different functions/usages in server 13. For example, the vBNG-CP 121 may be connected to the DHCP server 131 of the server 13 to enable the user terminal device using DHCP to access the network through the obtained dynamic IP address, that is, the DHCP server can allocate an IP address to the user terminal device according to a DHCP protocol, so that the user terminal device can access the network through the IP address.
As another example, the vBNG-CP 121 may be in connection communication with the AAA server 132 of the server 13 to manage users accessing the network, and provide services such as authentication, authorization, and accounting for the users. Optionally, verifying whether the user can obtain access rights; which services the user is authorized to use; the usage of the network resource by the user is recorded, for example, the charging management of the network resource used by the user.
The vBNG-UP 122 is connected to and communicates with the terminal device 111, the vBNG-CP 121, and the network 14, respectively, and is configured to provide a forwarding service of a packet and/or an IP data stream for the terminal device 111.
For example, vBNG-UP 122 may receive and forward the access protocol packet of terminal device 111 to vBNG-CP 121 when terminal device 111 requests to access the network of network end 14. Or, the vBNG-UP 122 may forward the IP data stream to the network end 14 for the terminal device 111 after the terminal device 111 accesses the network of the network end 14, or forward the IP data stream of the network end 14 to the terminal device 111, and the like.
In this embodiment, when the network architecture 10 is deployed, based on the deployment plan of the network architecture, after the vBNG-CP 121 and the vBNG-UP 122 establish a connection, the vBNG-CP 121 may determine the protocol type supported by the terminal device 111 connected to the vBNG-UP 122, which is not described in detail in this embodiment of the present application.
The server 13 is configured to set servers with different functional purposes, for example, including the vBNG-CP 121, the DHCP server 131, the AAA server 132, and the like. Optionally, the servers may communicate with each other through a private network connection, and certainly, the servers may also communicate with each other through a public network connection, which is not limited in this embodiment of the present application.
And a network end 14, configured to provide a network service for the terminal device 111. The network side 14 may include a core network (core network) 142. It should be understood that the network type of the network end 14 is not specifically limited in the embodiments of the present application. The network 14 may further include a Core Router (CR) device 141, so that the vBNG-UP 122 in the vBNG system 12 may connect and communicate with a core network 142 of the network 14 through the CR device 141.
Based on the network architecture 10 shown in fig. 1, taking the user terminal device 111 as a home gateway (RG) and the user terminal device 111 as a terminal device using DHCP as an example, referring to fig. 2, in the related art, a process of user online processing and user online management includes the following steps.
1. The RG sends a DHCP broadcast (disc) message to the AN device to discover a DHCP server capable of providing AN IP address for a user.
In one possible embodiment, when the terminal device refers to an RG, the RG can be connected with a plurality of devices such as a smart phone, a desktop computer, and a portable computer, and the plurality of devices access to the RG. In this case, the RG may perform Network Address Translation (NAT) processing on the accessed device. In addition, the RG can communicate with the AN device, and perform PPPoE, IPoE dialing or DHCP dialing through the access AN device to acquire AN IP address from the BNG, thereby accessing the BNG according to the acquired IP address. Thus, after the RG accesses the BNG, the devices accessing the RG can access the BNG through the RG, and then perform network access.
In a possible implementation manner, when a DHCP client (RG in this embodiment) requests an online IP address, it does not know the location of a DHCP server, and therefore, the DHCP client may send a request message, that is, a DHCP disc message, in a broadcast manner in a local network to discover the DHCP server that can provide the IP address in the local network.
2. The AN equipment adds AN operation field OPTION82 in the DHCP disc message, and the AN equipment sends the DHCP disc message added with the operation field OPTION82 to the vBNG-UP equipment.
In a possible implementation manner, the operation field added by the AN device in the DHCP disc message may also be AN OPTION18, where the operation field OPTION82 or OPTION18 is used to carry user information of a user or online location information of the user.
3. And the vBNG-UP device sends the DHCP disc message to the vBNG-CP device through the CPRI, and the vBNG-CP device supports analyzing the OPTIONs 82 in the DHCP disc message during online interaction.
In a possible implementation manner, after receiving the DHCP disc message, the vBNG-CP device broadcasts the DHCP disc message to the DHCP server by analyzing an OPTION82 in the DHCP disc message. All the DHCP servers receiving the DHCP disc message send response messages, namely DHCP offer (offer) messages, and the DHCP client can know the position of the DHCP server existing in the local network.
4. The vBNG-CP device sends an access request (access request) message to the AAA server based on the DHCP disc message, and optionally, the AAA server returns an access permission (access accept) message to the vBNG-CP device.
In one possible embodiment, the AAA server is configured to authenticate the terminal device, authorize services allowed to be used by the user, and collect user usage of resources to generate accounting information.
5. The vBNG-CP device sends a session establishment request (session establishment request) message to the vBNG-UP device through the SCi, and the vBNG-UP device sends a session establishment response (session establishment response) message to the vBNG-CP device through the SCi so as to establish session connection between the vBNG-UP device and the vBNG-CP device.
6. The vBNG-CP equipment sends a DHCP offer message to the vBNG-UP equipment through the CPRI, and the vBNG-UP equipment sends the DHCP offer message to the RG so as to respond to the access request of the RG and inform the RG of a DHCP server capable of providing an IP address.
In a possible implementation manner, after receiving a DHCP offer message returned by the DHCP server, the vBNG-CP device sends the DHCP offer message to the vBNG-UP device through the CPRi. Optionally, the DHCP offer message includes a configured IP address and a corresponding server lease, and further includes other configuration information, for example, a gateway address and a Domain Name System (DNS) server address.
7. After receiving the DHCP offer message, the RG sends a DHCP request (request, req) message to the vBNG-UP device, and the vBNG-CP device sends the DHCP req message to the vBNG-UP device through the CPRI.
In the on-line stage of the user, the RG sends a DHCP req message to request the vBNG-CP equipment to allocate an IP address. In a possible implementation manner, the RG receives a plurality of DHCP offer messages responded by a plurality of DHCP servers, so the RG needs to select one of the received DHCP offer messages. Illustratively, the RG selects a DHCP server corresponding to the first received DHCP offer message as a target server, and responds a DHCP req message to the target server to notify the selected DHCP server.
After the user is successfully on-line, the RG accesses the network through the acquired dynamic protocol IP address. Optionally, in a protocol in which a user accesses a network through a dynamic protocol IP address, the vBNG-CP device may maintain a server lease allocated to the IP address of the RG, and periodically update the server lease of the RG according to the usage of the IP address. When the server lease of the IP address expires, the DHCP server will allocate the IP address to other terminal devices for use, so that the RG needs to request the DHCP server periodically to update the server lease of the IP address, thereby ensuring that the IP address is valid and available.
In one possible implementation, the RG sends a DHCP req message to request renewal of the lease IP address to the vBNG-CP device. Illustratively, the RG sends a DHCP req message lease continuation period to the vBNG-CP device when the usage lease of the IP address is 1/2 past, or sends a DHCP req message lease continuation period to the vBNG-CP device when the usage lease of the IP address is 7/8 past.
8. The vBNG-CP device sends a DHCP acknowledgement (ack) message to the vBNG-UP device through the CPRI, and the vBNG-UP device sends the DHCP ack message to the RG to confirm information.
In a possible implementation manner, after receiving a DHCP req message, the DHCP server searches whether a corresponding lease record exists according to user information (such as a Media Access Control (MAC) address of an RG) carried in the DHCP req message, and if so, sends a DHCP ack message as a response to notify the user that the user can use the allocated IP address; or, if the DHCP server does not find that there is a corresponding lease record or the IP address cannot be normally allocated for some reason, a DHCP non-acknowledgement (NAK) message is sent as a response to notify the user that the appropriate IP address cannot be allocated.
In a possible implementation manner, when the user no longer needs to use the allocated IP address, the user also actively sends a DHCP release (rel) message to the DHCP server to inform the DHCP server that the user no longer needs to allocate the IP address, and the DHCP server releases the bound server lease.
As can be seen from the process of user online processing and user online management shown in fig. 2, after a user goes online through a dynamic protocol IP address, a lease renewal request message needs to be periodically sent to a DHCP server to continue a lease period, so as to maintain an online state of the user. However, because the DHCP req message for lease renewal is processed by the vBNG-CP device, when a communication link between the vBNG-CP device and the vBNG-UP device fails, the vBNG-CP device cannot process the DHCP req message in time, so that the dynamic protocol IP address lease renewal of the user fails, and the user is forced to go offline after the lease expires, which results in a failure in data traffic forwarding, that is, an offline maintenance function of the user cannot be implemented.
The message processing method provided by the embodiment of the application is applied to the scenario in which the forwarding function and the control function of the BNG are decoupled, and can realize the offline holding function after the user is online. The message processing method provided in the embodiment of the present application is described with reference to the network architecture shown in fig. 1, by taking the virtual broadband access gateway vBNG as an example to execute the method. Referring to fig. 3, the method includes the following steps 301-303.
In step 301, the cp device sends a first packet to the UP device, where the first packet carries the first indication information.
The first indication information is used for indicating the UP device to perform online management on the terminal device based on the virtual broadband access gateway access network. In this embodiment, the first indication information may also be referred to as a DHCP sink UP policy. In a possible implementation manner, the CP device sends the first packet to the UP device, so that after receiving the first packet, the UP device can add a new function of performing online management on the terminal device based on the virtual broadband access gateway access network, that is, add a new function of performing online management on the terminal device based on the UP device access network, based on the first indication information carried in the first packet.
Since the CP device and the UP device are connected via the PFCP interface, when a connection is established between the CP device and the UP device, the connection is called a PFCP connection. Multiple PFCP connections can be established between each pair of CP devices and UP device, and control information carried between each PFCP connection is independent. The PFCP connection transmits control information through a PFCP message, and the structure of the PFCP message comprises two parts, namely a header field and a plurality of IEs.
In a possible implementation manner, the first packet sent by the CP device to the UP device is a PFCP packet, and the first packet can carry the first indication information through the extended IE.
In step 302, the up device receives a first message sent by the CP device, and determines a proxy lease of the first terminal device based on the first message.
In a possible implementation manner, after receiving a first packet sent by a CP device, the UP device sends a second packet for the first packet to the CP device, where the second packet carries a processing result of the first packet. The second message is used as a response message of the UP device for receiving the first message, and the UP device informs the CP device that the first message has been received, and the second message carries a processing result of the first message, that is, informs the CP device whether to manage according to an instruction of the first message. Optionally, the second packet sent by the UP device to the CP device is a PFCP packet, and the second packet can carry the processing result of the first packet through the extended IE.
In a possible embodiment, after the UP device performs online management on the terminal device based on the virtual broadband access gateway access network according to the indication of the first indication information, because the online management includes lease renewal management and offline management, taking the case that the UP device performs online management on the first terminal device, it is first required to determine an agent lease of the first terminal device based on the first message, so that the UP device can respond to the lease renewal request of the first terminal device based on the agent lease. The first terminal device is a terminal device based on the virtual broadband access gateway access network.
In this embodiment of the present application, the UP device determines the proxy lease of the first terminal device based on the first packet, which includes the following two manners.
In the first mode, the duration of the agent lease is equal to the duration of the server lease.
In this way, the duration of the agent lease is equal to the duration of the server lease, that is, the duration of the agent lease is the duration that the server allows the first terminal device to access the network, which is obtained when the first terminal device accesses the network. When the first terminal equipment carries out an online request, an online request message is sent to a DHCP server through a broadband access gateway to obtain a dynamic protocol IP address, and the DHCP server allocates a corresponding dynamic protocol IP address and the service time of the allocated dynamic protocol IP address according to the online position of the first terminal equipment and other factors.
In a possible implementation manner, before determining the agent lease of the first terminal device based on the first message, the method further includes: receiving a user table entry and an online response message of a first terminal device, wherein the user table entry and the online response message are sent by a CP device, the user table entry comprises user information of the first terminal device, and the online response message comprises an OPTION82 field of the first terminal device and a server lease; and acquiring user information of the first terminal equipment based on the user table item, and acquiring online position information and server lease of the first terminal equipment based on the online response message. The user information and the online location information include at least one of access interface information, virtual Local Area Network (VLAN) information, an MAC address, or an IP address of the first terminal device.
Illustratively, determining the agent lease of the first terminal device based on the first packet includes: and determining the server lease of the first terminal equipment as the proxy lease of the first terminal equipment based on the first indication information carried in the first message.
In a possible implementation manner, in a manner that the duration of the proxy lease is equal to the duration of the server lease, in addition to the manner of acquiring the server lease of the first terminal device through the online response message in the user online stage, the proxy lease may also be acquired through the proxy lease of the UP device carried in the received first message, where the duration of the proxy lease of the UP device carried in the first message is equal to the server lease.
And in the second mode, the duration of the agent lease is less than that of the server lease.
In the second mode, the duration of the proxy lease of the first terminal device, which is determined by the UP device based on the first message, is less than the duration of the server lease, and the proxy lease and the server lease are independent of each other. That is to say, the proxy lease and the server lease are defined separately, that is, the proxy lease of the UP device and the server lease of the CP device are isolated from each other, so that the UP device can flexibly control lease renewal management of the first terminal device.
In a possible implementation manner, the first message further carries a proxy lease of the UP device, that is, the CP device configures a proxy lease for the UP device, where the proxy lease is generally smaller than the server lease, and optionally, the proxy lease may be equal to or greater than the server lease according to different application scenarios, and the CP device carries the proxy lease of the UP device in the first message and sends the proxy lease to the UP device. Optionally, the agent lease is carried in the first indication information in the first message.
In one possible implementation, determining a proxy lease of the first terminal device based on the first packet includes: and taking the proxy lease of the UP equipment carried in the first message as the proxy lease of the first terminal equipment.
Illustratively, the server lease of the first terminal device is 2 days, the proxy lease configured by the CP device for the UP device is 2 hours, in this case, the UP device responds to the lease renewal request of the first terminal device based on the proxy lease 2 hours, and the UP device renews the lease of the first terminal device to the CP device based on the server lease 2 days.
And step 303, the UP device performs online management on the first terminal device according to the agent lease of the first terminal device based on the first indication information.
According to the above steps 301 and 302, the UP device acquires the first indication information and the proxy lease of the first terminal device, so that the UP device can perform online management on the first terminal device according to the proxy lease of the first terminal device based on the first indication information. In one possible implementation, the on-line management of the first terminal device by the UP device according to the proxy lease of the first terminal device includes the following three cases.
In case one, the UP device performs lease renewal management on the first terminal device according to the proxy lease of the first terminal device.
In this case, the UP device performs lease renewal management on the first terminal device according to the proxy lease of the first terminal device, that is, responds to the lease renewal request of the first terminal device according to the proxy lease of the first terminal device.
In a possible implementation manner, after determining the agent lease of the first terminal device based on the first packet, the method further includes: the UP device sends the agent lease of the first terminal device to the first terminal device, and after receiving the agent lease, the first terminal device sends a lease renewal request to the UP device periodically based on the agent lease so as to keep the online state of the user. Illustratively, the first terminal device sends a renewal lease request to the UP device when the proxy lease elapses 1/2 or 7/8.
In one possible implementation, performing online management on the first terminal device according to the proxy lease of the first terminal device based on the first indication information includes: receiving a first lease renewal request message sent by first terminal equipment, wherein the first lease renewal request message is used for requesting lease renewal of the first terminal equipment; and returning a first lease renewal response message aiming at the first lease renewal request message to the first terminal equipment according to the agent lease of the first terminal equipment based on the first indication information. The first lease renewal request message is a lease renewal request sent by the first terminal device to the UP device based on the agent lease, and the first lease renewal response message is used for indicating whether lease renewal is successful or not.
In a possible implementation manner, returning a first lease renewal response message for the first lease renewal request message to the first terminal device according to the agent lease of the first terminal device based on the first indication information includes: and when the link between the UP device and the CP device fails, the UP device returns a first lease renewing response message corresponding to the first lease renewing request message to the first terminal device according to the proxy lease of the first terminal device based on the first indication information.
In this embodiment of the present application, when a link between the UP device and the CP device fails, the UP device can respond to the lease renewal request of the first terminal device based on the proxy lease, so that the first terminal device can successfully renew the lease based on the lease renewal response returned by the UP device, and the forced offline of the first terminal device due to the link failure between the UP device and the CP device is avoided, thereby implementing the offline maintaining function of the first terminal device.
In a possible implementation manner, in order to request the server to renew the lease of the first terminal device, the UP device may actively send a lease renewal request for the first terminal device to the server based on the server lease of the first terminal device, and determine whether to successfully renew the server lease of the first terminal device according to a lease renewal response returned by the server. Illustratively, when the server lease of the first terminal equipment is 1/2 or 7/8 past, the UP equipment sends a lease renewal request aiming at the first terminal equipment to the server so as to renew the server lease of the first terminal equipment.
In a possible implementation manner, the UP device sends a second lease renewal request message of the first terminal device to the CP device according to the server lease of the first terminal device; the CP equipment receives a second lease renewing request message of the first terminal equipment, which is sent by the UP equipment, sends the second lease renewing request message to the server, and receives a second lease renewing response message which is returned by the server and aims at the second lease renewing request message; the CP equipment returns the second lease renewing response message to the UP equipment; and the UP device receives a second lease renewal response message which is returned by the CP device and aims at the second lease renewal request message, and updates the server lease of the first terminal device based on the second lease renewal response message.
The second lease renewal request message of the first terminal device is a lease renewal request message actively sent by the UP device and used for renewing leases for the first terminal device, that is, the second lease renewal request message is a lease renewal request message sent by the UP device for the first terminal device, and is not a lease renewal request message sent by the first terminal device.
And in case two, the UP device carries out offline management on the first terminal device.
In this case two, the UP device performs offline management on the first terminal device, that is, responds to the offline request of the first terminal device. In a possible implementation manner, the taking-off management of the UP device to the first terminal device includes: receiving an offline request message sent by first terminal equipment; and returning an offline response message aiming at the offline request message to the first terminal equipment. And enabling the UP equipment to respond to the offline request message sent by the first terminal equipment.
In one possible implementation, performing online management on the first terminal device according to the proxy lease of the first terminal device based on the first indication information includes: receiving an offline request message sent by first terminal equipment; and when the link between the UP equipment and the CP equipment fails, returning an offline response message aiming at the offline request message to the first terminal equipment according to the proxy lease of the first terminal equipment based on the first indication information.
In the embodiment of the present application, when a link between the UP device and the CP device fails, the UP device can respond to the offline request of the first terminal device based on the proxy lease, so that the first terminal device can successfully offline based on the offline response returned by the UP device, and the first terminal device cannot be offline due to the link failure between the UP device and the CP device, thereby implementing the offline function of the first terminal device.
In one possible implementation, when the link between the UP device and the CP device fails, the method further includes: caching offline request data of the offline request message; when the link failure between the UP device and the CP device is recovered, the UP device sends a logoff message of the first terminal device to the CP device based on the logoff request data. The offline message is used for indicating that the first terminal equipment is offline.
Illustratively, the offline message is a PFCP resource report, and the PFCP resource report carries the offline trigger identifier through the extended IE, and is compatible with an interaction mechanism of the existing CP plane and the UP plane. The reason for triggering the sending of the PFCP resource report is that the first terminal device is offline when a link between the UP device and the CP device fails, and the CP device performs offline processing on the first terminal device based on the offline trigger.
When the link between the UP device and the CP device fails, the UP device responds to the offline request of the first terminal device, so that the first terminal device finishes offline in an offline state. Therefore, when the link failure between the UP device and the CP device is recovered, the UP device needs to send the information that the first terminal device is offline to the CP device, so that the CP device can perform corresponding offline processing on the offline first terminal device. Optionally, the CP device deletes the user entry of the first terminal device, and notifies the AAA server to stop the traffic charging of the first terminal device. The offline first terminal equipment is prevented from continuously occupying network resources, and the keep-alive function of the first terminal equipment at the user side is realized.
And thirdly, the UP device carries out offline management on the first terminal device according to the server lease of the first terminal device.
In this case, the UP device actively takes the first terminal device offline according to the server lease of the first terminal device.
Illustratively, the online management of the first terminal device according to the agent lease of the first terminal device based on the first indication information includes: and responding to the server lease expiration of the first terminal equipment, and sending the offline message of the first terminal equipment to the CP equipment. The offline message is used for indicating that the first terminal equipment is offline.
In a possible implementation manner, the UP device does not receive a lease renewal request sent by the first terminal device before the server lease of the first terminal device expires, which indicates that the first terminal device does not need to renew the lease, the UP device does not send the lease renewal request of the first terminal device to the CP device, and after the server lease of the first terminal device expires, the UP device defaults to leave the first terminal device.
In this embodiment, in addition to the UP device performing online management on the first terminal device according to the proxy lease of the first terminal device based on the first indication information, the CP device also performs online management on the first terminal device according to the server lease of the first terminal device based on the first indication information. In the embodiment of the present application, the sequence of online management of the UP device and the CP device on the first terminal device is not limited, and illustratively, the UP device and the CP device simultaneously perform online management on the first terminal device based on an interactive manner, or the UP device performs online management on the first terminal device first, and then the UP device and the CP device perform online management on the first terminal device based on an interactive manner.
In a possible implementation manner, the performing, by the CP device, on-line management on the first terminal device according to a server lease of the first terminal device based on the first indication information includes: when a link between the CP device and the UP device fails, the CP device sends a third lease renewal request message to the server based on the server lease of the first terminal device, wherein the third lease renewal request message is used for requesting lease renewal of the first terminal device; receiving a third lease renewal response message which is returned by the server and aims at the third lease renewal request message, wherein the third lease renewal response message is used for indicating whether lease renewal is successful or not; responding to the third lease renewal response message to indicate lease renewal failure, and caching lease renewal failure data; and when the link failure between the CP equipment and the UP equipment is recovered, the CP equipment carries out offline processing on the first terminal equipment based on the lease renewal failure data. Illustratively, the CP device sends a renewal lease request to the server when the server lease of the first terminal device is 1/2 or 7/8 past.
In this embodiment of the application, because the CP device does not receive the lease renewal request of the first terminal device sent by the UP device when the link between the CP device and the UP device fails, at this time, the CP device may actively send the lease renewal request of the first terminal device to the server based on the server lease of the first terminal device, so as to obtain a lease renewal response of the server to the first terminal device. Therefore, even when the link between the CP device and the UP device fails, the forced offline of the first terminal device caused by the fact that the server cannot receive the lease renewing request of the first terminal device can be avoided, and the occupation of the user address on the server can be kept.
And under the condition that the server returns the renewal failure, the CP device can actively inform the UP device of the renewal failure message when the link between the CP device and the UP device is recovered, so that the phenomenon that the UP device continuously sends a renewal request to the server under the condition that the server returns the renewal failure is avoided.
In a possible implementation manner, the performing, by the CP device, on-line management on the first terminal device according to a server lease of the first terminal device based on the first indication information includes: receiving an offline message sent by the UP device, wherein the offline message is used for indicating that the first terminal device is offline; and performing offline processing on the first terminal equipment based on the offline message.
The above-mentioned content introduces the online management process of the UP device to the first terminal device after the CP device sends the first indication information to the UP device through the first message, and the online management process of the UP device and the CP device to the first terminal device when the link between the CP device and the UP device fails. Based on this, the offline holding function of the first terminal device is realized.
In a possible implementation manner, after the CP device sends the first indication information to the UP device, the CP device may further cancel a function of the UP device performing online management on the first terminal device based on the virtual broadband access gateway access network.
Illustratively, the CP device sends a third packet to the UP device, where the third packet carries cancellation first indication information, and the cancellation first indication information is used to indicate the UP device to cancel online management on the first terminal device; the UP device receives a third message sent by the CP device and sends a fourth message aiming at the third message to the CP device, wherein the fourth message carries the processing result of the third message; and the CP equipment receives a fourth message aiming at the third message and sent by the UP equipment.
Optionally, the third packet and the fourth packet are PFCP packets, the third packet carries cancellation first indication information through the extended IE, and the fourth packet carries a processing result of the third packet through the extended IE.
And responding to the UP device receiving the first cancel indication information carried in the third message, the UP device does not perform online management on the first terminal device based on the virtual broadband access gateway access network any more, and the CP device continues to perform online management on the first terminal device based on the virtual broadband access gateway access network alone.
In the message processing method provided by the embodiment of the present application, the UP device can determine the proxy lease of the first terminal device based on the first message sent by the CP device, and perform online management on the first terminal device according to the proxy lease of the first terminal device. Therefore, the UP device can realize the online management of the first terminal device without passing through the CP device. That is to say, the CP device may initiatively delegate the lease management authority to the UP device, and the UP device performs online management on the terminal device based on the proxy lease, so that the online management of the virtual broadband network gateway on the terminal device is more flexible.
For convenience of understanding, the message processing method provided in the embodiment of the present application is illustrated based on the following scenarios, taking as an example that the first terminal device used by the DHCP user, the UP device is a vBNG-CP device, and the CP device is a vBNG-CP device.
Scene one: and the vBNG-CP device issues a DHCP sinking UP strategy scene to the vBNG-UP device.
In the first scenario, the vBNG-CP device issues a DHCP sink UP policy to the vBNG-UP device, where the DHCP sink UP policy is the first indication information in this embodiment, so that the vBNG-UP device can process a DHCP message without passing through the vBNG-CP device, and an offline holding function of a DHCP user is implemented. Referring to fig. 4, fig. 4 is an interaction schematic diagram of a message processing method according to an embodiment of the present application.
In one possible embodiment, as shown in fig. 4, before the vBNG-CP device issues the DHCP sink UP policy to the vBNG-UP device, the vBNG-CP device and the vBNG-UP device need to start handshake first to establish a connection between the vBNG-CP device and the vBNG-UP device. Optionally, the vBNG-UP device and the vBNG-CP device send messages (messages) to each other to establish a session connection, where the messages are establishment of a connection request/response (association setup request/response) or heartbeat request/response (heartbeat request/response).
In one possible implementation, after the vBNG-CP device and the vBNG-UP device start handshake, the vBNG-CP device issues a DHCP sink-UP policy to the vBNG-UP device. Optionally, issuing the DHCP sink UP policy is implemented by sending messages, which are respectively a PFCP DHCP sink request (offload request) and a PFCP DHCP sink reply (offload response). The PFCP DHCP offload request corresponds to the first message in the embodiment of the present application, and the PFCP DHCP offload response corresponds to the second message in the embodiment of the present application.
The message defined by the PFCP protocol does not include a message for the DHCP sink UP policy, so that in the embodiment of the present application, a request and a response of the DHCP sink UP policy are implemented based on a PFCP protocol extended node (node) level message and based on the extended node level message.
Exemplarily, referring to fig. 5, fig. 5 is a schematic diagram of an extended node-level message. As shown in fig. 5, message: the message type value (type value) of PFCP DHCP overflow request is 20, message: the message type value of PFCP DHCP offload response is 21. Optionally, in the embodiment of the present application, a value of the expanded node-level message type value is not limited, the expanded node-level message type value may be any value between 16 and 49, and since the type value between 16 and 49 is an unused node-level message, a message can be expanded: PFCP DHCP offload request and message: PFCP DHCP offload response.
Wherein, the message: PFCP DHCP offload request is a DHCP sink UP policy request, message: PFCP DHCP offload response is a DHCP sink UP policy acknowledgement. In one possible embodiment, referring to fig. 4, the vBNG-CP device sends a message to the vBNG-UP device: PFCP DHCP offload request to issue DHCP sink UP policy request to vBNG-UP device, vBNG-UP device sends message to vBNG-CP device: PFCP DHCP offload response is used to acknowledge the received DHCP sink UP policy request. Therefore, the vBNG-CP device issues the DHCP sinking UP strategy to the vBNG-UP device, and the vBNG-UP device can process the request sent by the CPE.
In one possible embodiment, the message: fig. 6 shows a schematic diagram of an IE list carried in a PFCP DHCP offload request, where the IE list includes 3 IEs, each of which is: a node Identity (ID), wherein the identifier is M, the condition/comment (condition/comment) is vBNG-CP equipment number, and the IE type is the node ID; the identifier of the DHCP offload is C, the condition/comment is DHCP on-line management sink vBNG-UP and carries only 1, and the IE type is DHCP offload (needing to be expanded); cancel (remove) DHCP offload, identifier C, condition/comment is cancel DHCP on-line management sink bng-UP and carry only 1, IE type is remove DHCP offload (need to be extended).
Wherein, IE: DHCP offload is used to carry the DHCP on-line management sink conditions vBNG-UP, IE: remove DHCP offload is used to carry the condition of canceling DHCP on-line management sink BNG-UP device. Optionally, if the vBNG-CP device sends a message to the vBNG-UP device: the PFCP DHCP offload request includes IE: DHCP offload, namely that the vBNG-CP equipment sinks DHCP online management to vBNG-UP; if the vBNG-CP device sends the message to the vBNG-UP device: the PFCP DHCP offload request includes IE: and removing DHCP offload, which means that the vBNG-CP device cancels the sinking of DHCP online management to vBNG-UP.
In one possible embodiment, the message: fig. 7 shows a schematic diagram of an IE list carried in the PFCP DHCP offer response, where the IE list includes 2 IEs, which are: the identifier is M, the condition/comment is vBNG-UP equipment number, and IE type is the node ID; reason (cause), identifier M, condition/comment result of processing, IE type cause.
Optionally, in the embodiment of the present application, the message: PFCP DHCP offload request or message: the content of the IE list of the PFCP DHCP offer response is defined, and the content of the IE list can be flexibly modified according to the needs of the application scenario, for example, any IE is deleted or added.
Wherein the meaning of the IE identifier is shown in table 1. The identifier M is a mandatory option, that is, the IE must be carried when the message is sent; the identifier C must be carried if a certain condition is met, that is, the IE must be carried if a certain condition is met when the message is sent, and the certain condition can be flexibly set as required; the identifier CO can be selected to carry if a certain condition is met, that is, if a message is sent, the IE can be selected to carry, or the IE can be selected not to carry, and similarly, the certain condition can be flexibly set as required; the identifier O is optionally carried, that is, the IE may be optionally carried when the message is sent, or may not be carried.
TABLE 1
Classification of whether IE is present in this traffic Explanation of the invention
Force (mandatory) (M) Must choose the option
Condition (conditional) (C) Must be carried when certain conditions are met
Condition-optional (CO) Can be carried selectively when certain conditions are met
Choice (optional) (O) Can be selectively carried
That is, IE: node ID is a mandatory option, message: the PFCP DHCP offload request must include IE: a node ID to carry a vBNG-CP device number; IE: the DHCP offload needs to be carried to meet certain conditions, and when the condition that the DHCP on-line management sinks vBNG-UP is met, the message: the PFCP DHCP offload request includes IE: DHCP offload, which is used for carrying DHCP sink processing strategy request; IE: the remove DHCP offload needs to be carried to meet a certain condition, and when the condition of canceling the DHCP on-line management sink BNG-UP is met, the message: the PFCP DHCP offload request includes IE: and the remove DHCP offload is used for carrying a request for canceling the DHCP sink processing strategy.
In the embodiment of the present application, the IE is an attribute, and has a nested relationship. Optionally, the nesting manner of the IEs is divided into group (grouped) IEs and embedded (embedded) IEs. Wherein the embedded IE is the attribute of the minimum unit, and the grouped IE: multiple embedded IEs may be included. IE in the embodiment of the present application: DHCP offload as grouped IE, IE: the type of DHCP offload needs to be extended, optionally an extension IE: the result of DHCP offload is shown in fig. 8.
Referring to fig. 8, the extended IE: DHCP offload includes sub IE: DHCP-proxy (proxy) -lease (lease), where sub-IE: the identifier of DHCP-proxy-lease is C, representing sub IE: DHCP-proxy-lease is IE: DHCP offload needs to be carried when certain conditions are met, IE: the DHCP-proxy-lease condition is that after the vBNG-UP device sinks under DHCP on-line management, the vBNG-UP device responds to the proxy lease of the terminal device, if the vBNG-CP device is configured with the proxy lease, the attribute needs to be carried; if no proxy lease is configured, the vBNG-UP device uses the server lease as a proxy lease.
Wherein the meaning of each byte in the IE attributes is explained as shown in table 2 below. From the byte meanings shown in table 2, octets (octets) 1 and 2 represent IEs: the type of DHCP offload, takes two octets, the data type is decimal, for example, 32768-65535 are factory-defined IE types; octets 3 and 4 represent length (length), occupying two octets, the data type is decimal, illustratively, length = n, n is a positive integer greater than 1, the value n of the length excluding type and 4 bytes of the length part; enterprise (entrprise) ID is the manufacturer number of the manufacturing enterprise, occupying two octets, and the data type is decimal, illustratively 3561 is entrprise ID of BBF; octet 7 is followed by a data part or sub-IE, e.g. sub-IE: DHCP-proxy-lease.
TABLE 2
Figure BDA0003240359440000201
Wherein, the sub IE: the type of DHCP-proxy-lease is extension required, extension sub IE: DHCP-proxy-lease to carry the value of the proxy lease. Illustratively, the extended sub IE: the result of the DHCP-proxy-release is shown in fig. 9, and each octet comprises 8 bits (bit) as shown in fig. 9. Where the byte meanings of the octets 1 to 6 can be seen in table 2, bits 5 to 1 of octets 7 denote the binary coded timer values, bits 8 to 6 denote the units defining the timer values, and the 8 bits of octets 8 to (n + 4) are present only if they are well defined. Illustratively, bits 8 through 6 include the following 4 definitions: when the values of bits 8 to 6 are 000, it indicates increments of 1 second; when bits 8 to 6 have a value of 001 indicates increments of 1 minute; a bit 8 to 6 value of 010 indicates increments by multiples of 1 hour; a value of bits 8 to 6 of 011 indicates increments in multiples of 24 hours.
Through the message processing process, the vBNG-CP device issues the DHCP online management sinking UP policy to the vBNG-UP device, so that the vBNG-UP device can process a request message sent by a DHCP user, such as a renewal message or an offline message sent by the DHCP user. When the link between the vBNG-CP device and the vBNG-UP device fails, the vBNG-UP device can process the request message sent by the DHCP user in time, the condition that the DHCP user is off-line due to the fact that the request message is not responded is avoided, and the function of off-line maintenance of the DHCP user is achieved.
After the vBNG-CP device issues the DHCP online management sinking UP policy to the vBNG-UP device, the procedures of online processing of the DHCP user and online management of the DHCP user are explained according to the following scenarios two to five.
Scene two: and the DHCP user accesses the network through the vBNG system.
In the second scenario, taking a Customer Premise Equipment (CPE) as a first terminal device of a DHCP subscriber as an example, a process of accessing the network by the CPE through a vBNG system (that is, the DHCP subscriber is online) may refer to fig. 10, and fig. 10 is an interaction schematic diagram of a message processing method provided in the embodiment of the present application.
As shown in fig. 10, the CPE sends a DHCP disc message to the vBNG-UP device; the vBNG-UP device sends the DHCP disc message to the vBNG-CP device through the CPRI; the vBNG-CP equipment sends an access request message to the AAA server based on the DHCP disc message, and the AAA server returns an access permission message to the vBNG-CP equipment; the vBNG-CP equipment broadcasts a DHCP disc message to the DHCP server, and the DHCP server which can provide the IP address returns a DHCP offer message to respond; the vBNG-CP equipment sends the DHCP offer message to the vBNG-UP equipment through the CPRI, and the vBNG-UP equipment returns the DHCP offer message to the CPE; after receiving the DHCP offer message, the CPE sends a DHCP req message to a target DHCP server through vBNG-UP equipment and vBNG-CP equipment to inform the DHCP server; the DHCP server searches the lease record corresponding to the user according to the received DHCP req message, and returns a DHCP ack message to the CPE through the vBNG-CP device and the vBNG-UP device, wherein the DHCP ack message comprises an OPTION82 field, and the OPTION82 field comprises information such as message type, server lease period and the like so as to inform the user of using the allocated IP address.
Referring to (1) in fig. 10, after the vBNG-CP device receives the DHCP ack message, the vBNG-CP device sends a user entry establishment request to the vBNG-UP device through the SCi, that is, the vBNG-CP device issues a user entry to the vBNG-UP device, where the user entry includes user information, and the user information includes at least one of access interface information, VLAN information, MAC address, and IP address of a user. The vBNG-UP device responds to the user table item establishment response according to the user table item establishment request, and obtains the user information of the user based on the user table item. In addition, the vBNG-UP device may further obtain the OPTION information carried in the DHCP ack packet according to the received DHCP ack packet, so as to obtain a server lease of the IP address of the user.
In the embodiment of the application, the vBNG-CP device issues the user information of the user to the vBNG-UP device, and then the vBNG-UP device can acquire and store the user information of the user, and acquire and store the server lease of the user through the received DHCP ack message. After the user is successfully on line, the vBNG-UP device can respond to the DHCP req message or the DHCP rel message of the CPE based on the stored user information and the server lease term without the vBNG-CP device, that is, the vBNG-UP device can manage the CPE on line.
Illustratively, if the user goes online through the two-layer network, the issued user information includes the access interface information, VLAN and MAC address of the user to identify the DHCP message of the CPE; if the user is on line through the three-layer network, the issued user information comprises the IP address of the user so as to identify the DHCP message of the CPE. Wherein, the two-layer network can realize communication only by MAC addressing, but only in the same conflict domain; the three-layer network needs to realize communication of cross network segments through IP routing and can cross a plurality of conflict domains.
Scene three: and after the DHCP user is on line based on the vBNG system, the link between the vBNG-CP equipment and the vBNG-UP equipment is normal.
In the third scenario, taking the CPE as a terminal device of a DHCP user as an example, in a case that a link between the vBNG-CP device and the vBNG-UP device is normal, referring to fig. 11, an online management process after the CPE accesses a network through the vBNG system is shown in fig. 11, where fig. 11 is an interaction diagram of the message processing method provided in the embodiment of the present application.
As shown in fig. 11, the upper part of the dotted line is the online lease renewal process of the user, when the agent lease of the CPE passes 1/2 or 7/8, the CPE sends a lease renewal request (i.e., a DHCP req message) to the vBNG-UP device for the lease renewal, and after receiving the DHCP req message, the vBNG-UP device replies according to the user information and the server lease obtained when the user is online, and returns a DHCP ack message to the CPE. In the process, the vBNG-UP device does not need to send the DHCP req message to the vBNG-CP device, and the vBNG-CP device responds.
In a possible implementation manner, the server lease used by the vBNG-UP device to answer the DHCP ack message of the CPE is a proxy lease. The agent lease is a lease defined by the vBNG-CP equipment, wherein the CPE uses the dynamic protocol IP address, the agent lease and the server lease are independent, the server lease is a lease defined by the DHCP server, wherein the CPE uses the dynamic protocol IP address, and optionally, the agent lease is less than the server lease. Because the agent lease and the server lease are independent, the agent lease and the server lease can be defined independently, and the lease renewal time of the CPE can be flexibly controlled.
In the embodiment of the application, when the server lease using the DHCP server passes 1/2 and 7/8, the vBNG-UP device actively sends a renewal request (namely a DHCP req message) to the vBNG-CP device through the CPRI to continue the lease, and then the vBNG-CP device sends the renewal request to the DHCP server; after receiving the DHCP ack message responded by the DHCP server, the vBNG-CP device sends a renewal response message, namely the DHCP ack message to the vBNG-UP device through the CPRI. And the vBNG-UP equipment updates the stored proxy lease according to the lease renewal response message responded by the DHCP server and responds to the lease renewal request of the subsequent CPE by using the updated server lease.
In a possible embodiment, the vBNG-UP device responds to the lease renewal request of the subsequent CPE according to the lease renewal response result of the DHCP server, and exemplarily, if the lease renewal response result of the DHCP server is a lease renewal failure, after reaching the server lease period, the vBNG-UP device responds to the lease renewal failure when responding to the lease renewal result to the CPE, and at the same time, the user is offline.
As shown in fig. 11, the lower part of the dotted line is an offline processing procedure of the user online, when the CPE no longer needs to use an IP address, the CPE sends an offline request (i.e., a DHCP rel message) to the vBNG-UP device to enable the user to go offline, and after receiving the DHCP rel message, the vBNG-UP device sends the DHCP rel message to the vBNG-CP device through CPRi, and then the vBNG-CP device sends the DHCP rel message to the DHCP server; after receiving the DHCP ack message responded by the DHCP server, the vBNG-CP equipment sends an offline response message (namely the DHCP ack) to the vBNG-UP equipment through the CPRI, and then the vBNG-UP equipment returns the DHCP ack message to the CPE and takes the user offline.
In a possible implementation manner, referring to (2) in fig. 11, after the vBNG-CP device receives the offline response message, the vBNG-CP device sends a user entry deletion request to the vBNG-UP device through the SCi, and the vBNG-UP device responds to the user entry deletion response according to the user entry deletion request, and performs offline processing on the user to delete the user entry of the CPE in the vBNG-CP device and the vBNG-UP device.
As can be seen from the above process, in the case that the link between the vBNG-CP device and the vBNG-UP device is normal, in the online management process after the CPE accesses the network through the vBNG system, the vBNG-UP device can respond to the lease renewal request message of the DHCP user according to the stored proxy lease period, and can periodically and actively renew the lease to the vBNG-CP device.
Scene four: and after the DHCP user is on line based on the vBNG system, the vBNG-CP equipment and the vBNG-UP equipment have a link failure scene.
In the fourth scenario, taking the CPE as a terminal device of a DHCP user as an example, in the case of a link failure between the vBNG-CP device and the vBNG-UP device, for example, CPRi and SCi failures between the vBNG-CP device and the vBNG-UP device, an online management process after the CPE accesses the network through the vBNG system may refer to fig. 12, and fig. 12 is an interaction schematic diagram of a message processing method provided in the embodiment of the present application.
In one possible embodiment, as shown in fig. 12, when CPRi and SCi between the vBNG-CP device and the vBNG-UP device fail, the processing procedure of the vBNG-CP device and the vBNG-UP device for different situations includes the following steps.
In case one, when the vBNG-UP device receives a lease renewal request (i.e. a DHCP req message) sent by the CPE when the agent lease elapses by 1/2 and 7/8, the vBNG-UP device continues to send a DHCP ack message to the CPE in response to successful lease renewal of the CPE according to the agent lease. The method ensures that the CPE can continuously use the originally distributed dynamic protocol IP address and ensures that the IP data flow of the CPE can be normally forwarded so as to realize the offline maintenance function of the CPE.
In case two, when the vBNG-UP device receives an offline request (i.e. DHCP rel message) from the CPE, it caches the offline request information of the user, and responds to the client offline response message, and sends a DHCP ack message to the CPE. The condition that the offline request sent by the CPE cannot be responded is avoided, so that the CPE can receive the DHCP ack message in time, and a user can successfully offline.
In a third situation, after sensing the fault of the CPRI or SCi, the vBNG-CP device actively sends a lease renewal request (namely a DHCP req message) to the DHCP server when the server lease period passes 1/2 and 7/8, and if the DHCP server responds that the lease renewal is successful and returns a DHCP ack message to the vBNG-CP device, the vBNG-CP device renews the server lease period of the user; if the DHCP server responds to the lease renewal failure, the vBNG-CP device caches the result of the lease renewal failure of the user when the lease period of the server expires.
Through the message processing procedures under the three conditions, when CPRI and SCi between vBNG-CP equipment and vBNG-UP equipment fail, the DHCP user can realize the offline holding function.
Scene five: and after the DHCP user is on line based on the vBNG system, recovering the link failure between the vBNG-CP equipment and the vBNG-UP equipment.
In the fifth scenario, taking the CPE as a terminal device of a DHCP user as an example, when a link between the vBNG-CP device and the vBNG-UP device is failed to recover, for example, CPRi and SCi between the vBNG-CP device and the vBNG-UP device are failed to recover, for an online management process after the CPE accesses the network through the vBNG system, refer to fig. 13, and fig. 13 is an interaction schematic diagram of a message processing method provided in the embodiment of the present application.
In one possible embodiment, when CPRi and SCi between the vBNG-CP device and the vBNG-UP device fail to recover, the processing procedure of the logoff request information cached by the vBNG-UP device and the lease renewal failure result cached by the vBNG-CP device upon CPRi and SCi failure between the BNG-CP device and the vBNG-UP device is as shown in fig. 13.
As shown in fig. 13, the upper part of the dotted line is the processing procedure of the offline request information buffered by the vBNG-UP device, and the vBNG-UP device sends a message to the vBNG-CP device through SCi: PFCP session report request (session report request), message: the PFCP session report request comprises cached offline request information; the vBNG-CP device responds to the message: PFCP session report request, returning message to vBNG-UP device: and the PFCP session report response, meanwhile, the vBNG-CP device carries out offline processing on the user and informs the vBNG-UP device to delete the user table entry of the user.
In one possible implementation, the vBNG-CP device performs offline processing on the user, including: the vBNG-CP equipment actively sends an offline request (namely a DHCP rel message) to the DHCP server so as to request the DHCP server to release the dynamic protocol IP address allocated to the user; and the DHCP server responds to the DHCP rel message, returns a DHCP ack message to the vBNG-CP equipment to confirm that the user is offline, and recovers the dynamic protocol IP address allocated to the user.
In one possible embodiment, the notifying, by the vBNG-CP device, that the vBNG-UP device deletes the user entry of the user includes: after receiving the DHCP ack message for confirming the user offline, which is responded by the DHCP server, the vBNG-CP equipment sends a message to the vBNG-UP equipment through the SCi: PFCP session deletion request (session deletion request); vBNG-UP device pair message: and responding to the PFCP session deletion request, and returning a message to the vBNG-CP device: PFCP session deletion response, and deleting the user table item information of the user; the vBNG-CP device receives the message: and after the PFCP session deletion response, deleting the user table item information of the user, sending user offline information to the AAA server, and informing the AAA server to stop the flow accounting of the user.
As shown in fig. 13, the part below the dotted line is a processing procedure for the renewal failure result buffered by the vBNG-CP device, and the vBNG-CP device sends a message to the vBNG-UP device through SCi: PFCP session deletion request, the message: the PFCP session deletion request comprises a lease renewal failure result cached by the vBNG-CP device; vBNG-UP device pair message: and responding to the PFCP session deletion request, and returning a message to the vBNG-CP device: PFCP session deletion response, and deleting the user table item information of the user; the vBNG-CP device receives the message: and after the PFCP session termination response, deleting the user table item information of the user, sending a user offline message to the AAA server, and informing the AAA server to stop the flow accounting of the user.
In one possible embodiment, the message sent to the vBNG-CP device: and adding a DHCP release type in a resource use report (use report) of the PFCP session report request to carry cached offline request information and inform the vBNG-CP device of offline processing. Exemplarily, referring to fig. 14, fig. 14 is a message: schematic diagram of IE list carried in PFCP session report request.
As shown in fig. 14, 3 IEs are included in the IE list. Wherein, IE: report type identifier is M, stands for IE: report type is message: the PFCP session report request is required to carry, and the condition/comment is a report type and is used for carrying type information of a report; IE: the old CP F-SEID identifier is M, and represents IE: old CP F-SEID is message: the PFCP session report request must carry a Session End Identifier (SEID) corresponding to the CPF, where the condition/comment is an sesid assigned to the CPF, and is used to carry the established session identifier; IE: the usage report identifier is C, which represents that, when the report type is a resource usage report, the message: the PFCP session report request needs to carry this IE: a usage report. The IE: the type of the usage report is required to be expanded, and the expanded IE: the usage report may carry a plurality of resource reports, and the resource report list is used as a display mode.
Illustratively, the extended IE: the result of the usage report is shown in fig. 15, which includes 3 sub-IEs, respectively: a sub IE: a Usage Reporting Rule (URR) ID identifier is M, representing a sub-IE: URR ID is IE: the usage report must carry the ID of the usage reporting rule; a sub IE: the identifier of UR-SEQN is M, represents the sub-IE: UR-SEHN is IE: the usage report is carried by the resource report and is used for carrying resource report message serial numbers; a sub IE: and the use report trigger (trigger) identifier is C, and when the trigger reason for reporting the resource is included, the IE: the usage report needs to carry this sub IE: and the use report trigger is used for carrying the resource report trigger reason.
In one possible embodiment, by extending the sub-IE: the user report trigger realizes that the cached offline request is taken as a resource reporting trigger reason to be carried in IE: a usage report. Illustratively, the extended sub IE: the result of usage report trigger is shown in fig. 16, and each bit of the octets 5, octets 6 and octets 7 represents a resource report trigger reason, which is respectively denoted as X1-X22 and DHCP release (DHCPR), where the DHCPR at the bit 6 position of octets 7 is a trigger reason newly added in the embodiment of the present application, and the DHCPR is used to indicate the offline request information sent by the CEP cached by the vBNG-UP device. When the value of the DHCPR is 1, indicating that the vBNG-UP device receives a DHCP rel message sent by the CEP, so as to trigger reporting of the resource report message to notify the vBNG-CP device that the user needs to be offline, that is, deleting the user entry.
The message processing method provided in the embodiment of the present application defines a PFCP message for which DHCP online management sinks UP, and sinks the processing of an online DHCP user to a vBNG-UP device, so that when a link between the vBNG-CP device and the vBNG-UP device fails, an offline holding function of the DHCP user can be implemented to ensure normal forwarding of user data traffic, and when a link failure between the vBNG-CP device and the vBNG-UP device recovers, normal online processing of the DHCP user can be recovered.
The above introduces a message processing method according to an embodiment of the present application, and in accordance with the above method, an embodiment of the present application further provides a message processing apparatus. Fig. 17 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application, where the apparatus is applied to a UP device of a virtual broadband network gateway, where the virtual broadband network gateway further includes a CP device. Based on the following modules shown in fig. 17, the message processing apparatus shown in fig. 17 can perform all or part of the operations performed by the UP device. It should be understood that the apparatus may include more additional modules than those shown or omit some of the modules shown therein, which is not limited by the embodiments of the present application. As shown in fig. 17, the apparatus includes:
a protocol module 1701, configured to receive a first packet sent by a CP device, where the first packet carries first indication information, and the first indication information is used to indicate an UP device to perform online management on a terminal device accessing a network based on a virtual broadband access gateway;
an agent module 1702, configured to determine an agent lease of a first terminal device based on the first packet, where the first terminal device is a terminal device based on a virtual broadband access gateway access network; and based on the first indication information, performing online management on the first terminal equipment according to the agent lease of the first terminal equipment.
In a possible implementation manner, the duration of the proxy lease is less than or equal to the duration of the server lease, and the server lease is used for indicating the duration of the server allowing the first terminal device to access the network.
In a possible implementation manner, the protocol module 1701 is further configured to send a second packet for the first packet to the CP device, where the second packet carries a processing result of the first packet.
In a possible implementation manner, the first packet is a packet forwarding control protocol, PFCP, packet, and the first packet carries the first indication information through an extended information element, IE.
In a possible implementation manner, the agent module 1702 is configured to receive a first lease renewal request message sent by a first terminal device, where the first lease renewal request message is used to request lease renewal of the first terminal device; and returning a first lease renewal response message aiming at the first lease renewal request message to the first terminal equipment according to the agent lease of the first terminal equipment based on the first indication information, wherein the first lease renewal response message is used for indicating whether lease renewal is successful or not.
In a possible implementation manner, the proxy module 1702 is configured to, when a link between the UP device and the CP device fails, return a first lease renewal response packet for the first lease renewal request packet to the first terminal device according to a proxy lease of the first terminal device based on the first indication information.
In a possible implementation manner, the protocol module 1701 is further configured to send a second lease renewal request message of the first terminal device to the CP device according to a server lease of the first terminal device, where the server lease is used to indicate a duration that the server allows the first terminal device to access the network; and receiving a second lease renewal response message which is returned by the CP equipment and aims at the second lease renewal request message, and updating the server lease of the first terminal equipment based on the second lease renewal response message.
In a possible implementation manner, the agent module 1702 is configured to receive a logoff request message sent by a first terminal device; and when the link between the UP equipment and the CP equipment fails, returning an offline response message aiming at the offline request message to the first terminal equipment according to the proxy lease of the first terminal equipment based on the first indication information.
In a possible implementation manner, the proxy module 1702 is configured to cache offline request data of the offline request packet when a link between the UP device and the CP device fails; the protocol module 1701 is configured to, when the link failure between the UP device and the CP device is recovered, send an offline message of the first terminal device to the CP device based on the offline request data, where the offline message is used to indicate that the first terminal device is offline.
In a possible implementation manner, the offline message is a PFCP resource report, the PFCP resource report carries an offline trigger identifier through an extended IE, and the offline trigger identifier is used for the CP device to perform offline processing on the first terminal device.
In one possible implementation, the protocol module 1701 is configured to send, to the CP device, a logoff message of the first terminal device in response to the expiration of the server lease of the first terminal device, where the logoff message is used to indicate that the first terminal device is offline.
In a possible implementation manner, the protocol module 1701 is further configured to receive a user entry and an online response message of the first terminal device, where the user entry includes user information of the first terminal device, and the online response message includes a server lease of the first terminal device; the agent module 1702 is configured to obtain the user information of the first terminal device based on the user entry, and obtain the server lease of the first terminal device based on the online response message.
In a possible implementation manner, the proxy module 1702 is configured to determine, based on the first indication information carried in the first message, that the server lease of the first terminal device is a proxy lease of the first terminal device.
In a possible implementation manner, the first message also carries a proxy lease of the UP device; the proxy module 1702 is configured to use the proxy lease of the UP device carried in the first packet as a proxy lease of the first terminal device.
In a possible implementation, the proxy module 1702 is further configured to send a proxy lease of the first terminal device to the first terminal device.
In a possible implementation manner, the protocol module 1701 is further configured to receive a third packet sent by the CP device, where the third packet carries cancellation first indication information, and the cancellation first indication information is used to indicate the UP device to cancel online management of the first terminal device; and sending a fourth message aiming at the third message to the CP equipment, wherein the fourth message carries the processing result of the third message.
Fig. 18 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application, where the apparatus is applied to a CP device of a virtual broadband network gateway, where the virtual broadband network gateway further includes an UP device. The message processing apparatus shown in fig. 18 can perform all or part of the operations performed by the CP device based on a plurality of modules shown in fig. 18. It should be understood that the apparatus may include more additional modules than those shown or omit some of the modules shown therein, which is not limited by the embodiments of the present application. As shown in fig. 18, the apparatus includes:
a protocol module 1801, configured to send, by the CP device, a first packet to the UP device, where the first packet carries first indication information, where the first indication information is used to indicate the UP device to perform online management on a first terminal device, and the first terminal device is a terminal device based on a virtual broadband access gateway access network.
In a possible implementation manner, the protocol module 1801 is further configured to receive a second packet, which is sent by the UP device and is directed to the first packet, where the second packet carries a processing result of the first packet.
In a possible implementation manner, the first packet is a packet forwarding control protocol, PFCP, packet, and the first packet carries the first indication information through an extended information element, IE.
In a possible implementation manner, the first message further carries a proxy lease of the UP device, a duration of the proxy lease is less than or equal to a duration of a server lease, and the server lease is used for indicating a duration that the server allows the first terminal device to access the network.
In one possible embodiment, the apparatus further comprises:
a management module 1802, configured to send, when a link between the CP device and the UP device fails, a third lease renewal request packet to the server based on a server lease of the first terminal device, where the third lease renewal request packet is used to request lease renewal of the first terminal device; receiving a third lease renewal response message which is returned by the server and aims at the third lease renewal request message, wherein the third lease renewal response message is used for indicating whether lease renewal is successful or not; responding to the third lease renewal response message indicating the lease renewal failure, and caching lease renewal failure data; and when the link failure between the CP equipment and the UP equipment is recovered, performing offline processing on the first terminal equipment based on the lease renewal failure data.
In a possible implementation manner, the management module 1802 is configured to receive a second lease renewal request packet of the first terminal device sent by the UP device, send the second lease renewal request packet to the server, and receive a second lease renewal response packet, which is returned by the server and is directed to the second lease renewal request packet; and returning a second lease renewal response message to the UP equipment, wherein the second lease renewal response message is used for updating the server lease of the first terminal equipment by the UP equipment.
In a possible implementation manner, the management module 1802 is further configured to receive an offline message sent by the UP device, where the offline message is used to indicate that the first terminal device is offline; and performing offline processing on the first terminal equipment based on the offline message.
In a possible implementation manner, the offline message is a PFCP resource report, the PFCP resource report carries an offline trigger through an extended IE, and the offline trigger is used for the CP device to perform offline processing on the first terminal device.
In a possible implementation manner, the protocol module 1801 is further configured to send a third packet to the UP device, where the third packet carries cancellation first indication information, and the cancellation first indication information is used to indicate the UP device to cancel online management on the first terminal device; and receiving a fourth message aiming at the third message and sent by the UP equipment, wherein the fourth message carries the processing result of the third message.
It should be understood that the apparatus provided in fig. 17 and 18 is only illustrated by the division of the functional modules when implementing the functions thereof, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 19, fig. 19 is a schematic structural diagram of a network device 2000 according to an exemplary embodiment of the present application. The network device 2000 shown in fig. 19 is configured to perform the operations involved in the message processing methods shown in fig. 2-4 and 10-13. The network device 2000 is, for example, a switch, a router, etc., and the network device 2000 may be implemented by a general bus architecture.
As shown in fig. 19, the network device 2000 includes at least one processor 2001, memory 2003, and at least one communication interface 2004.
The processor 2001 is, for example, a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Network Processor (NP), a Graphics Processing Unit (GPU), a neural-Network Processing Unit (NPU), a Data Processing Unit (DPU), a microprocessor, or one or more integrated circuits for implementing the present disclosure. For example, the processor 2001 includes an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. PLDs are, for example, complex Programmable Logic Devices (CPLDs), field-programmable gate arrays (FPGAs), general Array Logic (GALs), or any combination thereof. Which may implement or perform the various logical blocks, modules, and circuits described in connection with the embodiment disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
Optionally, the network device 2000 further comprises a bus. The bus is used to transfer information between the components of the network device 2000. The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 19, but it is not intended that there be only one bus or one type of bus.
The Memory 2003 is, for example, but not limited to, a read-only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only Memory (EEPROM), a compact disk read-only Memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 2003 is, for example, independent and connected to the processor 2001 via a bus. The memory 2003 may also be integrated with the processor 2001.
Communication interface 2004 uses any transceiver or the like for communicating with other devices or a communication network, such as an ethernet, radio Access Network (RAN), or Wireless Local Area Network (WLAN), among others. The communication interface 2004 may include a wired communication interface and may also include a wireless communication interface. Specifically, the communication interface 2004 may be an Ethernet (Ethernet) interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an Asynchronous Transfer Mode (ATM) interface, a Wireless Local Area Network (WLAN) interface, a cellular network communication interface, or a combination thereof. The ethernet interface may be an optical interface, an electrical interface, or a combination thereof. In an embodiment of the present application, communication interface 2004 may be used for network device 2000 to communicate with other devices.
In particular implementations, processor 2001 may include one or more CPUs, such as CPU0 and CPU1 shown in fig. 19, as one embodiment. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In particular implementations, network device 2000 may include multiple processors, such as processor 2001 and processor 2005 shown in fig. 19, for one embodiment. Each of these processors may be a single-Core Processor (CPU) or a multi-Core Processor (CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In one embodiment, the network device 2000 may further include an output device and an input device. An output device communicates with the processor 2001 and may display information in a variety of ways. For example, the output device may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device communicates with the processor 2001 and may receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
In some embodiments, the memory 2003 is used to store program code 2010 for performing aspects of the present application, and the processor 2001 may execute the program code 2010 stored in the memory 2003. That is, the network device 2000 may implement the message processing method provided in the method embodiment through the processor 2001 and the program code 2010 in the memory 2003. One or more software modules may be included in program code 2010. Optionally, the processor 2001 itself may also store program code or instructions to perform aspects of the present application.
In a specific embodiment, the network device 2000 of the embodiment of the present application may correspond to the UP device in the above-described method embodiments, and the processor 2001 in the network device 2000 reads the instructions in the memory 2003, so that the network device 2000 shown in fig. 19 can perform all or part of the operations performed by the UP device.
Specifically, the processor 2001 is configured to determine, based on the first packet, an agent lease of the first terminal device, where the first terminal device is a terminal device based on a virtual broadband access gateway access network; and based on the first indication information, performing online management on the first terminal equipment according to the agent lease of the first terminal equipment.
Other alternative embodiments, for brevity, will not be described again.
For another example, the network device 2000 of the embodiment of the present application may correspond to the CP device in each of the above method embodiments, and the processor 2001 in the network device 2000 reads the instructions in the memory 2003, so that the network device 2000 shown in fig. 19 can perform all or part of the operations performed by the CP device.
Specifically, the processor 2001 is configured to send a first packet to the UP device, where the first packet carries first indication information, where the first indication information is used to indicate the UP device to perform online management on a first terminal device, and the first terminal device is a terminal device based on a virtual broadband access gateway access network.
Other alternative embodiments, for brevity, will not be described again.
The network device 2000 may also correspond to the message processing apparatus shown in fig. 17 and 18 described above, and each functional module in the message processing apparatus is implemented by software of the network device 2000. In other words, the message processing apparatus includes functional modules that are generated by the processor 2001 of the network device 2000 reading the program code 2010 stored in the memory 2003.
The steps of the message processing method shown in fig. 2-4 and 10-13 are performed by integrated logic circuits of hardware or instructions in the form of software in the processor of the network device 2000. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and performs the steps of the above method in combination with hardware thereof, which are not described in detail herein to avoid repetition.
Referring to fig. 20, fig. 20 is a schematic structural diagram of a network device 2100 according to another exemplary embodiment of the present application, where the network device 2100 shown in fig. 20 is configured to execute all or part of operations related to the message processing method shown in fig. 2 to 4 and 10 to 13. The network device 2100 is, for example, a switch, a router, etc., and the network device 2100 may be implemented by a general bus architecture.
As shown in fig. 20, the network device 2100 includes: a main control board 2110 and an interface board 2130.
The main control board is also called a Main Processing Unit (MPU) or a route processor card (route processor card), and the main control board 2110 is used for controlling and managing various components in the network device 2100, including routing computation, device management, device maintenance, and protocol processing functions. The main control board 2110 includes: a central processor 2111 and a memory 2112.
The interface board 2130 is also referred to as a Line Processing Unit (LPU), a line card (line card), or a service board. The interface board 2130 is used for providing various service interfaces and forwarding data packets. The service interfaces include, but are not limited to, ethernet interfaces, such as Flexible Ethernet services interfaces (FlexE Ethernet Clients), POS (Packet over SONET/SDH) interfaces, and the like. The interface board 2130 includes: central processor 2131 network processor 2132, forwarding table entry memory 2134, and Physical Interface Card (PIC) 2133.
The central processor 2131 on the interface board 2130 is used for controlling and managing the interface board 2130 and communicating with the central processor 2111 on the main control board 2110.
The network processor 2132 is configured to implement forwarding processing of the packet. The network processor 2132 may take the form of a forwarding chip. The forwarding chip may be a Network Processor (NP). In some embodiments, the forwarding chip may be implemented by an application-specific integrated circuit (ASIC) or a Field Programmable Gate Array (FPGA). Specifically, the network processor 2132 is configured to forward the received message based on a forwarding table stored in the forwarding table entry memory 2134, and if a destination address of the message is an address of the network device 2100, send the message to a CPU (e.g., the central processing unit 2131) for processing; if the destination address of the packet is not the address of the network device 2100, the next hop and the egress interface corresponding to the destination address are found from the forwarding table according to the destination address, and the packet is forwarded to the egress interface corresponding to the destination address. Wherein, the processing of the uplink message may include: processing a message input interface and searching a forwarding table; the processing of the downlink message may include: forwarding table lookups, and the like. In some embodiments, the central processing unit may also perform the functions of a forwarding chip, such as implementing software forwarding based on a general purpose CPU, so that no forwarding chip is needed in the interface board.
The physical interface card 2133 is used to implement a physical layer interface function, from which the original traffic enters the interface board 2130, and the processed message is sent out from the physical interface card 2133. The physical interface card 2133 is also called a daughter card, and may be installed on the interface board 2130, and is responsible for converting the photoelectric signal into a message, performing validity check on the message, and forwarding the message to the network processor 2132 for processing. In some embodiments, the central processor 2131 may also perform the functions of the network processor 2132, such as implementing software forwarding based on a general purpose CPU, so that the network processor 2132 is not required in the physical interface card 2133.
Optionally, the network device 2100 includes a plurality of interface boards, for example, the network device 2100 further includes an interface board 2140, and the interface board 2140 includes: a central processor 2141, a network processor 2142, a forwarding table entry memory 2144, and a physical interface card 2143. The functions and implementations of the components in the interface board 2140 are the same as or similar to those of the interface board 2130, and are not described herein again.
Optionally, the network device 2100 also includes a switch board 2120. The switch board 2120 may also be called a Switch Fabric Unit (SFU). In the case where the network device has a plurality of interface boards, the switch board 2120 is used to complete data exchange between the interface boards. For example, the interface board 2130 and the interface board 2140 can communicate with each other via the switch board 2120.
A main control board 2110 is coupled to the interface board. For example. The main control board 2110, the interface board 2130, the interface board 2140, and the switch board 2120 are connected to the system backplane through the system bus to realize intercommunication. In a possible implementation manner, an inter-process communication (IPC) channel is established between the main control board 2110 and the interface board 2130 and the interface board 2140, and the main control board 2110 and the interface board 2130 and the interface board 2140 communicate with each other through the IPC channel.
Logically, the network device 2100 includes a control plane including a main control board 2110 and a central processor 2111, and a forwarding plane including various components to perform forwarding, such as a forwarding table entry memory 2134, a physical interface card 2133, and a network processor 2132. The control plane executes functions of a router, generating a forwarding table, processing signaling and protocol messages, configuring and maintaining the state of the network device, and the like, and issues the generated forwarding table to the forwarding plane, and in the forwarding plane, the network processor 2132 looks up the table of the message received by the physical interface card 2133 and forwards the message based on the forwarding table issued by the control plane. The forwarding table issued by the control plane may be stored in the forwarding table entry storage 2134. In some embodiments, the control plane and the forwarding plane may be completely separate and not on the same network device.
It should be noted that there may be one or more main control boards, and when there are more main control boards, the main control boards may include a main control board and a standby main control board. The interface board may have one or more blocks, and the stronger the data processing capability of the network device, the more interface boards are provided. There may also be one or more physical interface cards on an interface board. The exchange network board may not have one or more blocks, and when there are more blocks, the load sharing redundancy backup can be realized together. Under the centralized forwarding architecture, the network device does not need a switching network board, and the interface board undertakes the processing function of the service data of the whole system. Under the distributed forwarding architecture, the network device can have at least one switching network board, and the data exchange among a plurality of interface boards is realized through the switching network board, so that the high-capacity data exchange and processing capacity is provided. Therefore, the data access and processing capabilities of the network devices in the distributed architecture are greater than those of the network devices in the centralized architecture. Optionally, the network device may also be in a form of only one board card, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on the one board card, and at this time, the central processing unit on the interface board and the central processing unit on the main control board may be combined into one central processing unit on the one board card to perform a function of superimposing the two, where the data switching and processing capability of the network device is low (for example, network devices such as a low-end switch or a router). Which architecture is specifically adopted depends on the specific networking deployment scenario, and is not limited herein.
In a specific embodiment, the network device 2100 corresponds to the message processing apparatus applied to the UP device shown in fig. 17. In some embodiments, the protocol module 1701 in the message processing apparatus shown in fig. 17 corresponds to a physical interface card 2133 in the network device 2100, and the proxy module 1702 corresponds to a central processor 2111 or a network processor 2132 in the network device 2100.
In some embodiments, the network device 2100 further corresponds to the message processing apparatus applied to the CP device shown in fig. 18. In some embodiments, the protocol module 1801 in the message processing apparatus shown in fig. 18 corresponds to the physical interface card 2133 in the network device 2100.
Based on the network devices shown in fig. 19 and fig. 20, an embodiment of the present application further provides a message processing system, where the message processing system includes: UP devices and CP devices. Alternatively, the UP device is the network device 2000 shown in fig. 19 or the network device 2100 shown in fig. 20, and the cp device is the network device 2000 shown in fig. 19 or the network device 2100 shown in fig. 20.
The message processing method executed by the UP device and the CP device may refer to the related description of the embodiments shown in fig. 2-4 and 10-13, and will not be described herein again.
An embodiment of the present application further provides a communication apparatus, including: a transceiver, a memory, and a processor. Wherein, the transceiver, the memory and the processor are communicated with each other through an internal connection path, the memory is used for storing instructions, the processor is used for executing the instructions stored by the memory to control the transceiver to receive signals and control the transceiver to transmit signals, and when the processor executes the instructions stored by the memory, the processor is enabled to execute the method required by the UP device.
An embodiment of the present application further provides a communication apparatus, including: a transceiver, a memory, and a processor. Wherein the transceiver, the memory and the processor are in communication with each other through an internal connection path, the memory is used for storing instructions, the processor is used for executing the instructions stored by the memory to control the transceiver to receive signals and control the transceiver to transmit signals, and when the processor executes the instructions stored by the memory, the processor is enabled to execute the method required by the CP device.
It should be understood that the processor may be a CPU, other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting advanced reduced instruction set machine (ARM) architecture.
Further, in an alternative embodiment, the memory may include both read-only memory and random access memory, and provide instructions and data to the processor. The memory may also include non-volatile random access memory. For example, the memory may also store device type information.
The memory may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available. For example, static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
An embodiment of the present application further provides a computer-readable storage medium, where at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor, so as to enable a computer to implement the message processing method according to any one of the above.
Embodiments of the present application further provide a computer program (product), which when executed by a computer, can cause the processor or the computer to execute the corresponding steps and/or processes in the above method embodiments.
The embodiment of the present application further provides a chip, which includes a processor, and is configured to invoke and run an instruction stored in a memory from the memory, so that a communication device on which the chip is installed executes the message processing method according to any one of the above descriptions.
The embodiment of the present application further provides another chip, including: the message processing system comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the message processing method.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions described in accordance with the present application are generated, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
Those of ordinary skill in the art will appreciate that the various method steps and modules described in connection with the embodiments disclosed herein can be implemented in software, hardware, firmware, or any combination thereof, and that the steps and components of the embodiments have been described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. By way of example, the methods of embodiments of the present application may be described in the context of machine-executable instructions, such as those included in program modules, being executed in devices on target real or virtual processors. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform particular tasks or implement particular abstract data types. In various embodiments, the functionality of the program modules may be combined or split between program modules as described. Machine-executable instructions for program modules may be executed within local or distributed devices. In a distributed arrangement, program modules may be located in both local and remote memory storage media.
Computer program code for implementing the methods of embodiments of the present application may be written in one or more programming languages. These computer program codes may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the computer or other programmable data processing apparatus, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. The program code may execute entirely on the computer, partly on the computer, as a stand-alone software package, partly on the computer and partly on a remote computer or entirely on the remote computer or server.
In the context of embodiments of the present application, computer program code or relevant data may be carried by any suitable carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of a carrier include a signal, computer readable medium, and the like.
Examples of signals may include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.
A machine-readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More detailed examples of a machine-readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the device and the module described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the module is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. Further, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may also be an electrical, mechanical or other form of connection.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The terms "first," "second," and the like in this application are used for distinguishing between similar items and items that have substantially the same function or similar functionality, and it should be understood that "first," "second," and "nth" do not have any logical or temporal dependency or limitation on the number or order of execution. It will be further understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image, without departing from the scope of the various described examples. Both the first image and the second image may be images, and in some cases, may be separate and distinct images.
It should also be understood that, in the embodiments of the present application, the size of the serial number of each process does not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The term "at least one" in this application means one or more, and the term "plurality" in this application means two or more, for example, a plurality of second messages means two or more second messages. The terms "system" and "network" are often used interchangeably herein.
It is to be understood that the terminology used in the description of the various described examples herein is for the purpose of describing particular examples only and is not intended to be limiting. As used in the description of the various described examples and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and/or" is an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present application generally indicates that the preceding and following related objects are in an "or" relationship.
It will be further understood that the terms "comprises," "comprising," "includes," and/or "including," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terms "if" and "if" may be interpreted to mean "when" ("where" or "upon") or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined," or "if [ a stated condition or event ] is detected," may be interpreted to mean "upon determining," or "in response to determining," or "upon detecting [ a stated condition or event ], or" in response to detecting [ a stated condition or event ] ", depending on the context.
It should be understood that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information.
It should also be appreciated that reference throughout this specification to "one embodiment," "an embodiment," "one possible implementation" means that a particular feature, structure, or characteristic described in connection with the embodiment or implementation is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "one possible implementation" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
The above description is intended only to be an alternative embodiment of the present application, and not to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (52)

1. A message processing method is characterized in that the method is applied to a User Plane (UP) device of a virtual broadband network gateway, the virtual broadband network gateway also comprises a Control Plane (CP) device, and the method comprises the following steps:
the UP device receives a first message sent by the CP device, wherein the first message carries first indication information which is used for indicating the UP device to carry out online management on terminal equipment based on the virtual broadband access gateway access network;
determining an agent lease of a first terminal device based on the first message, wherein the first terminal device is a terminal device based on the virtual broadband access gateway access network;
and based on the first indication information, performing online management on the first terminal equipment according to the agent lease of the first terminal equipment.
2. The method of claim 1, wherein the duration of the proxy lease is less than or equal to a duration of a server lease, wherein the server lease is used to indicate a duration for which the server allows the first terminal device to access the network.
3. The method according to claim 1 or 2, wherein after receiving the first packet sent by the CP device, the method further comprises:
and sending a second message aiming at the first message to the CP equipment, wherein the second message carries the processing result of the first message.
4. The method according to any of claims 1-3, wherein the first packet is a Packet Forwarding Control Protocol (PFCP) packet, and the first indication information is carried by the first packet through an extended Information Element (IE).
5. The method according to any one of claims 1 to 4, wherein the performing online management on the first terminal device according to the proxy lease of the first terminal device based on the first indication information comprises:
receiving a first lease renewal request message sent by the first terminal equipment, wherein the first lease renewal request message is used for requesting lease renewal of the first terminal equipment;
and returning a first lease renewal response message aiming at the first lease renewal request message to the first terminal equipment according to the agent lease of the first terminal equipment based on the first indication information, wherein the first lease renewal response message is used for indicating whether lease renewal is successful or not.
6. The method according to claim 5, wherein the returning a first lease renewal response message for the first lease renewal request message to the first terminal device according to the proxy lease of the first terminal device based on the first indication information comprises:
and when the link between the UP device and the CP device fails, the UP device returns a first lease renewal response message aiming at the first lease renewal request message to the first terminal device according to the proxy lease of the first terminal device based on the first indication information.
7. The method of any of claims 1-6, further comprising:
sending a second lease renewal request message of the first terminal device to the CP device according to a server lease of the first terminal device, wherein the server lease is used for expressing the time length for allowing the first terminal device to access the network by the server;
and receiving a second lease renewal response message which is returned by the CP equipment and aims at the second lease renewal request message, and updating the server lease of the first terminal equipment based on the second lease renewal response message.
8. The method according to any of claims 1-7, wherein the performing online management on the first terminal device according to the proxy lease of the first terminal device based on the first indication information comprises:
receiving an offline request message sent by the first terminal equipment;
and when the link between the UP equipment and the CP equipment fails, returning an offline response message aiming at the offline request message to the first terminal equipment according to the proxy lease of the first terminal equipment based on the first indication information.
9. The method of claim 8, wherein the performing online management on the first terminal device according to the proxy lease of the first terminal device based on the first indication information comprises:
caching offline request data of the offline request message when a link between the UP device and the CP device fails;
when the link failure between the UP device and the CP device is recovered, the UP device sends a logoff message of the first terminal device to the CP device based on the logoff request data, wherein the logoff message is used for indicating that the first terminal device is offline.
10. The method according to claim 9, wherein the offline message is a PFCP resource report, and the PFCP resource report carries an offline trigger identifier through an extended IE, and the offline trigger identifier is used for the CP device to offline the first terminal device.
11. The method according to any one of claims 1 to 10, wherein the performing online management on the first terminal device according to the proxy lease of the first terminal device based on the first indication information comprises:
and responding to the expiration of the server lease of the first terminal device, and sending a logoff message of the first terminal device to the CP device, wherein the logoff message is used for indicating that the first terminal device is offline.
12. The method according to any one of claims 1 to 11, wherein before performing online management on the first terminal device according to the proxy lease of the first terminal device based on the first indication information, the method further comprises:
receiving a user table entry and an online response message of the first terminal device, which are sent by the CP device, wherein the user table entry comprises user information of the first terminal device, and the online response message comprises a server lease of the first terminal device;
and acquiring the user information of the first terminal equipment based on the user table item, and acquiring the server lease of the first terminal equipment based on the online response message.
13. The method according to any of claims 1-12, wherein the determining the proxy lease for the first terminal device based on the first packet comprises:
and determining that the server lease of the first terminal equipment is the proxy lease of the first terminal equipment based on the first indication information carried in the first message.
14. The method according to any of claims 1-12, wherein said first packet further carries a proxy lease of said UP device;
the determining the agent lease of the first terminal device based on the first packet includes:
and taking the proxy lease of the UP equipment carried in the first message as the proxy lease of the first terminal equipment.
15. The method according to any of claims 1-14, wherein after determining the proxy lease of the first terminal device based on the first packet, further comprising:
and sending the agent lease of the first terminal equipment to the first terminal equipment.
16. The method according to any of claims 1-15, wherein after said UP device receives a first packet sent by said CP device, further comprising:
receiving a third message sent by the CP device, wherein the third message carries cancel first indication information, and the cancel first indication information is used for indicating the UP device to cancel the online management of the first terminal device;
and sending a fourth message aiming at the third message to the CP equipment, wherein the fourth message carries the processing result of the third message.
17. A message processing method is characterized in that the method is applied to control plane CP equipment of a virtual broadband network gateway, the virtual broadband network gateway also comprises user plane UP equipment, and the method comprises the following steps:
the CP device sends a first message to the UP device, the first message carries first indication information, the first indication information is used for indicating the UP device to carry out online management on a first terminal device, and the first terminal device is a terminal device based on the virtual broadband access gateway access network.
18. The method of claim 17, wherein after the CP device sends the first packet to the UP device, further comprising:
and receiving a second message aiming at the first message, which is sent by the UP device, wherein the second message carries the processing result of the first message.
19. The method according to claim 17 or 18, wherein the first packet is a Packet Forwarding Control Protocol (PFCP) packet, and the first indication information is carried by the first packet through an extended Information Element (IE).
20. The method according to any of claims 17-19, wherein the first packet further carries a proxy lease of the UP device, a duration of the proxy lease is less than or equal to a duration of a server lease, and the server lease is used to indicate a duration that the server allows the first terminal device to access the network.
21. The method according to any of claims 17-20, wherein after the CP device sends the first packet to the UP device, further comprising:
when the link between the CP device and the UP device fails, the CP device sends a third lease renewal request message to a server based on the server lease of the first terminal device, wherein the third lease renewal request message is used for requesting lease renewal of the first terminal device;
receiving a third lease renewal response message which is returned by the server and aims at the third lease renewal request message, wherein the third lease renewal response message is used for indicating whether lease renewal is successful or not;
responding to the third lease renewal response message indicating lease renewal failure, and caching the lease renewal failure data;
and when the link failure between the CP device and the UP device is recovered, the CP device carries out offline processing on the first terminal device based on the lease renewal failure data.
22. The method according to any of claims 17-21, wherein after the CP device sends the first packet to the UP device, further comprising:
receiving a second lease renewal request message of the first terminal equipment, which is sent by the UP equipment, sending the second lease renewal request message to a server, and receiving a second lease renewal response message which is returned by the server and aims at the second lease renewal request message;
and returning the second lease renewal response message to the UP device, wherein the second lease renewal response message is used for updating the server lease of the first terminal device by the UP device.
23. The method according to any of claims 17-22, wherein after the CP device sends the first packet to the UP device, further comprising:
receiving an offline message sent by the UP device, wherein the offline message is used for indicating that the first terminal device is offline;
and performing offline processing on the first terminal equipment based on the offline message.
24. The method of claim 23, wherein the offline message is a PFCP resource report, and the PFCP resource report carries an offline trigger identifier through an extended IE, and the offline trigger identifier is used for offline processing of the first terminal device by the CP device.
25. The method according to any of claims 17-24, wherein after the CP device sends the first packet to the UP device, further comprising:
sending a third message to the UP device, wherein the third message carries first cancelling indication information which is used for indicating the UP device to cancel the online management of the first terminal device;
and receiving a fourth message aiming at the third message and sent by the UP device, wherein the fourth message carries the processing result of the third message.
26. A message processing device is characterized in that the device is applied to a User Plane (UP) device of a virtual broadband network gateway, the virtual broadband network gateway further comprises a Control Plane (CP) device, and the device comprises:
a protocol module, configured to receive a first packet sent by the CP device, where the first packet carries first indication information, and the first indication information is used to indicate the UP device to perform online management on a terminal device based on the virtual broadband access gateway access network;
the proxy module is used for determining a proxy lease of first terminal equipment based on the first message, wherein the first terminal equipment is the terminal equipment based on the virtual broadband access gateway access network; and based on the first indication information, performing online management on the first terminal equipment according to the agent lease of the first terminal equipment.
27. The apparatus of claim 26, wherein a duration of the proxy lease is less than or equal to a duration of a server lease, wherein the server lease is used to indicate a duration for which the server allows the first terminal device to access the network.
28. The apparatus according to claim 26 or 27, wherein the protocol module is further configured to send a second packet for the first packet to the CP device, where the second packet carries a processing result of the first packet.
29. The apparatus according to any of claims 26-28, wherein the first packet is a packet forwarding control protocol, PFCP, packet, and the first packet carries the first indication information through an extended information element, IE.
30. The apparatus according to any one of claims 26 to 29, wherein the agent module is configured to receive a first lease renewal request packet sent by the first terminal device, where the first lease renewal request packet is used to request lease renewal of the first terminal device; and returning a first lease renewal response message aiming at the first lease renewal request message to the first terminal equipment according to the agent lease of the first terminal equipment based on the first indication information, wherein the first lease renewal response message is used for indicating whether lease renewal is successful or not.
31. The apparatus of claim 30, wherein the proxy module is configured to return a first lease renewal response packet for the first lease renewal request packet to the first terminal device according to a proxy lease of the first terminal device based on the first indication information when the link between the UP device and the CP device fails.
32. The apparatus according to any one of claims 26 to 31, wherein the protocol module is further configured to send a second lease renewal request packet of the first terminal device to the CP device according to a server lease of the first terminal device, where the server lease is used to indicate a duration that the server allows the first terminal device to access a network; and receiving a second lease renewal response message which is returned by the CP equipment and aims at the second lease renewal request message, and updating the server lease of the first terminal equipment based on the second lease renewal response message.
33. The apparatus according to any one of claims 26 to 32, wherein the agent module is configured to receive a logoff request message sent by the first terminal device; and when the link between the UP equipment and the CP equipment fails, returning an offline response message aiming at the offline request message to the first terminal equipment according to the proxy lease of the first terminal equipment based on the first indication information.
34. The apparatus of claim 33, wherein the proxy module is configured to buffer offline request data of the offline request packet when a link between the UP device and the CP device fails; the protocol module is configured to send, to the CP device, an offline message of the first terminal device based on the offline request data when the link failure between the UP device and the CP device is recovered, where the offline message is used to indicate that the first terminal device is offline.
35. The apparatus of claim 34, wherein the offline message is a PFCP resource report, and the PFCP resource report carries an offline trigger identifier through an extended IE, and the offline trigger identifier is used for the CP device to offline the first terminal device.
36. The apparatus of any one of claims 26-35, wherein the protocol module is configured to send a logoff message of the first terminal device to the CP device in response to expiration of a server lease of the first terminal device, and wherein the logoff message is used to indicate that the first terminal device is offline.
37. The apparatus according to any one of claims 26 to 36, wherein the protocol module is further configured to receive a user entry and an online response message of the first terminal device, where the user entry and the online response message are sent by the CP device, where the user entry includes user information of the first terminal device, and the online response message includes a server lease of the first terminal device; and the proxy module is used for acquiring the user information of the first terminal equipment based on the user table entry and acquiring the server lease of the first terminal equipment based on the online response message.
38. The apparatus according to any one of claims 26 to 37, wherein the proxy module is configured to determine, based on the first indication information carried in the first packet, that the server lease of the first terminal device is a proxy lease of the first terminal device.
39. The apparatus of any of claims 26-37, wherein the first packet further carries a proxy lease of the UP device; the proxy module is configured to use the proxy lease of the UP device carried in the first packet as a proxy lease of the first terminal device.
40. The apparatus of any of claims 26-39, wherein the proxy module is further configured to send a proxy lease of the first terminal device to the first terminal device.
41. The apparatus according to any of claims 26-40, wherein the protocol module is further configured to receive a third packet sent by the CP device, where the third packet carries cancellation first indication information, and the cancellation first indication information is used to indicate that the UP device cancels online management of the first terminal device; and sending a fourth message aiming at the third message to the CP equipment, wherein the fourth message carries the processing result of the third message.
42. A message processing apparatus, which is applied to a control plane CP device of a virtual broadband network gateway, where the virtual broadband network gateway further includes a user plane UP device, and the apparatus includes:
and the protocol module is used for sending a first message to the UP device, wherein the first message carries first indication information, the first indication information is used for indicating the UP device to perform online management on a first terminal device, and the first terminal device is a terminal device based on the virtual broadband access gateway access network.
43. The apparatus of claim 42, wherein the protocol module is further configured to receive a second packet for the first packet sent by the UP device, and wherein the second packet carries a processing result of the first packet.
44. The apparatus according to claim 42 or 43, wherein the first packet is a Packet Forwarding Control Protocol (PFCP) packet, and the first indication information is carried by the first packet through an extended Information Element (IE).
45. The apparatus of any of claims 42-44, wherein the first packet further carries a proxy lease of the UP device, wherein a duration of the proxy lease is less than or equal to a duration of a server lease, and wherein the server lease is used to indicate a duration for which the server allows the first terminal device to access the network.
46. The apparatus of any one of claims 42 to 45, further comprising:
a management module, configured to send a third lease renewal request packet to a server based on a server lease of the first terminal device when a link between the CP device and the UP device fails, where the third lease renewal request packet is used to request lease renewal of the first terminal device; receiving a third lease renewal response message which is returned by the server and aims at the third lease renewal request message, wherein the third lease renewal response message is used for indicating whether lease renewal is successful or not; responding to the third lease renewal response message indicating lease renewal failure, and caching the lease renewal failure data; and when the link failure between the CP equipment and the UP equipment is recovered, performing offline processing on the first terminal equipment based on the lease renewal failure data.
47. The apparatus of claim 46, wherein the management module is further configured to receive a second lease renewal request packet sent by the UP device for the first terminal device, send the second lease renewal request packet to a server, and receive a second lease renewal response packet returned by the server for the second lease renewal request packet; and returning the second lease renewal response message, wherein the second lease renewal response message is used for updating the server lease of the first terminal equipment by the UP equipment.
48. The apparatus of claim 46 or 47, wherein the management module is further configured to receive an offline message sent by the UP device, and wherein the offline message is used to indicate that the first terminal device is offline; and performing offline processing on the first terminal equipment based on the offline message.
49. The apparatus of claim 48, wherein the offline message is a PFCP resource report, and the PFCP resource report carries an offline trigger identifier through an extended IE, and the offline trigger identifier is used for the CP device to offline the first terminal device.
50. The apparatus of any of claims 42-49, wherein the protocol module is further configured to send a third packet to the UP device, where the third packet carries cancellation first indication information, and the cancellation first indication information is used to indicate that the UP device cancels online management of the first terminal device; and receiving a fourth message aiming at the third message and sent by the UP device, wherein the fourth message carries the processing result of the third message.
51. A message processing system is characterized in that the message processing system comprises a User Plane (UP) device and a Control Plane (CP) device;
the UP device is configured to perform the method of any of claims 1-16 and the CP device is configured to perform the method of any of claims 17-25.
52. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to cause a computer to implement a message processing method according to any one of claims 1-16, or to cause a computer to implement a message processing method according to any one of claims 17-25.
CN202111016498.7A 2021-07-08 2021-08-31 Message processing method, device and system and computer readable storage medium Pending CN115665095A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22836746.2A EP4358476A1 (en) 2021-07-08 2022-06-24 Message processing method, apparatus and system, and computer-readable storage medium
PCT/CN2022/101308 WO2023279992A1 (en) 2021-07-08 2022-06-24 Message processing method, apparatus and system, and computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2021107728645 2021-07-08
CN202110772864 2021-07-08

Publications (1)

Publication Number Publication Date
CN115665095A true CN115665095A (en) 2023-01-31

Family

ID=85015104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111016498.7A Pending CN115665095A (en) 2021-07-08 2021-08-31 Message processing method, device and system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115665095A (en)

Similar Documents

Publication Publication Date Title
US9974055B2 (en) Method for managing forwarding plane tunnel resource under control and forwarding decoupled architecture
JP5497901B2 (en) Anonymous communication method, registration method, message sending / receiving method and system
US9173244B2 (en) Methods for establishing and using public path, M2M communication method, and systems thereof
US11871273B2 (en) Systems and methods for user plane handling
WO2021043191A1 (en) Domain name system server determination method, request processing method and apparatus, and system
JP2020515126A (en) Internet of Things communication method, Internet of Things device, and Internet of Things system
US10404773B2 (en) Distributed cluster processing system and packet processing method thereof
US8711749B2 (en) Information obtaining and notification, data message forwarding and handover method and access node
KR101354869B1 (en) Methods and systems for implementing inter-network roam, querying and attaching network
US9641433B2 (en) Method, routing bridge, and system for sending packet
CN111770545A (en) Service flow routing control method, device and system
CA2774281C (en) User access method, system, access server, and access device
US20240048477A1 (en) Packet forwarding method, apparatus, and system, and computer-readable storage medium
WO2022001735A1 (en) Message processing method, up device and cp device
CN114765572A (en) Fault processing method, control plane network element, switching decision network element and related equipment
US20230246994A1 (en) Address management method, apparatus, and system
US11812378B2 (en) User management device, BNG, and BNG user internet access method and system
CN115665095A (en) Message processing method, device and system and computer readable storage medium
WO2023279992A1 (en) Message processing method, apparatus and system, and computer-readable storage medium
CN109039680B (en) Method and system for switching main Broadband Network Gateway (BNG) and standby BNG and BNG
WO2011026355A1 (en) Method for a node accessing a home agent, home agent cluster system and service router
WO2023216584A1 (en) Method for obtaining application-aware network identifier and related device
US20230188451A1 (en) User keepalive method and apparatus
WO2022228533A1 (en) Message processing method, apparatus and system, and storage medium
ES2941351T3 (en) Information transmission method and network element selector

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication