CN118075227A - A method for accurately matching domain names and variable domain names with IP - Google Patents
A method for accurately matching domain names and variable domain names with IP Download PDFInfo
- Publication number
- CN118075227A CN118075227A CN202410189197.1A CN202410189197A CN118075227A CN 118075227 A CN118075227 A CN 118075227A CN 202410189197 A CN202410189197 A CN 202410189197A CN 118075227 A CN118075227 A CN 118075227A
- Authority
- CN
- China
- Prior art keywords
- packet
- packets
- domain names
- network
- data packet
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000015654 memory Effects 0.000 claims abstract description 17
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 5
- 238000012544 monitoring process Methods 0.000 claims abstract description 5
- 230000006870 function Effects 0.000 claims description 60
- 238000012545 processing Methods 0.000 claims description 31
- 238000001914 filtration Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 10
- 230000032683 aging Effects 0.000 claims description 5
- 239000012634 fragment Substances 0.000 description 27
- 238000004891 communication Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明具体涉及一种精准匹配域名及可变域名与IP的方法。The present invention specifically relates to a method for accurately matching domain names and variable domain names with IPs.
背景技术Background technique
随着终端用户5G时代的到来,流量控制可以有效的防止由于网络中瞬间的大量数据对网络带来的冲击,保证用户网络高效而稳定的运行。With the advent of the 5G era for end users, traffic control can effectively prevent the impact of large amounts of data on the network in an instant, ensuring efficient and stable operation of the user network.
传统数据链路层及网络层的网络流量控制,主要依靠三种可靠协议:停止-等待协议(SW)、回退N帧协议(GBN)、选择重传协议(SR)。随着网络的不断发展,二层的流控实际上不太容易满足需求,一方面与应用脱节,一方面如果发送和接收方之间存在多点的情况,那么流控还需要进行多点控制,所以自然而然就把这个业务往上层丢。目前更多的是基于会话层、表示层及应用层做流量控制,基本是流量控制只针对IP与端口进行控制,这在基于服务型的网络环境中是没有问题的,但是在终端上还会存在NAT隐藏公网IP,导致NAT穿越技术广泛使用,以及基于CDN的分发网络。The traditional data link layer and network layer network traffic control mainly rely on three reliable protocols: stop-wait protocol (SW), back-off N frame protocol (GBN), and selective repeat protocol (SR). With the continuous development of the network, the second-layer flow control is not easy to meet the needs. On the one hand, it is disconnected from the application. On the other hand, if there are multiple points between the sender and the receiver, the flow control also needs to be controlled at multiple points, so naturally this business is thrown to the upper layer. At present, more flow control is based on the session layer, presentation layer, and application layer. Basically, flow control is only for IP and port control. This is not a problem in a service-based network environment, but there will still be NAT hiding the public network IP on the terminal, resulting in the widespread use of NAT traversal technology and CDN-based distribution networks.
发明内容Summary of the invention
本发明的目的在于提供一种精准匹配域名及可变域名与IP的方法,以解决上述背景技术中提出的问题。The purpose of the present invention is to provide a method for accurately matching domain names and variable domain names with IP addresses, so as to solve the problems raised in the above-mentioned background technology.
为了解决上述技术问题,本发明提供如下技术方案:In order to solve the above technical problems, the present invention provides the following technical solutions:
精准匹配域名及可变域名与IP的方法,包括以下步骤:The method for accurately matching domain names and variable domain names with IPs includes the following steps:
监听所有指定网口的DNS端口采用libpcap抓包;The DNS ports that monitor all specified network ports are captured using libpcap;
通过移位运算区分IP/ARP/RARP包;Distinguish IP/ARP/RARP packets through shift operations;
解析IP包获取片偏移,通过偏移量计算得出Protocol上层为TCP/UDP/ICMP;Parse the IP packet to obtain the fragment offset, and calculate the upper layer of the Protocol as TCP/UDP/ICMP through the offset;
散列算法匹配query区下questions、answers值;The hash algorithm matches the questions and answers values under the query area;
获取DNS回包中的新的IP对应关系,通过共享内存实时给到流控,结束流程。Get the new IP correspondence in the DNS reply packet, give it to the flow control in real time through shared memory, and end the process.
进一步,还包括通过识别CDN分发网络中的IP衰老期,本地DNS二次获取CDN网络的全局负载均衡器提供的缓存服务器IP,修改IP头TOS生命周期&0xFF;获取DNS回包中的新的IP对应关系,结束流程。Furthermore, it also includes identifying the IP aging period in the CDN distribution network, the local DNS re-obtaining the cache server IP provided by the global load balancer of the CDN network, modifying the IP header TOS life cycle &0xFF; obtaining the new IP correspondence in the DNS response packet, and ending the process.
进一步,监听所有指定网口的DNS端口采用libpcap抓包的具体步骤,使用libpcap抓取所有指定网口的DNS端口数据包,包括打开网络设备:使用pcap_open_live()函数打开网络设备,设备名称通常为"eth0"或其他,设备类型为"net80281",数据链路层类型为"DLT_EN10MB",并指定网络设备接口的网络掩码;编译过滤策略:使用pcap_compile()函数将用户指定的过滤策略编译到过滤程序中;设置过滤器:使用pcap_setfilter()函数将上一步中编译好的过滤器应用到网络设备上;捕获数据包:使用pcap_loop()或pcap_dispatch()函数来捕获数据包;处理数据包:在回调函数中,可以对捕获到的数据包进行各种处理;关闭网络设备:当应用程序完成工作时,可以调用pcap_close()函数关闭网络设备,释放资源。Furthermore, the specific steps of monitoring the DNS ports of all specified network ports using libpcap packet capture are as follows: use libpcap to capture the DNS port data packets of all specified network ports, including opening the network device: use the pcap_open_live() function to open the network device, the device name is usually "eth0" or other, the device type is "net80281", the data link layer type is "DLT_EN10MB", and the network mask of the network device interface is specified; compile the filtering policy: use the pcap_compile() function to compile the user-specified filtering policy into the filtering program; set the filter: use the pcap_setfilter() function to apply the filter compiled in the previous step to the network device; capture data packets: use the pcap_loop() or pcap_dispatch() function to capture data packets; process data packets: in the callback function, various processing can be performed on the captured data packets; close the network device: when the application completes its work, the pcap_close() function can be called to close the network device and release resources.
进一步,通过移位运算区分IP/ARP/RARP包具体步骤:读取数据包:首先,需要从网络中读取数据包,使用libpcap库的pcap_loop()或pcap_dispatch()函数来实现,将捕获到的数据包传递给指定的回调函数进行处理;提取数据包头:在处理每个数据包时,需要提取其头部信息;IP数据包的头部包含版本、头部长度、服务类型、总长度、标识符、标志、片偏移量和生存时间(TTL)字段,ARP和RARP数据包的头部则包含不同的字段;判断协议类型:根据提取到的数据包头部信息,可以判断它是哪种协议的数据包;判断操作类型:对于ARP和RARP数据包,还需要判断其操作类型,ARP数据包的操作类型字段为0x0001表示是请求(Request),为0x0002表示是响应(Reply),RARP数据包的操坐类型字段为0x8035表示是请求(Request),为0x8036表示是响应(Reply);处理数据包:根据判断得出的协议类型和操作类型,可以对不同的数据包进行不同的处理。Furthermore, the specific steps of distinguishing IP/ARP/RARP packets by shift operation are as follows: Reading data packets: First, you need to read data packets from the network, which can be achieved by using the pcap_loop() or pcap_dispatch() function of the libpcap library, and passing the captured data packets to the specified callback function for processing; Extracting data packet headers: When processing each data packet, you need to extract its header information; the header of an IP data packet contains version, header length, service type, total length, identifier, flag, fragment offset, and time to live (TTL) fields, while the headers of ARP and RARP data packets contain different fields; Determine the protocol type: Based on the extracted packet header information, you can determine which protocol the packet is. Determine the operation type: For ARP and RARP packets, you also need to determine their operation type. The operation type field of the ARP packet is 0x0001, indicating a request, and 0x0002, indicating a response. The operation type field of the RARP packet is 0x8035, indicating a request, and 0x8036, indicating a response. Process packets: Different packets can be processed differently based on the determined protocol type and operation type.
进一步,要解析IP包并获取片偏移量,然后根据该偏移量计算得出协议上层为TCP、UDP或ICMP,具体步骤进行:读取IP包:首先,需要从网络中捕获IP包,捕获到的IP包将作为回调函数的参数传递给处理函数;解析IP包:在处理函数中,需要解析捕获到的IP包,IP包的结构包括版本、头部长度、服务类型、总长度、标识符、标志、片偏移量和生存时间(TTL)字段,可以使用结构体来表示IP包的各个字段;提取片偏移量:解析IP包后,可以提取出片偏移量字段;判断协议类型:根据片偏移量的值可以判断出协议类型;处理协议数据:根据判断得出的协议类型,可以对不同的协议数据进行不同的处理。Furthermore, it is necessary to parse the IP packet and obtain the fragment offset, and then calculate the upper layer of the protocol as TCP, UDP or ICMP based on the offset. The specific steps are as follows: Read the IP packet: First, the IP packet needs to be captured from the network, and the captured IP packet will be passed to the processing function as a parameter of the callback function; parse the IP packet: In the processing function, the captured IP packet needs to be parsed. The structure of the IP packet includes version, header length, service type, total length, identifier, flag, fragment offset and time to live (TTL) field. The structure can be used to represent the various fields of the IP packet; extract the fragment offset: after parsing the IP packet, the fragment offset field can be extracted; determine the protocol type: the protocol type can be determined based on the value of the fragment offset; process the protocol data: different protocol data can be processed differently based on the determined protocol type.
与现有技术相比,本发明的有益效果:Compared with the prior art, the present invention has the following beneficial effects:
本发明提供了一种精准匹配域名及最大程度覆盖网络流量与IP及CDN(可变IP)的关系,采用libpcap库可提高流控的可移植性及易操作性。The present invention provides a method for accurately matching domain names and maximally covering the relationship between network traffic and IP and CDN (variable IP), and the use of libpcap library can improve the portability and operability of flow control.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明精准匹配域名及可变域名(CDN)与IP的流程图;FIG1 is a flow chart of the present invention for accurately matching domain names and variable domain names (CDN) with IP;
图2为本发明识别CDN衰老期自动解绑对应关系流程图。FIG. 2 is a flow chart of the corresponding relationship of identifying the CDN aging period and automatically unbinding the CDN according to the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
如图1,精准匹配域名及可变域名与IP的方法,包括以下步骤:As shown in Figure 1, the method for accurately matching domain names and variable domain names with IP addresses includes the following steps:
①监听所有指定网口的DNS端口采用libpcap抓包;①Monitor the DNS ports of all designated network ports and use libpcap to capture packets;
②通过移位运算区分IP/ARP/RARP包;②Distinguish IP/ARP/RARP packets through shift operations;
③解析IP包获取片偏移,通过偏移量计算得出Protocol上层为TCP/UDP/ICMP;③ Parse the IP packet to obtain the fragment offset, and calculate the upper layer of the Protocol as TCP/UDP/ICMP through the offset;
④散列算法匹配query区下questions、answers等值;④Hash algorithm matches questions, answers and other values in the query area;
通过识别CDN分发网络中的IP衰老期,本地DNS二次获取CDN网络的全局负载均衡器提供的缓存服务器IP,修改IP头TOS生命周期&0xFF;获取DNS回包中的新的IP对应关系,结束流程。By identifying the IP aging period in the CDN distribution network, the local DNS obtains the cache server IP provided by the global load balancer of the CDN network for the second time, modifies the IP header TOS lifecycle &0xFF; obtains the new IP correspondence in the DNS reply packet, and ends the process.
监听所有指定网口的DNS端口采用libpcap抓包的具体步骤,使用libpcap抓取所有指定网口的DNS端口数据包,包括:1.打开网络设备:使用pcap_open_live()函数打开网络设备,设备名称通常为"eth0"或其他,设备类型为"net80281",数据链路层类型为"DLT_EN10MB",并指定网络设备接口的网络掩码。2.编译过滤策略:使用pcap_compile()函数将用户指定的过滤策略编译到过滤程序中。例如,如果只对DNS数据包感兴趣,可以使用过滤规则来过滤出UDP端口53的数据包。3.设置过滤器:使用pcap_setfilter()函数将上一步中编译好的过滤器应用到网络设备上,这样抓取的数据包将只包括符合过滤规则的数据。4.捕获数据包:使用pcap_loop()或pcap_dispatch()函数来捕获数据包。这些函数将按照指定的回调函数处理每个捕获到的数据包。如果需要更精细的控制,也可以使用pcap_next()或pcap_next_ex()函数来逐个获取数据包。5.处理数据包:在回调函数中,可以对捕获到的数据包进行各种处理,例如解析DNS记录、分析HTTP请求等。6.关闭网络设备:当应用程序完成工作时,可以调用pcap_close()函数关闭网络设备,释放资源。The specific steps of using libpcap to capture packets for the DNS ports of all specified network ports are as follows: 1. Open the network device: Use the pcap_open_live() function to open the network device. The device name is usually "eth0" or other, the device type is "net80281", the data link layer type is "DLT_EN10MB", and the network mask of the network device interface is specified. 2. Compile the filtering policy: Use the pcap_compile() function to compile the user-specified filtering policy into the filtering program. For example, if you are only interested in DNS packets, you can use filtering rules to filter out packets from UDP port 53. 3. Set the filter: Use the pcap_setfilter() function to apply the filter compiled in the previous step to the network device, so that the captured packets will only include data that meets the filtering rules. 4. Capture packets: Use the pcap_loop() or pcap_dispatch() function to capture packets. These functions will process each captured packet according to the specified callback function. If you need more precise control, you can also use the pcap_next() or pcap_next_ex() functions to get packets one by one. 5. Processing packets: In the callback function, you can perform various processing on the captured packets, such as resolving DNS records, analyzing HTTP requests, etc. 6. Turning off network devices: When the application finishes its work, you can call the pcap_close() function to turn off the network device and release resources.
通过移位运算区分IP/ARP/RARP包具体步骤:1.读取数据包:首先,需要从网络中读取数据包。这可以通过使用libpcap库的pcap_loop()或pcap_dispatch()函数来实现。这些函数将捕获到的数据包传递给指定的回调函数进行处理。2.提取数据包头:在处理每个数据包时,需要提取其头部信息。IP数据包的头部包含版本、头部长度、服务类型、总长度、标识符、标志、片偏移量和生存时间(TTL)等字段。ARP和RARP数据包的头部则包含不同的字段。3.判断协议类型:根据提取到的数据包头部信息,可以判断它是哪种协议的数据包。IP数据包的版本字段指示了它是IPv4还是IPv6数据包。如果版本字段为4,则是IPv4数据包;如果版本字段为6,则是IPv6数据包。ARP数据包的协议类型字段为0x0806,而RARP数据包的协议类型字段为0x8035。4.判断操作类型:对于ARP和RARP数据包,还需要判断其操作类型。ARP数据包的操作类型字段为0x0001表示是请求(Request),为0x0002表示是响应(Reply)。RARP数据包的操坐类型字段为0x8035表示是请求(Request),为0x8036表示是响应(Reply)。5.处理数据包:根据判断得出的协议类型和操作类型,可以对不同的数据包进行不同的处理。例如,对于IP数据包,可以解析其头部信息并提取出IP地址和端口号等;对于ARP和RARP数据包,则可以提取其硬件地址信息并进行相应的处理。以上是通过移位运算区分IP、ARP和RARP数据包的步骤。Distinguish IP/ARP/RARP packets by shift operation Specific steps: 1. Read data packets: First, you need to read data packets from the network. This can be achieved by using the pcap_loop() or pcap_dispatch() function of the libpcap library. These functions pass the captured data packets to the specified callback function for processing. 2. Extract the data packet header: When processing each data packet, you need to extract its header information. The header of the IP data packet contains fields such as version, header length, service type, total length, identifier, flag, fragment offset, and survival time (TTL). The headers of ARP and RARP data packets contain different fields. 3. Determine the protocol type: Based on the extracted data packet header information, you can determine which protocol it is. The version field of the IP data packet indicates whether it is an IPv4 or IPv6 data packet. If the version field is 4, it is an IPv4 data packet; if the version field is 6, it is an IPv6 data packet. The protocol type field of the ARP data packet is 0x0806, while the protocol type field of the RARP data packet is 0x8035. 4. Determine the operation type: For ARP and RARP data packets, you also need to determine their operation type. The operation type field of the ARP data packet is 0x0001, indicating a request, and 0x0002, indicating a response. The operation type field of the RARP data packet is 0x8035, indicating a request, and 0x8036, indicating a response. 5. Processing data packets: Different data packets can be processed differently based on the determined protocol type and operation type. For example, for IP data packets, their header information can be parsed and the IP address and port number can be extracted; for ARP and RARP data packets, their hardware address information can be extracted and processed accordingly. The above are the steps to distinguish IP, ARP, and RARP data packets through shift operations.
要解析IP包并获取片偏移量,然后根据该偏移量计算得出协议上层为TCP、UDP或ICMP,具体步骤进行:1.读取IP包:首先,需要从网络中捕获IP包。这可以通过使用libpcap库的pcap_loop()或pcap_dispatch()函数来实现。捕获到的IP包将作为回调函数的参数传递给处理函数。2.解析IP包:在处理函数中,需要解析捕获到的IP包。IP包的结构包括版本、头部长度、服务类型、总长度、标识符、标志、片偏移量和生存时间(TTL)等字段。可以使用结构体来表示IP包的各个字段。3.提取片偏移量:解析IP包后,可以提取出片偏移量字段。片偏移量指示了IP数据报在分片中的偏移位置。根据该偏移量可以判断出IP数据报是否被分片以及分片的顺序。4.判断协议类型:根据片偏移量的值可以判断出协议类型。一般来说,如果片偏移量为0,则协议类型为TCP;如果片偏移量为40,则协议类型为UDP;如果片偏移量为8,则协议类型为ICMP。当然,这并不是绝对的,因为不同的操作系统或网络环境可能会有所不同。因此,最好结合其他字段来进行协议类型的判断。5.处理协议数据:根据判断得出的协议类型,可以对不同的协议数据进行不同的处理。例如,如果协议类型为TCP,则可以提取TCP头部信息并解析出端口号和序列号等;如果协议类型为UDP,则可以提取UDP头部信息并解析出端口号等;如果协议类型为ICMP,则可以提取ICMP头部信息并解析出类型、代码和校验和等。To parse the IP packet and get the fragment offset, and then calculate the upper layer of the protocol as TCP, UDP or ICMP based on the offset, the specific steps are as follows: 1. Read the IP packet: First, you need to capture the IP packet from the network. This can be achieved by using the pcap_loop() or pcap_dispatch() function of the libpcap library. The captured IP packet will be passed to the processing function as a parameter of the callback function. 2. Parse the IP packet: In the processing function, you need to parse the captured IP packet. The structure of the IP packet includes fields such as version, header length, service type, total length, identifier, flag, fragment offset and time to live (TTL). The structure can be used to represent the various fields of the IP packet. 3. Extract the fragment offset: After parsing the IP packet, you can extract the fragment offset field. The fragment offset indicates the offset position of the IP datagram in the fragment. Based on the offset, you can determine whether the IP datagram is fragmented and the order of the fragments. 4. Determine the protocol type: The protocol type can be determined based on the value of the fragment offset. Generally speaking, if the fragment offset is 0, the protocol type is TCP; if the fragment offset is 40, the protocol type is UDP; if the fragment offset is 8, the protocol type is ICMP. Of course, this is not absolute, because different operating systems or network environments may be different. Therefore, it is best to combine other fields to determine the protocol type. 5. Processing protocol data: Different protocol data can be processed differently according to the determined protocol type. For example, if the protocol type is TCP, the TCP header information can be extracted and the port number and sequence number can be parsed out; if the protocol type is UDP, the UDP header information can be extracted and the port number can be parsed out; if the protocol type is ICMP, the ICMP header information can be extracted and the type, code, and checksum can be parsed out.
本发明提供了一种精准匹配域名及最大程度覆盖网络流量与IP及CDN(可变IP)的关系,采用libpcap库可提高流控的可移植性及易操作性。The present invention provides a method for accurately matching domain names and maximally covering the relationship between network traffic and IP and CDN (variable IP). The use of the libpcap library can improve the portability and operability of flow control.
本申请需要保护的实施例包括:The embodiments that require protection in this application include:
精准匹配域名及可变域名与IP的方法,包括以下步骤:The method for accurately matching domain names and variable domain names with IPs includes the following steps:
监听所有指定网口的DNS端口采用libpcap抓包;The DNS ports that monitor all specified network ports are captured using libpcap;
通过移位运算区分IP/ARP/RARP包;Distinguish IP/ARP/RARP packets through shift operations;
解析IP包获取片偏移,通过偏移量计算得出Protocol上层为TCP/UDP/ICMP;Parse the IP packet to obtain the fragment offset, and calculate the upper layer of the Protocol as TCP/UDP/ICMP through the offset;
散列算法匹配query区下questions、answers值;The hash algorithm matches the questions and answers values in the query area;
获取DNS回包中的新的IP对应关系,通过共享内存实时给到流控,结束流程。Get the new IP correspondence in the DNS reply packet, give it to the flow control in real time through shared memory, and end the process.
优选地,还包括通过识别CDN分发网络中的IP衰老期,本地DNS二次获取CDN网络的全局负载均衡器提供的缓存服务器IP,修改IP头TOS生命周期&0xFF;获取DNS回包中的新的IP对应关系,结束流程。Preferably, it also includes identifying the IP aging period in the CDN distribution network, the local DNS secondary obtaining the cache server IP provided by the global load balancer of the CDN network, modifying the IP header TOS life cycle &0xFF; obtaining the new IP correspondence in the DNS response packet, and ending the process.
优选地,监听所有指定网口的DNS端口采用libpcap抓包的具体步骤,使用libpcap抓取所有指定网口的DNS端口数据包,包括打开网络设备:使用pcap_open_live()函数打开网络设备,设备名称通常为"eth0"或其他,设备类型为"net80281",数据链路层类型为"DLT_EN10MB",并指定网络设备接口的网络掩码;编译过滤策略:使用pcap_compile()函数将用户指定的过滤策略编译到过滤程序中;设置过滤器:使用pcap_setfilter()函数将上一步中编译好的过滤器应用到网络设备上;捕获数据包:使用pcap_loop()或pcap_dispatch()函数来捕获数据包;处理数据包:在回调函数中,可以对捕获到的数据包进行各种处理;关闭网络设备:当应用程序完成工作时,可以调用pcap_close()函数关闭网络设备,释放资源。Preferably, the specific steps of monitoring the DNS ports of all designated network ports using libpcap to capture packets are as follows, and libpcap is used to capture the DNS port data packets of all designated network ports, including opening the network device: using the pcap_open_live() function to open the network device, the device name is usually "eth0" or other, the device type is "net80281", the data link layer type is "DLT_EN10MB", and the network mask of the network device interface is specified; compiling the filtering policy: using the pcap_compile() function to compile the user-specified filtering policy into the filtering program; setting the filter: using the pcap_setfilter() function to apply the filter compiled in the previous step to the network device; capturing data packets: using the pcap_loop() or pcap_dispatch() function to capture data packets; processing data packets: in the callback function, various processing can be performed on the captured data packets; closing the network device: when the application completes its work, the pcap_close() function can be called to close the network device and release resources.
优选地,通过移位运算区分IP/ARP/RARP包具体步骤:读取数据包:首先,需要从网络中读取数据包,使用libpcap库的pcap_loop()或pcap_dispatch()函数来实现,将捕获到的数据包传递给指定的回调函数进行处理;提取数据包头:在处理每个数据包时,需要提取其头部信息;IP数据包的头部包含版本、头部长度、服务类型、总长度、标识符、标志、片偏移量和生存时间(TTL)字段,ARP和RARP数据包的头部则包含不同的字段;判断协议类型:根据提取到的数据包头部信息,可以判断它是哪种协议的数据包;判断操作类型:对于ARP和RARP数据包,还需要判断其操作类型,ARP数据包的操作类型字段为0x0001表示是请求(Request),为0x0002表示是响应(Reply),RARP数据包的操坐类型字段为0x8035表示是请求(Request),为0x8036表示是响应(Reply);处理数据包:根据判断得出的协议类型和操作类型,可以对不同的数据包进行不同的处理。Preferably, the specific steps of distinguishing IP/ARP/RARP packets by shift operation are as follows: Reading data packets: First, it is necessary to read data packets from the network, which is implemented by using the pcap_loop() or pcap_dispatch() function of the libpcap library, and passing the captured data packets to the specified callback function for processing; Extracting data packet headers: When processing each data packet, it is necessary to extract its header information; the header of the IP data packet contains version, header length, service type, total length, identifier, flag, fragment offset and time to live (TTL) fields, while the headers of the ARP and RARP data packets contain different fields; Determine the protocol type: Based on the extracted packet header information, you can determine which protocol the packet is. Determine the operation type: For ARP and RARP packets, you also need to determine their operation type. The operation type field of the ARP packet is 0x0001, indicating a request (Request), and 0x0002, indicating a response (Reply). The operation type field of the RARP packet is 0x8035, indicating a request (Request), and 0x8036, indicating a response (Reply). Process packets: Different packets can be processed differently based on the determined protocol type and operation type.
优选地,要解析IP包并获取片偏移量,然后根据该偏移量计算得出协议上层为TCP、UDP或ICMP,具体步骤进行:读取IP包:首先,需要从网络中捕获IP包,捕获到的IP包将作为回调函数的参数传递给处理函数;解析IP包:在处理函数中,需要解析捕获到的IP包,IP包的结构包括版本、头部长度、服务类型、总长度、标识符、标志、片偏移量和生存时间(TTL)字段,可以使用结构体来表示IP包的各个字段;提取片偏移量:解析IP包后,可以提取出片偏移量字段;判断协议类型:根据片偏移量的值可以判断出协议类型;处理协议数据:根据判断得出的协议类型,可以对不同的协议数据进行不同的处理。Preferably, it is necessary to parse the IP packet and obtain the fragment offset, and then calculate the upper layer of the protocol as TCP, UDP or ICMP based on the offset. The specific steps are as follows: read the IP packet: first, it is necessary to capture the IP packet from the network, and the captured IP packet will be passed to the processing function as a parameter of the callback function; parse the IP packet: in the processing function, it is necessary to parse the captured IP packet, and the structure of the IP packet includes version, header length, service type, total length, identifier, flag, fragment offset and time to live (TTL) field, and a structure can be used to represent each field of the IP packet; extract the fragment offset: after parsing the IP packet, the fragment offset field can be extracted; determine the protocol type: the protocol type can be determined according to the value of the fragment offset; process the protocol data: according to the determined protocol type, different protocol data can be processed differently.
本申请实施例还提供了一种计算机设备,可以包括终端设备或服务器,前述的精准匹配域名及可变域名与IP的方法的数据计算程序可以配置在该计算机设备中。下面对该计算机设备进行介绍。The embodiment of the present application further provides a computer device, which may include a terminal device or a server, and the data calculation program of the aforementioned method of accurately matching domain names and variable domain names with IP addresses may be configured in the computer device. The computer device is introduced below.
若该计算机设备为终端设备,本申请实施例提供了一种终端设备,以终端设备为手机为例:If the computer device is a terminal device, the present application embodiment provides a terminal device, taking the terminal device as a mobile phone as an example:
手机包括:射频(Radio Frequency,简称RF)电路、存储器、输入单元、显示单元、传感器、音频电路、无线保真(Wireless Fidelity,简称WiFi)模块、处理器、以及电源等部件。The mobile phone includes components such as a radio frequency (RF) circuit, a memory, an input unit, a display unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a processor, and a power supply.
RF电路可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,简称LNA)、双工器等。此外,RF电路还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,简称GSM)、通用分组无线服务(GeneralPacket Radio Service,简称GPRS)、码分多址(Code Division Multiple Access,简称CDMA)、宽带码分多址(Wideband Code Division Multiple Access,简称WCDMA)、长期演进(Long TermEvolution,简称LTE)、电子邮件、短消息服务(Short Messaging Service,简称SMS)等。RF circuits can be used to receive and send signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is processed by the processor; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储按照手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store software programs and modules. The processor executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
输入单元可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元可包括触控面板以及其他输入设备。触控面板,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并按照预先设定的程式驱动相应的连接装置。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器,并能接收处理器发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板。除了触控面板,输入单元还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit may include a touch panel and other input devices. The touch panel, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact coordinates, and then sends it to the processor, and can receive the command sent by the processor and execute it. In addition, the touch panel can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel, the input unit may also include other input devices. Specifically, other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc.
显示单元可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元可包括显示面板,可选的,可以采用液晶显示器(LiquidCrystal Display,简称LCD)、有机发光二极管(Organic Light-Emitting Diode,简称OLED)等形式来配置显示面板。进一步的,触控面板可覆盖显示面板,当触控面板检测到在其上或附近的触摸操作后,传送给处理器以确定触摸事件的类型,随后处理器按照触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图中,触控面板与显示面板是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板与显示面板集成而实现手机的输入和输出功能。The display unit can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit may include a display panel, and optionally, a liquid crystal display (LiquidCrystal Display, LCD for short), an organic light-emitting diode (Organic Light-Emitting Diode, OLED for short) and the like can be used to configure the display panel. Further, the touch panel can cover the display panel, and when the touch panel detects a touch operation on or near it, it is transmitted to the processor to determine the type of touch event, and then the processor provides corresponding visual output on the display panel according to the type of touch event. Although in the figure, the touch panel and the display panel are used as two independent components to realize the input and output functions of the mobile phone, in some embodiments, the touch panel and the display panel can be integrated to realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可按照环境光线的明暗来配置显示面板的亮度,接近传感器可在手机移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile phone may also include at least one sensor, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may configure the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
音频电路、扬声器,传声器可提供用户与手机之间的音频接口。音频电路可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路接收后转换为音频数据,再将音频数据输出处理器处理后,经RF电路以发送给比如另一手机,或者将音频数据输出至存储器以便进一步处理。The audio circuit, speaker, and microphone can provide an audio interface between the user and the mobile phone. The audio circuit can convert the received audio data into an electrical signal and transmit it to the speaker, which converts it into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit and converted into audio data. The audio data is then processed by the output processor and sent to, for example, another mobile phone through the RF circuit, or the audio data is output to the memory for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图示出了WiFi模块,但是可以理解的是,其并不属于手机的必须构成,完全可以按照需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. A mobile phone can help users send and receive emails, browse web pages, and access streaming media through a WiFi module, which provides users with wireless broadband Internet access. Although the WiFi module is shown in the figure, it is understandable that it is not a necessary component of the mobile phone and can be omitted as needed without changing the essence of the invention.
处理器是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器可包括一个或多个处理单元;优选的,处理器可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器中。The processor is the control center of the mobile phone. It uses various interfaces and lines to connect the various parts of the entire mobile phone. It executes various functions of the mobile phone and processes data by running or executing software programs and/or modules stored in the memory, and calling data stored in the memory, so as to monitor the mobile phone as a whole. Optionally, the processor may include one or more processing units; preferably, the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor.
手机还包括给各个部件供电的电源(比如电池),优选的,电源可以通过电源管理系统与处理器逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power source (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
在本实施例中,该终端设备所包括的处理器还具有以下功能:In this embodiment, the processor included in the terminal device also has the following functions:
执行精准匹配域名及可变域名与IP的方法的数据计算程序。A data calculation program that performs methods for accurately matching domain names and variable domain names with IP addresses.
若计算机设备为服务器,本申请实施例还提供一种服务器,服务器可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(Central ProcessingUnits,简称CPU)(例如,一个或一个以上处理器)和存储器,一个或一个以上存储应用程序或数据的存储介质(例如一个或一个以上海量存储设备)。其中,存储器和存储介质可以是短暂存储或持久存储。存储在存储介质的程序可以包括一个或一个以上模块,每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器可以设置为与存储介质通信,在服务器上执行存储介质中的一系列指令操作。If the computer device is a server, an embodiment of the present application also provides a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) (for example, one or more processors) and memories, and one or more storage media for storing applications or data (for example, one or more mass storage devices). Among them, the memory and the storage medium can be short-term storage or permanent storage. The program stored in the storage medium may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit can be configured to communicate with the storage medium and execute a series of instruction operations in the storage medium on the server.
服务器还可以包括一个或一个以上电源,一个或一个以上有线或无线网络接口,一个或一个以上输入输出接口,和/或,一个或一个以上操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The server may also include one or more power supplies, one or more wired or wireless network interfaces, one or more input and output interfaces, and/or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
另外,本申请实施例还提供了一种存储介质,所述存储介质用于存储计算机程序,所述计算机程序用于执行上述实施例提供的方法。In addition, an embodiment of the present application further provides a storage medium, wherein the storage medium is used to store a computer program, and the computer program is used to execute the method provided in the above embodiment.
本申请实施例还提供了一种包括指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例提供的方法。The embodiments of the present application also provide a computer program product including instructions, which, when executed on a computer, enables the computer to execute the method provided in the above embodiments.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质可以是下述介质中的至少一种:只读存储器(英文:Read-only Memory,缩写:ROM)、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (English: Read-only Memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于设备及系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员不付出创造性劳动的情况下即可以理解并实施。It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410189197.1A CN118075227B (en) | 2024-02-20 | 2024-02-20 | Method for accurately matching domain name and variable domain name and IP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410189197.1A CN118075227B (en) | 2024-02-20 | 2024-02-20 | Method for accurately matching domain name and variable domain name and IP |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118075227A true CN118075227A (en) | 2024-05-24 |
CN118075227B CN118075227B (en) | 2024-10-29 |
Family
ID=91110691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410189197.1A Active CN118075227B (en) | 2024-02-20 | 2024-02-20 | Method for accurately matching domain name and variable domain name and IP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118075227B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025799A (en) * | 2010-12-17 | 2011-04-20 | 北京东土科技股份有限公司 | Method for discovery and automatic configuration for IP address of device |
CN102056235A (en) * | 2009-11-09 | 2011-05-11 | 华为技术有限公司 | Data transmission method, equipment and system |
US20200099600A1 (en) * | 2018-09-24 | 2020-03-26 | Cybereason, Inc. | Correlating network traffic to their OS processes using packet capture libraries and kernel monitoring mechanisms |
CN114006956A (en) * | 2021-10-29 | 2022-02-01 | 杭州迪普信息技术有限公司 | Message data analysis method, device and device |
CN115022278A (en) * | 2022-06-02 | 2022-09-06 | 上海哔哩哔哩科技有限公司 | CDN processing method and system |
US20230108054A1 (en) * | 2020-06-04 | 2023-04-06 | Huawei Technologies Co., Ltd. | Packet forwarding method and apparatus, device, and storage medium |
CN116418689A (en) * | 2023-04-18 | 2023-07-11 | 曙光网络科技有限公司 | Request message response method and device, electronic equipment and storage medium |
-
2024
- 2024-02-20 CN CN202410189197.1A patent/CN118075227B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102056235A (en) * | 2009-11-09 | 2011-05-11 | 华为技术有限公司 | Data transmission method, equipment and system |
CN102025799A (en) * | 2010-12-17 | 2011-04-20 | 北京东土科技股份有限公司 | Method for discovery and automatic configuration for IP address of device |
US20200099600A1 (en) * | 2018-09-24 | 2020-03-26 | Cybereason, Inc. | Correlating network traffic to their OS processes using packet capture libraries and kernel monitoring mechanisms |
US20230108054A1 (en) * | 2020-06-04 | 2023-04-06 | Huawei Technologies Co., Ltd. | Packet forwarding method and apparatus, device, and storage medium |
CN114006956A (en) * | 2021-10-29 | 2022-02-01 | 杭州迪普信息技术有限公司 | Message data analysis method, device and device |
CN115022278A (en) * | 2022-06-02 | 2022-09-06 | 上海哔哩哔哩科技有限公司 | CDN processing method and system |
CN116418689A (en) * | 2023-04-18 | 2023-07-11 | 曙光网络科技有限公司 | Request message response method and device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
你回到了你的家: "libpcap详解", pages 1, Retrieved from the Internet <URL:https://blog.csdn.net/kking_edc/article/details/118942117> * |
Also Published As
Publication number | Publication date |
---|---|
CN118075227B (en) | 2024-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113518085B (en) | Data transmission method based on multiple channels and related device | |
CN103905885B (en) | Net cast method and device | |
WO2017020663A1 (en) | Live-comment video live broadcast method and apparatus, video source device, and network access device | |
CN108040091B (en) | Data processing method, device and storage medium | |
CN110716850B (en) | Page testing method, device and system and storage medium | |
CN107332976B (en) | Karaoke method, device, equipment and system | |
CN106126174B (en) | A kind of control method and electronic equipment of scene audio | |
EP3179693B1 (en) | Method, apparatus, storage medium and computer program product for establishing a data connection | |
CN104967608B (en) | Play method, mobile terminal and the fixed terminal of multimedia file | |
CN105959481B (en) | Scene sound effect control method and electronic equipment | |
CN113950125B (en) | Method, device and storage medium for accelerating network in application program | |
CN111444237A (en) | Server system, data transmission method and electronic equipment | |
CN109039989B (en) | Address resolution protocol spoofing detection method, host and computer-readable storage medium | |
WO2020147645A1 (en) | Link aggregation realization method and related product | |
CN109640379B (en) | Link aggregation implementation method and related product | |
WO2015014178A1 (en) | Session processing method and device,server and storage medium | |
CN109067751B (en) | ARP spoofing detection method and device under non-Root environment and terminal | |
CN108011937A (en) | Information push method, server, intelligent terminal and computer-readable recording medium | |
CN116708309A (en) | Bandwidth allocation method, device, equipment and storage medium | |
CN110099428B (en) | Wireless fidelity WiFi network access method, device and terminal | |
CN106534877B (en) | A kind of method and device sending Media Stream | |
CN118075227B (en) | Method for accurately matching domain name and variable domain name and IP | |
CN105681370B (en) | File synchronisation method, server and client | |
CN103686317B (en) | television channel playing method and device | |
CN111083009B (en) | Packet capturing method and device and mobile terminal |
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 |