Injection system and method of fault fault management system, the invention discloses a network ICMP protocol, including fault assembly fault ICMP package module to obtain the default ICMP injection fault information; the default ICMP injection of information into the ICMP consortium finj structure in ICMP; according to the preset fault information into the assembly fault ICMP packet, ICMP packet fault; fault ICMP ICMP combination package sent to the kernel; fault injection ICMP fault injection module calls the submit function and using the fault ICMP packet network card ICMP protocol. Therefore, the invention can realize the fault injection into the default ICMP information card ICMP protocol, in response to the fault in order to get network card ICMP protocol, ICMP protocol card that influence the failure on the computer and network fault finding ICMP protocol processing solutions provide the basis for the convenience of users.
【技术实现步骤摘要】
本专利技术涉及网卡ICMP协议的
,特别是涉及一种网卡ICMP协议的故障注入方法、系统及故障管理系统。
技术介绍
随着科技的发展,计算机已经进入到千家万户,计算机及网络的出现改善了人们的生活。其中,网络的畅通至关重要,如果网络不可达、主机不可达、端口不可达,就会造成严重的后果,严重影响了正常工作及学习。例如当出现恶意的木马程序或黑客攻击等等,都会影响用户的正常使用,或者被盗取重要用户资料。因此,对于网卡ICMP协议可能出现的故障进行研究具有重要的意义。
技术实现思路
本专利技术的目的是提供一种网卡ICMP协议的故障注入方法,为方便用户知道网卡ICMP协议故障对计算机的影响及寻找网卡ICMP协议的故障处理解决方案提供了基础;本专利技术的另一目的是提供一种网卡ICMP协议的故障注入系统及故障管理系统。为解决上述技术问题,本专利技术提供了一种网卡ICMP协议的故障注入方法,包括:组装故障ICMP包模块获取预设的icmp的故障注入信息;将所述预设的icmp的故障注入信息放入finj结构体中的icmp联合体中;根据所述预设的icmp的故障注入信息进行故障ICMP包的组装,得到故障ICMP包;将所述icmp联合体中的故障ICMP包发送至内核态;ICMP包故障注入模块调用submit函数并利用故障ICMP包进行网卡ICMP协议的故障注入。优选地,所述获取预设的网卡ICMP协议的故障注入信息的过程具体为:根据命令行接口选择icmp故障类型;确定与所述icmp故障类型对应的预设的icmp故障注入文件;对所述预设的icmp故障注入文件进行解析,得到所述预设的网卡ICMP协 ...
【技术保护点】
一种网卡ICMP协议的故障注入方法,其特征在于,包括:组装故障ICMP包模块获取预设的icmp的故障注入信息;将所述预设的icmp的故障注入信息放入finj结构体中的icmp联合体中;根据所述预设的icmp的故障注入信息进行故障ICMP包的组装,得到故障ICMP包;将所述icmp联合体中的故障ICMP包发送至内核态;ICMP包故障注入模块调用submit函数并利用故障ICMP包进行网卡ICMP协议的故障注入。
【技术特征摘要】
1.一种网卡ICMP协议的故障注入方法,其特征在于,包括:组装故障ICMP包模块获取预设的icmp的故障注入信息;将所述预设的icmp的故障注入信息放入finj结构体中的icmp联合体中;根据所述预设的icmp的故障注入信息进行故障ICMP包的组装,得到故障ICMP包;将所述icmp联合体中的故障ICMP包发送至内核态;ICMP包故障注入模块调用submit函数并利用故障ICMP包进行网卡ICMP协议的故障注入。2.如权利要求1所述的故障注入方法,其特征在于,所述获取预设的网卡ICMP协议的故障注入信息的过程具体为:根据命令行接口选择icmp故障类型;确定与所述icmp故障类型对应的预设的icmp故障注入文件;对所述预设的icmp故障注入文件进行解析,得到所述预设的网卡ICMP协议的故障注入信息。3.如权利要求2所述的故障注入方法,其特征在于,所述将所述icmp联合体中的故障ICMP包发送至内核态的过程具体为:使用sendto函数将所述icmp联合体中的故障ICMP包发送至内核态。4.一种网卡ICMP协议的故障注入系统,其特征在于,包括:组装故障ICMP包模块,用于获取预设的icmp的故障注入信息;将所述预设的icmp的故障注入信息放入finj结构体中的icmp联合体中;根据所述预设的icmp的故障注入...
【专利技术属性】
技术研发人员:陈歌,郭美思,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南;41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。