[go: up one dir, main page]

CN106685818B - Message feedback method and device - Google Patents

Message feedback method and device Download PDF

Info

Publication number
CN106685818B
CN106685818B CN201611260865.7A CN201611260865A CN106685818B CN 106685818 B CN106685818 B CN 106685818B CN 201611260865 A CN201611260865 A CN 201611260865A CN 106685818 B CN106685818 B CN 106685818B
Authority
CN
China
Prior art keywords
plane device
user plane
user
vrrp
priority
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.)
Active
Application number
CN201611260865.7A
Other languages
Chinese (zh)
Other versions
CN106685818A (en
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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital 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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201611260865.7A priority Critical patent/CN106685818B/en
Publication of CN106685818A publication Critical patent/CN106685818A/en
Application granted granted Critical
Publication of CN106685818B publication Critical patent/CN106685818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a message feedback method and a message feedback device, and belongs to the technical field of communication. The method comprises the following steps: when the first user plane equipment can not provide service, the control plane equipment sends user information corresponding to the first user plane equipment to the second user plane equipment, the second user plane equipment receives a keep-alive message sent by the user equipment, and a confirmation message is fed back to the user equipment according to the user information; when the first user plane equipment recovers from the service incapable of being provided to the service providing state, the control plane equipment sends user information corresponding to the second user plane equipment to the first user plane equipment, the first user plane equipment receives the keep-alive messages sent by the user equipment, and confirmation messages are fed back to the user equipment according to the user information. The invention solves the problem that the user information on the main router needs to be backed up to the standby router in real time in order to keep the user from being disconnected, so that the equipment resources of the standby router are excessively occupied.

Description

报文反馈方法及装置Message feedback method and device

技术领域technical field

本发明涉及通信技术领域,特别涉及一种报文反馈方法及装置。The present invention relates to the field of communication technologies, and in particular, to a message feedback method and device.

背景技术Background technique

如图1所示,宽带接入网通常包括:接入交换机110、BRAS(Broadband RemoteAccess Server Control Plane,宽带远程接入服务器)120以及上行网络设备130,用户设备140通过接入交换机110、BRAS 120、上行网络设备130接入到互联网150。As shown in FIG. 1 , the broadband access network generally includes: an access switch 110 , a BRAS (Broadband Remote Access Server Control Plane, broadband remote access server) 120 and an uplink network device 130 , and the user equipment 140 passes through the access switch 110 and the BRAS 120 . . The uplink network device 130 is connected to the Internet 150 .

BRAS 120中通常包括主路由器(master)121和备路由器(backup)122,在主路由器121和备路由器122上配置VRRP(Virtual Router Redundancy Protocol,虚拟路由冗余协议)后,主路由器121和备路由器122虚拟为一台路由器,这台虚拟的路由器拥有虚拟的IP(Internet Protocol,网络之间互连的协议)地址和MAC(Media Access Control,媒体访问控制)地址,用户设备140感知的是这台虚拟路由器,对实际的主路由器121和备路由器122并不感知。通常两个路由器中VRRP优先级高的作为主路由器121,主路由器121实现真正的转发功能,当主路由器121出现故障时,备路由器122作为新的主路由器来接替故障的主路由器121的工作。为了保证故障的快速发现,在主路由器121和备路由器122上可以使用BFD(Bidirectional Forwarding Detection,双向转发检查)技术进行故障探测。主路由器121上的BFD与上行链路的接口绑定,用于探测主路由器121的上行链路的状态,上行链路是指主路由器121和上行网络设备130之间的链路;备路由器122上的BFD与主路由器121的IP绑定,用于探测主路由器121的下行链路的状态,下行链路是指主路由器121和接入交换机110之间的链路。BFD配置好之后,会定期发送检测报文给绑定的对端,当BFD检测到对端没有回应时,BFD的状态变为DOWN,表示故障,然后BFD会立刻通知VRRP进行主备切换。比如:当主路由器121通过BFD检测到上行链路的接口故障时,BFD状态变为DOWN,主路由器121中的BFD通知主路由器121中的VRRP降低第一VRRP优先级,使得备路由器122快速切换为主路由器;当备路由器122通过BFD检测到主路由器故障时,BFD状态变为DOWN,备路由器122中的BFD通知备路由器122中的VRRP提高第二VRRP优先级,使得备路由器122快速切换为主路由器。其中,第一VRRP优先级是主路由器的VRRP优先级,第二VRRP优先级是备路由器的VRRP优先级。The BRAS 120 usually includes a master router (master) 121 and a backup router (backup) 122. After VRRP (Virtual Router Redundancy Protocol) is configured on the master router 121 and the backup router 122, the master router 121 and the backup router 122 are configured with VRRP (Virtual Router Redundancy Protocol). 122 is virtualized as a router, and this virtual router has a virtual IP (Internet Protocol, protocol for interconnection between networks) address and MAC (Media Access Control, media access control) address, which is perceived by the user equipment 140. The virtual router is not aware of the actual main router 121 and the backup router 122 . Usually, the router with higher VRRP priority among the two routers serves as the master router 121, and the master router 121 implements the real forwarding function. When the master router 121 fails, the backup router 122 acts as the new master router to take over the work of the failed master router 121. In order to ensure fast fault detection, the primary router 121 and the standby router 122 may use the BFD (Bidirectional Forwarding Detection, bidirectional forwarding detection) technology to perform fault detection. The BFD on the main router 121 is bound to the uplink interface, and is used to detect the status of the uplink of the main router 121. The uplink refers to the link between the main router 121 and the uplink network device 130; the standby router 122 The BFD on the main router 121 is bound to the IP of the main router 121 to detect the status of the downlink of the main router 121 , and the downlink refers to the link between the main router 121 and the access switch 110 . After BFD is configured, it will periodically send detection packets to the bound peer end. When BFD detects that the peer end does not respond, the BFD status changes to DOWN, indicating a failure, and then BFD will immediately notify VRRP to perform an active/standby switchover. For example: when the master router 121 detects the failure of the uplink interface through BFD, the BFD state changes to DOWN, and the BFD in the master router 121 notifies the VRRP in the master router 121 to lower the priority of the first VRRP, so that the backup router 122 quickly switches to Master router; when the backup router 122 detects the failure of the master router through BFD, the BFD state changes to DOWN, and the BFD in the backup router 122 notifies the VRRP in the backup router 122 to increase the priority of the second VRRP, so that the backup router 122 quickly switches to the master router router. The first VRRP priority is the VRRP priority of the master router, and the second VRRP priority is the VRRP priority of the standby router.

用户设备140在上线后,通过保活报文来保持在线状态。在BRAS 120进行主备切换时,BRAS 120接收用户设备140上报的保活报文,备路由器122在接收到用户设备140上报的保活报文时,需要查找到与用户设备140对应的用户信息,确认用户设备140已上线,然后向用户设备140反馈确认报文,从而保证用户设备140在主备切换时不掉线。现有技术中,用户设备140通过主路由器121上线后,主路由器121上的用户信息被实时同步到备路由器122上,当主路由器121发生故障时,备路由器122会立刻切换成新的主路由器,由于备路由器122中同步有用户设备140的用户信息,因此备路由器122在接收到用户设备140的保活报文后能够反馈确认报文,从而使得用户设备140不掉线。After the user equipment 140 goes online, the keep-alive message is used to keep the online state. When the BRAS 120 performs an active/standby switchover, the BRAS 120 receives the keep-alive message reported by the user equipment 140, and the standby router 122 needs to find the user information corresponding to the user equipment 140 when receiving the keep-alive message reported by the user equipment 140. , confirm that the user equipment 140 is online, and then feed back a confirmation message to the user equipment 140, so as to ensure that the user equipment 140 does not go offline during the master-standby switchover. In the prior art, after the user equipment 140 goes online through the main router 121, the user information on the main router 121 is synchronized to the standby router 122 in real time. When the main router 121 fails, the standby router 122 will immediately switch to the new main router. Since the user information of the user equipment 140 is synchronized in the standby router 122, the standby router 122 can feed back a confirmation message after receiving the keep-alive message of the user equipment 140, so that the user equipment 140 is not disconnected.

为了保持用户不掉线,主路由器121上的用户信息需要实时备份到备路由器122上,以便在主路由器121发生故障时能够立即切换到备路由器122继续工作,而实时备份会过多占用备路由器122的设备资源。In order to keep users from being disconnected, the user information on the main router 121 needs to be backed up to the standby router 122 in real time, so that when the main router 121 fails, it can immediately switch to the standby router 122 to continue working. However, real-time backup will occupy the standby router too much. 122 device resources.

发明内容SUMMARY OF THE INVENTION

为了解决现有技术中主路由器上的用户信息需要实时备份到备路由器上,导致过多占用备路由器的设备资源的问题,本发明实施例提供了一种报文反馈方法及装置。所述技术方案如下:In order to solve the problem in the prior art that the user information on the main router needs to be backed up to the standby router in real time, resulting in excessive occupation of equipment resources of the standby router, embodiments of the present invention provide a message feedback method and device. The technical solution is as follows:

第一方面,提供了一种报文反馈方法,该报文反馈方法应用在第二用户面设备中,当第一用户面设备由于升级或第一用户面设备所属链路发生故障导致第一用户面设备无法提供服务时,第二用户面设备从控制面设备获取第一用户面设备对应的用户信息,在第二用户面设备获取到用户信息后,第二用户面设备对接收到的用户设备发送的保活报文进行响应,向用户设备反馈确认报文。其中,第二用户面设备在第一用户面设备提供服务时的状态为备用状态,第一用户面设备和第二用户面设备用于实现用户拨号报文上送、转发表项的接收以及用户流量转发,控制面设备用于实现用户接入协议处理和用户管理。In a first aspect, a packet feedback method is provided. The packet feedback method is applied to a second user plane device. When the first user plane device is upgraded or a link to which the first user plane device belongs is faulty, the first user plane device is faulty. When the plane device cannot provide the service, the second user plane device obtains the user information corresponding to the first user plane device from the control plane device. After the second user plane device obtains the user information, the second user plane device communicates with the received user equipment. The sent keep-alive message responds, and an acknowledgement message is sent back to the user equipment. Wherein, the state of the second user plane device when the first user plane device provides services is a standby state, and the first user plane device and the second user plane device are used to implement user dial-up message upload, reception of forwarding entries, and user Traffic forwarding, and the control plane device is used to implement user access protocol processing and user management.

通过在第一用户面设备无法提供服务时,第二用户面设备从控制面设备获取第一用户面设备对应的用户信息,根据用户信息向发送保活报文的用户设备反馈确认报文,由于第二用户面设备不需要实时备份第一用户面设备的用户信息,即备用状态的用户面设备不需要实时备份主状态的用户面设备的用户信息,因此不会产生过多占用备用状态的用户面设备资源的问题。When the first user plane device cannot provide services, the second user plane device obtains the user information corresponding to the first user plane device from the control plane device, and feeds back a confirmation message to the user equipment that sent the keep-alive message according to the user information. The second user plane device does not need to back up the user information of the first user plane device in real time, that is, the user plane device in the standby state does not need to back up the user information of the user plane device in the main state in real time, so it will not generate too many users occupying the standby state. face device resource problems.

另外,由于第二用户面设备在接收到用户信息后,根据用户信息可以向发送保活报文的用户设备反馈确认报文,从而使得在第一用户面设备无法提供服务时,用户设备能够通过第二用户面设备继续上线。In addition, after receiving the user information, the second user plane device can feed back a confirmation message to the user equipment that sent the keep-alive message according to the user information, so that when the first user plane device cannot provide services, the user equipment can pass The second user plane device continues to go online.

在第一方面的第一种可能的实施方式中,第一用户面设备由于升级导致无法提供服务,第二用户面设备在第一用户面设备升级时接收控制面设备下发的第一用户面设备对应的用户信息。这里的升级时包括升级前的预定时长和升级过程,预定时长至少大于第二用户面设备接收控制面设备下发用户信息的时长。In a first possible implementation manner of the first aspect, the first user plane device cannot provide services due to an upgrade, and the second user plane device receives the first user plane delivered by the control plane device when the first user plane device is upgraded User information corresponding to the device. The upgrade here includes a predetermined duration before the upgrade and an upgrade process, and the predetermined duration is at least greater than the duration for the second user plane device to receive the user information delivered by the control plane device.

由于第一用户面设备在升级时无法提供服务,因此第一用户面设备在升级时,第二用户面设备接收控制面设备下发的第一用户面设备对应的用户信息,从而在第一用户面设备升级的过程中能够接替第一用户面设备进行用户流量的转发工作。由于第二用户面设备是在第一用户面设备升级前的预定时长就接收控制面设备下发的用户信息,并且预定时长大于控制面设备下发用户信息的时长,因此在第一用户面设备升级过程中,第二用户面设备中已经存储了用户信息,能够对用户设备发送的报文进行响应,从而使得用户设备在主备切换时不会掉线。Since the first user plane device cannot provide services during the upgrade, when the first user plane device is upgraded, the second user plane device receives the user information corresponding to the first user plane device delivered by the control plane device, so that the first user plane device can During the upgrade process of the plane device, it can take over the forwarding work of the user traffic by the first user plane device. Because the second user plane device receives the user information delivered by the control plane device before the first user plane device is upgraded, and the predetermined time period is longer than the time period for which the control plane device delivers the user information, the first user plane device During the upgrade process, the user information has been stored in the second user plane device, and it can respond to the message sent by the user equipment, so that the user equipment will not be disconnected during active/standby switching.

结合第一方面或者第一方面的第一种可能的实施方式,在第二种可能的实施方式中,在第一用户面设备升级时,第二用户面设备从控制面设备获取到第一用户面设备对应的用户信息之后,第二用户面设备通过两种方式将第二用户面设备的VRRP状态从备用状态切换为主状态。第一种方式是第二用户面设备接收控制面设备发送的优先级提高命令,并根据优先级提高命令提高第二用户面设备的第二VRRP优先级;第二种方式是接收第一用户面设备发送的第一VRRP优先级,该第一VRRP优先级是第一用户面设备在接收到控制面设备发送的优先级降低命令后根据优先级降低命令将第一用户面设备原来的第一VRRP优先级降低后得到的。第一用户面设备与第二用户面设备之间通过VRRP通告报文交互后确定出第二用户面设备的第二VRRP优先级高于第一用户面设备的第一VRRP优先级,则第二用户面设备的VRRP状态从备用状态切换为主状态。With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, when the first user plane device is upgraded, the second user plane device acquires the first user from the control plane device After the user information corresponding to the plane device is stored, the second user plane device switches the VRRP state of the second user plane device from the standby state to the main state in two ways. The first way is that the second user plane device receives the priority increase command sent by the control plane device, and increases the second VRRP priority of the second user plane device according to the priority increase command; the second way is to receive the first user plane device. The first VRRP priority sent by the device, where the first VRRP priority is that after the first user plane device receives the priority reduction command sent by the control plane device, the original first VRRP of the first user plane device is changed according to the priority reduction command. Obtained after lowering the priority. After the first user plane device and the second user plane device exchange VRRP advertisement messages, it is determined that the second VRRP priority of the second user plane device is higher than the first VRRP priority of the first user plane device, then the second The VRRP state of the user plane device is switched from the standby state to the active state.

由于第二用户面设备在接收到第一用户面设备对应的用户信息之后,才接收到控制面设备法发送的优先级提高命令,或者接收到第一用户面设备根据优先级降低命令降低的第一VRRP优先级,然后第二用户面设备的VRRP状态由备用状态切换为主状态,第二用户面设备接替第一用户面设备继续提供服务,使得在切换时第二用户面设备中已经有用户信息,从而不会产生切换时由于第二用户面设备中没有用户信息使得用户流量被丢弃的情况。Because the second user plane device only receives the priority increase command sent by the control plane device method after receiving the user information corresponding to the first user plane device, or receives the first user plane device to reduce the priority according to the priority reduction command. A VRRP priority, then the VRRP state of the second user plane device is switched from the standby state to the main state, and the second user plane device takes over the first user plane device and continues to provide services, so that there are already users in the second user plane device during the switchover. information, so that there is no situation in which user traffic is discarded during handover because there is no user information in the second user plane device.

结合第一方面、第一方面的第一种可能的实施方式或者第一方面的第二种可能的实施方式,在第三种可能的实施方式中,在第一用户面设备升级完毕时,第二用户面设备通过两种方式将第二用户面设备的VRRP状态从主状态切换为备用状态。第一种方式是第二用户面设备接收控制面设备发送的优先级降低命令,并根据优先级降低命令降低第二用户面设备的第二VRRP优先级;第二种方式是接收第一用户面设备发送的第一VRRP优先级,该第一VRRP优先级是第一用户面设备根据控制面设备发送的优先级提高命令后将第一用户面设备的第一VRRP优先级提高后得到的。第一用户面设备与第二用户面设备之间通过VRRP通告报文交互后确定出第一用户面设备的第一VRRP优先级高于第二用户面设备的第二VRRP优先级,则第二用户面设备的VRRP状态从主状态切换为备用状态。其中,第二用户面设备接收到控制面设备发送的优先级降低命令,或第一用户面设备接收到控制面设备发送的优先级提高命令,均是在第一用户面设备升级完毕后接收到控制面设备下发的用户信息后执行的。With reference to the first aspect, the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in the third possible implementation manner, when the first user plane device is upgraded, the The second user plane device switches the VRRP state of the second user plane device from the main state to the standby state in two ways. The first method is that the second user plane device receives the priority reduction command sent by the control plane device, and reduces the second VRRP priority of the second user plane device according to the priority reduction command; the second method is to receive the first user plane device. The first VRRP priority sent by the device, where the first VRRP priority is obtained after the first user plane device increases the first VRRP priority of the first user plane device according to the priority increase command sent by the control plane device. After the first user plane device and the second user plane device exchange VRRP advertisement messages, it is determined that the first VRRP priority of the first user plane device is higher than the second VRRP priority of the second user plane device, then the second The VRRP state of the user plane device is switched from the active state to the standby state. The second user plane device receives the priority reduction command sent by the control plane device, or the first user plane device receives the priority increase command sent by the control plane device, both of which are received after the first user plane device is upgraded. Executed after the user information delivered by the control plane device.

由于第一用户面设备升级完毕后,第一用户面设备在接收到用户信息后,控制面设备才对第一用户面设备下发优先级提高命令,或对第二用户面设备下发优先级降低命令,使得在第一用户面设备升级完毕后,第一用户面设备中在存储有用户信息的情况下才将第二用户面设备的VRRP状态由主状态切换为备用状态,而第一用户面设备的VRRP状态由备用状态切换为主状态,第一用户面设备接替第二用户面设备继续提供服务,使得在切换时第一用户面设备中已经有用户信息,从而不会产生切换时由于第一用户面设备中没有用户信息使得用户流量被丢弃的情况。After the upgrade of the first user plane device is completed, after the first user plane device receives the user information, the control plane device issues a priority increase command to the first user plane device, or issues a priority to the second user plane device. The lowering command, so that after the upgrade of the first user plane device is completed, the VRRP state of the second user plane device is switched from the main state to the standby state only when user information is stored in the first user plane device. The VRRP state of the plane device is switched from the standby state to the main state, and the first user plane device takes over the second user plane device to continue to provide services, so that the first user plane device already has user information during the handover. There is no user information in the first user plane device, so that user traffic is discarded.

结合第一方面、第一方面的第一种可能的实施方式、第一方面的第二种可能的实施方式或者第一方面的第三种可能的实施方式,在第四种可能的实施方式中,在第一用户面设备所在链路由于故障导致第一用户面设备无法提供服务时,第二用户面设备的VRRP状态从备用状态切换为主状态,并向控制面设备发送VRRP状态切换通知,然后接收控制面设备下发的第一用户面设备对应的用户信息。其中,用户信息是控制面设备接收到第二用户面设备发送的VRRP状态切换通知后发送的。In combination with the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in the fourth possible implementation , when the first user plane device cannot provide services due to a failure of the link where the first user plane device is located, the VRRP state of the second user plane device is switched from the standby state to the main state, and a VRRP state switching notification is sent to the control plane device, Then, the user information corresponding to the first user plane device delivered by the control plane device is received. The user information is sent after the control plane device receives the VRRP state switching notification sent by the second user plane device.

由于在第一用户面设备所在链路发生故障时,第二用户面设备的VRRP状态从备用状态切换为主状态,并向控制面设备发送状态切换通知请求下发用户信息,使得在由于故障第一用户面设备无法提供服务时,第二用户面设备能够继续提供服务,实现对用户流量的转发。When the link on which the first user plane device is located fails, the VRRP state of the second user plane device is switched from the standby state to the main state, and a state switching notification is sent to the control plane device to request to deliver user information. When one user plane device cannot provide services, the second user plane device can continue to provide services, so as to realize the forwarding of user traffic.

结合第一方面、第一方面的第一种可能的实施方式、第一方面的第二种可能的实施方式、第一方面的第三种可能的实施方式或者第一方面的第四种可能的实施方式,在第五种可能的实施方式中,第二用户面设备在通过BFD探测到第一用户面设备或第一用户面设备的下行链路发生时,自行提高第二用户面设备的第二VRRP优先级,使得第二VRRP优先级高于第一用户面设备的第一VRRP优先级,然后第二用户面设备将VRRP状态由备用状态切换为主状态;当第一用户面设备通过BFD探测到第一用户面设备的上行链路发生故障时,第一用户面设备自行降低第一VRRP优先级,使得第一VRRP优先级低于第二用户面设备的第二VRRP优先级,然后第二用户面设备接收到降低后的第一VRRP优先级,将第二用户面设备的VRRP状态从备用状态切换为主状态。In combination with the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, the third possible implementation of the first aspect, or the fourth possible implementation of the first aspect Implementation mode, in a fifth possible implementation manner, when the second user plane device detects that the first user plane device or the downlink of the first user plane device occurs through BFD, the second user plane device automatically increases the number of the second user plane device. Two VRRP priorities, so that the second VRRP priority is higher than the first VRRP priority of the first user plane device, and then the second user plane device switches the VRRP state from the standby state to the main state; when the first user plane device passes BFD When detecting that the uplink of the first user plane device fails, the first user plane device lowers the first VRRP priority by itself, so that the first VRRP priority is lower than the second VRRP priority of the second user plane device, and then the first VRRP priority is lower than the second VRRP priority of the second user plane device. The second user plane device receives the reduced first VRRP priority, and switches the VRRP state of the second user plane device from the standby state to the main state.

由于在第一用户面设备的上行链路发生故障时,第一用户面设备能够通过BFD探测到上行链路故障,并自行降低第一VRRP优先级,在第一用户面设备或第一用户面设备的下行链路发生故障时,第二用户面设备能够通过BFD探测到第一用户面设备或第一用户面设备的下行链路故障,并自行提高第二VRRP优先级,最终使得第一VRRP优先级低于第二VRRP优先级,从而使得第二用户面设备的VRRP状态由备用状态切换为主状态,接替第一用户面设备继续提供服务。Because when the uplink of the first user plane device fails, the first user plane device can detect the uplink failure through BFD and lower the priority of the first VRRP by itself. When the downlink of the device fails, the second user plane device can detect the downlink failure of the first user plane device or the first user plane device through BFD, and automatically increase the priority of the second VRRP, and finally make the first VRRP The priority is lower than the second VRRP priority, so that the VRRP state of the second user plane device is switched from the standby state to the main state, and the first user plane device continues to provide services.

结合第一方面、第一方面的第一种可能的实施方式、第一方面的第二种可能的实施方式、第一方面的第三种可能的实施方式、第一方面的第四种可能的实施方式或者第一方面的第五种可能的实施方式,在第六种可能的实施方式中,在第一用户面设备不能提供服务时,第二用户面设备在接收到用户设备发送的保活报文时,查询是否存储有与保活报文对应的用户信息,若存在,则第二用户面设备根据用户信息向发送保活报文的用户设备发送确认报文;若不存在,则第二用户面设备将保活报文发送给控制面设备,由控制面设备根据用户信息向用户设备发送确认报文。其中,在用户设备上线后,控制面设备中存储有该用户设备全部的用户信息,提供服务的用户面设备中存储有该用户设备的与用户流量转发相关的用户信息。Combining the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, the third possible implementation of the first aspect, the fourth possible implementation of the first aspect Implementation manner or the fifth possible implementation manner of the first aspect, in the sixth possible implementation manner, when the first user plane device cannot provide the service, the second user plane device receives the keep-alive sent by the user equipment. When sending a message, query whether the user information corresponding to the keep-alive message is stored. If it exists, the second user plane device sends a confirmation message to the user equipment that sent the keep-alive message according to the user information; The second user plane device sends the keep-alive message to the control plane device, and the control plane device sends a confirmation message to the user equipment according to the user information. After the user equipment goes online, the control plane device stores all the user information of the user equipment, and the user plane device that provides the service stores user information related to user traffic forwarding of the user equipment.

由于第二用户面设备在接收到用户设备发送的保活报文时,先查询自身是否存储有与保活报文对应的用户信息,第二用户面设备在查询不到对应的用户信息时,将保活报文上报给控制面设备进行回应,使得在第二用户面设备接收到用户信息之前,用户设备依然能够接收到确认报文,从而使得用户设备不会掉线。Because when the second user plane device receives the keep-alive message sent by the user equipment, it first checks whether it stores the user information corresponding to the keep-alive message. The keep-alive message is reported to the control plane device for response, so that the user equipment can still receive the confirmation message before the second user plane device receives the user information, so that the user equipment will not be disconnected.

结合第一方面、第一方面的第一种可能的实施方式、第一方面的第二种可能的实施方式、第一方面的第三种可能的实施方式、第一方面的第四种可能的实施方式、第一方面的第五种可能的实施方式或者第一方面的第六种可能的实施方式,在第七种可能的实施方式中,当第一用户面设备的上行链路故障恢复时,第一用户面设备通过BFD探测到上行链路故障恢复后,向控制面设备发送第一状态变化信息,告知控制面设备第一用户面设备恢复正常,能够提供服务。控制面设备在接收到第一状态变化信息后,向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后,控制面设备向第一用户面设备发送第一切换通知,用于通知第一用户面设备提高第一VRRP优先级,使得第一VRRP优先级高于第二VRRP优先级,第二用户面设备在接收到第一VRRP优先级后,将VRRP状态由主状态切换回备用状态。当第一用户面设备或第一用户面设备的下行链路故障恢复时,第二用户面设备通过BFD探测到第一用户面设备或第一用户面设备的下行链路故障恢复后,向控制面设备发送第二状态变化信息,告知控制面设备第一用户面设备恢复正常,控制面设备在接收到第二状态变化信息后,向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后,控制面设备向第二用户面设备发送第二切换通知,用于通知第二用户面设备降低第二VRRP优先级,使得第二VRRP优先级低于第一VRRP优先级,第二用户面设备将VRRP状态由主状态切换回备用状态。Combining the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, the third possible implementation of the first aspect, the fourth possible implementation of the first aspect implementation manner, the fifth possible implementation manner of the first aspect, or the sixth possible implementation manner of the first aspect, in the seventh possible implementation manner, when the uplink failure of the first user plane device recovers , after the first user plane device detects the recovery of the uplink failure through BFD, it sends first state change information to the control plane device, informing the control plane device that the first user plane device is back to normal and can provide services. After receiving the first state change information, the control plane device delivers the user information corresponding to the second user plane device to the first user plane device, and after the user information is delivered, the control plane device sends the first user plane device to the first user plane device. A handover notification, used to notify the first user plane device to increase the first VRRP priority, so that the first VRRP priority is higher than the second VRRP priority. After receiving the first VRRP priority, the second user plane device The state is switched from the primary state back to the standby state. When the downlink failure of the first user plane device or the first user plane device recovers, the second user plane device detects the recovery of the downlink failure of the first user plane device or the first user plane device through BFD, and reports to the control The plane device sends the second state change information to inform the control plane device that the first user plane device is back to normal. After receiving the second state change information, the control plane device delivers the user corresponding to the second user plane device to the first user plane device. information, after the user information is delivered, the control plane device sends a second handover notification to the second user plane device to notify the second user plane device to lower the second VRRP priority so that the second VRRP priority is lower than the first VRRP priority, the second user plane device switches the VRRP state from the active state to the standby state.

由于在第一用户面设备所在链路故障恢复时,对于第一用户面设备的上行链路,第一用户面设备能够通过BFD探测到故障恢复,对于第一用户面设备或第一用户面设备的下行链路故障恢复时,第二用户面设备能够通过BFD探测到故障恢复,通过告知控制面设备第一用户面设备所在链路故障恢复,控制面设备向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后通知第二用户面设备由主状态切换为备用状态,使得在第一用户面设备所在链路故障恢复时,第一用户面设备能够切换回主状态继续提供服务。When the link on which the first user plane device is located recovers from a fault, for the uplink of the first user plane device, the first user plane device can detect the fault recovery through BFD. For the first user plane device or the first user plane device When the downlink fails to recover, the second user plane device can detect the failure recovery through BFD, and by notifying the control plane device that the link where the first user plane device is located has recovered from the failure, the control plane device sends the second user plane device to the first user plane device. The user information corresponding to the user plane device is notified after the user information is delivered to the second user plane device to switch from the main state to the standby state, so that when the link where the first user plane device is located is restored, the first user plane device can switch Return to the main state to continue to provide services.

另外,由于控制面设备先下发用户信息,再发送切换通知,使得第一用户面设备在故障恢复切换回主状态时,不会产生用户流量丢失的问题。In addition, because the control plane device delivers user information first, and then sends the switching notification, so that the problem of user traffic loss will not occur when the first user plane device switches back to the primary state after failure recovery.

结合第一方面、第一方面的第一种可能的实施方式、第一方面的第二种可能的实施方式、第一方面的第三种可能的实施方式、第一方面的第四种可能的实施方式、第一方面的第五种可能的实施方式、第一方面的第六种可能的实施方式或者第一方面的第七种可能的实施方式,在第八种可能的实施方式中,在第一用户面设备和第二用户面设备上的BFD配置有延迟UP时间,并且延迟UP时间的时长大于控制面设备向第一用户面设备下发用户信息的时长。其中,UP是BFD的一种状态,表示正常,对应的,在发生故障时,BFD的状态为DOWN。Combining the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, the third possible implementation of the first aspect, the fourth possible implementation of the first aspect implementation, the fifth possible implementation of the first aspect, the sixth possible implementation of the first aspect, or the seventh possible implementation of the first aspect, in the eighth possible implementation, in The BFDs on the first user plane device and the second user plane device are configured with a delay UP time, and the duration of the delay UP time is longer than the time period for the control plane device to deliver user information to the first user plane device. Among them, UP is a state of the BFD, which means normal. Correspondingly, when a fault occurs, the state of the BFD is DOWN.

通过为BFD配置延迟UP时间,使得在第一用户面设备所在链路故障恢复时,BFD的状态不会立刻切换为正常,避免了在第一用户面设备中还没有接收到用户信息的情况下切换回主状态提供服务时,导致用户流量丢失的问题。By configuring the delay UP time for BFD, when the link where the first user plane device is located recovers from failure, the state of BFD will not be switched to normal immediately, avoiding the situation that the first user plane device has not received user information. When switching back to the main state to provide services, user traffic is lost.

另外,由于延迟UP时间的时长大于控制面设备下发用户信息的时长,使得第二用户面设备不会在用户信息未全部下发给第一用户面设备的情况下就切换回备用状态,避免了第一用户面设备在提供服务时导致部分用户流量丢失的情况。In addition, since the duration of the delayed UP time is longer than the duration of the control plane device delivering the user information, the second user plane device will not switch back to the standby state when the user information is not all delivered to the first user plane device, avoiding The situation in which the first user plane device causes part of user traffic to be lost when providing services is solved.

第二方面,提供了一种报文反馈方法,该报文反馈方法应用在第一用户面设备中,当第一用户面设备由无法提供服务恢复为提供服务状态时,即第一用户面设备所在链路恢复正常时,第一用户面设备从控制面设备获取第二用户面设备对应的用户信息,当第一用户面设备接收到用户设备发送的保活报文时,第一用户面设备根据接收到的用户信息向发送保活报文的用户设备发送确认报文。其中,第一用户面设备在第二用户面设备提供服务时的状态为备用状态,即第一用户面设备在第一用户面设备无法提供服务时的状态为备用状态,第一用户面设备和第二用户面设备用于实现用户拨号报文上送、转发表项的接收以及用户流量转发,控制面设备用于实现用户接入协议处理和用户管理。In a second aspect, a message feedback method is provided. The message feedback method is applied to the first user plane device. When the first user plane device recovers from being unable to provide a service to a state of providing a service, that is, the first user plane device When the link where the link is located returns to normal, the first user plane device obtains user information corresponding to the second user plane device from the control plane device, and when the first user plane device receives the keep-alive message sent by the user equipment, the first user plane device Send a confirmation message to the user equipment that sends the keep-alive message according to the received user information. The state of the first user plane device when the second user plane device provides the service is the standby state, that is, the state of the first user plane device when the first user plane device cannot provide the service is the standby state, and the first user plane device and the first user plane device are in the standby state. The second user plane device is used to implement user dial-up message uploading, reception of forwarding entries, and user traffic forwarding, and the control plane device is used to implement user access protocol processing and user management.

通过在第一用户面设备从无法提供服务恢复为提供服务状态时,第一用户面设备从控制面设备获取第二用户面设备对应的用户信息,根据用户信息向发送保活报文的用户设备反馈确认报文,由于第一用户面设备在无法提供服务时不需要实时备份第二用户面设备的用户信息,即备用状态的用户面设备不需要实时备份主状态的用户面设备的用户信息,因此不会产生过多占用备用状态的用户面设备资源的问题。When the first user plane device recovers from being unable to provide services to providing services, the first user plane device obtains user information corresponding to the second user plane device from the control plane device, and sends the keep-alive message to the user equipment according to the user information. The confirmation message is fed back, because the first user plane device does not need to back up the user information of the second user plane device in real time when it cannot provide services, that is, the user plane device in the standby state does not need to back up the user information of the user plane device in the main state in real time. Therefore, the problem of excessively occupying the resources of the user plane equipment in the standby state will not arise.

另外,由于第一用户面设备在接收到用户信息后,根据用户信息可以向发送保活报文的用户设备反馈确认报文,从而使得在第一用户面设备恢复提供服务时,用户设备能够通过第一用户面设备继续上线。In addition, after receiving the user information, the first user plane device can feed back a confirmation message to the user equipment that sent the keep-alive message according to the user information, so that when the first user plane device resumes providing services, the user equipment can pass The first user plane device continues to go online.

在第二方面的第一种可能的实施方式中,在第一用户面设备升级完毕时,第一用户面设备通过两种方式将第一用户面设备的VRRP状态从备用状态切换为主状态。第一种方式是第一用户面设备接收控制面设备发送的优先级提高命令,并根据优先级提高命令提高第一用户面设备的第一VRRP优先级;第二种方式是接收第二用户面设备发送的第二VRRP优先级,该第二VRRP优先级是第二用户面设备根据控制面设备发送的优先级降低命令后将第二用户面设备的第二VRRP优先级降低后得到的。第一用户面设备与第二用户面设备之间通过VRRP通告报文交互后确定出第一用户面设备的第一VRRP优先级高于第二用户面设备的第二VRRP优先级,则第一用户面设备的VRRP状态从备用状态切换为主状态。其中,第一用户面设备接收到控制面设备发送的优先级提高命令,或第二用户面设备接收到控制面设备发送的优先级降低命令,均是在第一用户面设备升级完毕后接收到控制面设备下发的用户信息后执行的。In a first possible implementation manner of the second aspect, when the first user plane device is upgraded, the first user plane device switches the VRRP state of the first user plane device from the standby state to the main state in two ways. The first method is that the first user plane device receives the priority increase command sent by the control plane device, and increases the first VRRP priority of the first user plane device according to the priority increase command; the second method is to receive the second user plane device. The second VRRP priority sent by the device, where the second VRRP priority is obtained after the second user plane device lowers the second VRRP priority of the second user plane device according to the priority lowering command sent by the control plane device. After the first user plane device and the second user plane device exchange VRRP advertisement messages, it is determined that the first VRRP priority of the first user plane device is higher than the second VRRP priority of the second user plane device, then the first The VRRP state of the user plane device is switched from the standby state to the active state. The first user plane device receives the priority increasing command sent by the control plane device, or the second user plane device receives the priority decreasing command sent by the control plane device, both of which are received after the first user plane device is upgraded. Executed after the user information delivered by the control plane device.

由于第一用户面设备升级完毕后,第一用户面设备在接收到用户信息后,控制面设备才对第一用户面设备下发优先级提高命令,或对第二用户面设备下发优先级降低命令,使得在第一用户面设备升级完毕后,第一用户面设备中在存储有用户信息的情况下才将第一用户面设备的VRRP状态由备用状态切换为主状态,而第二用户面设备的VRRP状态由主状态切换为备用状态,第一用户面设备接替第二用户面设备继续提供服务,使得在切换时第一用户面设备中已经有用户信息,从而不会产生切换时由于第一用户面设备中没有用户信息使得用户流量被丢弃的情况。After the upgrade of the first user plane device is completed, after the first user plane device receives the user information, the control plane device issues a priority increase command to the first user plane device, or issues a priority to the second user plane device. The lowering command, so that after the upgrade of the first user plane device is completed, the VRRP state of the first user plane device is switched from the standby state to the main state only when the user information is stored in the first user plane device, and the second user The VRRP state of the plane device is switched from the main state to the standby state, and the first user plane device takes over the second user plane device to continue to provide services, so that the first user plane device already has user information during the handover, so there will be no There is no user information in the first user plane device, so that user traffic is discarded.

结合第二方面或者第二方面的第一种可能的实施方式,在第二种可能的实施方式中,在第一用户面设备升级时,第二用户面设备从控制面设备获取到第一用户面设备对应的用户信息之后,第一用户面设备通过两种方式将第一用户面设备的VRRP状态从主状态切换为备用状态。第一种方式是第一用户面设备接收控制面设备发送的优先级降低命令,并根据优先级降低命令降低第一用户面设备的第一VRRP优先级;第二种方式是接收第二用户面设备发送的第二VRRP优先级,该第二VRRP优先级是第二用户面设备在接收到控制面设备发送的优先级提高命令后根据优先级提高命令将第二用户面设备原来的第二VRRP优先级提高后得到的。第一用户面设备与第二用户面设备之间通过VRRP通告报文交互后确定出第二用户面设备的第二VRRP优先级高于第一用户面设备的第一VRRP优先级,则第一用户面设备的VRRP状态从主状态切换为备用状态。With reference to the second aspect or the first possible implementation manner of the second aspect, in the second possible implementation manner, when the first user plane device is upgraded, the second user plane device acquires the first user from the control plane device After the user information corresponding to the plane device is stored, the first user plane device switches the VRRP state of the first user plane device from the main state to the standby state in two ways. The first method is that the first user plane device receives the priority reduction command sent by the control plane device, and reduces the first VRRP priority of the first user plane device according to the priority reduction command; the second method is to receive the second user plane device. The second VRRP priority sent by the device, where the second VRRP priority is that after the second user plane device receives the priority increase command sent by the control plane device, according to the priority increase command, the original second VRRP of the second user plane device is changed. Obtained after the priority has been raised. After the first user plane device and the second user plane device exchange VRRP advertisement messages, it is determined that the second VRRP priority of the second user plane device is higher than the first VRRP priority of the first user plane device. The VRRP state of the user plane device is switched from the active state to the standby state.

由于第二用户面设备在接收到第一用户面设备对应的用户信息之后,才接收到控制面设备法发送的优先级提高命令,或者接收到第一用户面设备根据优先级降低命令降低的第一VRRP优先级,然后第一用户面设备的VRRP状态由主状态切换为备用状态,第二用户面设备接替第一用户面设备继续提供服务,使得在切换时第二用户面设备中已经有用户信息,从而不会产生切换时由于第二用户面设备中没有用户信息使得用户流量被丢弃的情况。Because the second user plane device only receives the priority increase command sent by the control plane device method after receiving the user information corresponding to the first user plane device, or receives the first user plane device to reduce the priority according to the priority reduction command. A VRRP priority, and then the VRRP state of the first user plane device is switched from the main state to the standby state, and the second user plane device takes over the first user plane device and continues to provide services, so that there are already users in the second user plane device when switching information, so that there is no situation in which user traffic is discarded during handover because there is no user information in the second user plane device.

结合第二方面、第二方面的第一种可能的实施方式或者第二方面的第二种可能的实施方式,在第三种可能的实施方式中,当第一用户面设备的上行链路故障恢复时,第一用户面设备通过BFD探测到上行链路故障恢复后,向控制面设备发送第一状态变化信息,告知控制面设备第一用户面设备恢复正常,能够提供服务。控制面设备在接收到第一状态变化信息后,向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后,控制面设备向第一用户面设备发送第一切换通知,用于通知第一用户面设备提高第一VRRP优先级,使得第一VRRP优先级高于第二VRRP优先级,第一用户面设备将VRRP状态由备用状态切换回主状态。当第一用户面设备或第一用户面设备的下行链路故障恢复时,第二用户面设备通过BFD探测到第一用户面设备或第一用户面设备的下行链路故障恢复后,向控制面设备发送第二状态变化信息,告知控制面设备第一用户面设备恢复正常,控制面设备在接收到第二状态变化信息后,向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后,控制面设备向第二用户面设备发送第二切换通知,用于通知第二用户面设备降低第二VRRP优先级,使得第二VRRP优先级低于第一VRRP优先级,第一用户面设备在接收到第二VRRP优先级时,将第一用户面设备的VRRP状态由备用状态切换回主状态。With reference to the second aspect, the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in the third possible implementation manner, when the uplink of the first user plane device fails During recovery, after detecting that the uplink fault has recovered through BFD, the first user plane device sends first state change information to the control plane device, informing the control plane device that the first user plane device is back to normal and can provide services. After receiving the first state change information, the control plane device delivers the user information corresponding to the second user plane device to the first user plane device, and after the user information is delivered, the control plane device sends the first user plane device to the first user plane device. A switching notification is used to notify the first user plane device to increase the first VRRP priority so that the first VRRP priority is higher than the second VRRP priority, and the first user plane device switches the VRRP state from the standby state to the main state. When the downlink failure of the first user plane device or the first user plane device recovers, the second user plane device detects the recovery of the downlink failure of the first user plane device or the first user plane device through BFD, and reports to the control The plane device sends the second state change information to inform the control plane device that the first user plane device is back to normal. After receiving the second state change information, the control plane device delivers the user corresponding to the second user plane device to the first user plane device. information, after the user information is delivered, the control plane device sends a second handover notification to the second user plane device to notify the second user plane device to lower the second VRRP priority so that the second VRRP priority is lower than the first VRRP priority, when the first user plane device receives the second VRRP priority, it switches the VRRP state of the first user plane device from the standby state to the main state.

由于在第一用户面设备所在链路故障恢复时,对于第一用户面设备的上行链路,第一用户面设备能够通过BFD探测到故障恢复,对于第一用户面设备或第一用户面设备的下行链路故障恢复时,第二用户面设备能够通过BFD探测到故障恢复,通过告知控制面设备第一用户面设备所在链路故障恢复,控制面设备向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后通知第一用户面设备由备用状态切换为主状态,使得在第一用户面设备所在链路故障恢复时,第一用户面设备能够切换回主状态继续提供服务。When the link on which the first user plane device is located recovers from a fault, for the uplink of the first user plane device, the first user plane device can detect the fault recovery through BFD. For the first user plane device or the first user plane device When the downlink fails to recover, the second user plane device can detect the failure recovery through BFD, and by notifying the control plane device that the link where the first user plane device is located has recovered from the failure, the control plane device sends the second user plane device to the first user plane device. The user information corresponding to the user plane device is notified after the user information is delivered to the first user plane device to switch from the standby state to the main state, so that when the link where the first user plane device is located is restored, the first user plane device can switch over Return to the main state to continue to provide services.

另外,由于控制面设备先下发用户信息,再发送切换通知,使得第一用户面设备在故障恢复切换回主状态时,不会产生用户流量丢失的问题。In addition, because the control plane device delivers user information first, and then sends the switching notification, so that the problem of user traffic loss will not occur when the first user plane device switches back to the primary state after failure recovery.

结合第二方面、第二方面的第一种可能的实施方式、第二方面的第二种可能的实施方式或者第二方面的第三种可能的实施方式,在第四种可能的实施方式中,当第一用户面设备通过BFD探测到第一用户面设备的上行链路发生故障时,第一用户面设备自行降低第一VRRP优先级,使得第一VRRP优先级低于第二用户面设备的第二VRRP优先级,然后第一用户面设备将第一用户面设备的VRRP状态从主状态切换为备用状态;第二用户面设备在通过BFD探测到第一用户面设备或第一用户面设备的下行链路发生时,自行提高第二用户面设备的第二VRRP优先级,使得第二VRRP优先级高于第一用户面设备的第一VRRP优先级,然后第一用户面设备在接收到第二VRRP优先级时,第一用户面设备将VRRP状态由主状态切换为备用状态。In combination with the second aspect, the first possible implementation of the second aspect, the second possible implementation of the second aspect, or the third possible implementation of the second aspect, in the fourth possible implementation , when the first user plane device detects that the uplink of the first user plane device is faulty through BFD, the first user plane device reduces the priority of the first VRRP by itself, so that the priority of the first VRRP is lower than that of the second user plane device Then the first user plane device switches the VRRP state of the first user plane device from the main state to the standby state; the second user plane device detects the first user plane device or the first user plane device through BFD. When the downlink of the device occurs, it automatically increases the second VRRP priority of the second user plane device so that the second VRRP priority is higher than the first VRRP priority of the first user plane device, and then the first user plane device receives When the second VRRP priority is reached, the first user plane device switches the VRRP state from the main state to the standby state.

由于在第一用户面设备的上行链路发生故障时,第一用户面设备能够通过BFD探测到上行链路故障,并自行降低第一VRRP优先级,在第一用户面设备或第一用户面设备的下行链路发生故障时,第二用户面设备能够通过BFD探测到第一用户面设备或第一用户面设备的下行链路故障,并自行提高第二VRRP优先级,最终使得第一VRRP优先级低于第二VRRP优先级,从而使得第一用户面设备的VRRP状态由主状态切换为备用状态,使得第二用户面设备接替第一用户面设备继续提供服务。Because when the uplink of the first user plane device fails, the first user plane device can detect the uplink failure through BFD and lower the priority of the first VRRP by itself. When the downlink of the device fails, the second user plane device can detect the downlink failure of the first user plane device or the first user plane device through BFD, and automatically increase the priority of the second VRRP, and finally make the first VRRP The priority is lower than the second VRRP priority, so that the VRRP state of the first user plane device is switched from the main state to the standby state, so that the second user plane device takes over the first user plane device and continues to provide services.

结合第二方面、第二方面的第一种可能的实施方式、第二方面的第二种可能的实施方式、第二方面的第三种可能的实施方式或者第二方面的第四种可能的实施方式,在第五种可能的实施方式中,在第一用户面设备和第二用户面设备上的BFD配置有延迟UP时间,并且延迟UP时间的时长大于控制面设备向第一用户面设备下发用户信息的时长。其中,UP是BFD的一种状态,表示正常,对应的,在发生故障时,BFD的状态为DOWN。Combining the second aspect, the first possible implementation of the second aspect, the second possible implementation of the second aspect, the third possible implementation of the second aspect, or the fourth possible implementation of the second aspect Implementation mode, in a fifth possible implementation manner, the BFD on the first user plane device and the second user plane device is configured with a delay UP time, and the duration of the delay UP time is longer than that from the control plane device to the first user plane device. The duration for delivering user information. Among them, UP is a state of the BFD, which means normal. Correspondingly, when a fault occurs, the state of the BFD is DOWN.

通过为BFD配置延迟UP时间,使得在第一用户面设备所在链路故障恢复时,BFD的状态不会立刻切换为正常,避免了在第一用户面设备中还没有接收到用户信息的情况下切换回主状态提供服务时,导致用户流量丢失的问题。By configuring the delay UP time for BFD, when the link where the first user plane device is located recovers from failure, the state of BFD will not be switched to normal immediately, avoiding the situation that the first user plane device has not received user information. When switching back to the main state to provide services, user traffic is lost.

另外,由于延迟UP时间的时长大于控制面设备下发用户信息的时长,使得第一用户面设备不会在用户信息未全部下发给第一用户面设备的情况下就切换回主状态,避免了第一用户面设备在提供服务时导致部分用户流量丢失的情况。In addition, since the duration of the delayed UP time is longer than the duration of the control plane device delivering the user information, the first user plane device will not switch back to the main state when the user information is not all delivered to the first user plane device, avoiding The situation in which the first user plane device causes part of user traffic to be lost when providing services is solved.

第三方面,提供了一种报文反馈方法,该报文反馈方法应用在控制面设备中,在第一用户面设备由于升级或所在链路故障无法提供服务时,控制面设备向第二用户面设备发送第一用户面设备对应的用户信息,第二用户面设备在接收到用户信息后,当第二用户面信息接收到用户设备发送的保活报文时,根据用户信息向发送保活报文的用户设备发送确认报文;当第一用户面设备在升级完毕或故障恢复,从无法提供服务恢复为提供服务状态时,控制面设备向第一用户面设备发送第二用户面设备对应的用户信息,第一用户面设备在接收到用户信息后,当第一用户面设备接收到用户设备发送的保活报文时,根据用户信息向发送保活报文的用户设备发送确认报文。其中,第二用户面设备在第一用户面设备提供服务时的状态为备用状态,第二用户面设备在第一用户面设备无法提供服务时的状态为主状态,第一用户面设备和第二用户面设备用于实现用户拨号报文上送、转发表项的接收以及用户流量转发,控制面设备用于实现用户接入协议处理和用户管理。In a third aspect, a message feedback method is provided. The message feedback method is applied to a control plane device. When the first user plane device cannot provide services due to an upgrade or a link failure, the control plane device reports to the second user The plane device sends the user information corresponding to the first user plane device. After the second user plane device receives the user information, when the second user plane information receives the keep-alive message sent by the user equipment, it sends the keep-alive message to the sender according to the user information. The user equipment of the message sends an acknowledgment message; when the first user plane device has been upgraded or recovered from a fault, and returns from being unable to provide services to providing services, the control plane device sends the second user plane device to the first user plane device. After receiving the user information, when the first user plane device receives the keep-alive message sent by the user equipment, it sends an acknowledgement message to the user equipment that sent the keep-alive message according to the user information. . The state of the second user plane device when the first user plane device provides the service is the standby state, the state of the second user plane device when the first user plane device cannot provide the service is the main state, the first user plane device and the second user plane device are in the main state. The two user plane devices are used to implement user dial-up message upload, receive forwarding entries, and user traffic forwarding, and the control plane devices are used to implement user access protocol processing and user management.

通过在第一用户面设备无法提供服务时,控制面设备向第二用户面设备发送第一用户面设备对应的用户信息,使得第二用户面设备根据用户信息向发送保活报文的用户设备反馈确认报文,由于第二用户面设备不需要实时备份第一用户面设备的用户信息,即备用状态的用户面设备不需要实时备份主状态的用户面设备的用户信息,因此不会产生过多占用备用状态的用户面设备资源的问题。When the first user plane device cannot provide services, the control plane device sends the user information corresponding to the first user plane device to the second user plane device, so that the second user plane device can send the keep-alive message to the user equipment according to the user information. Feedback confirmation message, because the second user plane device does not need to back up the user information of the first user plane device in real time, that is, the user plane device in the standby state does not need to back up the user information of the user plane device in the main state in real time, so there will be no real-time backup of user information. The problem of occupying more resources of the user plane equipment in the standby state.

通过在第一用户面设备从无法提供服务恢复为提供服务状态时,控制面设备向第一用户面设备发送第二用户面设备对应的用户信息,使得第一用户面设备根据用户信息向发送保活报文的用户设备反馈确认报文,由于第一用户面设备在无法提供服务时不需要实时备份第二用户面设备的用户信息,即备用状态的用户面设备不需要实时备份主状态的用户面设备的用户信息,因此不会产生过多占用备用状态的用户面设备资源的问题。By sending the user information corresponding to the second user plane device to the first user plane device when the first user plane device recovers from the state of being unable to provide services to providing services, the first user plane device can send the user information to the sending guarantee device according to the user information. The user equipment of the live packet feeds back the confirmation message, because the first user plane device does not need to back up the user information of the second user plane device in real time when it cannot provide services, that is, the user plane device in the standby state does not need to backup the users in the main state in real time. user information of the plane device, so there is no problem of excessively occupying the resources of the user plane device in the standby state.

在第三方面的第一种可能的实施方式中,在第一用户面设备升级时,控制面设备通过两种方式对第一用户面设备和第二用户面设备进行主备切换,第一种方式是控制面设备向第一用户面设备发送优先级降低命令,第一用户面设备在接收到优先级降低命令后降低第一用户面设备的第一VRRP优先级,由于第一VRRP优先级降低,第一VRRP优先级低于第二用户面设备的第二VRRP优先级,第一用户面设备的VRRP状态从主状态切换为备用状态;第二种方式是控制面设备向第二用户面设备发送优先级提高命令,第二用户面设备在接收到优先级提高命令后提高第二用户面设备的第二VRRP优先级,由于第二VRRP优先级提高,第二VRRP优先级高于第一用户面设备的第一VRRP优先级,第二用户面设备的VRRP状态从备用状态切换为主状态。这里的升级时包括升级前的预定时长和升级过程,预定时长至少大于第二用户面设备接收控制面设备下发用户信息的时长。In a first possible implementation manner of the third aspect, when the first user plane device is upgraded, the control plane device performs active/standby switching between the first user plane device and the second user plane device in two ways. The method is that the control plane device sends a priority lowering command to the first user plane device, and the first user plane device lowers the first VRRP priority of the first user plane device after receiving the priority lowering command. , the first VRRP priority is lower than the second VRRP priority of the second user plane device, and the VRRP state of the first user plane device is switched from the main state to the standby state; Sending a priority increase command, the second user plane device increases the second VRRP priority of the second user plane device after receiving the priority increase command. Because the second VRRP priority is increased, the second VRRP priority is higher than that of the first user The first VRRP priority of the plane device, and the VRRP state of the second user plane device is switched from the standby state to the main state. The upgrade here includes a predetermined duration before the upgrade and an upgrade process, and the predetermined duration is at least greater than the duration for the second user plane device to receive the user information delivered by the control plane device.

由于第一用户面设备在升级时无法提供服务,因此控制面设备需要提前做好准备措施,向第二用户面设备下发第一用户面设备对应的用户信息,在下发完用户信息后,向第一用户面设备发送优先级降低命令或向第二用户面设备发送优先级提高命令,使得第一用户面设备和第二用户面设备进行主备切换,从而保证了第一用户面设备在升级时,第二用户面设备能够继续提供服务。Since the first user plane device cannot provide services during the upgrade, the control plane device needs to prepare in advance to deliver the user information corresponding to the first user plane device to the second user plane device. The first user plane device sends a priority lowering command or sends a priority increasing command to the second user plane device, so that the first user plane device and the second user plane device perform active/standby switchover, thereby ensuring that the first user plane device is being upgraded , the second user plane device can continue to provide services.

由于控制面设备是在第一用户面设备升级前的预定时长就向第二用户面设备下发用户信息,并且预定时长大于控制面设备下发用户信息的时长,因此在第一用户面设备升级过程中,第二用户面设备中已经存储了用户信息,能够对用户设备发送的报文进行响应,从而使得用户设备在主备切换时不会掉线。Since the control plane device delivers user information to the second user plane device within a predetermined time period before the first user plane device is upgraded, and the predetermined time period is longer than the time period for the control plane device to issue user information, the first user plane device is upgraded before the first user plane device is upgraded. During the process, the user information has been stored in the second user plane device, and the second user plane device can respond to the message sent by the user device, so that the user device will not be disconnected during the master/slave switchover.

结合第三方面或者第三方面的第一种可能的实施方式,在第二种可能的实施方式中,在第一用户面设备升级完毕时,控制面设备通过两种方式再次对第一用户面设备和第二用户面设备进行主备切换,第一种方式是控制面设备向第一用户面设备发送优先级提高命令,第一用户面设备在接收到优先级提高命令后提高第一用户面设备的第一VRRP优先级,由于第一VRRP优先级提高,第一VRRP优先级高于第二用户面设备的第二VRRP优先级,第一用户面设备的VRRP状态从备用状态切换为主状态;第二种方式是控制面设备向第二用户面设备发送优先级降低命令,第二用户面设备在接收到优先级降低命令后降低第二用户面设备的第二VRRP优先级,由于第二VRRP优先级降低,第二VRRP优先级低于第一用户面设备的第一VRRP优先级,第二用户面设备的VRRP状态从主状态切换为备用状态。With reference to the third aspect or the first possible implementation manner of the third aspect, in the second possible implementation manner, when the upgrade of the first user plane device is completed, the control plane device updates the first user plane device again in two ways. The device and the second user plane device perform active/standby switchover. The first method is that the control plane device sends a priority increase command to the first user plane device, and the first user plane device increases the first user plane after receiving the priority increase command. The first VRRP priority of the device, because the first VRRP priority is increased, the first VRRP priority is higher than the second VRRP priority of the second user plane device, and the VRRP state of the first user plane device is switched from the standby state to the main state The second way is that the control plane device sends a priority reduction command to the second user plane device, and the second user plane device reduces the second VRRP priority of the second user plane device after receiving the priority reduction command. The VRRP priority is lowered, the second VRRP priority is lower than the first VRRP priority of the first user plane device, and the VRRP state of the second user plane device is switched from the main state to the standby state.

由于第一用户面设备在升级完毕后能够提供服务,因此控制面设备可以将第二用户面设备的用户信息下发给第一用户面设备,在下发完用户信息后,向第一用户面设备发送优先级提高命令或向第二用户面设备发送优先级降低命令,使得第一用户面设备和第二用户面设备进行主备切换,从而使得第一用户面设备在升级完毕后能够继续提供服务。Since the first user plane device can provide services after the upgrade is completed, the control plane device can deliver the user information of the second user plane device to the first user plane device, and after the user information is delivered, send the user information to the first user plane device. Send a priority increase command or send a priority decrease command to the second user plane device, so that the first user plane device and the second user plane device perform active/standby switchover, so that the first user plane device can continue to provide services after the upgrade is complete .

结合第三方面、第三方面的第一种可能的实施方式或者第三方面的第二种可能的实施方式,在第三种可能的实施方式中,在第一用户面设备的上行链路故障时,第一用户面设备通过BFD探测到上行链路故障,会自行降低第一VRRP优先级,在第一用户面设备或第一用户面设备的下行链路故障时,第二用户面设备通过BFD探测到第一用户面设备或第一用户面设备的下行链路故障,会自行提高第二VRRP优先级,第一用户面设备和第二用户面设备之间通过VRRP通告报文确定第一VRRP优先级低于第二VRRP优先级,则第二用户面设备向控制面设备发送VRRP状态切换通知,控制面设备在接收到VRRP状态切换通知后,会向第二用户面设备发送第一用户面设备对应的用户信息。With reference to the third aspect, the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in the third possible implementation manner, the uplink failure of the first user plane equipment When the first user plane device detects an uplink failure through BFD, it will lower the priority of the first VRRP by itself. When the first user plane device or the downlink of the first user plane device fails, the second user plane device passes the When BFD detects that the first user plane device or the downlink of the first user plane device is faulty, it will automatically increase the priority of the second VRRP. The first user plane device and the second user plane device determine the first If the VRRP priority is lower than the second VRRP priority, the second user plane device sends a VRRP state switching notification to the control plane device. After receiving the VRRP state switching notification, the control plane device will send the first user notification to the second user plane device. User information corresponding to the face device.

由于在第一用户面设备所在链路发生故障时,第一用户面设备和第二用户面设备会自行进行主备切换,然后第二用户面设备向控制面设备告知VRRP状态切换的情况,控制面设备向第二用户面设备下发第一用户面设备对应的用户信息,使得在第一用户面设备所在链路发生故障时,第二用户面设备能够接替第一用户面设备继续提供服务。When the link where the first user plane device is located fails, the first user plane device and the second user plane device will perform active/standby switchover by themselves, and then the second user plane device notifies the control plane device of the VRRP state switching, and controls the The plane device delivers user information corresponding to the first user plane device to the second user plane device, so that when the link where the first user plane device is located fails, the second user plane device can take over the first user plane device and continue to provide services.

结合第三方面、第三方面的第一种可能的实施方式、第三方面的第二种可能的实施方式或者第三方面的第三种可能的实施方式,在第四种可能的实施方式中,在第一用户面设备无法提供服务时,第二用户面设备在接收到用户设备发送的保活报文时,当查询到第二用户设备中不存在与保活报文对应的用户信息时,第二用户面设备将保活报文上报给控制面设备处理,控制面设备接收第二用户面设备发送的用户设备的保活报文,根据用户信息向用户设备反馈确认报文。In combination with the third aspect, the first possible implementation of the third aspect, the second possible implementation of the third aspect, or the third possible implementation of the third aspect, in the fourth possible implementation , when the first user plane device cannot provide the service, when the second user plane device receives the keep-alive message sent by the user equipment, and finds that the user information corresponding to the keep-alive message does not exist in the second user equipment , the second user plane device reports the keep-alive message to the control plane device for processing, the control plane device receives the keep-alive message of the user equipment sent by the second user plane device, and feeds back a confirmation message to the user equipment according to the user information.

由于控制面设备在第二用户面设备查询到自身没有存储有与保活报文对应的用户信息时,接收第二用户面设备上报的保活报文并进行回应,使得在第二用户面设备接收到用户信息之前,用户设备依然能够接收到确认报文,从而使得用户设备不会掉线。Since the control plane device receives the keep-alive message reported by the second user plane device and responds when the second user plane device finds that it does not store the user information corresponding to the keep-alive message, the second user plane device Before receiving the user information, the user equipment can still receive the confirmation message, so that the user equipment will not be disconnected.

结合第三方面、第三方面的第一种可能的实施方式、第三方面的第二种可能的实施方式、第三方面的第三种可能的实施方式或者第三方面的第四种可能的实施方式,在第五种可能的实施方式中,当第一用户面设备的上行链路故障恢复时,第一用户面设备通过BFD探测到上行链路故障恢复后,向控制面设备发送第一状态变化信息,告知控制面设备第一用户面设备恢复正常,能够提供服务。控制面设备在接收到第一状态变化信息后,向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后,控制面设备向第一用户面设备发送第一切换通知,用于通知第一用户面设备提高第一VRRP优先级,使得第一VRRP优先级高于第二VRRP优先级。当第一用户面设备或第一用户面设备的下行链路故障恢复时,第二用户面设备通过BFD探测到第一用户面设备或第一用户面设备的下行链路故障恢复后,向控制面设备发送第二状态变化信息,告知控制面设备第一用户面设备恢复正常,控制面设备在接收到第二状态变化信息后,向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后,控制面设备向第二用户面设备发送第二切换通知,用于通知第二用户面设备降低第二VRRP优先级,使得第二VRRP优先级低于第一VRRP优先级。In combination with the third aspect, the first possible implementation of the third aspect, the second possible implementation of the third aspect, the third possible implementation of the third aspect, or the fourth possible implementation of the third aspect In a fifth possible implementation manner, when the uplink failure of the first user plane device recovers, the first user plane device sends the first user plane device to the control plane device after detecting that the uplink failure recovers through BFD. The state change information informs the control plane device that the first user plane device is back to normal and can provide services. After receiving the first state change information, the control plane device delivers the user information corresponding to the second user plane device to the first user plane device, and after the user information is delivered, the control plane device sends the first user plane device to the first user plane device. A handover notification, used to notify the first user plane device to increase the first VRRP priority so that the first VRRP priority is higher than the second VRRP priority. When the downlink failure of the first user plane device or the first user plane device recovers, the second user plane device detects the recovery of the downlink failure of the first user plane device or the first user plane device through BFD, and reports to the control The plane device sends the second state change information to inform the control plane device that the first user plane device is back to normal. After receiving the second state change information, the control plane device delivers the user corresponding to the second user plane device to the first user plane device. information, after the user information is delivered, the control plane device sends a second handover notification to the second user plane device to notify the second user plane device to lower the second VRRP priority so that the second VRRP priority is lower than the first VRRP priority.

由于在第一用户面设备所在链路故障恢复时,对于第一用户面设备的上行链路,第一用户面设备能够通过BFD探测到故障恢复,对于第一用户面设备或第一用户面设备的下行链路故障恢复时,第二用户面设备能够通过BFD探测到故障恢复,通过告知控制面设备第一用户面设备所在链路故障恢复,控制面设备向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后通知第二用户面设备由主状态切换为备用状态,使得在第一用户面设备所在链路故障恢复时,第一用户面设备能够切换回主状态继续提供服务。When the link on which the first user plane device is located recovers from a fault, for the uplink of the first user plane device, the first user plane device can detect the fault recovery through BFD. For the first user plane device or the first user plane device When the downlink fails to recover, the second user plane device can detect the failure recovery through BFD, and by notifying the control plane device that the link where the first user plane device is located has recovered from the failure, the control plane device sends the second user plane device to the first user plane device. The user information corresponding to the user plane device is notified after the user information is delivered to the second user plane device to switch from the main state to the standby state, so that when the link where the first user plane device is located is restored, the first user plane device can switch Return to the main state to continue to provide services.

另外,由于控制面设备先下发用户信息,再发送切换通知,使得第一用户面设备在故障恢复切换回主状态时,不会产生用户流量丢失的问题。In addition, because the control plane device delivers user information first, and then sends the switching notification, so that the problem of user traffic loss will not occur when the first user plane device switches back to the primary state after failure recovery.

第四方面,提供了一种报文反馈装置,该报文反馈装置应用在第二用户面设备中,包括至少一个单元,该报文反馈装置的各个单元分别用于实现上述第一方面的报文反馈方法中对应的步骤。In a fourth aspect, a message feedback apparatus is provided. The message feedback apparatus is applied in a second user plane device and includes at least one unit, and each unit of the message feedback apparatus is respectively used to implement the message of the first aspect. Corresponding steps in the text feedback method.

第五方面,提供了一种报文反馈装置,该报文反馈装置应用在第一用户面设备中,包括至少一个单元,该报文反馈装置的各个单元分别用于实现上述第二方面的报文反馈方法中对应的步骤。In a fifth aspect, a message feedback device is provided, the message feedback device is applied in the first user plane device, and includes at least one unit, and each unit of the message feedback device is respectively used to implement the message of the second aspect. Corresponding steps in the text feedback method.

第六方面,提供了一种报文反馈装置,该报文反馈装置应用在控制面设备中,包括至少一个单元,该报文反馈装置的各个单元分别用于实现上述第三方面的报文反馈方法中对应的步骤。In a sixth aspect, a message feedback device is provided. The message feedback device is applied in a control plane device and includes at least one unit, and each unit of the message feedback device is respectively used to implement the message feedback of the third aspect. corresponding steps in the method.

第七方面,提供了一种计算机可读介质,该计算机可读介质存储用于实现第一方面、第二方面和第三方面所提供的报文反馈方法的指令。In a seventh aspect, a computer-readable medium is provided, where the computer-readable medium stores instructions for implementing the message feedback methods provided in the first aspect, the second aspect, and the third aspect.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本发明一个实施例提供的宽带接入网的示意图;1 is a schematic diagram of a broadband access network provided by an embodiment of the present invention;

图2A是本发明一个实施例提供的实施环境的示意图;2A is a schematic diagram of an implementation environment provided by an embodiment of the present invention;

图2B是本发明一个实施例提供的VRRP的原理示意图;2B is a schematic diagram of the principle of VRRP provided by an embodiment of the present invention;

图2C是本发明一个实施例提供的BFD的原理示意图;2C is a schematic diagram of the principle of a BFD provided by an embodiment of the present invention;

图3是本发明一个实施例提供的报文反馈方法的方法流程图;3 is a method flowchart of a message feedback method provided by an embodiment of the present invention;

图4A是本发明另一个实施例提供的报文反馈方法的方法流程图;4A is a method flowchart of a message feedback method provided by another embodiment of the present invention;

图4B是本发明再一个实施例提供的报文反馈方法的方法流程图;4B is a method flowchart of a message feedback method provided by still another embodiment of the present invention;

图4C是本发明再一个实施例提供的报文反馈方法的方法流程图;4C is a method flowchart of a message feedback method provided by still another embodiment of the present invention;

图4D是本发明再一个实施例提供的报文反馈方法的方法流程图;4D is a method flowchart of a message feedback method provided by still another embodiment of the present invention;

图5A是本发明再一个实施例提供的报文反馈方法的方法流程图;5A is a method flowchart of a message feedback method provided by still another embodiment of the present invention;

图5B是本发明再一个实施例提供的报文反馈方法的方法流程图;5B is a method flowchart of a message feedback method provided by still another embodiment of the present invention;

图5C是本发明再一个实施例提供的报文反馈方法的方法流程图;5C is a method flowchart of a message feedback method provided by still another embodiment of the present invention;

图5D是本发明再一个实施例提供的报文反馈方法的方法流程图;5D is a method flowchart of a message feedback method provided by still another embodiment of the present invention;

图6是本发明一个实施例提供的报文反馈装置的结构方框图;6 is a structural block diagram of a message feedback device provided by an embodiment of the present invention;

图7是本发明另一个实施例提供的报文反馈装置的结构方框图;7 is a structural block diagram of a message feedback apparatus provided by another embodiment of the present invention;

图8是本发明再一个实施例提供的报文反馈装置的结构方框图。FIG. 8 is a structural block diagram of a message feedback apparatus provided by still another embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

为了便于对本发明各实施例的理解,首先结合图2A对本发明各实施例所涉及的实施环境进行说明。In order to facilitate the understanding of the embodiments of the present invention, the implementation environment involved in the embodiments of the present invention is first described with reference to FIG. 2A .

图2A是本发明一个实施例提供的实施环境的示意图。该实施环境是一种分级网络结构,如图2A所示,从用户设备140到骨干层的互联网150要经过接入层230、汇聚层240与核心层250。FIG. 2A is a schematic diagram of an implementation environment provided by an embodiment of the present invention. The implementation environment is a hierarchical network structure. As shown in FIG. 2A , the Internet 150 from the user equipment 140 to the backbone layer passes through the access layer 230 , the aggregation layer 240 and the core layer 250 .

接入层230是用户设备140被许可接入互联网150的点,位于互联网150的边缘。汇聚层240是接入层230和核心层250之间的分界点,通常数据的处理是在汇聚层240完成。汇聚层240的设备都要连接到核心层250,核心层250为汇聚层240的设备提供高速的连接。The access layer 230 is the point at which the user equipment 140 is permitted to access the Internet 150 and is located at the edge of the Internet 150 . The convergence layer 240 is the dividing point between the access layer 230 and the core layer 250 , and data processing is usually completed at the convergence layer 240 . Devices in the aggregation layer 240 are all connected to the core layer 250 , and the core layer 250 provides high-speed connections for the devices in the aggregation layer 240 .

可选地,该实施环境涉及TIC(Telecommunication Infrastructure Cloud,电信基础云)网络架构,并且采用了控制平面和用户平面分离的架构。TIC网络架构包括TICCore(Telecommunication Infrastructure Cloud Core,电信基础云核心节点)210和TICEdge(Telecommunication Infrastructure Cloud Edge,电信基础云边缘节点)220。在TICCore 210中部署有BRAS CP 211(Control Plane,控制平面),在TIC Edge 220中部署有BRAS UP 221(User Plane,用户平面)。Optionally, the implementation environment involves a TIC (Telecommunication Infrastructure Cloud, telecommunication infrastructure cloud) network architecture, and adopts an architecture in which the control plane and the user plane are separated. The TIC network architecture includes TICCore (Telecommunication Infrastructure Cloud Core, telecom infrastructure cloud core node) 210 and TICEdge (Telecommunication Infrastructure Cloud Edge, telecom infrastructure cloud edge node) 220 . A BRAS CP 211 (Control Plane, control plane) is deployed in the TICCore 210 , and a BRAS UP 221 (User Plane, user plane) is deployed in the TIC Edge 220 .

在现有技术的BRAS中,用户拨号报文上送、转发表项的接收、用户流量转发、用户接入协议处理和用户管理由同一设备实现,而TIC网络架构使用的是控制转发分离场景,BRAS CP 211主要用于实现用户接入协议处理和用户管理,BRAS UP 221主要用于实现用户拨号报文上送、转发表项的接收以及用户流量转发。可选地,与TIC Core 210相连的还有RADIUS(Remote Authentication Dial In User Service,远程用户拨号认证服务)服务器212和DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)服务器213,RADIUS服务器212用于为拨号上网用户进行认证和计费,DHCP服务器213用于为网络服务自动分配IP地址。In the BRAS of the prior art, the sending of user dial-up messages, the reception of forwarding entries, the forwarding of user traffic, the processing of user access protocols, and the management of users are implemented by the same device, while the TIC network architecture uses the scenario of control and forwarding separation. The BRAS CP 211 is mainly used to implement user access protocol processing and user management, and the BRAS UP 221 is mainly used to implement user dial-up message upload, forwarding entry reception and user traffic forwarding. Optionally, connected to the TIC Core 210 are a RADIUS (Remote Authentication Dial In User Service, Remote Authentication Dial In User Service) server 212 and a DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) server 213, and the RADIUS server 212 is used for For authentication and accounting for dial-up users, the DHCP server 213 is used to automatically assign IP addresses to network services.

将TIC网络架构与分级网络结构结合起来看,TIC Core 210与核心层250对应,TICEdge 220与汇聚层240对应,则BRAS CP 211与BRAS UP 221在分离之后,BRAS CP 211部署在核心层250,BRAS CP 211中包括至少一个控制面设备214,BRAS UP 221部署在汇聚层240。Combining the TIC network architecture and the hierarchical network structure, the TIC Core 210 corresponds to the core layer 250, and the TICEdge 220 corresponds to the aggregation layer 240. After the BRAS CP 211 and the BRAS UP 221 are separated, the BRAS CP 211 is deployed at the core layer 250. The BRAS CP 211 includes at least one control plane device 214 , and the BRAS UP 221 is deployed at the convergence layer 240 .

在接入层230中配置有接入层交换机231,接入层交换机231一般用于连接用户设备140。可选地,接入层230中还可以配置有OLT(optical line terminal,光线路终端)232,OLT 232用于连接光纤干线的终端设备,与OLT 232对应的,用户设备140需要配置有ONT(Optical network terminal,光网络终端)233,ONT 233与OLT 232相连。An access layer switch 231 is configured in the access layer 230 , and the access layer switch 231 is generally used to connect the user equipment 140 . Optionally, an OLT (optical line terminal, optical line terminal) 232 may also be configured in the access layer 230. The OLT 232 is used to connect a terminal device of an optical fiber trunk line. Corresponding to the OLT 232, the user equipment 140 needs to be configured with an ONT ( Optical network terminal) 233, the ONT 233 is connected to the OLT 232.

在汇聚层240中配置有汇聚层交换机241,汇聚层交换机241是多台接入层交换机231的汇聚点。An aggregation layer switch 241 is configured in the aggregation layer 240 , and the aggregation layer switch 241 is an aggregation point of a plurality of access layer switches 231 .

在汇聚层240中,汇聚层交换机241分别与第一用户面设备222和第二用户面设备223相连。In the aggregation layer 240, the aggregation layer switch 241 is respectively connected to the first user plane device 222 and the second user plane device 223.

在核心层250中有上行网络设备251,汇聚层240中的第一用户面设备222和第二用户面设备223均连接至上行网络设备251,上行网络设备251是核心层250中的传输设备,上行网络设备251最终与骨干层的互联网150相连。There is an uplink network device 251 in the core layer 250, the first user plane device 222 and the second user plane device 223 in the convergence layer 240 are both connected to the uplink network device 251, and the uplink network device 251 is the transmission device in the core layer 250, The upstream network device 251 is finally connected to the Internet 150 at the backbone layer.

为了保证传输的稳定性,每个BRAS UP 221中通常包括第一用户面设备222和第二用户面设备223,在第一用户设备222无法提供服务时,第二用户面设备223将接替第一用户面设备222提供服务。可选的,第一用户面设备222和第二用户面设备223为路由器。In order to ensure the stability of transmission, each BRAS UP 221 usually includes a first user plane device 222 and a second user plane device 223. When the first user equipment 222 cannot provide services, the second user plane device 223 will replace the first user plane device 223. User plane device 222 provides the service. Optionally, the first user plane device 222 and the second user plane device 223 are routers.

对于第一用户面设备222和第二用户面设备223,需要实现物理设备和逻辑设备分离。具体实现为:第一用户面设备222和第二用户面设备223通过配置VRRP虚拟为一台虚拟用户面设备,用户设备140感知的是虚拟用户面设备,对于第一用户面设备222和第二用户面设备223并不感知。结合参考图2B,其示出了VRRP的原理示意图。在物理上,用户设备140与接入交换机232相连,接入交换机232分别与第一用户面设备222和第二用户面设备223相连,第一用户面设备222和第二用户面设备223连接至互联网150。当第一用户面设备222和第二用户面设备223配置VRRP后,第一用户面设备222和第二用户面设备223虚拟为一台虚拟用户面设备224。在逻辑上,用户设备140与接入交换机232相连,接入交换机232与虚拟用户面设备224相连,虚拟用户面设备224与互联网150相连。举例说明,第一用户面设备222的IP地址为10.1.1.2/24,第二用户面设备223的IP地址为10.1.1.1/24,虚拟用户面设备224的IP地址为10.1.1.10,用户设备140的IP地址为10.1.1.3/24,用户设备140指向的网关的IP地址为10.1.1.10,则用户设备140只能感知到虚拟用户设备224,而不能感知第一用户面设备222和第二用户面设备223。For the first user plane device 222 and the second user plane device 223, it is necessary to realize the separation of physical devices and logical devices. The specific implementation is as follows: the first user plane device 222 and the second user plane device 223 are virtualized as a virtual user plane device by configuring VRRP, and the user equipment 140 perceives the virtual user plane device. User plane device 223 is not aware. With reference to Figure 2B, a schematic diagram of the principle of VRRP is shown. Physically, the user equipment 140 is connected to the access switch 232, the access switch 232 is respectively connected to the first user plane device 222 and the second user plane device 223, and the first user plane device 222 and the second user plane device 223 are connected to Internet 150. After the first user plane device 222 and the second user plane device 223 are configured with VRRP, the first user plane device 222 and the second user plane device 223 are virtualized as a virtual user plane device 224 . Logically, the user equipment 140 is connected to the access switch 232 , the access switch 232 is connected to the virtual user plane device 224 , and the virtual user plane device 224 is connected to the Internet 150 . For example, the IP address of the first user plane device 222 is 10.1.1.2/24, the IP address of the second user plane device 223 is 10.1.1.1/24, the IP address of the virtual user plane device 224 is 10.1.1.10, and the user equipment The IP address of 140 is 10.1.1.3/24, and the IP address of the gateway pointed to by the user equipment 140 is 10.1.1.10, then the user equipment 140 can only perceive the virtual user equipment 224, but cannot perceive the first user plane equipment 222 and the second User plane device 223.

配置了VRRP的第一用户面设备222和第二用户面设备223会被分别配置各自的VRRP优先级。可选地,VRRP优先级的取值范围为0~255,缺省为100,第一用户面设备222和第二用户面设备223中VRRP优先级较高的一个设备的VRRP状态为主状态,较低的一个设备的VRRP状态为备用状态,当第一用户面设备222和第二用户面设备223的VRRP优先级的高低发生了改变后,对应的VRRP状态也会进行切换。The first user plane device 222 and the second user plane device 223 configured with VRRP will be respectively configured with their own VRRP priorities. Optionally, the value range of the VRRP priority is 0 to 255, and the default value is 100. The VRRP state of a device with a higher VRRP priority among the first user plane device 222 and the second user plane device 223 is the main state, The VRRP state of the lower device is the standby state. When the VRRP priorities of the first user plane device 222 and the second user plane device 223 are changed, the corresponding VRRP states are also switched.

假设第一用户面设备222的VRRP状态为主状态,第二用户面设备223的VRRP状态为备用状态,VRRP状态为主状态的第一用户面设备222周期性地向第二用户面设备223发送VRRP通告报文,VRRP通告报文中包含第一用户面设备222的第一VRRP优先级,第二用户面设备223在接收到VRRP通告报文后,向第一用户面设备222回复第二VRRP优先级,当第一用户面设备222得知第二VRRP优先级低于第一VRRP优先级时,第一用户面设备222维保自身的VRRP状态为主状态;当第一用户面设备222发送的第一VRRP优先级低于第二用户面设备223的第二VRRP优先级时,第二用户面设备223在接收到第一用户面设备222发送的VRRP通告报文时,抢占成为主状态,并向第一用户面设备222回复第二VRRP优先级,第一用户面设备222在得知第二VRRP优先级高于第一VRRP优先级时,将VRRP状态由主状态切换为备用状态。VRRP通告报文发送的周期通常为1秒,若第二用户面设备223在三个VRRP通告报文的时间周期(3秒)没有收到第一用户面设备222发送的VRRP通告报文,则第二用户面设备223认定第一用户面设备222出现故障,自动将第二用户面设备223的VRRP状态从备用状态切换为主状态。It is assumed that the VRRP state of the first user plane device 222 is the main state, the VRRP state of the second user plane device 223 is the standby state, and the first user plane device 222 whose VRRP state is in the main state periodically sends a message to the second user plane device 223 The VRRP advertisement packet contains the first VRRP priority of the first user plane device 222. After receiving the VRRP advertisement packet, the second user plane device 223 replies to the first user plane device 222 with the second VRRP Priority, when the first user plane device 222 learns that the second VRRP priority is lower than the first VRRP priority, the first user plane device 222 maintains its own VRRP state as the main state; when the first user plane device 222 sends When the first VRRP priority of the second user plane device 223 is lower than the second VRRP priority of the second user plane device 223, when the second user plane device 223 receives the VRRP advertisement message sent by the first user plane device 222, it preempts and becomes the master state, The second VRRP priority is returned to the first user plane device 222, and the first user plane device 222 switches the VRRP state from the main state to the standby state when learning that the second VRRP priority is higher than the first VRRP priority. The interval for sending VRRP advertisement packets is usually 1 second. If the second user plane device 223 does not receive the VRRP advertisement packet sent by the first user plane device 222 within the time period of three VRRP advertisement packets (3 seconds), the The second user plane device 223 determines that the first user plane device 222 is faulty, and automatically switches the VRRP state of the second user plane device 223 from the standby state to the main state.

在初始化时,第一用户面设备222与第二用户面设备223的VRRP优先级是手动配置的,比如第一用户面设备222的第一VRRP优先级配置成200,第二用户面设备223的第二VRRP优先级配置成100。在实际应用中,当第一用户面设备222无法提供服务时,降低第一VRRP优先级代表将第一VRRP优先级降低到小于第二VRRP优先级,比如降低成50,提高第二VRRP优先级代表将第二VRRP优先级提高到大于第一VRRP优先级,比如提高成220。During initialization, the VRRP priorities of the first user plane device 222 and the second user plane device 223 are manually configured. For example, the first VRRP priority of the first user plane device 222 is configured as 200, and the second user plane device 223 The second VRRP priority is configured as 100. In practical applications, when the first user plane device 222 cannot provide services, lowering the first VRRP priority means lowering the first VRRP priority to be lower than the second VRRP priority, for example, lowering it to 50, and increasing the second VRRP priority The representative increases the second VRRP priority to be greater than the first VRRP priority, for example, to 220.

为了使第一用户面设备222的故障能够尽快被发现,在第一用户面设备222和第二用户面设备223上使用BFD技术进行故障探测。结合参考图2C,其示出了BFD的原理示意图。用户设备140与接入交换机232相连,接入交换机232分别与第一用户面设备222和第二用户面设备223连接,第一用户面设备222与第一上行网络设备252相连,第二用户面设备223与第二上行网络设备253相连,第一上行网络设备252和第二上行网络设备253均接入互联网150。在对BFD进行配置时,第一用户面设备222上的BFD与上行链路的接口进行绑定,即第一用户面设备222上的BFD与第一上行网络设备252的接入接口绑定,用于探测第一用户面设备222的上行链路的状态,上行链路是指第一用户面设备222与上行网络设备252之间的链路;第二用户面设备223上的BFD与第一用户面设备222的IP地址绑定,由于第一用户面设备222与第二用户面设备223之间连接了接入交换机232,因此第二用户面设备223的BFD与第一用户面设备222的IP绑定,用于探测第一用户面设备222或第一用户面设备222的下行链路的状态,下行链路是指第一用户面设备222与接入交换机232之间的链路。BFD配置好之后,会定期发送BFD检测报文给绑定的对端,对端接收到检测报文后会进行回复,若BFD检测到发送给对端的检测报文没有回应,则BFD的状态变为DOWN,表示故障,若BFD检测到发送给对端的检测报文有回应,则BFD的状态变为UP,表示正常。比如,第一用户面设备222向上行网络设备252的接入接口发送检测报文,若没有收到回应,则表示上行链路故障,BFD的状态变为DOWN,并向第一用户面设备222中的VRRP发送通知;第二用户面设备223的BFD经过接入交换机232向第一用户面设备222发送检测报文,若没有收到回应,则表示第一用户面设备222故障或第一用户面设备222的下行链路故障,BFD的状态变为DOWN,并向第二用户面设备223的VRRP发送通知。In order to find the fault of the first user plane device 222 as soon as possible, the BFD technology is used to detect the fault on the first user plane device 222 and the second user plane device 223 . In conjunction with reference to Figure 2C, a schematic diagram of the principle of BFD is shown. The user equipment 140 is connected to the access switch 232, the access switch 232 is connected to the first user plane device 222 and the second user plane device 223 respectively, the first user plane device 222 is connected to the first uplink network device 252, and the second user plane device 252. The device 223 is connected to the second uplink network device 253 , and both the first uplink network device 252 and the second uplink network device 253 are connected to the Internet 150 . When configuring the BFD, the BFD on the first user plane device 222 is bound to the uplink interface, that is, the BFD on the first user plane device 222 is bound to the access interface of the first uplink network device 252, Used to detect the status of the uplink of the first user plane device 222, the uplink refers to the link between the first user plane device 222 and the uplink network device 252; the BFD on the second user plane device 223 and the first The IP address of the user plane device 222 is bound. Since the access switch 232 is connected between the first user plane device 222 and the second user plane device 223, the BFD of the second user plane device 223 is connected to the BFD of the first user plane device 222. IP binding is used to detect the state of the first user plane device 222 or the downlink of the first user plane device 222 , and the downlink refers to the link between the first user plane device 222 and the access switch 232 . After BFD is configured, it will periodically send BFD detection packets to the bound peer, and the peer will reply after receiving the detection packets. If BFD detects that there is no response to the detection packets sent to the peer, the BFD status changes If it is DOWN, it indicates a fault. If the BFD detects that there is a response to the detection packet sent to the peer end, the BFD status changes to UP, indicating normal. For example, the first user plane device 222 sends a detection packet to the access interface of the uplink network device 252. If no response is received, it indicates that the uplink is faulty, the BFD status changes to DOWN, and sends a detection packet to the first user plane device 222. VRRP in the device sends a notification; the BFD of the second user plane device 223 sends a detection packet to the first user plane device 222 through the access switch 232, if no response is received, it means that the first user plane device 222 is faulty or the first user The downlink of the plane device 222 is faulty, the state of the BFD becomes DOWN, and a notification is sent to the VRRP of the second user plane device 223 .

BFD发送检测报文的周期大约为50毫秒,等待三个周期(150毫秒)没有收到回应,则BFD认为出现故障,向VRRP发送通知。由于BFD检测到故障所花费的时间较短,因此能够快速发现故障,并通知VRRP进行故障处理。故障处理的时间缩短后,用户设备140就不会感知到发生故障。The period for BFD to send detection packets is about 50 milliseconds. If no response is received after three periods (150 milliseconds), BFD considers a fault and sends a notification to VRRP. Since it takes a short time for BFD to detect a fault, it can quickly find the fault and notify VRRP to handle the fault. After the time for failure processing is shortened, the user equipment 140 will not perceive the failure.

另外,BFD还需要配置延迟UP时间(Delay-up seconds),用于在故障恢复时为控制面设备214下发用户信息预留一定时间,因此延迟UP时间的时长要大于控制面设备214向用户面设备下发用户信息的时长。用户信息的下发通常需要十几秒,因此BFD延迟UP时间可以设置为20秒。等到用户信息下发完毕,BFD再将状态切换为UP,使得用户流量(或用户数据报文)切换的时候第一用户面设备222能够立即进行处理,避免了用户流量的丢失。In addition, BFD also needs to configure the delay-up time (Delay-up seconds), which is used to reserve a certain time for the control plane device 214 to deliver user information when the fault is recovered. The duration of the user information delivered by the face device. The delivery of user information usually takes more than ten seconds, so the BFD delay UP time can be set to 20 seconds. After the user information is delivered, the BFD switches the state to UP, so that the first user plane device 222 can immediately process the user traffic (or user data packets) switching, thereby avoiding the loss of user traffic.

图3是本发明一个实施例提供的报文反馈方法的方法流程图。该报文反馈方法以应用在图2A所示的实施环境中举例说明,如图3所示,该报文反馈方法包括:FIG. 3 is a method flowchart of a message feedback method provided by an embodiment of the present invention. The message feedback method is illustrated in the implementation environment shown in FIG. 2A as an example. As shown in FIG. 3 , the message feedback method includes:

301,控制面设备在第一用户面设备无法提供服务时,向第二用户面设备发送第一用户面设备对应的用户信息。301. When the first user plane device cannot provide the service, the control plane device sends user information corresponding to the first user plane device to the second user plane device.

第一用户面设备在升级时、自身发生故障、上行链路出现故障或者下行链路出现故障时无法提供服务。The first user plane device cannot provide services when it is upgraded, when itself fails, when the uplink fails, or when the downlink fails.

由于第一用户面设备无法提供服务,为了使用户设备能够正常接入,BRAS UP将主用户面设备由第一用户面设备替换成第二用户面设备。Since the first user plane device cannot provide services, in order to enable the user equipment to access normally, the BRAS UP replaces the primary user plane device from the first user plane device with the second user plane device.

可选地,用户信息至少包括用户设备的唯一标识(ID)、用户设备的接入接口、接口设备上的VLAN(Virtual Local Area Network,虚拟局域网)、用户设备的MAC地址以及用户设备的IP地址,其中,接口设备指接入交换机,接入接口指接入交换机上的接口。Optionally, the user information includes at least a unique identifier (ID) of the user equipment, an access interface of the user equipment, a VLAN (Virtual Local Area Network, virtual local area network) on the interface device, the MAC address of the user equipment, and the IP address of the user equipment. , where the interface device refers to the access switch, and the access interface refers to the interface on the access switch.

在实际应用中,在用户设备通过第一用户面设备接入互联网后,控制面设备中存储有该用户设备的全部用户信息,第一用户面设备中存储有与用户流量转发相关的用户信息,第二用户面设备中初始状态下是没有存储该用户设备相关的用户信息。因此在第一用户面设备无法提供服务,用户流量需要切换到第二用户面设备进行转发时,控制面设备需要先将用户信息下发到第二用户面设备上,第二用户面设备在接收到用户信息后才能对用户流量进行转发。In practical applications, after the user equipment accesses the Internet through the first user plane device, the control plane device stores all user information of the user equipment, and the first user plane device stores user information related to user traffic forwarding, In the initial state of the second user plane device, no user information related to the user device is stored. Therefore, when the first user plane device cannot provide services and user traffic needs to be switched to the second user plane device for forwarding, the control plane device needs to first deliver the user information to the second user plane device, and the second user plane device is receiving The user traffic can be forwarded only after the user information is obtained.

在实际应用中,控制面设备可能与多组用户面设备相连,一组用户面设备包括第一用户面设备和第二用户面设备。由于与控制面设备相连的用户面设备很多,因此控制面设备在向第二用户面设备下发用户信息时,需要下发与第一用户面设备对应的用户信息。与第一用户面设备对应的用户信息是指第一用户面设备用于实现用户流量转发相关的用户信息。In practical applications, the control plane device may be connected to multiple groups of user plane devices, and a group of user plane devices includes a first user plane device and a second user plane device. Since there are many user plane devices connected to the control plane device, when delivering user information to the second user plane device, the control plane device needs to deliver user information corresponding to the first user plane device. The user information corresponding to the first user plane device refers to user information related to the first user plane device used to implement user traffic forwarding.

302,第二用户面设备从控制面设备获取第一用户面设备对应的用户信息。302. The second user plane device acquires user information corresponding to the first user plane device from the control plane device.

控制面设备向第二用户面设备下发第一用户面设备对应的用户信息,第二用户面设备将接收到的用户信息进行存储。The control plane device delivers user information corresponding to the first user plane device to the second user plane device, and the second user plane device stores the received user information.

303,第二用户面设备接收用户设备发送的保活报文。303. The second user plane device receives the keep-alive message sent by the user equipment.

保活报文用于请求用户设备处于在线状态。Keep-alive packets are used to request that the user equipment is online.

可选地,保活报文中包含:用户设备的ID、保活信息等。Optionally, the keep-alive message includes: the ID of the user equipment, keep-alive information, and the like.

用户设备在上线后,设置保活定时器,若无数据交互的时长达到保活定时器定时时长,则用户设备发送保活报文,用户设备在接收到用于反馈保活报文的确认报文时,对保活定时器进行重置,若用户设备没有收到确认报文,则用户设备掉线。After the user equipment goes online, a keep-alive timer is set. If the period of no data interaction reaches the time period of the keep-alive timer, the user equipment sends a keep-alive message, and the user equipment receives an acknowledgment message for feeding back the keep-alive message. When the message is sent, the keep-alive timer is reset. If the user equipment does not receive the confirmation message, the user equipment is disconnected.

304,第二用户面设备根据用户信息向用户设备反馈确认报文。304. The second user plane device feeds back a confirmation message to the user equipment according to the user information.

第二用户面设备在接收到用户设备发送的保活报文时,需要查找与用户设备对应的用户信息,确定出用户设备是否已上线,若用户设备已上线,则第二用户面设备向用户设备反馈确认报文。When the second user plane device receives the keep-alive message sent by the user equipment, it needs to look up the user information corresponding to the user equipment to determine whether the user equipment is online. The device sends back a confirmation message.

由于第二用户面设备从控制面设备获取到用户信息,因此能够通过查询用户信息向用户设备反馈确认报文。Since the second user plane device acquires the user information from the control plane device, it can feed back a confirmation message to the user equipment by querying the user information.

305,控制面设备在第一用户面设备从无法提供服务恢复为提供服务状态时,向第一用户面设备发送第二用户面设备对应的用户信息。305. When the first user plane device recovers from the state of being unable to provide the service to the state of providing the service, the control plane device sends the user information corresponding to the second user plane device to the first user plane device.

可选地,在第一用户面设备升级完毕或所属链路故障恢复时,第一用户面设备恢复为提供服务状态。Optionally, when the first user plane device is upgraded or the link to which it belongs is recovered from a fault, the first user plane device is restored to a state of providing services.

在一种可能的情况中,由于第一用户面设备在无法提供服务期间,用户流量是通过第二用户面设备转发的,在此期间的用户信息是没有存储在第一用户面设备上,因此当第一用户面设备恢复提供服务时,控制面设备需要将第二用户面设备对应的用户信息发送给第一用户面设备。In a possible situation, since the first user plane device cannot provide services, the user traffic is forwarded through the second user plane device, and the user information during this period is not stored on the first user plane device. Therefore, When the first user plane device resumes providing services, the control plane device needs to send user information corresponding to the second user plane device to the first user plane device.

在另一种可能的情况中,第一用户面设备由于升级或故障导致数据丢失,当第一用户面设备恢复为提供服务的状态时,控制面设备需要下发用户信息给第一用户面设备。In another possible situation, data is lost due to an upgrade or failure of the first user plane device. When the first user plane device returns to the state of providing services, the control plane device needs to deliver user information to the first user plane device. .

306,第一用户面设备从控制面设备获取第二用户面设备对应的用户信息。306. The first user plane device acquires user information corresponding to the second user plane device from the control plane device.

307,第一用户面设备接收用户设备发送的保活报文。307. The first user plane device receives the keep-alive message sent by the user equipment.

308,第一用户面设备根据用户信息向用户设备反馈确认报文。308. The first user plane device feeds back a confirmation message to the user equipment according to the user information.

由于控制面设备向第一用户面设备下发了用户信息,因此第一用户面设备能够根据用户信息反馈确认报文。Since the control plane device delivers user information to the first user plane device, the first user plane device can feed back a confirmation message according to the user information.

综上所述,本发明实施例提供的报文反馈方法,通过在第一用户面设备无法提供服务时,第二用户面设备从控制面设备获取第一用户面设备对应的用户信息,根据用户信息向发送保活报文的用户设备反馈确认报文,由于第二用户面设备不需要实时备份第一用户面设备的用户信息,即备用状态的用户面设备不需要实时备份主状态的用户面设备的用户信息,因此不会产生过多占用备用状态的用户面设备资源的问题。To sum up, in the packet feedback method provided by the embodiments of the present invention, when the first user plane device cannot provide services, the second user plane device obtains user information corresponding to the first user plane device from the control plane device, and according to the user The information feeds back a confirmation message to the user equipment that sends the keep-alive message. Since the second user plane device does not need to back up the user information of the first user plane device in real time, that is, the user plane device in the standby state does not need to back up the user plane in the active state in real time. user information of the device, so there is no problem of excessively occupying the resources of the user plane device in the standby state.

另外,由于第二用户面设备在接收到用户信息后,根据用户信息可以向发送保活报文的用户设备反馈确认报文,从而使得在第一用户面设备无法提供服务时,用户设备能够通过第二用户面设备继续上线。In addition, after receiving the user information, the second user plane device can feed back a confirmation message to the user equipment that sent the keep-alive message according to the user information, so that when the first user plane device cannot provide services, the user equipment can pass The second user plane device continues to go online.

通过在第一用户面设备从无法提供服务恢复为提供服务状态时,第一用户面设备从控制面设备获取第二用户面设备对应的用户信息,根据用户信息向发送保活报文的用户设备反馈确认报文,由于第一用户面设备在无法提供服务时不需要实时备份第二用户面设备的用户信息,即备用状态的用户面设备不需要实时备份主状态的用户面设备的用户信息,因此不会产生过多占用备用状态的用户面设备资源的问题。When the first user plane device recovers from being unable to provide services to providing services, the first user plane device obtains user information corresponding to the second user plane device from the control plane device, and sends the keep-alive message to the user equipment according to the user information. The confirmation message is fed back, because the first user plane device does not need to back up the user information of the second user plane device in real time when it cannot provide services, that is, the user plane device in the standby state does not need to back up the user information of the user plane device in the main state in real time. Therefore, the problem of excessively occupying the resources of the user plane equipment in the standby state will not arise.

另外,由于第一用户面设备在接收到用户信息后,根据用户信息可以向发送保活报文的用户设备反馈确认报文,从而使得在第一用户面设备恢复提供服务时,用户设备能够通过第一用户面设备继续上线。In addition, after receiving the user information, the first user plane device can feed back a confirmation message to the user equipment that sent the keep-alive message according to the user information, so that when the first user plane device resumes providing services, the user equipment can pass The first user plane device continues to go online.

通过在第一用户面设备无法提供服务时,控制面设备向第二用户面设备发送第一用户面设备对应的用户信息,使得第二用户面设备根据用户信息向发送保活报文的用户设备反馈确认报文,由于第二用户面设备不需要实时备份第一用户面设备的用户信息,即备用状态的用户面设备不需要实时备份主状态的用户面设备的用户信息,因此不会产生过多占用备用状态的用户面设备资源的问题。When the first user plane device cannot provide services, the control plane device sends the user information corresponding to the first user plane device to the second user plane device, so that the second user plane device can send the keep-alive message to the user equipment according to the user information. Feedback confirmation message, because the second user plane device does not need to back up the user information of the first user plane device in real time, that is, the user plane device in the standby state does not need to back up the user information of the user plane device in the main state in real time, so there will be no real-time backup of user information. The problem of occupying more resources of the user plane equipment in the standby state.

通过在第一用户面设备从无法提供服务恢复为提供服务状态时,控制面设备向第一用户面设备发送第二用户面设备对应的用户信息,使得第一用户面设备根据用户信息向发送保活报文的用户设备反馈确认报文,由于第一用户面设备在无法提供服务时不需要实时备份第二用户面设备的用户信息,即备用状态的用户面设备不需要实时备份主状态的用户面设备的用户信息,因此不会产生过多占用备用状态的用户面设备资源的问题。By sending the user information corresponding to the second user plane device to the first user plane device when the first user plane device recovers from the state of being unable to provide services to providing services, the first user plane device can send the user information to the sending guarantee device according to the user information. The user equipment of the live packet feeds back the confirmation message, because the first user plane device does not need to back up the user information of the second user plane device in real time when it cannot provide services, that is, the user plane device in the standby state does not need to backup the users in the main state in real time. user information of the plane device, so there is no problem of excessively occupying the resources of the user plane device in the standby state.

当第一用户面设备由于升级导致无法提供服务时,对于第一用户面设备与第二用户面设备之间的切换以及对保活报文的反馈请参见图4A或图4B所示的步骤。When the first user plane device cannot provide services due to the upgrade, please refer to the steps shown in FIG. 4A or FIG. 4B for the handover between the first user plane device and the second user plane device and the feedback of the keep-alive message.

当第一用户面设备升级完毕恢复提供服务状态时,对于第一用户面设备与第二用户面设备之间的切换以及对保活报文的反馈请参见图4C或图4D所示的步骤。When the first user plane device is upgraded and resumes the state of providing services, for the switching between the first user plane device and the second user plane device and the feedback of the keep-alive message, please refer to the steps shown in FIG. 4C or FIG. 4D .

当第一用户面设备的上行链路发生故障时,对于第一用户面设备与第二用户面设备之间的切换以及对保活报文的反馈请参见图5A所示的步骤;当第一用户面设备的上行链路故障恢复时,对于第一用户面设备与第二用户面设备之间的切换以及对保活报文的反馈请参见图5B所示的步骤。When the uplink of the first user plane device fails, please refer to the steps shown in FIG. 5A for the handover between the first user plane device and the second user plane device and the feedback of the keep-alive message; When the uplink failure of the user plane device is recovered, please refer to the steps shown in FIG. 5B for the handover between the first user plane device and the second user plane device and the feedback of the keep-alive message.

当第一用户面设备的下行链路或第一用户面设备发生故障时,对于第一用户面设备与第二用户面设备之间的切换以及对保活报文的反馈请参见图5C所示的步骤;当第一用户面设备的下行链路或第一用户面设备故障恢复时,对于第一用户面设备与第二用户面设备之间的切换以及对保活报文的反馈请参见图5D所示的步骤。When the downlink of the first user plane device or the first user plane device fails, please refer to FIG. 5C for the handover between the first user plane device and the second user plane device and the feedback of the keep-alive message step; when the downlink of the first user plane device or the first user plane device recovers from a fault, please refer to Fig. Steps shown in 5D.

图4A是本发明另一个实施例提供的报文反馈方法的方法流程图。该报文反馈方法以应用在图2A所示的实施环境中举例说明,本实施例中第一用户面设备由于升级导致无法提供服务,如图4A所示,该报文反馈方法包括:FIG. 4A is a method flowchart of a message feedback method provided by another embodiment of the present invention. The message feedback method is applied in the implementation environment shown in FIG. 2A as an example. In this embodiment, the first user plane device cannot provide services due to an upgrade. As shown in FIG. 4A , the message feedback method includes:

401,控制面设备在第一用户面设备升级时,向第二用户面设备发送第一用户面设备对应的用户信息。401. When the first user plane device is upgraded, the control plane device sends user information corresponding to the first user plane device to the second user plane device.

在实际实现时,升级时包括升级前的预定时长和升级的过程,预定时长至少大于控制面设备向第二用户面设备下发用户信息所需时长。In actual implementation, the upgrade includes a predetermined duration before the upgrade and an upgrade process, and the predetermined duration is at least greater than the duration required for the control plane device to deliver user information to the second user plane device.

由于第一用户面设备的升级导致第一用户面设备无法提供服务是可以预见的,因此提前对第一用户面设备和第二用户面设备的切换进行准确,控制面设备提前将用户信息下发至第一用户面设备,使得在切换后,避免了由于用户信息未下发导致用户流量的丢失。It is foreseeable that the first user plane device cannot provide services due to the upgrade of the first user plane device. Therefore, the switching between the first user plane device and the second user plane device is performed accurately in advance, and the control plane device issues user information in advance. to the first user plane device, so that after the handover, the loss of user traffic due to the failure to deliver user information is avoided.

在实际应用中,控制面设备下发用户信息所需时长大约为十几秒,预定时长可以设置为20秒。In practical applications, the time required for the control plane device to deliver user information is about ten seconds, and the predetermined time can be set to 20 seconds.

402,第二用户面设备接收控制面设备下发的第一用户面设备对应的用户信息。402. The second user plane device receives user information corresponding to the first user plane device delivered by the control plane device.

403a,控制面设备向第一用户面设备发送优先级降低命令。403a, the control plane device sends a priority reduction command to the first user plane device.

控制设备先下发用户信息再发送优先级降低指令,使得在用户流量切换到第二用户面设备时,第二用户面设备中已经存储有用户信息,从而能够对用户流量进行转发,避免了用户流量的丢失。The control device first delivers the user information and then sends the priority reduction instruction, so that when the user traffic is switched to the second user plane device, the user information is already stored in the second user plane device, so that the user traffic can be forwarded, avoiding user traffic. loss of traffic.

在实际应用中,第一用户面设备和第二用户面设备在配置时手动设置好VRRP优先级,比如:第一用户面设备的VRRP优先级为200,第二用户面设备的VRRP优先级为100。VRRP优先级高的用户面设备的VRRP状态为主状态,VRRP优先级低的用户面设备的VRRP状态为备用状态。In practical applications, the VRRP priority of the first user plane device and the second user plane device are manually set during configuration. For example, the VRRP priority of the first user plane device is 200, and the VRRP priority of the second user plane device is 100. The VRRP state of the user plane device with a higher VRRP priority is the primary state, and the VRRP state of the user plane device with a lower VRRP priority is the standby state.

优先级降低命令用于指示第一用户面设备的VRRP优先级降低到比第二用户面设备的VRRP优先级低,比如:第一用户面设备的VRRP优先级降低到80。The priority reduction command is used to instruct the VRRP priority of the first user plane device to be reduced to a lower priority than the VRRP priority of the second user plane device, for example, the VRRP priority of the first user plane device is reduced to 80.

404a,第一用户面设备接收控制面设备发送的优先级降低命令。404a: The first user plane device receives a priority reduction command sent by the control plane device.

405a,第一用户面设备根据优先级降低命令降低第一用户面设备的第一VRRP优先级。405a, the first user plane device lowers the first VRRP priority of the first user plane device according to the priority lowering command.

在实际应用中,第一用户面设备降低后的第一VRRP优先级要低于第二用户面设备的第二VRRP优先级。In practical applications, the reduced first VRRP priority of the first user plane device is lower than the second VRRP priority of the second user plane device.

406a,第一用户面设备向第二用户面设备发送第一VRRP优先级。406a. The first user plane device sends the first VRRP priority to the second user plane device.

由于第一用户面设备初始配置的VRRP优先级高于第二用户面设备的VRRP优先级,因此第一用户面设备的VRRP状态为主状态,具备发送VRRP通告报文的能力。第一用户面设备周期性发送的VRRP通告报文中包括第一VRRP的优先级。Since the VRRP priority initially configured on the first user plane device is higher than the VRRP priority of the second user plane device, the VRRP state of the first user plane device is the main state and is capable of sending VRRP advertisement packets. The VRRP advertisement message periodically sent by the first user plane device includes the priority of the first VRRP.

407a,第二用户面设备接收第一用户面设备发送的第一VRRP优先级。407a, the second user plane device receives the first VRRP priority sent by the first user plane device.

408a,第二用户面设备在第一VRRP优先级低于第二用户面设备的第二VRRP优先级时,将第二用户面设备的VRRP状态从备用状态切换为主状态。408a: When the first VRRP priority is lower than the second VRRP priority of the second user plane device, the second user plane device switches the VRRP state of the second user plane device from the standby state to the main state.

由于第一VRRP优先级降低,当第二VRRP优先级高于第一VRRP优先级时,第二用户面设备的VRRP状态切换为主状态。Since the priority of the first VRRP is lowered, when the priority of the second VRRP is higher than the priority of the first VRRP, the VRRP state of the second user plane device is switched to the main state.

409a,第二用户面设备向第一用户面设备发送第二VRRP优先级。409a, the second user plane device sends the second VRRP priority to the first user plane device.

第二用户面设备在接收到第一用户面设备发送的VRRP通告报文后,向第一用户面设备回复第二VRRP优先级。After receiving the VRRP notification message sent by the first user plane device, the second user plane device replies with the second VRRP priority to the first user plane device.

410a,第一用户面设备接收第二用户面设备发送的第二VRRP优先级。410a. The first user plane device receives the second VRRP priority sent by the second user plane device.

411a,第一用户面设备在第一VRRP优先级低于第二VRRP优先级时,将第一用户面设备的VRRP状态从主状态切换为备用状态。411a, when the first VRRP priority is lower than the second VRRP priority, the first user plane device switches the VRRP state of the first user plane device from the main state to the standby state.

原本VRRP状态为主状态的第一用户面设备在接收到第二用户面设备返回的第二VRRP优先级后,确定出第一VRRP优先级低于第二VRRP优先级,从而将VRRP状态从主状态切换为备用状态。After receiving the second VRRP priority returned by the second user plane device, the first user plane device in the original VRRP state determines that the first VRRP priority is lower than the second VRRP priority, thereby changing the VRRP state from the master state. The state switches to the standby state.

可替换的,步骤403a至步骤411a可以替换成图4B所示的步骤403b至步骤411b。Alternatively, steps 403a to 411a may be replaced with steps 403b to 411b shown in FIG. 4B .

403b,控制面设备向第二用户面设备发送优先级提高命令。403b, the control plane device sends a priority increase command to the second user plane device.

优先级提高命令用于指示第二用户面设备的VRRP优先级提高到比第一用户面设备的VRRP优先级高,比如:第二用户面设备的VRRP优先级提高到220。The priority increase command is used to instruct the VRRP priority of the second user plane device to be higher than the VRRP priority of the first user plane device, for example, the VRRP priority of the second user plane device is increased to 220.

404b,第二用户面设备接收控制面设备发送的优先级提高命令。404b, the second user plane device receives the priority increase command sent by the control plane device.

405b,第二用户面设备根据优先级提高命令提高第二用户面设备的第二VRRP优先级。405b, the second user plane device increases the second VRRP priority of the second user plane device according to the priority increasing command.

第二用户面设备的第二VRRP优先级提高与第一用户面设备的第一VRRP优先级降低的目的是相同的,都是为了使第一VRRP优先级小于第二VRRP优先级。The purpose of increasing the second VRRP priority of the second user plane device and decreasing the first VRRP priority of the first user plane device is the same, both are to make the first VRRP priority smaller than the second VRRP priority.

406b,第一用户面设备向第二用户面设备发送第一用户面设备的第一VRRP优先级。406b, the first user plane device sends the first VRRP priority of the first user plane device to the second user plane device.

407b,第二用户面设备接收第一用户面设备发送的第一VRRP优先级。407b, the second user plane device receives the first VRRP priority sent by the first user plane device.

408b,第二用户面设备在第一VRRP优先级低于第二用户面设备的第二VRRP优先级时,将第二用户面设备的VRRP状态从备用状态切换为主状态。408b. When the first VRRP priority is lower than the second VRRP priority of the second user plane device, the second user plane device switches the VRRP state of the second user plane device from the standby state to the main state.

由于第二用户面设备的第二VRRP优先级提高,当第二VRRP优先级高于第一VRRP优先级时,第二用户面设备的VRRP状态切换为主状态。Since the second VRRP priority of the second user plane device is increased, when the second VRRP priority is higher than the first VRRP priority, the VRRP state of the second user plane device is switched to the main state.

409b,第二用户面设备向第一用户面设备发送第二VRRP优先级。409b, the second user plane device sends the second VRRP priority to the first user plane device.

410b,第一用户面设备接收第二用户面设备发送的第二VRRP优先级。410b, the first user plane device receives the second VRRP priority sent by the second user plane device.

411b,第一用户面设备在第一VRRP优先级低于第二VRRP优先级时,将第一用户面设备的VRRP状态从主状态切换为备用状态。411b, when the first VRRP priority is lower than the second VRRP priority, the first user plane device switches the VRRP state of the first user plane device from the main state to the standby state.

412,第二用户面设备接收用户设备发送的保活报文。412. The second user plane device receives the keep-alive message sent by the user equipment.

413,第二用户面设备根据用户信息向用户设备反馈确认报文。413. The second user plane device feeds back a confirmation message to the user equipment according to the user information.

第二用户面设备在接收了控制面设备下发的用户信息后,可以根据用户信息对保活报文进行回应,反馈确认报文。After receiving the user information delivered by the control plane device, the second user plane device may respond to the keep-alive message according to the user information, and feed back a confirmation message.

图4C是本发明再一个实施例提供的报文反馈方法的方法流程图。该报文反馈方法以应用在图2A所示的实施环境中举例说明,本实施例中第一用户面设备由于升级完毕恢复提供服务状态,如图4C所示,该报文反馈方法包括:FIG. 4C is a method flowchart of a message feedback method provided by still another embodiment of the present invention. The message feedback method is applied in the implementation environment shown in FIG. 2A as an example. In this embodiment, the first user plane device resumes providing a service state after the upgrade is completed. As shown in FIG. 4C , the message feedback method includes:

414,控制面设备在第一用户面设备升级完毕时,向第一用户面设备发送第二用户面设备对应的用户信息。414. When the upgrade of the first user plane device is completed, the control plane device sends the user information corresponding to the second user plane device to the first user plane device.

在第一用户面设备升级完毕后,第一用户面设备能够继续提供服务。After the first user plane device is upgraded, the first user plane device can continue to provide services.

由于在第一用户面设备升级期间,用户流量是通过第二用户面设备转发的,因此第一用户面设备中可能没有存储对应的用户信息,或者第一用户面设备由于升级导致用户信息数据全部丢失,因此控制面设备需要向第一用户面设备下发第二用户面对应的用户信息。During the upgrade of the first user plane device, user traffic is forwarded through the second user plane device, so the first user plane device may not store the corresponding user information, or the first user plane device may cause all user information data due to the upgrade. is lost, so the control plane device needs to deliver the user information corresponding to the second user plane to the first user plane device.

415,第一用户面设备接收控制面设备发送的用户信息。415. The first user plane device receives the user information sent by the control plane device.

416a,控制面设备向第一用户面设备发送优先级提高命令。416a. The control plane device sends a priority increase command to the first user plane device.

控制面设备先下发用户信息,再下发优先级提高命令指示VRRP状态进行切换,使得在用户流量切换回第一用户面设备时,不会由于用户信息未下发,导致用户流量的丢失。The control plane device first delivers the user information, and then sends the priority raising command to instruct the VRRP state to switch, so that when the user traffic is switched back to the first user plane device, the user traffic will not be lost because the user information is not delivered.

在实际实现时,通常是由VRRP状态为主状态的用户面设备实现真正的转发功能,因此在第一用户面设备恢复提供服务状态时,第一用户面设备的VRRP状态需要先切换为主状态,第一用户面设备的VRRP状态切换为主状态需要第一VRRP优先级大于第二VRRP优先级,因此控制面设备向第一用户面设备发送优先级提高命令提高第一VRRP优先级。In actual implementation, the real forwarding function is usually realized by the user plane device in the VRRP state as the main state. Therefore, when the first user plane device resumes providing the service state, the VRRP state of the first user plane device needs to be switched to the main state first. , the VRRP state of the first user plane device is switched to the main state, and the first VRRP priority is greater than the second VRRP priority, so the control plane device sends a priority increase command to the first user plane device to increase the first VRRP priority.

417a,第一用户面设备接收控制面设备发送的优先级提高命令。417a: The first user plane device receives the priority increase command sent by the control plane device.

418a,第一用户面设备根据优先级提高命令提高第一用户面设备的第一VRRP优先级。418a. The first user plane device increases the first VRRP priority of the first user plane device according to the priority increasing command.

419a,第二用户面设备向第一用户面设备发送第二VRRP优先级。419a. The second user plane device sends the second VRRP priority to the first user plane device.

在第一用户面设备升级期间,第二用户面设备的VRRP状态为主状态,因此第二用户面设备向第一用户面设备发送VRRP通告报文,VRRP通告报文中携带有第二VRRP优先级。During the upgrade of the first user plane device, the VRRP state of the second user plane device is the main state. Therefore, the second user plane device sends a VRRP advertisement packet to the first user plane device. The VRRP advertisement packet carries the second VRRP priority. class.

420a,第一用户面设备接收第二用户面设备发送的第二VRRP优先级。420a. The first user plane device receives the second VRRP priority sent by the second user plane device.

421a,第一用户面设备在第一VRRP优先级高于第二用户面设备的第二VRRP优先级时,将第一用户面设备的VRRP优先级从备用状态切换为主状态。421a. When the first VRRP priority is higher than the second VRRP priority of the second user plane device, the first user plane device switches the VRRP priority of the first user plane device from the standby state to the main state.

422a,第一用户面设备向第二用户面设备发送第一VRRP优先级。422a. The first user plane device sends the first VRRP priority to the second user plane device.

423a,第二用户面设备接收第一用户面设备发送的第一VRRP优先级。423a. The second user plane device receives the first VRRP priority sent by the first user plane device.

424a,第二用户面设备在第一VRRP优先级高于第二VRRP优先级时,将第二用户面设备的VRRP状态从主状态切换为备用状态。424a. When the first VRRP priority is higher than the second VRRP priority, the second user plane device switches the VRRP state of the second user plane device from the main state to the standby state.

可替换的,步骤416a至步骤424a可以替换成图4D所示的步骤416b至步骤424b。Alternatively, steps 416a to 424a may be replaced with steps 416b to 424b shown in FIG. 4D .

416b,控制面设备向第二用户面设备发送优先级降低命令。416b, the control plane device sends a priority reduction command to the second user plane device.

降低第二用户面设备的第二VRRP优先级与提高第一用户面设备的第一VRRP优先级的目的是一样的,都是为了使第二VRRP优先级低于第一VRRP优先级,从而使得第一用户面设备的VRRP状态切换为主状态。The purpose of lowering the second VRRP priority of the second user plane device is the same as increasing the first VRRP priority of the first user plane device, both are to make the second VRRP priority lower than the first VRRP priority, so that The VRRP state of the first user plane device is switched to the main state.

417b,第二用户面设备接收控制面设备发送的优先级降低命令。417b, the second user plane device receives the priority reduction command sent by the control plane device.

418b,第二用户面设备根据优先级降低命令降低第二VRRP优先级。418b, the second user plane device lowers the second VRRP priority according to the priority lowering command.

419b,第二用户面设备向第一用户面设备发送第二VRRP优先级。419b, the second user plane device sends the second VRRP priority to the first user plane device.

420b,第一用户面设备接收第二用户面设备发送的第二VRRP优先级。420b, the first user plane device receives the second VRRP priority sent by the second user plane device.

421b,第一用户面设备在第二VRRP优先级低于第一VRRP优先级时,将第一用户面设备的VRRP状态从备用状态切换为主状态。421b, when the second VRRP priority is lower than the first VRRP priority, the first user plane device switches the VRRP state of the first user plane device from the standby state to the main state.

422b,第一用户面设备向第二用户面设备发送第一VRRP优先级。422b, the first user plane device sends the first VRRP priority to the second user plane device.

423b,第二用户面设备接收第一用户面设备发送的第一VRRP优先级。423b, the second user plane device receives the first VRRP priority sent by the first user plane device.

424b,第二用户面设备在第二VRRP优先级低于第一VRRP优先级时,将第二用户面设备的VRRP状态从主状态切换为备用状态。424b, when the second VRRP priority is lower than the first VRRP priority, the second user plane device switches the VRRP state of the second user plane device from the main state to the standby state.

425,第一用户面设备接收用户设备发送的保活报文。425. The first user plane device receives the keep-alive message sent by the user equipment.

第一用户面设备在VRRP状态切换为主状态后,提供用户流量转发的服务,因此第一用户面设备能够接收到用户设备发送的保活报文。After the VRRP state is switched to the main state, the first user plane device provides a service of user traffic forwarding, so the first user plane device can receive the keep-alive message sent by the user equipment.

426,第一用户面设备根据用户信息向用户设备反馈确认报文。426. The first user plane device feeds back a confirmation message to the user equipment according to the user information.

由于第一用户面设备接收控制面设备下发的用户信息,因此第一用户面设备可以根据用户信息向用户设备反馈确认报文。Since the first user plane device receives the user information delivered by the control plane device, the first user plane device can feed back a confirmation message to the user equipment according to the user information.

综上所述,本发明实施例提供的报文反馈方法,由于第一用户面设备在升级时无法提供服务,因此第一用户面设备在升级时,第二用户面设备接收控制面设备下发的第一用户面设备对应的用户信息,从而在第一用户面设备升级的过程中能够接替第一用户面设备进行用户流量的转发工作。由于第二用户面设备是在第一用户面设备升级前的预定时长就接收控制面设备下发的用户信息,并且预定时长大于控制面设备下发用户信息的时长,因此在第一用户面设备升级过程中,第二用户面设备中已经存储了用户信息,能够对用户设备发送的报文进行响应,从而使得用户设备在主备切换时不会掉线。To sum up, in the packet feedback method provided by the embodiment of the present invention, since the first user plane device cannot provide services during the upgrade, the second user plane device receives the data sent by the control plane device when the first user plane device is upgraded. The user information corresponding to the first user plane device, so that the first user plane device can take over for the first user plane device to perform user traffic forwarding during the upgrade process of the first user plane device. Because the second user plane device receives the user information delivered by the control plane device before the first user plane device is upgraded, and the predetermined time period is longer than the time period for which the control plane device delivers the user information, the first user plane device During the upgrade process, the user information has been stored in the second user plane device, and it can respond to the message sent by the user equipment, so that the user equipment will not be disconnected during active/standby switching.

由于第二用户面设备在接收到第一用户面设备对应的用户信息之后,才接收到控制面设备法发送的优先级提高命令,或者接收到第一用户面设备根据优先级降低命令降低的第一VRRP优先级,然后第二用户面设备的VRRP状态由备用状态切换为主状态,第二用户面设备接替第一用户面设备继续提供服务,使得在切换时第二用户面设备中已经有用户信息,从而不会产生切换时由于第二用户面设备中没有用户信息使得用户流量被丢弃的情况。Because the second user plane device only receives the priority increase command sent by the control plane device method after receiving the user information corresponding to the first user plane device, or receives the first user plane device to reduce the priority according to the priority reduction command. A VRRP priority, then the VRRP state of the second user plane device is switched from the standby state to the main state, and the second user plane device takes over the first user plane device and continues to provide services, so that there are already users in the second user plane device during the switchover. information, so that there is no situation in which user traffic is discarded during handover because there is no user information in the second user plane device.

由于第一用户面设备升级完毕后,第一用户面设备在接收到用户信息后,控制面设备才对第一用户面设备下发优先级提高命令,或对第二用户面设备下发优先级降低命令,使得在第一用户面设备升级完毕后,第一用户面设备中在存储有用户信息的情况下才将第二用户面设备的VRRP状态由主状态切换为备用状态,而第一用户面设备的VRRP状态由备用状态切换为主状态,第一用户面设备接替第二用户面设备继续提供服务,使得在切换时第一用户面设备中已经有用户信息,从而不会产生切换时由于第一用户面设备中没有用户信息使得用户流量被丢弃的情况。After the upgrade of the first user plane device is completed, after the first user plane device receives the user information, the control plane device issues a priority increase command to the first user plane device, or issues a priority to the second user plane device. The lowering command, so that after the upgrade of the first user plane device is completed, the VRRP state of the second user plane device is switched from the main state to the standby state only when user information is stored in the first user plane device. The VRRP state of the plane device is switched from the standby state to the main state, and the first user plane device takes over the second user plane device to continue to provide services, so that the first user plane device already has user information during the handover. There is no user information in the first user plane device, so that user traffic is discarded.

由于第一用户面设备升级完毕后,第一用户面设备在接收到用户信息后,控制面设备才对第一用户面设备下发优先级提高命令,或对第二用户面设备下发优先级降低命令,使得在第一用户面设备升级完毕后,第一用户面设备中在存储有用户信息的情况下才将第一用户面设备的VRRP状态由备用状态切换为主状态,而第二用户面设备的VRRP状态由主状态切换为备用状态,第一用户面设备接替第二用户面设备继续提供服务,使得在切换时第一用户面设备中已经有用户信息,从而不会产生切换时由于第一用户面设备中没有用户信息使得用户流量被丢弃的情况。After the upgrade of the first user plane device is completed, after the first user plane device receives the user information, the control plane device issues a priority increase command to the first user plane device, or issues a priority to the second user plane device. The lowering command, so that after the upgrade of the first user plane device is completed, the VRRP state of the first user plane device is switched from the standby state to the main state only when the user information is stored in the first user plane device, and the second user The VRRP state of the plane device is switched from the main state to the standby state, and the first user plane device takes over the second user plane device to continue to provide services, so that the first user plane device already has user information during the handover, so there will be no There is no user information in the first user plane device, so that user traffic is discarded.

由于第二用户面设备在接收到第一用户面设备对应的用户信息之后,才接收到控制面设备法发送的优先级提高命令,或者接收到第一用户面设备根据优先级降低命令降低的第一VRRP优先级,然后第一用户面设备的VRRP状态由主状态切换为备用状态,第二用户面设备接替第一用户面设备继续提供服务,使得在切换时第二用户面设备中已经有用户信息,从而不会产生切换时由于第二用户面设备中没有用户信息使得用户流量被丢弃的情况。Because the second user plane device only receives the priority increase command sent by the control plane device method after receiving the user information corresponding to the first user plane device, or receives the first user plane device to reduce the priority according to the priority reduction command. A VRRP priority, and then the VRRP state of the first user plane device is switched from the main state to the standby state, and the second user plane device takes over the first user plane device and continues to provide services, so that there are already users in the second user plane device when switching information, so that there is no situation in which user traffic is discarded during handover because there is no user information in the second user plane device.

由于第一用户面设备在升级时无法提供服务,因此控制面设备需要提前做好准备措施,向第二用户面设备下发第一用户面设备对应的用户信息,在下发完用户信息后,向第一用户面设备发送优先级降低命令或向第二用户面设备发送优先级提高命令,使得第一用户面设备和第二用户面设备进行主备切换,从而保证了第一用户面设备在升级时,第二用户面设备能够继续提供服务。Since the first user plane device cannot provide services during the upgrade, the control plane device needs to prepare in advance to deliver the user information corresponding to the first user plane device to the second user plane device. The first user plane device sends a priority lowering command or sends a priority increasing command to the second user plane device, so that the first user plane device and the second user plane device perform active/standby switchover, thereby ensuring that the first user plane device is being upgraded , the second user plane device can continue to provide services.

由于控制面设备是在第一用户面设备升级前的预定时长就向第二用户面设备下发用户信息,并且预定时长大于控制面设备下发用户信息的时长,因此在第一用户面设备升级过程中,第二用户面设备中已经存储了用户信息,能够对用户设备发送的报文进行响应,从而使得用户设备在主备切换时不会掉线。Since the control plane device delivers user information to the second user plane device within a predetermined time period before the first user plane device is upgraded, and the predetermined time period is longer than the time period for the control plane device to issue user information, the first user plane device is upgraded before the first user plane device is upgraded. During the process, the user information has been stored in the second user plane device, and the second user plane device can respond to the message sent by the user device, so that the user device will not be disconnected during the master/slave switchover.

由于第一用户面设备在升级完毕后能够提供服务,因此控制面设备可以将第二用户面设备的用户信息下发给第一用户面设备,在下发完用户信息后,向第一用户面设备发送优先级提高命令或向第二用户面设备发送优先级降低命令,使得第一用户面设备和第二用户面设备进行主备切换,从而使得第一用户面设备在升级完毕后能够继续提供服务。Since the first user plane device can provide services after the upgrade is completed, the control plane device can deliver the user information of the second user plane device to the first user plane device, and after the user information is delivered, send the user information to the first user plane device. Send a priority increase command or send a priority decrease command to the second user plane device, so that the first user plane device and the second user plane device perform active/standby switchover, so that the first user plane device can continue to provide services after the upgrade is complete .

图5A是本发明再一个实施例提供的报文反馈方法的方法流程图。该报文反馈方法以应用在图2A所示的实施环境中举例说明,本实施例中第一用户面设备由于上行链路故障导致无法提供服务,如图5A所示,该报文反馈方法包括:FIG. 5A is a method flowchart of a message feedback method provided by still another embodiment of the present invention. The packet feedback method is used in the implementation environment shown in FIG. 2A as an example. In this embodiment, the first user plane device cannot provide services due to an uplink failure. As shown in FIG. 5A , the packet feedback method includes: :

501,第一用户面设备在通过BFD探测到上行链路发生故障后,降低第一用户面设备的第一VRRP优先级。501. After detecting an uplink failure through BFD, the first user plane device lowers the first VRRP priority of the first user plane device.

由于第一用户面设备的BFD与上行链路接口绑定,当第一用户面设备通过BFD发出检测报文没有得到响应时,表明上行链路发生故障。BFD在检测到故障后,BFD的状态变为DOWN,BFD与VRRP进行通信,VRRP得知上行链路故障,通过自行降低第一VRRP优先级,使得用户流量切换到第二用户面设备。Since the BFD of the first user plane device is bound to the uplink interface, when the first user plane device sends a detection packet through the BFD and receives no response, it indicates that the uplink is faulty. After BFD detects a fault, the BFD status changes to DOWN, and BFD communicates with VRRP. VRRP learns that the uplink is faulty and lowers the priority of the first VRRP by itself, so that user traffic is switched to the second user plane device.

在实际应用中,通过BFD故障检测,能够很快将用户流量切换到第二用户面设备,目的是使用户设备感知不到。In practical applications, through BFD fault detection, user traffic can be quickly switched to the second user plane equipment, so that the user equipment cannot perceive it.

502,第一用户面设备向第二用户面设备发送第一VRRP优先级。502. The first user plane device sends the first VRRP priority to the second user plane device.

503,第二用户面设备接收第一用户面设备发送的第一VRRP优先级。503. The second user plane device receives the first VRRP priority sent by the first user plane device.

504,第二用户面设备在第一VRRP优先级低于第二用户面设备的第二VRRP优先级时,将第二用户面设备的VRRP状态从备用状态切换为主状态。504. When the first VRRP priority is lower than the second VRRP priority of the second user plane device, the second user plane device switches the VRRP state of the second user plane device from the standby state to the main state.

由于第一用户面设备的上行链路故障,第一用户面设备无法继续提供服务,因此需要将第二用户面设备的VRRP状态切换为主状态,由第二用户面设备接替第一用户面设备提供服务。Due to the uplink failure of the first user plane device, the first user plane device cannot continue to provide services. Therefore, the VRRP state of the second user plane device needs to be switched to the main state, and the second user plane device takes over the first user plane device. Provide services.

505,第二用户面设备向第一用户面设备发送第二VRRP优先级。505. The second user plane device sends the second VRRP priority to the first user plane device.

506,第一用户面设备接收第二用户面设备发送的第二VRRP优先级。506. The first user plane device receives the second VRRP priority sent by the second user plane device.

507,第一用户面设备在第一VRRP优先级低于第二VRRP优先级时,将第一用户面设备的VRRP状态从主状态切换为备用状态。507. When the first VRRP priority is lower than the second VRRP priority, the first user plane device switches the VRRP state of the first user plane device from the main state to the standby state.

508,第二用户面设备向控制面设备发送VRRP状态切换通知。508. The second user plane device sends a VRRP state switching notification to the control plane device.

509,控制面设备接收第二用户面设备发送的VRRP状态切换通知。509. The control plane device receives the VRRP state switching notification sent by the second user plane device.

510,控制面设备向第二用户面设备下发第一用户面设备对应的用户信息。510. The control plane device delivers user information corresponding to the first user plane device to the second user plane device.

511,第二用户面设备接收控制面设备下发的第一用户面设备对应的用户信息。511. The second user plane device receives user information corresponding to the first user plane device delivered by the control plane device.

512,第二用户面设备接收用户设备发送的保活报文。512. The second user plane device receives the keep-alive message sent by the user equipment.

513,第二用户面设备查询第二用户面设备中是否存在与保活报文对应的用户信息。513. The second user plane device queries whether there is user information corresponding to the keep-alive message in the second user plane device.

由于控制面设备下发用户信息需要十几秒的时间,并且控制面设备下发用户信息有可能分多次下发,而在BFD检测到故障时,第二用户面设备只需要100多毫秒即可切换为主状态,因此第二用户面设备中可能还未接收到用户信息或者还未接收到全部用户信息。Since it takes more than ten seconds for the control plane device to deliver user information, and the control plane device may deliver user information in multiple times, when the BFD detects a fault, the second user plane device only needs more than 100 milliseconds. It can be switched to the main state, so the second user plane device may not have received user information or all user information has not yet been received.

514,当第二用户面设备中存在与保活报文对应的用户信息时,第二用户面设备向用户设备反馈确认报文。514. When the user information corresponding to the keep-alive message exists in the second user plane device, the second user plane device feeds back a confirmation message to the user equipment.

若第二用户面设备中正好已经接收到与保活报文对应的用户信息,则第二用户面设备可以根据用户信息向发送保活报文的用户设备反馈确认报文。If the user information corresponding to the keep-alive message has just been received in the second user plane device, the second user plane device may feed back a confirmation message to the user equipment sending the keep-alive message according to the user information.

515,当第二用户面设备中不存在与保活报文对应的用户信息时,第二用户面设备向控制面设备发送保活报文。515. When the user information corresponding to the keep-alive message does not exist in the second user plane device, the second user plane device sends a keep-alive message to the control plane device.

若第二用户面设备中不存在与保活报文对应的用户信息,则第二用户面设备无法对保活报文进行回应,若第二用户面设备将保活报文丢弃,对应的用户设备则会掉线。If the user information corresponding to the keep-alive message does not exist in the second user plane device, the second user plane device cannot respond to the keep-alive message. If the second user plane device discards the keep-alive message, the corresponding user The device will be dropped.

而控制面设备中存储了全部的用户信息,为了使用户设备不掉线,第二用户面设备将保活报文上报给控制面设备,由控制面设备根据用户信息对保活报文进行回应,从而使得用户设备在上行链路发生故障时不会掉线。The control plane device stores all user information. In order to prevent the user equipment from being disconnected, the second user plane device reports the keep-alive message to the control plane device, and the control plane device responds to the keep-alive message according to the user information. , so that the user equipment will not be dropped when the uplink fails.

516,控制面设备接收第二用户面设备发送的保活报文。516. The control plane device receives the keep-alive message sent by the second user plane device.

517,控制面设备根据存储的用户信息向用户设备反馈确认报文。517. The control plane device feeds back a confirmation message to the user equipment according to the stored user information.

图5B是本发明再一个实施例提供的报文反馈方法的方法流程图。该报文反馈方法以应用在图2A所示的实施环境中举例说明,本实施例中第一用户面设备由于上行链路故障恢复能够正常提供服务,如图5B所示,该报文反馈方法包括:FIG. 5B is a method flowchart of a message feedback method provided by still another embodiment of the present invention. The packet feedback method is applied in the implementation environment shown in FIG. 2A as an example. In this embodiment, the first user plane device can normally provide services due to uplink fault recovery. As shown in FIG. 5B , the packet feedback method include:

518,第一用户面设备在通过BFD探测到第一用户面设备的上行链路故障恢复时,向控制面设备发送第一状态变化信息。518 , when the first user plane device detects that the uplink fault of the first user plane device has recovered through BFD, sends the first state change information to the control plane device.

当第一用户面设备通过BFD向上行链路接口发送检测报文得到回应时,表明上行链路故障恢复。When the first user plane device sends a detection packet to the uplink interface through BFD and receives a response, it indicates that the uplink fault has recovered.

在实际应用中,当BFD检测到故障恢复时,BFD的状态会立刻切换为UP,表示正常,BFD与VRRP进行通信,VRRP很快也会将第一用户面设备的VRRP状态切换为主状态,但由于控制面设备下发用户信息需要一定时长,若第一用户面设备的VRRP状态快速切换为主状态,但第一用户面设备中还未接收到用户信息,则会导致部分用户流量的丢失,因此BFD配置有延迟UP时间,延迟UP时间的时长需要大于控制面设备下发用户信息的时长,使得在用户信息没有全部下发完毕之前,第一用户面设备的VRRP状态不能切换成主状态,避免了用户流量的丢失。In practical applications, when BFD detects that the fault has recovered, the BFD state will immediately switch to UP, indicating normal, BFD communicates with VRRP, and VRRP will soon switch the VRRP state of the first user plane device to the main state. However, since it takes a certain period of time for the control plane device to deliver user information, if the VRRP state of the first user plane device quickly switches to the main state, but the first user plane device has not yet received user information, some user traffic will be lost. , so the BFD is configured with a delay UP time, and the delay UP time should be longer than the time for the control plane device to deliver the user information, so that the VRRP state of the first user plane device cannot be switched to the main state before all the user information is delivered. , to avoid the loss of user traffic.

519,控制面设备接收第一用户面设备发送的第一状态变化信息。519. The control plane device receives the first state change information sent by the first user plane device.

当第一用户面设备通过BFD检测到上行链路故障恢复时,第一用户面设备通过第一状态变化信息告知控制面设备即将第一用户面设备进行VRRP状态切换,使得控制面设备能够及时将用户信息下发到第一用户面设备上。When the first user plane device detects that the uplink fault has recovered through BFD, the first user plane device informs the control plane device through the first state change information that the first user plane device is about to perform VRRP state switching, so that the control plane device can timely The user information is delivered to the first user plane device.

第一状态变化信息中至少包含第一用户面设备的IP地址,控制面设备通过第一状态变化信息查找对应的用户信息。The first state change information includes at least the IP address of the first user plane device, and the control plane device searches for corresponding user information through the first state change information.

520,控制面设备向第一用户面设备发送第二用户面设备对应的用户信息。520. The control plane device sends the user information corresponding to the second user plane device to the first user plane device.

控制面设备在查找到第一用户面设备需要的用户信息后,将用户信息下发给第一用户面设备。After finding the user information required by the first user plane device, the control plane device delivers the user information to the first user plane device.

521,第一用户面设备接收控制面设备根据第一状态变化信息下发的第二用户面设备对应的用户信息。521. The first user plane device receives user information corresponding to the second user plane device that is delivered by the control plane device according to the first state change information.

522,在用户信息下发完毕后,控制面设备向第一用户面设备发送第一切换通知,第一切换通知用于提高第一用户面设备的第一VRRP优先级。522. After the user information is delivered, the control plane device sends a first handover notification to the first user plane device, where the first handover notification is used to increase the first VRRP priority of the first user plane device.

控制面设备在用户信息下发完毕后,向第一用户面设备发送第一切换通知,通过第一切换通知提高第一VRRP优先级,从而使第一用户面设备的VRRP状态切换为主状态。After the user information is delivered, the control plane device sends a first handover notification to the first user plane device, and increases the first VRRP priority through the first handover notification, so that the VRRP state of the first user plane device is switched to the main state.

在实际应用中,控制面设备发送第一切换通知的时间要早于BFD延迟UP时间。由于BFD延迟UP时间要长于控制面设备下发用户信息和发送第一切换通知的时间,因此VRRP状态的切换以第一用户面设备接收到控制面设备发送的第一切换通知的时间为准。In practical applications, the time when the control plane device sends the first handover notification is earlier than the BFD delay UP time. Since the BFD delay UP time is longer than the time for the control plane device to deliver user information and send the first handover notification, the VRRP state switching is based on the time when the first user plane device receives the first handover notification sent by the control plane device.

523,第一用户面设备接收控制面设备发送的第一切换通知。523. The first user plane device receives the first handover notification sent by the control plane device.

524,第一用户面设备根据第一切换通知提高第一用户面设备的第一VRRP优先级。524. The first user plane device increases the first VRRP priority of the first user plane device according to the first handover notification.

525,第二用户面设备向第一用户面设备发送第二VRRP优先级。525. The second user plane device sends the second VRRP priority to the first user plane device.

526,第一用户面设备接收第二用户面设备发送的第二VRRP优先级。526. The first user plane device receives the second VRRP priority sent by the second user plane device.

527,第一用户面设备在第一VRRP优先级高于第二VRRP优先级时,将第一用户面设备的VRRP状态从备用状态切换为主状态。527. When the first VRRP priority is higher than the second VRRP priority, the first user plane device switches the VRRP state of the first user plane device from the standby state to the main state.

528,第一用户面设备向第二用户面设备发送第一VRRP优先级。528. The first user plane device sends the first VRRP priority to the second user plane device.

529,第二用户面设备接收第一用户面设备发送的第一VRRP优先级。529. The second user plane device receives the first VRRP priority sent by the first user plane device.

530,第二用户面设备在第一VRRP优先级高于第二VRRP优先级时,将第二用户面设备的VRRP状态从主状态切换为备用状态。530. When the first VRRP priority is higher than the second VRRP priority, the second user plane device switches the VRRP state of the second user plane device from the main state to the standby state.

531,第一用户面设备接收用户设备发送的保活报文。531. The first user plane device receives the keep-alive message sent by the user equipment.

532,第一用户面设备根据用户信息向用户设备反馈确认报文。532. The first user plane device feeds back a confirmation message to the user equipment according to the user information.

图5C是本发明再一个实施例提供的报文反馈方法的方法流程图。该报文反馈方法以应用在图2A所示的实施环境中举例说明,本实施例中第一用户面设备由于下行链路故障或由于第一用户面设备故障导致无法提供服务,如图5C所示,该报文反馈方法包括:FIG. 5C is a method flowchart of a message feedback method provided by still another embodiment of the present invention. The packet feedback method is applied in the implementation environment shown in FIG. 2A as an example. In this embodiment, the first user plane device cannot provide services due to a downlink failure or a failure of the first user plane device, as shown in FIG. 5C . The message feedback method includes:

533,第二用户面设备通过BFD探测到第一用户面设备或第一用户面设备的下行链路发生故障时,提高第二用户面设备的第二VRRP优先级。533. When the second user plane device detects through BFD that the first user plane device or the downlink of the first user plane device is faulty, increase the second VRRP priority of the second user plane device.

第二用户面设备的BFD与第一用户面设备的IP地址绑定,若第二用户面设备通过BFD发送检测检测报文没有得到回应,则表明第一用户面设备或第一用户面设备的下行链路故障。第二用户面设备的BFD状态变为DOWN,并与VRRP进行通信,告知VRRP进行状态切换。The BFD of the second user plane device is bound to the IP address of the first user plane device. If the second user plane device does not receive a response by sending a detection packet through BFD, it indicates that the first user plane device or the first user plane device has an IP address. Downlink failure. The BFD state of the second user plane device changes to DOWN, and communicates with VRRP to inform VRRP to perform state switching.

第二用户面设备通过自行提高第二VRRP优先级,使得第二VRRP优先级高于第一VRRP优先级,从而使得第二用户面设备的VRRP状态切换为主状态。The second user plane device increases the second VRRP priority by itself, so that the second VRRP priority is higher than the first VRRP priority, so that the VRRP state of the second user plane device is switched to the main state.

534,第二用户面设备向第一用户面设备发送第二VRRP优先级。534. The second user plane device sends the second VRRP priority to the first user plane device.

535,第一用户面设备接收第二用户面设备发送的第二VRRP优先级。535. The first user plane device receives the second VRRP priority sent by the second user plane device.

536,第一用户面设备在第二VRRP优先级高于第一VRRP优先级时,将第一用户面设备的VRRP状态从主状态切换为备用状态。536. When the second VRRP priority is higher than the first VRRP priority, the first user plane device switches the VRRP state of the first user plane device from the main state to the standby state.

当第一用户面设备的下行链路故障导致第一用户面设备和第二用户面设备之间无法通过VRRP通告报文通信时,步骤534至步骤536可以不执行,直接执行步骤537,将第二用户面设备的VRRP状态从备用状态切换为主状态。When the downlink failure of the first user plane device causes the communication between the first user plane device and the second user plane device to fail through VRRP advertisement packets, steps 534 to 536 may not be executed, and step 537 is directly executed, and the The VRRP state of the second user plane device is switched from the standby state to the active state.

537,第二用户面设备在第一VRRP优先级低于第二VRRP优先级时,将第二用户面设备的VRRP状态从备用状态切换为主状态。537. When the first VRRP priority is lower than the second VRRP priority, the second user plane device switches the VRRP state of the second user plane device from the standby state to the main state.

可选地,当第二用户面设备的第二VRRP优先级提高时,第二用户面设备的VRRP状态从备用状态切换为主状态。Optionally, when the second VRRP priority of the second user plane device is increased, the VRRP state of the second user plane device is switched from the standby state to the main state.

可选地,当第二用户面设备接收到第一VRRP优先级,且第一VRRP优先级低于第二VRRP优先级时,第二用户面设备的VRRP状态从备用状态切换为主状态。Optionally, when the second user plane device receives the first VRRP priority, and the first VRRP priority is lower than the second VRRP priority, the VRRP state of the second user plane device switches from the standby state to the main state.

可选地,当第二用户面设备在VRRP通告报文的3个报文周期没有收到第一用户面设备发送的VRRP通告报文时,第二用户面设备的VRRP状态从备用状态切换为主状态。Optionally, when the second user plane device does not receive the VRRP advertisement packet sent by the first user plane device within 3 packet periods of the VRRP advertisement packet, the VRRP state of the second user plane device is switched from the standby state to the standby state. main state.

538,第二用户面设备向控制面设备发送VRRP状态切换通知。538. The second user plane device sends a VRRP state switching notification to the control plane device.

539,控制面设备接收第二用户面设备发送的VRRP状态切换通知。539. The control plane device receives the VRRP state switching notification sent by the second user plane device.

540,控制面设备向第二用户面设备下发第一用户面设备对应的用户信息。540. The control plane device delivers user information corresponding to the first user plane device to the second user plane device.

541,第二用户面设备接收控制面设备下发的第一用户面设备对应的用户信息。541. The second user plane device receives user information corresponding to the first user plane device delivered by the control plane device.

542,第二用户面设备接收用户设备发送的保活报文。542. The second user plane device receives the keep-alive message sent by the user equipment.

543,第二用户面设备查询第二用户面设备中是否存在与保活报文对应的用户信息。543. The second user plane device queries whether there is user information corresponding to the keep-alive message in the second user plane device.

由于控制面设备下发用户信息需要十几秒的时间,并且控制面设备下发用户信息有可能分多次下发,而在BFD检测到故障时,第二用户面设备只需要100多毫秒即可切换为主状态,因此第二用户面设备中可能还未接收到用户信息或者还未接收到全部用户信息。Since it takes more than ten seconds for the control plane device to deliver user information, and the control plane device may deliver user information in multiple times, when the BFD detects a fault, the second user plane device only needs more than 100 milliseconds. It can be switched to the main state, so the second user plane device may not have received user information or all user information has not yet been received.

544,当第二用户面设备中存在与保活报文对应的用户信息时,第二用户面设备向用户设备反馈确认报文。544. When the user information corresponding to the keep-alive message exists in the second user plane device, the second user plane device feeds back a confirmation message to the user equipment.

若第二用户面设备中正好已经接收到与保活报文对应的用户信息,则第二用户面设备可以根据用户信息向发送保活报文的用户设备反馈确认报文。If the user information corresponding to the keep-alive message has just been received in the second user plane device, the second user plane device may feed back a confirmation message to the user equipment sending the keep-alive message according to the user information.

545,当第二用户面设备中不存在与保活报文对应的用户信息时,第二用户面设备向控制面设备发送保活报文。545. When the user information corresponding to the keep-alive message does not exist in the second user plane device, the second user plane device sends the keep-alive message to the control plane device.

若第二用户面设备中不存在与保活报文对应的用户信息,则第二用户面设备无法对保活报文进行回应,若第二用户面设备将保活报文丢弃,对应的用户设备则会掉线。If the user information corresponding to the keep-alive message does not exist in the second user plane device, the second user plane device cannot respond to the keep-alive message. If the second user plane device discards the keep-alive message, the corresponding user The device will be dropped.

而控制面设备中存储了全部的用户信息,为了使用户设备不掉线,第二用户面设备将保活报文上报给控制面设备,由控制面设备根据用户信息对保活报文进行回应,从而使得用户设备在下行链路或第一用户面设备发生故障时不会掉线。The control plane device stores all user information. In order to prevent the user equipment from being disconnected, the second user plane device reports the keep-alive message to the control plane device, and the control plane device responds to the keep-alive message according to the user information. , so that the user equipment will not be dropped when the downlink or the first user plane equipment fails.

546,控制面设备接收第二用户面设备发送的保活报文。546. The control plane device receives the keep-alive message sent by the second user plane device.

547,控制面设备根据存储的用户信息向用户设备反馈确认报文。547. The control plane device feeds back a confirmation message to the user equipment according to the stored user information.

图5D是本发明再一个实施例提供的报文反馈方法的方法流程图。该报文反馈方法以应用在图2A所示的实施环境中举例说明,本实施例中第一用户面设备由于下行链路故障恢复或第一用户面设备故障恢复能够正常提供服务,如图5D所示,该报文反馈方法包括:FIG. 5D is a method flowchart of a message feedback method provided by still another embodiment of the present invention. The packet feedback method is applied in the implementation environment shown in FIG. 2A as an example. In this embodiment, the first user plane device can normally provide services due to downlink failure recovery or first user plane device failure recovery, as shown in FIG. 5D . As shown, the message feedback method includes:

548,第二用户面设备通过BFD探测到第一用户面设备或第一用户面设备的下行链路故障恢复时,向控制面设备发送第二状态变化信息。548. When the second user plane device detects that the first user plane device or the downlink fault of the first user plane device has recovered through BFD, it sends the second state change information to the control plane device.

当第二用户面设备通过BFD向第一用户面设备发送检测报文得到回应时,表明第一用户面设备或第一用户面设备的下行链路故障恢复。When the second user plane device sends a detection packet to the first user plane device through BFD and gets a response, it indicates that the first user plane device or the downlink fault of the first user plane device has recovered.

在实际应用中,当BFD检测到故障恢复时,BFD的状态会立刻切换为UP,表示正常,BFD与VRRP进行通信,VRRP很快也会将第一用户面设备的VRRP状态切换为主状态,但由于控制面设备下发用户信息需要一定时长,若第一用户面设备的VRRP状态快速切换为主状态,但第一用户面设备中还未接收到用户信息,则会导致部分用户流量的丢失,因此BFD配置有延迟UP时间,延迟UP时间的时长需要大于控制面设备下发用户信息的时长,使得在用户信息没有全部下发完毕之前,第一用户面设备的VRRP状态不能切换成主状态,避免了用户流量的丢失。In practical applications, when BFD detects that the fault has recovered, the BFD state will immediately switch to UP, indicating normal, BFD communicates with VRRP, and VRRP will soon switch the VRRP state of the first user plane device to the main state. However, since it takes a certain period of time for the control plane device to deliver user information, if the VRRP state of the first user plane device quickly switches to the main state, but the first user plane device has not yet received user information, some user traffic will be lost. , so the BFD is configured with a delay UP time, and the delay UP time should be longer than the time for the control plane device to deliver the user information, so that the VRRP state of the first user plane device cannot be switched to the main state before all the user information is delivered. , to avoid the loss of user traffic.

549,控制面设备接收第二用户面设备发送的第二状态变化信息。549. The control plane device receives the second state change information sent by the second user plane device.

当第二用户面设备通过BFD检测到下行链路或第一用户面设备故障恢复时,第二用户面设备通过第二状态变化信息告知控制面设备第一用户面设备即将进行VRRP状态切换,使得控制面设备能够及时将用户信息下发到第一用户面设备上。When the second user plane device detects through BFD that the downlink or the first user plane device has recovered from a fault, the second user plane device informs the control plane device through the second state change information that the first user plane device is about to perform VRRP state switching, so that The control plane device can deliver the user information to the first user plane device in time.

第二状态变化信息中至少包含第一用户面设备的IP地址,控制面设备通过第一状态变化信息查找对应的用户信息。The second state change information includes at least the IP address of the first user plane device, and the control plane device searches for corresponding user information through the first state change information.

550,控制面设备向第一用户面设备发送的第二用户面设备对应的用户信息。550. The control plane device sends the user information corresponding to the second user plane device to the first user plane device.

控制面设备在查找到第一用户面设备需要的用户信息后,将用户信息下发给第一用户面设备。After finding the user information required by the first user plane device, the control plane device delivers the user information to the first user plane device.

551,第一用户面设备接收控制面设备根据第二状态变化信息下发的第二用户面设备对应的用户信息。551. The first user plane device receives user information corresponding to the second user plane device that is delivered by the control plane device according to the second state change information.

552,在用户信息下发完毕后,控制面设备向第二用户面设备发送第二切换通知,第二切换通知用于降低第二用户面设备的第二VRRP优先级。552. After the user information is delivered, the control plane device sends a second handover notification to the second user plane device, where the second handover notification is used to reduce the second VRRP priority of the second user plane device.

控制面设备在用户信息下发完毕后,向第二用户面设备发送第二切换通知,通过第二切换通知降低第二VRRP优先级,从而使第二用户面设备的VRRP状态切换为备用状态。After the user information is delivered, the control plane device sends a second handover notification to the second user plane device, and reduces the second VRRP priority through the second handover notification, so that the VRRP state of the second user plane device is switched to the standby state.

在实际应用中,控制面设备发送第二切换通知的时间要早于BFD延迟UP时间。由于BFD延迟UP时间要长于控制面设备下发用户信息和发送第二切换通知的时间,因此VRRP状态的切换以第二用户面设备接收到控制面设备发送的第二切换通知的时间为准。In practical applications, the time at which the control plane device sends the second handover notification is earlier than the BFD delay UP time. Since the BFD delay UP time is longer than the time for the control plane device to deliver user information and send the second handover notification, the VRRP state switching is based on the time when the second user plane device receives the second handover notification sent by the control plane device.

553,第二用户面设备接收控制面设备发送的第二切换通知。553. The second user plane device receives the second handover notification sent by the control plane device.

554,第二用户面设备根据第二切换通知降低第二用户面设备的第二VRRP优先级。554. The second user plane device reduces the second VRRP priority of the second user plane device according to the second handover notification.

555,第二用户面设备向第一用户面设备发送第二VRRP优先级。555. The second user plane device sends the second VRRP priority to the first user plane device.

556,第一用户面设备接收第二用户面设备发送的第二VRRP优先级。556. The first user plane device receives the second VRRP priority sent by the second user plane device.

557,第一用户面设备在第一VRRP优先级高于第二VRRP优先级时,将第一用户面设备的VRRP状态从备用状态切换为主状态。557. When the first VRRP priority is higher than the second VRRP priority, the first user plane device switches the VRRP state of the first user plane device from the standby state to the primary state.

558,第一用户面设备向第二用户面设备发送第一VRRP优先级。558. The first user plane device sends the first VRRP priority to the second user plane device.

559,第二用户面设备接收第一用户面设备发送的第一VRRP优先级。559. The second user plane device receives the first VRRP priority sent by the first user plane device.

560,第二用户面设备在第一VRRP优先级高于第二VRRP优先级时,将第二用户面设备的VRRP状态从主状态切换为备用状态。560. When the first VRRP priority is higher than the second VRRP priority, the second user plane device switches the VRRP state of the second user plane device from the main state to the standby state.

561,第一用户面设备接收用户设备发送的保活报文。561. The first user plane device receives the keep-alive message sent by the user equipment.

562,第一用户面设备根据用户信息向用户设备反馈确认报文。562. The first user plane device feeds back a confirmation message to the user equipment according to the user information.

综上所述,本发明实施例提供的报文反馈方法,由于在第一用户面设备所在链路发生故障时,第二用户面设备的VRRP状态从备用状态切换为主状态,并向控制面设备发送状态切换通知请求下发用户信息,使得在由于故障第一用户面设备无法提供服务时,第二用户面设备能够继续提供服务,实现对用户流量的转发。To sum up, in the packet feedback method provided by the embodiment of the present invention, when the link where the first user plane device is located fails, the VRRP state of the second user plane device is switched from the standby state to the main state, and the control plane is sent to the control plane. The device sends a state switching notification requesting to issue user information, so that when the first user plane device cannot provide services due to a fault, the second user plane device can continue to provide services and forward user traffic.

由于在第一用户面设备的上行链路发生故障时,第一用户面设备能够通过BFD探测到上行链路故障,并自行降低第一VRRP优先级,在第一用户面设备或第一用户面设备的下行链路发生故障时,第二用户面设备能够通过BFD探测到第一用户面设备或第一用户面设备的下行链路故障,并自行提高第二VRRP优先级,最终使得第一VRRP优先级低于第二VRRP优先级,从而使得第二用户面设备的VRRP状态由备用状态切换为主状态,接替第一用户面设备继续提供服务。Because when the uplink of the first user plane device fails, the first user plane device can detect the uplink failure through BFD and lower the priority of the first VRRP by itself. When the downlink of the device fails, the second user plane device can detect the downlink failure of the first user plane device or the first user plane device through BFD, and automatically increase the priority of the second VRRP, and finally make the first VRRP The priority is lower than the second VRRP priority, so that the VRRP state of the second user plane device is switched from the standby state to the main state, and the first user plane device continues to provide services.

由于第二用户面设备在接收到用户设备发送的保活报文时,先查询自身是否存储有与保活报文对应的用户信息,第二用户面设备在查询不到对应的用户信息时,将保活报文上报给控制面设备进行回应,使得在第二用户面设备接收到用户信息之前,用户设备依然能够接收到确认报文,从而使得用户设备不会掉线。Because when the second user plane device receives the keep-alive message sent by the user equipment, it first checks whether it stores the user information corresponding to the keep-alive message. The keep-alive message is reported to the control plane device for response, so that the user equipment can still receive the confirmation message before the second user plane device receives the user information, so that the user equipment will not be disconnected.

由于在第一用户面设备所在链路故障恢复时,对于第一用户面设备的上行链路,第一用户面设备能够通过BFD探测到故障恢复,对于第一用户面设备或第一用户面设备的下行链路故障恢复时,第二用户面设备能够通过BFD探测到故障恢复,通过告知控制面设备第一用户面设备所在链路故障恢复,控制面设备向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后通知第二用户面设备由主状态切换为备用状态,使得在第一用户面设备所在链路故障恢复时,第一用户面设备能够切换回主状态继续提供服务。When the link on which the first user plane device is located recovers from a fault, for the uplink of the first user plane device, the first user plane device can detect the fault recovery through BFD. For the first user plane device or the first user plane device When the downlink fails to recover, the second user plane device can detect the failure recovery through BFD, and by notifying the control plane device that the link where the first user plane device is located has recovered from the failure, the control plane device sends the second user plane device to the first user plane device. The user information corresponding to the user plane device is notified after the user information is delivered to the second user plane device to switch from the main state to the standby state, so that when the link where the first user plane device is located is restored, the first user plane device can switch Return to the main state to continue to provide services.

另外,由于控制面设备先下发用户信息,再发送切换通知,使得第一用户面设备在故障恢复切换回主状态时,不会产生用户流量丢失的问题。In addition, because the control plane device delivers user information first, and then sends the switching notification, so that the problem of user traffic loss will not occur when the first user plane device switches back to the primary state after failure recovery.

由于在第一用户面设备所在链路故障恢复时,对于第一用户面设备的上行链路,第一用户面设备能够通过BFD探测到故障恢复,对于第一用户面设备或第一用户面设备的下行链路故障恢复时,第二用户面设备能够通过BFD探测到故障恢复,通过告知控制面设备第一用户面设备所在链路故障恢复,控制面设备向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后通知第一用户面设备由备用状态切换为主状态,使得在第一用户面设备所在链路故障恢复时,第一用户面设备能够切换回主状态继续提供服务。When the link on which the first user plane device is located recovers from a fault, for the uplink of the first user plane device, the first user plane device can detect the fault recovery through BFD. For the first user plane device or the first user plane device When the downlink fails to recover, the second user plane device can detect the failure recovery through BFD, and by notifying the control plane device that the link where the first user plane device is located has recovered from the failure, the control plane device sends the second user plane device to the first user plane device. The user information corresponding to the user plane device is notified after the user information is delivered to the first user plane device to switch from the standby state to the main state, so that when the link where the first user plane device is located is restored, the first user plane device can switch over Return to the main state to continue to provide services.

另外,由于控制面设备先下发用户信息,再发送切换通知,使得第一用户面设备在故障恢复切换回主状态时,不会产生用户流量丢失的问题。In addition, because the control plane device delivers user information first, and then sends the switching notification, so that the problem of user traffic loss will not occur when the first user plane device switches back to the primary state after failure recovery.

由于在第一用户面设备的上行链路发生故障时,第一用户面设备能够通过BFD探测到上行链路故障,并自行降低第一VRRP优先级,在第一用户面设备或第一用户面设备的下行链路发生故障时,第二用户面设备能够通过BFD探测到第一用户面设备或第一用户面设备的下行链路故障,并自行提高第二VRRP优先级,最终使得第一VRRP优先级低于第二VRRP优先级,从而使得第一用户面设备的VRRP状态由主状态切换为备用状态,使得第二用户面设备接替第一用户面设备继续提供服务。Because when the uplink of the first user plane device fails, the first user plane device can detect the uplink failure through BFD and lower the priority of the first VRRP by itself. When the downlink of the device fails, the second user plane device can detect the downlink failure of the first user plane device or the first user plane device through BFD, and automatically increase the priority of the second VRRP, and finally make the first VRRP The priority is lower than the second VRRP priority, so that the VRRP state of the first user plane device is switched from the main state to the standby state, so that the second user plane device takes over the first user plane device and continues to provide services.

由于在第一用户面设备所在链路发生故障时,第一用户面设备和第二用户面设备会自行进行主备切换,然后第二用户面设备向控制面设备告知VRRP状态切换的情况,控制面设备向第二用户面设备下发第一用户面设备对应的用户信息,使得在第一用户面设备所在链路发生故障时,第二用户面设备能够接替第一用户面设备继续提供服务。When the link where the first user plane device is located fails, the first user plane device and the second user plane device will perform active/standby switchover by themselves, and then the second user plane device notifies the control plane device of the VRRP state switching, and controls the The plane device delivers user information corresponding to the first user plane device to the second user plane device, so that when the link where the first user plane device is located fails, the second user plane device can take over the first user plane device and continue to provide services.

由于控制面设备在第二用户面设备查询到自身没有存储有与保活报文对应的用户信息时,接收第二用户面设备上报的保活报文并进行回应,使得在第二用户面设备接收到用户信息之前,用户设备依然能够接收到确认报文,从而使得用户设备不会掉线。Since the control plane device receives the keep-alive message reported by the second user plane device and responds when the second user plane device finds that it does not store the user information corresponding to the keep-alive message, the second user plane device Before receiving the user information, the user equipment can still receive the confirmation message, so that the user equipment will not be disconnected.

由于在第一用户面设备所在链路故障恢复时,对于第一用户面设备的上行链路,第一用户面设备能够通过BFD探测到故障恢复,对于第一用户面设备或第一用户面设备的下行链路故障恢复时,第二用户面设备能够通过BFD探测到故障恢复,通过告知控制面设备第一用户面设备所在链路故障恢复,控制面设备向第一用户面设备下发第二用户面设备对应的用户信息,在用户信息下发完毕后通知第二用户面设备由主状态切换为备用状态,使得在第一用户面设备所在链路故障恢复时,第一用户面设备能够切换回主状态继续提供服务。When the link on which the first user plane device is located recovers from a fault, for the uplink of the first user plane device, the first user plane device can detect the fault recovery through BFD. For the first user plane device or the first user plane device When the downlink fails to recover, the second user plane device can detect the failure recovery through BFD, and by notifying the control plane device that the link where the first user plane device is located has recovered from the failure, the control plane device sends the second user plane device to the first user plane device. The user information corresponding to the user plane device is notified after the user information is delivered to the second user plane device to switch from the main state to the standby state, so that when the link where the first user plane device is located is restored, the first user plane device can switch Return to the main state to continue to provide services.

下述为本发明装置实施例,可以用于执行本发明方法实施例。对于本发明装置实施例中未披露的细节,请参照本发明方法实施例。The following are apparatus embodiments of the present invention, which can be used to execute method embodiments of the present invention. For details not disclosed in the device embodiments of the present invention, please refer to the method embodiments of the present invention.

图6是本发明一个实施例提供的报文反馈装置的结构方框图。该报文反馈装置应用在图2A所示的第二用户面设备223中,该报文反馈装置可以通过软件、硬件或者两者的结合实现成为第二用户面设备223的部分或者全部。如图6所示,该报文反馈装置600包括:获取单元610、接收单元620和反馈单元630。FIG. 6 is a structural block diagram of a message feedback apparatus provided by an embodiment of the present invention. The message feedback device is applied in the second user plane device 223 shown in FIG. 2A , and the message feedback device can be implemented as part or all of the second user plane device 223 through software, hardware or a combination of the two. As shown in FIG. 6 , the message feedback apparatus 600 includes: an obtaining unit 610 , a receiving unit 620 and a feedback unit 630 .

获取单元610,用于实现上述步骤302、步骤402、步骤508、步骤511、步骤538、步骤541以及其他任意隐含或公开的与获取相关的功能。The obtaining unit 610 is configured to implement the above steps 302, 402, 508, 511, 538, 541 and any other implicit or disclosed functions related to obtaining.

接收单元620,用于实现上述步骤303、步骤407a、步骤408a、步骤409a、步骤404b、步骤405b、步骤407b、步骤408b、步骤409b、步骤412、步骤419a、步骤423a、步骤424a、步骤417b、步骤418b、步骤419b、步骤423b、步骤424b、步骤503、步骤504、步骤505、步骤512、步骤525、步骤529、步骤530、步骤533、步骤534、步骤537、步骤542、步骤548、步骤553、步骤554、步骤555、步骤559、步骤560以及其他任意隐含或公开的与接收相关的功能。The receiving unit 620 is used to implement the above steps 303, 407a, 408a, 409a, 404b, 405b, 407b, 408b, 409b, 412, 419a, 423a, 424a, 417b, Step 418b, Step 419b, Step 423b, Step 424b, Step 503, Step 504, Step 505, Step 512, Step 525, Step 529, Step 530, Step 533, Step 534, Step 537, Step 542, Step 548, Step 553 , step 554, step 555, step 559, step 560, and any other implicit or disclosed function related to reception.

反馈单元630,用于实现上述步骤304、步骤413、步骤513、步骤514、步骤515、步骤543、步骤544、步骤545以及其他任意隐含或公开的与反馈相关的功能。The feedback unit 630 is used to implement the above steps 304, 413, 513, 514, 515, 543, 544, 545 and any other implicit or disclosed functions related to feedback.

图7是本发明另一个实施例提供的报文反馈装置的结构方框图。该报文反馈装置应用在图2A所示的第一用户面设备222中,该报文反馈装置可以通过软件、硬件或者两者的结合实现成为第一用户面设备222的部分或者全部。如图7所示,该报文反馈装置700包括:获取单元710、接收单元720和反馈单元730。FIG. 7 is a structural block diagram of a message feedback apparatus provided by another embodiment of the present invention. The message feedback device is applied in the first user plane device 222 shown in FIG. 2A , and the message feedback device can be implemented as part or all of the first user plane device 222 through software, hardware or a combination of the two. As shown in FIG. 7 , the message feedback apparatus 700 includes: an obtaining unit 710 , a receiving unit 720 and a feedback unit 730 .

获取单元710,用于实现上述步骤306、步骤415、步骤521、步骤551以及其他任意隐含或公开的与获取相关的功能。The obtaining unit 710 is configured to implement the above steps 306, 415, 521, 551 and any other implicit or disclosed functions related to obtaining.

接收单元720,用于实现上述步骤307、步骤404a、步骤405a、步骤406a、步骤410a、步骤411a、步骤406b、步骤410b、步骤411b、步骤417a、步骤418a、步骤420a、步骤421a、步骤422a、步骤420b、步骤421b、步骤422b、步骤425、步骤501、步骤502、步骤506、步骤507、步骤518、步骤523、步骤524、步骤526、步骤527、步骤528、步骤531、步骤535、步骤536、步骤556、步骤557、步骤558、步骤561以及其他任意隐含或公开的与接收相关的功能。The receiving unit 720 is used to implement the above steps 307, 404a, 405a, 406a, 410a, 411a, 406b, 410b, 411b, 417a, 418a, 420a, 421a, 422a, Step 420b, Step 421b, Step 422b, Step 425, Step 501, Step 502, Step 506, Step 507, Step 518, Step 523, Step 524, Step 526, Step 527, Step 528, Step 531, Step 535, Step 536 , step 556 , step 557 , step 558 , step 561 and any other implicit or disclosed functions related to reception.

反馈单元730,用于实现上述步骤308、步骤426、步骤532、步骤562以及其他任意隐含或公开的与反馈相关的功能。The feedback unit 730 is used to implement the above step 308, step 426, step 532, step 562 and any other implicit or disclosed functions related to feedback.

图8是本发明再一个实施例提供的报文反馈装置的结构方框图。该报文反馈装置应用在图2A所示的控制面设备214中,该报文反馈装置可以通过软件、硬件或者两者的结合实现成为控制面设备214的部分或者全部。如图8所示,该报文反馈装置800包括:第一发送单元810和第二发送单元820。FIG. 8 is a structural block diagram of a message feedback apparatus provided by still another embodiment of the present invention. The message feedback apparatus is applied in the control plane device 214 shown in FIG. 2A , and the message feedback apparatus can be implemented as part or all of the control plane device 214 through software, hardware or a combination of the two. As shown in FIG. 8 , the message feedback apparatus 800 includes: a first sending unit 810 and a second sending unit 820 .

第一发送单元810,用于实现上述步骤301、步骤401、步骤403a、步骤403b、步骤509、步骤510、步骤516、步骤517、步骤539、步骤540、步骤546、步骤547以及其他任意隐含或公开的与发送相关的功能。The first sending unit 810 is used to implement the above steps 301, 401, 403a, 403b, 509, 510, 516, 517, 539, 540, 546, 547 and any other implicit or public send-related functions.

第二发送单元820,用于实现上述步骤305、步骤414、步骤416a、步骤416b、步骤519、步骤520、步骤522、步骤549、步骤550、步骤552以及其他任意隐含或公开的与发送相关的功能。The second sending unit 820 is configured to implement the above-mentioned steps 305, 414, 416a, 416b, 519, 520, 522, 549, 550, 552 and any other implicit or disclosed related to sending function.

需要说明的是:上述实施例提供的报文反馈装置在反馈报文时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的报文反馈装置与报文反馈方法的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the message feedback device provided in the above embodiment feeds back a message, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules as required. , that is, dividing the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the message feedback device provided in the above embodiments and the method embodiment of the message feedback method belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment, which will not be repeated here.

应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”(“a”、“an”、“the”)旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that, as used herein, the singular forms "a" ("a", "an", "the") are intended to include the plural forms as well, unless the context clearly supports an exception. It will also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (40)

1.一种报文反馈方法,其特征在于,用于第二用户面设备中,所述方法包括:1. A message feedback method, characterized in that, used in a second user plane device, the method comprising: 在第一用户面设备无法提供服务时,从控制面设备获取所述第一用户面设备对应的用户信息;When the first user plane device cannot provide the service, obtain user information corresponding to the first user plane device from the control plane device; 接收用户设备发送的保活报文,所述保活报文用于请求所述用户设备处于在线状态;receiving a keep-alive message sent by the user equipment, where the keep-alive message is used to request that the user equipment be in an online state; 查询所述第二用户面设备中是否存在与所述保活报文对应的用户信息;query whether there is user information corresponding to the keep-alive message in the second user plane device; 当存在与所述保活报文对应的用户信息时,向所述用户设备反馈确认报文;When there is user information corresponding to the keep-alive message, feeding back a confirmation message to the user equipment; 当不存在与所述保活报文对应的用户信息时,向所述控制面设备发送所述保活报文,所述控制面设备用于响应所述保活报文。When there is no user information corresponding to the keep-alive message, the keep-alive message is sent to the control plane device, and the control plane device is configured to respond to the keep-alive message. 2.根据权利要求1所述的方法,其特征在于,所述在第一用户面设备无法提供服务时,从控制面设备获取所述第一用户面设备对应的用户信息,包括:2 . The method according to claim 1 , wherein when the first user plane device cannot provide the service, acquiring the user information corresponding to the first user plane device from the control plane device comprises: 2 . 在所述第一用户面设备升级时,接收所述控制面设备下发的所述第一用户面设备对应的用户信息。When the first user plane device is upgraded, the user information corresponding to the first user plane device delivered by the control plane device is received. 3.根据权利要求2所述的方法,其特征在于,所述在第一用户面设备无法提供服务时,从控制面设备获取所述第一用户面设备对应的用户信息之后,还包括:3. The method according to claim 2, wherein when the first user plane device cannot provide the service, after acquiring the user information corresponding to the first user plane device from the control plane device, the method further comprises: 接收所述控制面设备发送的优先级提高命令;根据所述优先级提高命令提高所述第二用户面设备的第二VRRP优先级;在所述第二VRRP优先级高于所述第一用户面设备的第一VRRP优先级时,将所述第二用户面设备的VRRP状态从备用状态切换为主状态;Receive a priority increase command sent by the control plane device; increase the second VRRP priority of the second user plane device according to the priority increase command; the second VRRP priority is higher than that of the first user When the first VRRP priority of the plane device is changed, the VRRP state of the second user plane device is switched from the standby state to the main state; 或者,or, 接收所述第一用户面设备发送的第一VRRP优先级,所述第一VRRP优先级是所述第一用户面设备在接收到所述控制面设备的优先级降低命令后降低的;在所述第二用户面设备的第二VRRP优先级高于所述第一VRRP优先级时,将所述第二用户面设备的VRRP状态从备用状态切换为主状态。Receive the first VRRP priority sent by the first user plane device, where the first VRRP priority is lowered by the first user plane device after receiving the priority lowering command from the control plane device; When the second VRRP priority of the second user plane device is higher than the first VRRP priority, the VRRP state of the second user plane device is switched from the standby state to the main state. 4.根据权利要求3所述的方法,其特征在于,所述将所述第二用户面设备的VRRP状态从备用状态切换为主状态之后,还包括:4. The method according to claim 3, wherein after the VRRP state of the second user plane device is switched from the standby state to the main state, the method further comprises: 接收所述控制面设备发送的优先级降低命令,所述优先级降低命令是所述控制面设备在所述第一用户面设备升级完毕后发送的;根据所述优先级降低命令降低所述第二VRRP优先级;在所述第二VRRP优先级低于所述第一VRRP优先级时,将所述第二用户面设备的VRRP状态从所述主状态切换为所述备用状态;Receive a priority reduction command sent by the control plane device, where the priority reduction command is sent by the control plane device after the upgrade of the first user plane device is completed; reduce the priority according to the priority reduction command Two VRRP priorities; when the second VRRP priority is lower than the first VRRP priority, switching the VRRP state of the second user plane device from the main state to the standby state; 或者,or, 接收所述第一用户面设备发送的所述第一VRRP优先级,所述第一VRRP优先级是所述第一用户面设备在接收到所述控制面设备的优先级提高命令后提高的,所述优先级提高命令是所述控制面设备在所述第一用户面设备升级完毕后发送的;在所述第一VRRP优先级高于所述第二VRRP优先级时,将所述第二用户面设备的VRRP状态从所述主状态切换为所述备用状态。receiving the first VRRP priority sent by the first user plane device, where the first VRRP priority is increased by the first user plane device after receiving a priority increase command from the control plane device, The priority raising command is sent by the control plane device after the first user plane device is upgraded; when the first VRRP priority is higher than the second VRRP priority, the second VRRP priority is The VRRP state of the user plane device is switched from the main state to the standby state. 5.根据权利要求1所述的方法,其特征在于,所述在第一用户面设备无法提供服务时,从控制面设备获取所述第一用户面设备对应的用户信息,包括:5 . The method according to claim 1 , wherein, when the first user plane device cannot provide the service, acquiring the user information corresponding to the first user plane device from the control plane device comprises: 6 . 在故障导致所述第一用户面设备的第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时,将所述第二用户面设备的VRRP状态从备用状态切换为主状态;When the fault causes the first VRRP priority of the first user plane device to be lower than the second VRRP priority of the second user plane device, switch the VRRP state of the second user plane device from the standby state to the primary state state; 向所述控制面设备发送VRRP状态切换通知;sending a VRRP state switching notification to the control plane device; 接收所述控制面设备下发的所述第一用户面设备对应的用户信息,所述用户信息是所述控制面设备接收到所述VRRP状态切换通知后发送的。Receive user information corresponding to the first user plane device delivered by the control plane device, where the user information is sent by the control plane device after receiving the VRRP state switching notification. 6.根据权利要求5所述的方法,其特征在于,所述在故障导致所述第一用户面设备的第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时,将所述第二用户面设备的VRRP状态从备用状态切换为主状态之前,还包括:6 . The method according to claim 5 , wherein when a failure causes the first VRRP priority of the first user plane device to be lower than the second VRRP priority of the second user plane device, 6 . Before switching the VRRP state of the second user plane device from the standby state to the main state, the method further includes: 接收所述第一用户面设备发送的第一VRRP优先级,所述第一VRRP优先级是所述第一用户面设备通过BFD探测到上行链路发生故障时降低的;receiving a first VRRP priority sent by the first user plane device, where the first VRRP priority is lowered when the first user plane device detects an uplink failure through BFD; 或,or, 在通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路发生故障时,提高所述第二VRRP优先级。When it is detected through BFD that the first user plane device or the downlink of the first user plane device fails, the second VRRP priority is increased. 7.根据权利要求5所述的方法,其特征在于,所述将所述第二用户面设备的VRRP状态从备用状态切换为主状态之后,还包括:7. The method according to claim 5, wherein after the VRRP state of the second user plane device is switched from the standby state to the main state, the method further comprises: 接收所述第一用户面设备发送的所述第一VRRP优先级,所述第一VRRP优先级是所述第一用户面设备在接收到所述控制面设备发送的第一切换通知时提高的,所述第一切换通知是所述控制面设备根据第一状态变化信息向所述第一用户面设备下发用户信息完毕后发送的,所述第一状态变化信息是所述第一用户面设备通过BFD探测到所述第一用户面设备的上行链路故障恢复时向所述控制面设备发送的;在所述第一VRRP优先级高于所述第二VRRP优先级时,将所述第二用户面设备的VRRP状态从主状态切换为备用状态;Receive the first VRRP priority sent by the first user plane device, where the first VRRP priority is increased by the first user plane device when it receives the first handover notification sent by the control plane device , the first handover notification is sent by the control plane device after the user information is delivered to the first user plane device according to the first state change information, and the first state change information is the first user plane device. Sent by the device to the control plane device when the device detects that the uplink failure of the first user plane device has recovered through BFD; when the first VRRP priority is higher than the second VRRP priority, the device sends the The VRRP state of the second user plane device is switched from the main state to the standby state; 或者,or, 在通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路故障恢复时,向所述控制面设备发送第二状态变化信息,根据所述控制面设备发送的第二切换通知降低所述第二VRRP优先级,所述第二状态变化信息用于触发所述控制面设备向所述第一用户面设备下发所述用户信息,所述第二切换通知是所述控制面设备根据所述第二状态变化信息向所述第一用户面设备下发所述用户信息完毕后发送的;在所述第二VRRP优先级低于所述第一VRRP优先级时,将所述第二用户面设备的VRRP状态从主状态切换为备用状态。When the first user plane device or the downlink fault recovery of the first user plane device is detected through BFD, the second state change information is sent to the control plane device, according to the first state change information sent by the control plane device. The second handover notification lowers the priority of the second VRRP, the second state change information is used to trigger the control plane device to deliver the user information to the first user plane device, and the second handover notification is the Sent by the control plane device after the user information is delivered to the first user plane device according to the second state change information; when the second VRRP priority is lower than the first VRRP priority, Switch the VRRP state of the second user plane device from the main state to the standby state. 8.根据权利要求7所述的方法,其特征在于,所述BFD的状态为DOWN时表示故障,所述BFD的状态为UP时表示正常;8. The method according to claim 7, wherein when the state of the BFD is DOWN, it indicates a fault, and when the state of the BFD is UP, it indicates normal; 所述BFD配置有延迟UP时间,所述延迟UP时间的时长大于所述控制面设备向所述第一用户面设备下发所述用户信息的时长。The BFD is configured with a delayed UP time, and the duration of the delayed UP time is greater than the duration of the control plane device delivering the user information to the first user plane device. 9.一种报文反馈方法,其特征在于,用于第一用户面设备中,所述方法包括:9. A message feedback method, wherein the method is used in a first user plane device, the method comprising: 在所述第一用户面设备从无法提供服务恢复为提供服务状态时,从控制面设备获取第二用户面设备对应的用户信息;When the first user plane device recovers from being unable to provide services to providing services, acquiring user information corresponding to the second user plane device from the control plane device; 接收用户设备发送的保活报文,所述保活报文用于请求所述用户设备处于在线状态;receiving a keep-alive message sent by the user equipment, where the keep-alive message is used to request that the user equipment be in an online state; 根据所述用户信息向所述用户设备反馈确认报文;Feedback a confirmation message to the user equipment according to the user information; 其中,所述第二用户面设备用于在所述第一用户面设备无法提供服务时,从控制面设备获取所述第一用户面设备对应的用户信息,接收用户设备发送的保活报文,查询所述第二用户面设备中是否存在与所述保活报文对应的用户信息,当存在与所述保活报文对应的用户信息时,向所述用户设备反馈所述确认报文,当不存在与所述保活报文对应的用户信息时,向所述控制面设备发送所述保活报文,所述控制面设备用于响应所述保活报文。The second user plane device is configured to acquire user information corresponding to the first user plane device from the control plane device when the first user plane device cannot provide services, and receive a keep-alive message sent by the user equipment , query whether there is user information corresponding to the keep-alive message in the second user plane device, and when there is user information corresponding to the keep-alive message, feed back the confirmation message to the user equipment , when there is no user information corresponding to the keep-alive message, send the keep-alive message to the control plane device, and the control plane device is used to respond to the keep-alive message. 10.根据权利要求9所述的方法,其特征在于,所述在所述第一用户面设备从无法提供服务恢复为提供服务状态时,从控制面设备获取第二用户面设备对应的用户信息,包括:10 . The method according to claim 9 , wherein when the first user plane device recovers from a state of being unable to provide services to providing services, acquiring user information corresponding to the second user plane device from a control plane device. 11 . ,include: 在所述第一用户面设备升级完毕后,接收所述控制面设备发送的所述用户信息;After the first user plane device is upgraded, receiving the user information sent by the control plane device; 所述在所述第一用户面设备从无法提供服务恢复为提供服务状态时,从控制面设备获取第二用户面设备对应的用户信息之后,还包括:When the first user plane device recovers from the service-incapable state to the service-providing state, after acquiring the user information corresponding to the second user plane device from the control plane device, the method further includes: 接收所述控制面设备发送的优先级提高命令,所述优先级提高命令是所述控制面设备在所述第一用户面设备升级完毕后发送的;根据所述优先级提高命令提高所述第一用户面设备的第一VRRP优先级;在所述第一VRRP优先级高于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态;Receive a priority increase command sent by the control plane device, where the priority increase command is sent by the control plane device after the first user plane device is upgraded; increase the first user plane device according to the priority increase command The first VRRP priority of a user plane device; when the first VRRP priority is higher than the second VRRP priority of the second user plane device, change the VRRP state of the first user plane device from the standby state switch to the main state; 或者,or, 接收所述第二用户面设备发送的第二VRRP优先级,所述第二VRRP优先级是所述第二用户面设备在接收到所述控制面设备的优先级降低命令后降低的,所述优先级降低命令是所述控制面设备在所述第一用户面设备升级完毕后发送的;在所述第二VRRP优先级低于所述第一VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态。Receive a second VRRP priority sent by the second user plane device, where the second VRRP priority is lowered by the second user plane device after receiving a priority lowering command from the control plane device, the The priority reduction command is sent by the control plane device after the first user plane device is upgraded; when the second VRRP priority is lower than the first VRRP priority, the first user plane The VRRP state of the device switches from the standby state to the primary state. 11.根据权利要求10所述的方法,其特征在于,所述在所述第一用户面设备从无法提供服务恢复为提供服务状态时,从控制面设备获取第二用户面设备对应的用户信息之前,还包括:11 . The method according to claim 10 , wherein when the first user plane device recovers from a state of being unable to provide services to providing services, acquiring user information corresponding to the second user plane device from a control plane device. 12 . Before, also included: 接收所述控制面设备发送的优先级降低命令,所述优先级降低命令是所述控制面设备在所述第一用户面设备升级时发送的;根据所述优先级降低命令降低所述第一用户面设备的第一VRRP优先级;在所述第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从所述主状态切换为所述备用状态;Receive a priority reduction command sent by the control plane device, where the priority reduction command is sent by the control plane device when the first user plane device is upgraded; reduce the first priority according to the priority reduction command The first VRRP priority of the user plane device; when the first VRRP priority is lower than the second VRRP priority of the second user plane device, change the VRRP state of the first user plane device from the primary the state is switched to the standby state; 或者,or, 接收所述第二用户面设备发送的第二VRRP优先级,所述第二VRRP优先级是所述第二用户面设备在接收到所述控制面设备的优先级提高命令后提高的,所述优先级提高命令是所述控制面设备在所述第一用户面设备升级时发送的;在所述第一用户面设备的第一VRRP优先级低于所述第二VRRP优先级时,将所述第一用户面设备的VRRP状态从所述主状态切换为所述备用状态。Receive a second VRRP priority sent by the second user plane device, where the second VRRP priority is increased by the second user plane device after receiving a priority increase command from the control plane device, the The priority raising command is sent by the control plane device when the first user plane device is upgraded; when the first VRRP priority of the first user plane device is lower than the second VRRP priority, the The VRRP state of the first user plane device is switched from the main state to the standby state. 12.根据权利要求9所述的方法,其特征在于,所述在所述第一用户面设备从无法提供服务恢复为提供服务状态时,从控制面设备获取第二用户面设备对应的用户信息,包括:12 . The method according to claim 9 , wherein when the first user plane device recovers from a state of being unable to provide services to providing services, acquiring user information corresponding to the second user plane device from a control plane device. 13 . ,include: 在通过BFD探测到所述第一用户面设备的上行链路故障恢复时,向所述控制面设备发送第一状态变化信息;接收所述控制面设备根据所述第一状态变化信息下发的用户信息;在所述用户信息下发完毕后,接收所述控制面设备发送的第一切换通知;根据所述第一切换通知提高所述第一用户面设备的第一VRRP优先级;在所述第一VRRP优先级高于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态;When the uplink fault recovery of the first user plane device is detected through BFD, first state change information is sent to the control plane device; and the information sent by the control plane device according to the first state change information is received. user information; after the user information is issued, receive the first handover notification sent by the control plane device; increase the first VRRP priority of the first user plane device according to the first handover notification; When the first VRRP priority is higher than the second VRRP priority of the second user plane device, switching the VRRP state of the first user plane device from the standby state to the main state; 或者,or, 接收所述第二用户面设备发送的所述第二VRRP优先级,所述第二VRRP优先级是所述第二用户面设备在接收到所述控制面设备发送的第二切换通知时降低的,所述第二切换通知是所述控制面设备根据第二状态变化信息向所述第一用户面设备下发所述用户信息完毕后发送的,所述第二状态变化信息是所述第二用户面设备通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路故障恢复时向所述控制面设备发送的;在所述第二VRRP优先级低于所述第一用户面设备的第一VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态。Receive the second VRRP priority sent by the second user plane device, where the second VRRP priority is lowered by the second user plane device when receiving the second handover notification sent by the control plane device , the second handover notification is sent after the control plane device completes sending the user information to the first user plane device according to the second state change information, and the second state change information is the second state change information. Sent by the user plane device to the control plane device when the first user plane device or the downlink fault of the first user plane device is detected through BFD; when the second VRRP priority is lower than the When the first VRRP priority of the first user plane device is selected, the VRRP state of the first user plane device is switched from the standby state to the main state. 13.根据权利要求9所述的方法,其特征在于,所述在所述第一用户面设备从无法提供服务恢复为提供服务状态时,从控制面设备获取第二用户面设备对应的用户信息之前,还包括:13 . The method according to claim 9 , wherein when the first user plane device recovers from a state of being unable to provide services to providing services, acquiring user information corresponding to the second user plane device from a control plane device. 14 . Before, also included: 在通过BFD探测到上行链路发生故障后,降低所述第一用户面设备的第一VRRP优先级;在所述第一用户面设备的第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从主状态切换为备用状态;After detecting an uplink failure through BFD, lower the first VRRP priority of the first user plane device; the first VRRP priority of the first user plane device is lower than the second user plane device When the second VRRP priority of the first user plane device is changed, the VRRP state of the first user plane device is switched from the main state to the standby state; 或者,or, 接收所述第二用户面设备发送的第二VRRP优先级,所述第二VRRP优先级是所述第二用户面设备通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路发生故障时提高的;在所述第二VRRP优先级高于所述第一用户面设备的第一VRRP优先级时,将所述第一用户设备的VRRP状态从主状态切换为备用状态。Receive a second VRRP priority sent by the second user plane device, where the second VRRP priority is when the second user plane device detects the first user plane device or the first user plane device through BFD It is raised when the downlink of the first user equipment fails; when the second VRRP priority is higher than the first VRRP priority of the first user plane equipment, the VRRP state of the first user equipment is switched from the main state to Standby state. 14.根据权利要求12所述的方法,其特征在于,所述BFD的状态为DOWN时表示故障,所述BFD的状态为UP时表示正常;14. The method according to claim 12, wherein when the state of the BFD is DOWN, it indicates a fault, and when the state of the BFD is UP, it indicates normal; 所述BFD配置有延迟UP时间,所述延迟UP时间的延迟时长大于所述控制面设备向所述第一用户面设备下发所述用户信息的时长。The BFD is configured with a delayed UP time, and the delay duration of the delayed UP time is longer than the time duration for the control plane device to deliver the user information to the first user plane device. 15.一种报文反馈方法,其特征在于,用于控制面设备中,所述方法包括:15. A message feedback method, characterized in that it is used in a control plane device, the method comprising: 在第一用户面设备无法提供服务时,向第二用户面设备发送所述第一用户面设备对应的用户信息,所述第二用户面设备用于在所述第一用户面设备无法提供服务时,从所述控制面设备获取所述第一用户面设备对应的用户信息,接收用户设备发送的保活报文,查询所述第二用户面设备中是否存在与所述保活报文对应的用户信息,当存在与所述保活报文对应的用户信息时,向所述用户设备反馈确认报文,当不存在与所述保活报文对应的用户信息时,向所述控制面设备发送所述保活报文,所述控制面设备用于响应所述保活报文;When the first user plane device cannot provide the service, the user information corresponding to the first user plane device is sent to the second user plane device, and the second user plane device is used to provide the service when the first user plane device cannot provide the service. When the device is detected, obtain user information corresponding to the first user plane device from the control plane device, receive a keep-alive message sent by the user equipment, and query whether there is a keep-alive message corresponding to the keep-alive message in the second user plane device When there is user information corresponding to the keep-alive message, a confirmation message is fed back to the user equipment, and when there is no user information corresponding to the keep-alive message, a confirmation message is sent to the control plane. The device sends the keep-alive message, and the control plane device is used to respond to the keep-alive message; 在所述第一用户面设备从无法提供服务恢复为提供服务时,向第一用户面设备发送所述第二用户面设备对应的用户信息,所述第一用户面设备用于接收用户设备发送的保活报文,根据所述用户信息向所述用户设备反馈确认报文。When the first user plane device recovers from being unable to provide services to providing services, sending user information corresponding to the second user plane device to the first user plane device, and the first user plane device is configured to receive the transmission from the user equipment the keep-alive message, and feed back a confirmation message to the user equipment according to the user information. 16.根据权利要求15所述的方法,其特征在于,所述在第一用户面设备无法提供服务时,向第二用户面设备发送所述第一用户面设备对应的用户信息,包括:16 . The method according to claim 15 , wherein when the first user plane device cannot provide the service, sending the user information corresponding to the first user plane device to the second user plane device comprises: 16 . 在所述第一用户面设备升级时,向所述第二用户面设备发送所述第一用户面设备对应的用户信息;When the first user plane device is upgraded, send the user information corresponding to the first user plane device to the second user plane device; 所述在第一用户面设备无法提供服务时,向第二用户面设备发送所述第一用户面设备对应的用户信息之后,还包括:After the user information corresponding to the first user plane device is sent to the second user plane device when the first user plane device cannot provide the service, the method further includes: 向所述第一用户面设备发送优先级降低命令,所述第一用户面设备用于在接收到所述优先级降低命令后降低所述第一用户面设备的第一VRRP优先级,在所述第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从主状态切换为备用状态;Send a priority lowering command to the first user plane device, where the first user plane device is configured to lower the first VRRP priority of the first user plane device after receiving the priority lowering command. when the first VRRP priority is lower than the second VRRP priority of the second user plane device, switching the VRRP state of the first user plane device from the main state to the standby state; 或者,or, 向所述第二用户面设备发送优先级提高命令,所述第二用户面设备用于在接收到所述优先级提高命令后提高所述第二用户面设备的第二VRRP优先级,在所述第二VRRP优先级高于所述第一用户面设备的第一VRRP优先级时,将所述第二用户面设备的VRRP状态从备用状态切换为主状态。Send a priority increase command to the second user plane device, the second user plane device is configured to increase the second VRRP priority of the second user plane device after receiving the priority increase command, and in the When the second VRRP priority is higher than the first VRRP priority of the first user plane device, the VRRP state of the second user plane device is switched from the standby state to the main state. 17.根据权利要求15所述的方法,其特征在于,所述在所述第一用户面设备从无法提供服务恢复为提供服务时,向第一用户面设备发送所述第二用户面设备对应的用户信息,包括:17 . The method according to claim 15 , wherein, when the first user plane device recovers from being unable to provide a service to providing a service, sending the correspondence of the second user plane device to the first user plane device. 18 . user information, including: 在所述第一用户面设备升级完毕后,向第一用户面设备发送所述第二用户面设备对应的用户信息;After the upgrade of the first user plane device is completed, send the user information corresponding to the second user plane device to the first user plane device; 所述在所述第一用户面设备从无法提供服务恢复为提供服务时,向第一用户面设备发送所述第二用户面设备对应的用户信息之后,还包括:The step of sending the user information corresponding to the second user plane device to the first user plane device when the first user plane device recovers from being unable to provide the service to providing the service, further includes: 向所述第一用户面设备发送优先级提高命令,所述第一用户面设备用于在接收到所述优先级提高命令后提高所述第一用户面设备的第一VRRP优先级,在所述第一VRRP优先级高于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态;Send a priority increase command to the first user plane device, where the first user plane device is configured to increase the first VRRP priority of the first user plane device after receiving the priority increase command, where When the first VRRP priority is higher than the second VRRP priority of the second user plane device, switching the VRRP state of the first user plane device from the standby state to the main state; 或者,or, 向所述第二用户面设备发送优先级降低命令,所述第二用户面设备用于在接收到所述优先级降低命令后将降低所述第二用户面设备的第二VRRP优先级,在所述第二VRRP优先级低于所述第一用户面设备的第一VRRP优先级时,将所述第二用户面设备的VRRP状态从主状态切换为备用状态。Send a priority lowering command to the second user plane device, where the second user plane device is configured to lower the second VRRP priority of the second user plane device after receiving the priority lowering command, at When the second VRRP priority is lower than the first VRRP priority of the first user plane device, the VRRP state of the second user plane device is switched from the main state to the standby state. 18.根据权利要求15所述的方法,其特征在于,所述在第一用户面设备无法提供服务时,向第二用户面设备发送所述第一用户面设备对应的用户信息,包括:18. The method according to claim 15, wherein when the first user plane device cannot provide the service, sending the user information corresponding to the first user plane device to the second user plane device comprises: 接收所述第二用户面设备发送的VRRP状态切换通知,所述VRRP状态切换通知是在所述第一用户面设备的第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时发送的;Receive a VRRP state switching notification sent by the second user plane device, where the VRRP state switching notification is when the first VRRP priority of the first user plane device is lower than the second VRRP priority of the second user plane device sent at the level; 向所述第二用户面设备下发所述第一用户面设备对应的用户信息;delivering user information corresponding to the first user plane device to the second user plane device; 其中,所述第一VRRP优先级是所述第一用户面设备通过BFD探测到上行链路发生故障后降低的;或者,所述第二VRRP优先级是所述第二用户面设备通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路发生故障时提高的。The first VRRP priority is lowered after the first user plane device detects an uplink failure through BFD; or the second VRRP priority is detected by the second user plane device through BFD Raised when the first user plane device or the downlink of the first user plane device fails. 19.根据权利要求18所述的方法,其特征在于,所述向第二用户面设备发送所述第一用户面设备对应的用户信息之前,还包括:The method according to claim 18, wherein before the sending the user information corresponding to the first user plane device to the second user plane device, the method further comprises: 接收所述第二用户面设备发送的用户设备的保活报文,所述保活报文是在所述第二用户面设备查询到不存在与所述保活报文对应的用户信息时发送的;Receive a keep-alive message of the user equipment sent by the second user plane device, where the keep-alive message is sent when the second user plane device finds that there is no user information corresponding to the keep-alive message of; 根据存储的用户信息向所述用户设备反馈确认报文。Feedback a confirmation message to the user equipment according to the stored user information. 20.根据权利要求15所述的方法,其特征在于,所述在所述第一用户面设备从无法提供服务恢复为提供服务时,向第一用户面设备发送所述第二用户面设备对应的用户信息之前,还包括:20 . The method according to claim 15 , wherein when the first user plane device recovers from being unable to provide a service to providing a service, sending the correspondence of the second user plane device to the first user plane device. 21 . Before the user information, it also includes: 接收所述第一用户面设备发送的第一状态变化信息,所述第一状态变化信息是所述第一用户面设备通过BFD探测到所述第一用户面设备的上行链路故障恢复时发送的;Receive first state change information sent by the first user plane device, where the first state change information is sent when the first user plane device detects through BFD that the uplink fault of the first user plane device has recovered of; 或者,or, 接收所述第二用户面设备发送的第二状态变化信息,所述第二状态变化信息是所述第二用户面设备通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路故障恢复时发送的;Receive second state change information sent by the second user plane device, where the second state change information is that the second user plane device detects the first user plane device or the first user plane device through BFD Sent when the downlink fails to recover; 所述在所述第一用户面设备从无法提供服务恢复为提供服务时,向第一用户面设备发送所述第二用户面设备对应的用户信息之后,还包括:The step of sending the user information corresponding to the second user plane device to the first user plane device when the first user plane device recovers from being unable to provide the service to providing the service, further includes: 在所述用户信息下发完毕后,向所述第一用户面设备发送第一切换通知,所述第一切换通知用于提高所述第一用户面设备的第一VRRP优先级;After the user information is issued, send a first handover notification to the first user plane device, where the first handover notification is used to increase the first VRRP priority of the first user plane device; 或者,or, 在所述用户信息下发完毕后,向所述第二用户面设备发送第二切换通知,所述第二切换通知用于降低所述第二用户面设备的第二VRRP优先级。After the delivery of the user information is completed, a second handover notification is sent to the second user plane device, where the second handover notification is used to reduce the second VRRP priority of the second user plane device. 21.一种报文反馈装置,其特征在于,用于第二用户面设备中,所述装置包括:21. A message feedback device, wherein the device is used in a second user plane device, the device comprising: 获取单元,用于在第一用户面设备无法提供服务时,从控制面设备获取所述第一用户面设备对应的用户信息;an acquiring unit, configured to acquire user information corresponding to the first user plane device from the control plane device when the first user plane device cannot provide the service; 接收单元,用于接收用户设备发送的保活报文,所述保活报文用于请求所述用户设备处于在线状态;a receiving unit, configured to receive a keep-alive message sent by the user equipment, where the keep-alive message is used to request that the user equipment be in an online state; 反馈单元,用于查询所述第二用户面设备中是否存在与所述保活报文对应的用户信息;当存在与所述保活报文对应的用户信息时,向所述用户设备反馈确认报文;当不存在与所述保活报文对应的用户信息时,向所述控制面设备发送所述保活报文,所述控制面设备用于响应所述保活报文。a feedback unit, configured to query whether there is user information corresponding to the keep-alive message in the second user plane device; when there is user information corresponding to the keep-alive message, feedback confirmation to the user equipment message; when there is no user information corresponding to the keep-alive message, send the keep-alive message to the control plane device, and the control plane device is used to respond to the keep-alive message. 22.根据权利要求21所述的装置,其特征在于,22. The apparatus of claim 21, wherein 所述获取单元,还用于在所述第一用户面设备升级时,接收所述控制面设备下发的所述第一用户面设备对应的用户信息。The acquiring unit is further configured to receive user information corresponding to the first user plane device delivered by the control plane device when the first user plane device is upgraded. 23.根据权利要求22所述的装置,其特征在于,23. The apparatus of claim 22, wherein 所述接收单元,还用于接收所述控制面设备发送的优先级提高命令;根据所述优先级提高命令提高所述第二用户面设备的第二VRRP优先级;在所述第二VRRP优先级高于所述第一用户面设备的第一VRRP优先级时,将所述第二用户面设备的VRRP状态从备用状态切换为主状态;The receiving unit is further configured to receive a priority increase command sent by the control plane device; increase the second VRRP priority of the second user plane device according to the priority increase command; When the level is higher than the first VRRP priority of the first user plane device, switching the VRRP state of the second user plane device from the standby state to the main state; 所述接收单元,还用于接收所述第一用户面设备发送的第一VRRP优先级,所述第一VRRP优先级是所述第一用户面设备在接收到所述控制面设备的优先级降低命令后降低的;在所述第二用户面设备的第二VRRP优先级高于所述第一VRRP优先级时,将所述第二用户面设备的VRRP状态从备用状态切换为主状态。The receiving unit is further configured to receive a first VRRP priority sent by the first user plane device, where the first VRRP priority is the priority of the first user plane device when it receives the control plane device Reduced after the lowering command; when the second VRRP priority of the second user plane device is higher than the first VRRP priority, the VRRP state of the second user plane device is switched from the standby state to the main state. 24.根据权利要求23所述的装置,其特征在于,24. The apparatus of claim 23, wherein 所述接收单元,还用于接收所述控制面设备发送的优先级降低命令,所述优先级降低命令是所述控制面设备在所述第一用户面设备升级完毕后发送的;根据所述优先级降低命令降低所述第二VRRP优先级;在所述第二VRRP优先级低于所述第一VRRP优先级时,将所述第二用户面设备的VRRP状态从所述主状态切换为所述备用状态;The receiving unit is further configured to receive a priority reduction command sent by the control plane device, where the priority reduction command is sent by the control plane device after the first user plane device is upgraded; according to the The priority reduction command reduces the priority of the second VRRP; when the priority of the second VRRP is lower than the priority of the first VRRP, the VRRP state of the second user plane device is switched from the main state to the standby state; 所述接收单元,还用于接收所述第一用户面设备发送的所述第一VRRP优先级,所述第一VRRP优先级是所述第一用户面设备在接收到所述控制面设备的优先级提高命令后提高的,所述优先级提高命令是所述控制面设备在所述第一用户面设备升级完毕后发送的;在所述第一VRRP优先级高于所述第二VRRP优先级时,将所述第二用户面设备的VRRP状态从所述主状态切换为所述备用状态。The receiving unit is further configured to receive the first VRRP priority sent by the first user plane device, where the first VRRP priority is received by the first user plane device from the control plane device. The priority increase command is increased after the priority increase command is sent by the control plane device after the first user plane device is upgraded; when the first VRRP priority is higher than the second VRRP priority When the second user plane device is in level, the VRRP state of the second user plane device is switched from the main state to the standby state. 25.根据权利要求21所述的装置,其特征在于,25. The apparatus of claim 21, wherein 所述获取单元,还用于在故障导致所述第一用户面设备的第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时,将所述第二用户面设备的VRRP状态从备用状态切换为主状态;向所述控制面设备发送VRRP状态切换通知;接收所述控制面设备下发的所述第一用户面设备对应的用户信息,所述用户信息是所述控制面设备接收到所述VRRP状态切换通知后发送的。The acquiring unit is further configured to, when a failure causes the first VRRP priority of the first user plane device to be lower than the second VRRP priority of the second user plane device, to retrieve the second user plane device's first VRRP priority. The VRRP state is switched from the standby state to the main state; a VRRP state switching notification is sent to the control plane device; and the user information corresponding to the first user plane device sent by the control plane device is received, and the user information is the Sent by the control plane device after receiving the VRRP state switching notification. 26.根据权利要求25所述的装置,其特征在于,26. The apparatus of claim 25, wherein 所述接收单元,还用于接收所述第一用户面设备发送的第一VRRP优先级,所述第一VRRP优先级是所述第一用户面设备通过BFD探测到上行链路发生故障时降低的;The receiving unit is further configured to receive a first VRRP priority sent by the first user plane device, where the first VRRP priority is lowered when the first user plane device detects an uplink failure through BFD of; 或,or, 所述接收单元,还用于在通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路发生故障时,提高所述第二VRRP优先级。The receiving unit is further configured to increase the priority of the second VRRP when a failure of the first user plane device or the downlink of the first user plane device is detected through BFD. 27.根据权利要求24所述的装置,其特征在于,27. The apparatus of claim 24, wherein 所述接收单元,还用于接收所述第一用户面设备发送的所述第一VRRP优先级,所述第一VRRP优先级是所述第一用户面设备在接收到所述控制面设备发送的第一切换通知时提高的,所述第一切换通知是所述控制面设备根据第一状态变化信息向所述第一用户面设备下发用户信息完毕后发送的,所述第一状态变化信息是所述第一用户面设备通过BFD探测到所述第一用户面设备的上行链路故障恢复时向所述控制面设备发送的;在所述第一VRRP优先级高于所述第二VRRP优先级时,将所述第二用户面设备的VRRP状态从主状态切换为备用状态;The receiving unit is further configured to receive the first VRRP priority sent by the first user plane device, where the first VRRP priority is when the first user plane device receives the first VRRP priority sent by the control plane device The first handover notification is sent after the control plane device completes sending user information to the first user plane device according to the first state change information, and the first state change The information is sent to the control plane device when the first user plane device detects that the uplink failure of the first user plane device has recovered through BFD; when the first VRRP priority is higher than the second When the VRRP priority is given, switching the VRRP state of the second user plane device from the main state to the standby state; 所述接收单元,还用于在通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路故障恢复时,向所述控制面设备发送第二状态变化信息,根据所述控制面设备发送的第二切换通知降低所述第二VRRP优先级,所述第二状态变化信息用于触发所述控制面设备向所述第一用户面设备下发所述用户信息,所述第二切换通知是所述控制面设备根据所述第二状态变化信息向所述第一用户面设备下发所述用户信息完毕后发送的;在所述第二VRRP优先级低于所述第一VRRP优先级时,将所述第二用户面设备的VRRP状态从主状态切换为备用状态。The receiving unit is further configured to send the second state change information to the control plane device when the first user plane device or the downlink fault recovery of the first user plane device is detected through BFD, according to the The second handover notification sent by the control plane device reduces the second VRRP priority, and the second state change information is used to trigger the control plane device to deliver the user information to the first user plane device, The second handover notification is sent after the control plane device completes delivering the user information to the first user plane device according to the second state change information; when the second VRRP priority is lower than the When the first VRRP priority is selected, the VRRP state of the second user plane device is switched from the main state to the standby state. 28.根据权利要求27所述的装置,其特征在于,所述BFD的状态为DOWN时表示故障,所述BFD的状态为UP时表示正常;28. The device according to claim 27, wherein when the state of the BFD is DOWN, it indicates a fault, and when the state of the BFD is UP, it indicates normal; 所述BFD配置有延迟UP时间,所述延迟UP时间的时长大于所述控制面设备向所述第一用户面设备下发所述用户信息的时长。The BFD is configured with a delayed UP time, and the duration of the delayed UP time is greater than the duration of the control plane device delivering the user information to the first user plane device. 29.一种报文反馈装置,其特征在于,用于第一用户面设备中,所述装置包括:29. A message feedback device, characterized in that it is used in a first user plane device, the device comprising: 获取单元,用于在所述第一用户面设备从无法提供服务恢复为提供服务状态时,从控制面设备获取第二用户面设备对应的用户信息;an obtaining unit, configured to obtain the user information corresponding to the second user plane device from the control plane device when the first user plane device recovers from the state of being unable to provide the service to the state of providing the service; 接收单元,用于接收用户设备发送的保活报文,所述保活报文用于请求所述用户设备处于在线状态;a receiving unit, configured to receive a keep-alive message sent by the user equipment, where the keep-alive message is used to request that the user equipment be in an online state; 反馈单元,用于根据所述获取单元获取的所述用户信息向所述用户设备反馈确认报文;a feedback unit, configured to feed back a confirmation message to the user equipment according to the user information obtained by the obtaining unit; 其中,所述第二用户面设备用于在所述第一用户面设备无法提供服务时,从控制面设备获取所述第一用户面设备对应的用户信息,接收用户设备发送的保活报文,查询所述第二用户面设备中是否存在与所述保活报文对应的用户信息,当存在与所述保活报文对应的用户信息时,向所述用户设备反馈所述确认报文,当不存在与所述保活报文对应的用户信息时,向所述控制面设备发送所述保活报文,所述控制面设备用于响应所述保活报文。The second user plane device is configured to acquire user information corresponding to the first user plane device from the control plane device when the first user plane device cannot provide services, and receive a keep-alive message sent by the user equipment , query whether there is user information corresponding to the keep-alive message in the second user plane device, and when there is user information corresponding to the keep-alive message, feed back the confirmation message to the user equipment , when there is no user information corresponding to the keep-alive message, send the keep-alive message to the control plane device, and the control plane device is used to respond to the keep-alive message. 30.根据权利要求29所述的装置,其特征在于,30. The apparatus of claim 29, wherein 所述获取单元,还用于在所述第一用户面设备升级完毕后,接收所述控制面设备发送的所述用户信息;The acquiring unit is further configured to receive the user information sent by the control plane device after the first user plane device is upgraded; 所述接收单元,还用于接收所述控制面设备发送的优先级提高命令,所述优先级提高命令是所述控制面设备在所述第一用户面设备升级完毕后发送的;根据所述优先级提高命令提高所述第一用户面设备的第一VRRP优先级;在所述第一VRRP优先级高于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态;The receiving unit is further configured to receive a priority increase command sent by the control plane device, where the priority increase command is sent by the control plane device after the first user plane device is upgraded; according to the The priority raising command increases the first VRRP priority of the first user plane device; when the first VRRP priority is higher than the second VRRP priority of the second user plane device, the first user The VRRP state of the plane device is switched from the standby state to the primary state; 所述接收单元,还用于接收所述第二用户面设备发送的第二VRRP优先级,所述第二VRRP优先级是所述第二用户面设备在接收到所述控制面设备的优先级降低命令后降低的,所述优先级降低命令是所述控制面设备在所述第一用户面设备升级完毕后发送的;在所述第二VRRP优先级低于所述第一VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态。The receiving unit is further configured to receive a second VRRP priority sent by the second user plane device, where the second VRRP priority is the priority of the second user plane device when it receives the control plane device After the lowering command, the priority lowering command is sent by the control plane device after the upgrade of the first user plane device is completed; when the second VRRP priority is lower than the first VRRP priority , switching the VRRP state of the first user plane device from the standby state to the main state. 31.根据权利要求30所述的装置,其特征在于,31. The apparatus of claim 30, wherein 所述接收单元,还用于接收所述控制面设备发送的优先级降低命令,所述优先级降低命令是所述控制面设备在所述第一用户面设备升级时发送的;根据所述优先级降低命令降低所述第一用户面设备的第一VRRP优先级;在所述第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从主状态切换为备用状态;The receiving unit is further configured to receive a priority reduction command sent by the control plane device, where the priority reduction command is sent by the control plane device when the first user plane device is upgraded; according to the priority A level lowering command lowers the first VRRP priority of the first user plane device; when the first VRRP priority is lower than the second VRRP priority of the second user plane device, the first user plane device The VRRP state of the device is switched from the main state to the standby state; 所述接收单元,还用于接收所述第二用户面设备发送的第二VRRP优先级,所述第二VRRP优先级是所述第二用户面设备在接收到所述控制面设备的优先级提高命令后提高的,所述优先级提高命令是所述控制面设备在所述第一用户面设备升级时发送的;在所述第一用户面设备的第一VRRP优先级低于所述第二VRRP优先级时,将所述第一用户面设备的VRRP状态从主状态切换为备用状态。The receiving unit is further configured to receive a second VRRP priority sent by the second user plane device, where the second VRRP priority is the priority of the second user plane device when it receives the control plane device If the priority is increased after the increase command, the priority increase command is sent by the control plane device when the first user plane device is upgraded; when the first VRRP priority of the first user plane device is lower than the first user plane device. When the VRRP priority is two, the VRRP state of the first user plane device is switched from the main state to the standby state. 32.根据权利要求29所述的装置,其特征在于,32. The apparatus of claim 29, wherein 所述接收单元,还用于在通过BFD探测到所述第一用户面设备的上行链路故障恢复时,向所述控制面设备发送第一状态变化信息;接收所述控制面设备根据所述第一状态变化信息下发的用户信息;在所述用户信息下发完毕后,接收所述控制面设备发送的第一切换通知;根据所述第一切换通知提高所述第一用户面设备的第一VRRP优先级;在所述第一VRRP优先级高于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态;The receiving unit is further configured to send the first state change information to the control plane device when the uplink fault recovery of the first user plane device is detected through BFD; receive the control plane device according to the The user information issued by the first state change information; after the user information is issued, receive the first handover notification sent by the control plane device; according to the first handover notification, improve the a first VRRP priority; when the first VRRP priority is higher than the second VRRP priority of the second user plane device, switching the VRRP state of the first user plane device from the standby state to the main state; 所述接收单元,还用于接收所述第二用户面设备发送的所述第二VRRP优先级,所述第二VRRP优先级是所述第二用户面设备在接收到所述控制面设备发送的第二切换通知时降低的,所述第二切换通知是所述控制面设备根据第二状态变化信息向所述第一用户面设备下发所述用户信息完毕后发送的,所述第二状态变化信息是所述第二用户面设备通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路故障恢复时向所述控制面设备发送的;在所述第二VRRP优先级低于所述第一用户面设备的第一VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态。The receiving unit is further configured to receive the second VRRP priority sent by the second user plane device, where the second VRRP priority is when the second user plane device receives the second VRRP priority sent by the control plane device The second handover notification is reduced when the second handover notification is sent after the control plane device completes sending the user information to the first user plane device according to the second state change information. The state change information is sent by the second user plane device to the control plane device when the second user plane device detects that the first user plane device or the downlink failure of the first user plane device has recovered through BFD; When the VRRP priority is lower than the first VRRP priority of the first user plane device, the VRRP state of the first user plane device is switched from the standby state to the main state. 33.根据权利要求29所述的装置,其特征在于,33. The apparatus of claim 29, wherein 所述接收单元,还用于在通过BFD探测到上行链路发生故障后,降低所述第一用户面设备的第一VRRP优先级;在所述第一用户面设备的第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从主状态切换为备用状态;The receiving unit is further configured to lower the first VRRP priority of the first user plane device after detecting an uplink failure through BFD; the first VRRP priority of the first user plane device is low Switching the VRRP state of the first user plane device from the main state to the standby state when the second VRRP priority of the second user plane device is used; 所述接收单元,还用于接收所述第二用户面设备发送的第二VRRP优先级,所述第二VRRP优先级是所述第二用户面设备通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路发生故障时提高的;在所述第二VRRP优先级高于所述第一用户面设备的第一VRRP优先级时,将所述第一用户面设备的VRRP状态从主状态切换为备用状态。The receiving unit is further configured to receive a second VRRP priority sent by the second user plane device, where the second VRRP priority is when the second user plane device detects the first user plane device through BFD or increased when the downlink of the first user plane device fails; when the second VRRP priority is higher than the first VRRP priority of the first user plane device, the first user plane The VRRP state of the device is switched from the master state to the standby state. 34.根据权利要求32所述的装置,其特征在于,所述BFD的状态为DOWN时表示故障,所述BFD的状态为UP时表示正常;34. The apparatus according to claim 32, wherein when the state of the BFD is DOWN, it indicates a fault, and when the state of the BFD is UP, it indicates normal; 所述BFD配置有延迟UP时间,所述延迟UP时间的延迟时长大于所述控制面设备向所述第一用户面设备下发所述用户信息的时长。The BFD is configured with a delayed UP time, and the delay duration of the delayed UP time is longer than the time duration for the control plane device to deliver the user information to the first user plane device. 35.一种报文反馈装置,其特征在于,用于控制面设备中,所述装置包括:35. A message feedback device, characterized in that it is used in a control plane device, the device comprising: 第一发送单元,用于在第一用户面设备无法提供服务时,向第二用户面设备发送所述第一用户面设备对应的用户信息,所述第二用户面设备用于在所述第一用户面设备无法提供服务时,从所述控制面设备获取所述第一用户面设备对应的用户信息,接收用户设备发送的保活报文,查询所述第二用户面设备中是否存在与所述保活报文对应的用户信息,当存在与所述保活报文对应的用户信息时,向所述用户设备反馈确认报文,当不存在与所述保活报文对应的用户信息时,向所述控制面设备发送所述保活报文,所述控制面设备用于响应所述保活报文;A first sending unit, configured to send user information corresponding to the first user plane device to a second user plane device when the first user plane device cannot provide services, and the second user plane device is configured to send the user information corresponding to the first user plane device to the second user plane device. When a user plane device cannot provide services, obtain user information corresponding to the first user plane device from the control plane device, receive a keep-alive message sent by the user equipment, and query whether the second user plane device exists The user information corresponding to the keep-alive message, when there is user information corresponding to the keep-alive message, a confirmation message is fed back to the user equipment, and when there is no user information corresponding to the keep-alive message When the message is sent, the keep-alive message is sent to the control plane device, and the control plane device is used to respond to the keep-alive message; 第二发送单元,用于在所述第一用户面设备从无法提供服务恢复为提供服务时,向第一用户面设备发送所述第二用户面设备对应的用户信息,所述第一用户面设备用于接收用户设备发送的保活报文,根据所述用户信息向所述用户设备反馈确认报文。a second sending unit, configured to send the user information corresponding to the second user plane device to the first user plane device when the first user plane device recovers from being unable to provide services to providing services, and the first user plane device The device is configured to receive a keep-alive message sent by the user equipment, and feed back a confirmation message to the user equipment according to the user information. 36.根据权利要求35所述的装置,其特征在于,36. The apparatus of claim 35, wherein 所述第一发送单元,还用于在所述第一用户面设备升级时,向所述第二用户面设备发送所述第一用户面设备对应的用户信息;The first sending unit is further configured to send user information corresponding to the first user plane device to the second user plane device when the first user plane device is upgraded; 所述第一发送单元,还用于向所述第一用户面设备发送优先级降低命令,所述第一用户面设备用于在接收到所述优先级降低命令后降低所述第一用户面设备的第一VRRP优先级,在所述第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从主状态切换为备用状态;The first sending unit is further configured to send a priority lowering command to the first user plane device, where the first user plane device is configured to lower the first user plane after receiving the priority lowering command The first VRRP priority of the device, when the first VRRP priority is lower than the second VRRP priority of the second user plane device, the VRRP state of the first user plane device is switched from the master state to the standby state state; 所述第一发送单元,用于向所述第二用户面设备发送优先级提高命令,所述第二用户面设备用于在接收到所述优先级提高命令后提高所述第二用户面设备的第二VRRP优先级,在所述第二VRRP优先级高于所述第一用户面设备的第一VRRP优先级时,将所述第二用户面设备的VRRP状态从备用状态切换为主状态。The first sending unit is configured to send a priority raising command to the second user plane device, and the second user plane device is configured to raise the second user plane device after receiving the priority raising command When the second VRRP priority is higher than the first VRRP priority of the first user plane device, switch the VRRP state of the second user plane device from the standby state to the main state . 37.根据权利要求35所述的装置,其特征在于,37. The apparatus of claim 35, wherein 所述第二发送单元,还用于在所述第一用户面设备升级完毕后,向第一用户面设备发送所述第二用户面设备对应的用户信息;The second sending unit is further configured to send the user information corresponding to the second user plane device to the first user plane device after the first user plane device is upgraded; 所述第二发送单元,还用于向所述第一用户面设备发送优先级提高命令,所述第一用户面设备用于在接收到所述优先级提高命令后提高所述第一用户面设备的第一VRRP优先级,在所述第一VRRP优先级高于所述第二用户面设备的第二VRRP优先级时,将所述第一用户面设备的VRRP状态从备用状态切换为主状态;The second sending unit is further configured to send a priority raising command to the first user plane device, where the first user plane device is configured to raise the first user plane after receiving the priority raising command The first VRRP priority of the device, when the first VRRP priority is higher than the second VRRP priority of the second user plane device, the VRRP state of the first user plane device is switched from the standby state to the primary state state; 所述第二发送单元,还用于向所述第二用户面设备发送优先级降低命令,所述第二用户面设备用于在接收到所述优先级降低命令后将降低所述第二用户面设备的第二VRRP优先级,在所述第二VRRP优先级低于所述第一用户面设备的第一VRRP优先级时,将所述第二用户面设备的VRRP状态从主状态切换为备用状态。The second sending unit is further configured to send a priority lowering command to the second user plane device, where the second user plane device is configured to lower the priority of the second user after receiving the priority lowering command The second VRRP priority of the user plane device, when the second VRRP priority is lower than the first VRRP priority of the first user plane device, switch the VRRP state of the second user plane device from the main state to Standby state. 38.根据权利要求35所述的装置,其特征在于,38. The apparatus of claim 35, wherein 所述第一发送单元,还用于接收所述第二用户面设备发送的VRRP状态切换通知,所述VRRP状态切换通知是在所述第一用户面设备的第一VRRP优先级低于所述第二用户面设备的第二VRRP优先级时发送的;向所述第二用户面设备下发所述第一用户面设备对应的用户信息;其中,所述第一VRRP优先级是所述第一用户面设备通过BFD探测到上行链路发生故障后降低的;或者,所述第二VRRP优先级是所述第二用户面设备通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路发生故障时提高的。The first sending unit is further configured to receive a VRRP state switching notification sent by the second user plane device, where the VRRP state switching notification is when the first VRRP priority of the first user plane device is lower than the Sent when the second VRRP priority of the second user plane device; delivering user information corresponding to the first user plane device to the second user plane device; wherein the first VRRP priority is the first user plane device After a user plane device detects an uplink failure through BFD, the second VRRP priority is reduced; or the second VRRP priority is when the second user plane device detects the first user plane device or the first user plane device through BFD. Raised when the downlink of the user plane equipment fails. 39.根据权利要求38所述的装置,其特征在于,39. The apparatus of claim 38, wherein 所述第一发送单元,还用于接收所述第二用户面设备发送的用户设备的保活报文,所述保活报文是在所述第二用户面设备查询到不存在与所述保活报文对应的用户信息时发送的;根据存储的用户信息向所述用户设备反馈确认报文。The first sending unit is further configured to receive a keep-alive message of the user equipment sent by the second user plane device. It is sent when the user information corresponding to the keep-alive message is sent; the confirmation message is fed back to the user equipment according to the stored user information. 40.根据权利要求35所述的装置,其特征在于,40. The apparatus of claim 35, wherein 所述第一发送单元,还用于接收所述第一用户面设备发送的第一状态变化信息,所述第一状态变化信息是所述第一用户面设备通过BFD探测到所述第一用户面设备的上行链路故障恢复时发送的;The first sending unit is further configured to receive first state change information sent by the first user plane device, where the first state change information is that the first user plane device detects the first user through BFD Sent when the uplink of the plane device recovers from a fault; 所述第一发送单元,还用于接收所述第二用户面设备发送的第二状态变化信息,所述第二状态变化信息是所述第二用户面设备通过BFD探测到所述第一用户面设备或所述第一用户面设备的下行链路故障恢复时发送的;The first sending unit is further configured to receive second state change information sent by the second user plane device, where the second state change information is that the second user plane device detects the first user through BFD Sent when the downlink fault of the plane device or the first user plane device recovers; 所述第二发送单元,还用于在所述用户信息下发完毕后,向所述第一用户面设备发送第一切换通知,所述第一切换通知用于提高所述第一用户面设备的第一VRRP优先级;The second sending unit is further configured to send a first handover notification to the first user plane device after the user information is issued, where the first handover notification is used to improve the first user plane device The first VRRP priority of; 所述第二发送单元,还用于在所述用户信息下发完毕后,向所述第二用户面设备发送第二切换通知,所述第二切换通知用于降低所述第二用户面设备的第二VRRP优先级。The second sending unit is further configured to send a second handover notification to the second user plane device after the user information is issued, where the second handover notification is used to lower the second user plane device The second VRRP priority.
CN201611260865.7A 2016-12-30 2016-12-30 Message feedback method and device Active CN106685818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611260865.7A CN106685818B (en) 2016-12-30 2016-12-30 Message feedback method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611260865.7A CN106685818B (en) 2016-12-30 2016-12-30 Message feedback method and device

Publications (2)

Publication Number Publication Date
CN106685818A CN106685818A (en) 2017-05-17
CN106685818B true CN106685818B (en) 2020-07-28

Family

ID=58848744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611260865.7A Active CN106685818B (en) 2016-12-30 2016-12-30 Message feedback method and device

Country Status (1)

Country Link
CN (1) CN106685818B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547675B (en) * 2017-05-26 2020-11-06 新华三技术有限公司 User equipment migration method and device
CN108259633B (en) 2017-05-31 2020-05-12 新华三技术有限公司 Method, system and device for realizing management message three-layer communication
CN108259453B (en) * 2017-05-31 2020-03-06 新华三技术有限公司 Message forwarding method and device
CN109218143B (en) * 2017-07-03 2021-06-18 中国移动通信有限公司研究院 An information processing method, device and computer-readable storage medium
CN113328894B (en) * 2017-08-31 2022-06-28 华为技术有限公司 Method and device for dual-machine hot backup based on CU separation
CN108667575B (en) * 2017-09-06 2021-04-27 新华三技术有限公司 Backup method and device for BRAS transfer control separation
CN108667695B (en) * 2017-09-06 2020-12-29 新华三技术有限公司 A backup method and device for BRAS transfer control separation
CN108512703B (en) * 2018-03-28 2021-08-24 新华三技术有限公司 Backup method, device and equipment for BRAS transfer control separation and machine readable storage medium
CN108616431B (en) * 2018-04-20 2020-09-08 新华三技术有限公司 Message processing method, device, equipment and machine readable storage medium
CN110417761B (en) * 2019-07-17 2021-12-17 上海东土远景工业科技有限公司 Communication method and device based on dual-computer redundancy
CN113746655B (en) * 2020-05-30 2022-10-04 华为技术有限公司 Backup state determination method, device and system
CN114079584B (en) * 2020-08-18 2025-10-24 华为技术有限公司 Method and device for keeping a user terminal alive
CN114531337A (en) * 2020-10-31 2022-05-24 华为技术有限公司 Broadband connection method and device
CN115150256A (en) * 2021-03-16 2022-10-04 华为技术有限公司 User online processing method and related device
JP2024525083A (en) * 2021-07-08 2024-07-09 華為技術有限公司 PACKET PROCESSING METHOD, APPARATUS AND SYSTEM, AND COMPUTER-READABLE STORAGE MEDIUM
CN113542775B (en) * 2021-07-15 2023-09-19 广州安思创信息技术有限公司 Live broadcast keep-alive service system, live broadcast keep-alive management method, server and medium
CN115811767A (en) * 2021-09-11 2023-03-17 华为技术有限公司 Message transceiving method, information acquisition and transceiving method and related equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1006702A2 (en) * 1998-12-04 2000-06-07 Nortel Networks Corporation Method and apparatus providing for an improved VRRP (Virtual Router Redundancy Protocol)
CN101094102A (en) * 2007-07-18 2007-12-26 杭州华三通信技术有限公司 Main and standby switching method and route standby system for route device
CN102137021A (en) * 2011-03-31 2011-07-27 北京傲天动联技术有限公司 Remote redundancy back-up method of access controllers
CN102447583A (en) * 2012-01-04 2012-05-09 中兴通讯股份有限公司 Hot standby method and device for network address conversion equipment
CN102869059A (en) * 2011-07-05 2013-01-09 中兴通讯股份有限公司 Method for switching wireless access controllers (ACs) and wireless access point (AP)
CN104080132A (en) * 2013-03-25 2014-10-01 中国移动通信集团公司 Data processing method and equipment
CN105897486A (en) * 2016-06-07 2016-08-24 武汉邮电科学研究院 Hot backup method of SCTP
CN106130898A (en) * 2016-08-29 2016-11-16 北京神州绿盟信息安全科技股份有限公司 A kind of virtual flow-line link support method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1006702A2 (en) * 1998-12-04 2000-06-07 Nortel Networks Corporation Method and apparatus providing for an improved VRRP (Virtual Router Redundancy Protocol)
CN101094102A (en) * 2007-07-18 2007-12-26 杭州华三通信技术有限公司 Main and standby switching method and route standby system for route device
CN102137021A (en) * 2011-03-31 2011-07-27 北京傲天动联技术有限公司 Remote redundancy back-up method of access controllers
CN102869059A (en) * 2011-07-05 2013-01-09 中兴通讯股份有限公司 Method for switching wireless access controllers (ACs) and wireless access point (AP)
CN102447583A (en) * 2012-01-04 2012-05-09 中兴通讯股份有限公司 Hot standby method and device for network address conversion equipment
CN104080132A (en) * 2013-03-25 2014-10-01 中国移动通信集团公司 Data processing method and equipment
CN105897486A (en) * 2016-06-07 2016-08-24 武汉邮电科学研究院 Hot backup method of SCTP
CN106130898A (en) * 2016-08-29 2016-11-16 北京神州绿盟信息安全科技股份有限公司 A kind of virtual flow-line link support method and device

Also Published As

Publication number Publication date
CN106685818A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN106685818B (en) Message feedback method and device
EP3525405B1 (en) Packet sending method and network device
US6856591B1 (en) Method and system for high reliability cluster management
EP1379038B1 (en) Method for implementing router interface backup with virtual router redundancy protocol
US10230684B2 (en) Method, apparatus, and edge node controller for allocating edge node
CN102439903B (en) Method, device and system for realizing disaster recovery and backup
US20220334935A1 (en) Hot standby method, apparatus, and system
CN102404146B (en) Master-slave switching method, network device and DHCP server
US7307945B2 (en) Methods for providing a reliable server architecture using a multicast topology in a communications network
JP2013500651A (en) Primary and standby protection system, method and routing device for user-side multicast service
US10462048B2 (en) Virtual cluster establishment method and network device
US11362935B2 (en) Automatic multi-chassis link aggregation configuration with link layer discovery
CN100388703C (en) Method and system for Ethernet interface node backup
CN101060533B (en) A method, system and device for improving reliability of VGMP protocol
CN105745883A (en) Method for synchronizing forwarding tables, network device, and system
WO2013113228A1 (en) Method, routing device and system for redundant backup of network device
CN102006189A (en) Primary access server determination method and device for dual-machine redundancy backup
CN101610210A (en) Multicast transmission system and method with redundant structure
EP2658172A1 (en) Multicast method and multicast device
US20130311624A1 (en) Method, apparatus and system for configuring ip address
CN102142978B (en) Data backup transmission processing method, device and system
CN104125079B (en) A kind of method and device for determining two-node cluster hot backup configuration information
CN102187627B (en) Method and device for load sharing, broadband access server system
CN104243304B (en) The data processing method of non-full-mesh topological structure, equipment and system
WO2023065750A1 (en) State synchronization method and apparatus, and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant