一种报文收发方法及装置
阅读说明:本技术 一种报文收发方法及装置 (Message receiving and sending method and device ) 是由 叶朝岭 刘贤 刘成伟 于 2018-11-23 设计创作,主要内容包括:一种报文收发方法及装置,用于用户设备访问互联网时降低DNS请求被篡改的概率,从而降低用户设备被恶意攻击的风险,提高用户设备网络访问的安全性。方法包括:用户设备向域名系统DNS服务器发送DNS请求报文,DNS请求报文中包括有效数据部分和随机数据部分,有效数据部分中携带用户设备请求访问的目的域名;用户设备接收来自DNS服务器的DNS响应报文,DNS响应报文中携带目的域名对应的互联网协议IP地址。(A message receiving and sending method and device are used for reducing the probability of tampering DNS requests when user equipment accesses the Internet, so that the risk of malicious attack on the user equipment is reduced, and the security of network access of the user equipment is improved. The method comprises the following steps: user equipment sends a DNS request message to a domain name system DNS server, wherein the DNS request message comprises an effective data part and a random data part, and the effective data part carries a target domain name which the user equipment requests to access; and the user equipment receives a DNS response message from the DNS server, wherein the DNS response message carries the Internet protocol IP address corresponding to the destination domain name.)