The invention discloses a method, device, device and storage medium for maintaining normal communication of home gateway, which relates to the field of communication technology. The method includes: when the home gateway detects that the DHCP server is in an abnormal state, the home gateway maintains the existing network resources for providing network services to users; and when the home gateway detects that the DHCP server returns to normal. When in state, the home gateway obtains the latest network resources allocated by the DHCP server, and the home gateway updates the existing network resources using the latest network resources. In the embodiment of the present invention, during the period from abnormal DHCP server to recovery of the operator, the user of the home gateway can still use the original network resource information to use the network service normally, and can not perceive the abnormal phenomenon of the network, thus improving the satisfaction of the user of the home gateway and the service quality of the operator.
【技术实现步骤摘要】
一种保持家庭网关正常通讯的方法、装置、设备及存储介质
本专利技术涉及通信
,特别涉及一种保持家庭网关正常通讯的方法、装置、设备及存储介质。
技术介绍
动态主机配置协议(DynamicHostConfigurationProtocol,DHCP),在传输控制协议/因特网互联协议(TransmissionControlProtocol/InternetProtocol,TCP/IP)网络上,为客户机分配因特网互联协议(InternetProtocol,IP)相关的配置信息,让客户机获得基本的网络路由信息,从而实现网络通讯。它基于引导程序协议(BootstrapProtocol,BOOTP),并在BOOTP协议的基础上添加了自动分配可用网络地址等功能。家庭网关,位于家庭用户内部的一种网络设备,是连接外部网络与家庭用户网络的枢纽,为人们的日常生活提供丰富而高效的网络服务。家庭网关获取网络信息的方式有多种,目前应用较多的是DHCP协议和基于以太网的点对点通讯协议(PointtoPointProtocoloverEthernet,PPPoE)协议。其中DHCP协议以其简单易用的方式,被很多运营商采用。在使用DHCP协议获取IP配置信息的网络环境中,如果运营商的DHCP服务器出现故障,根据标准DHCP协议的要求,家庭网关会在一定时限后释放所拥有的IP地址等资源。此时,整个家庭网关网络就会断开,无法继续为用户提供网络服务。为了解决这个问题,从家庭网关的角度出发,本专利技术提出了一种解决运营商DHCP服务器异常情况时,保持家庭网关正常网络服务的方法。
技术实现思路
本专利 ...
【技术保护点】
1.一种保持家庭网关正常通讯的方法,其特征在于,包括:当家庭网关检测到动态主机配置协议DHCP服务器处于异常状态时,所述家庭网关保持用于向用户提供网络服务的现有网络资源;当家庭网关检测到所述DHCP服务器恢复到正常状态时,所述家庭网关获取所述DHCP服务器分配的最新网络资源;所述家庭网关利用所述最新网络资源更新所述现有网络资源。
【技术特征摘要】
1.一种保持家庭网关正常通讯的方法,其特征在于,包括:当家庭网关检测到动态主机配置协议DHCP服务器处于异常状态时,所述家庭网关保持用于向用户提供网络服务的现有网络资源;当家庭网关检测到所述DHCP服务器恢复到正常状态时,所述家庭网关获取所述DHCP服务器分配的最新网络资源;所述家庭网关利用所述最新网络资源更新所述现有网络资源。2.根据权利要求1所述的方法,其特征在于,在所述当家庭网关检测到DHCP服务器处于异常状态时,所述家庭网关保持用于向用户提供网络服务的现有网络资源之后,还包括:所述家庭网关在所述DHCP服务器处于异常状态期间,利用所保持的现有网络资源,向用户继续提供网络服务。3.根据权利要求1所述的方法,其特征在于,所述当家庭网关检测到所述DHCP服务器恢复到正常状态时,所述家庭网关获取所述DHCP服务器分配的最新网络资源,包括:所述家庭网关从所述DHCP服务器提供的至少一个可用网络资源信息中选取一个网络资源信息;所述家庭网关向所述DHCP服务器请求所选取的网络资源信息对应的网络资源,以便所述DHCP服务器根据所述请求和实际网络资源使用情况,将所述网络资源作为最新网络资源分配给所述家庭网关。4.根据权利要求1所述的方法,其特征在于,所述家庭网关利用所述最新网络资源更新所述现有网络资源包括:所述家庭网关比较所述现有网络资源和所述最新网络资源;若所述现有网络资源和所述最新网络资源不一致,则所述家庭网关利用所述最新网络资源更新所述现有网络资源。5....
【专利技术属性】
技术研发人员:万民飞,武云飞,高春生,
申请(专利权)人:中兴通讯股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。