Abstract:
A method for processing packets, an electronic device and a storage medium are proposed. The present invention presets a defense module preventing DoS in the mobile terminal. A connection requesting side establishes connection with the defense module according to three-handshake principle of TCP, and a defense module sends a SYN packet to a mobile terminal as the connection requesting side. When the defense module successfully handshakes with the mobile terminal, connection between the connection requesting side and the mobile terminal is created, so that DoS attack, especially SYN attack can be effectively prevented. When mobile terminals, especially mobile phones are network hotspot, attack on internal mobile terminal from external network can be effectively prevented.
Abstract:
A method for processing packets, an electronic device and a storage medium are proposed. The present invention presets a defense module preventing DoS in the mobile terminal. A connection requesting side establishes connection with the defense module according to three-handshake principle of TCP, and a defense module sends a SYN packet to a mobile terminal as the connection requesting side. When the defense module successfully handshakes with the mobile terminal, connection between the connection requesting side and the mobile terminal is created, so that DoS attack, especially SYN attack can be effectively prevented. When mobile terminals, especially mobile phones are network hotspot, attack on internal mobile terminal from external network can be effectively prevented.
Abstract:
A method for a mobile terminal to access a network through a cell phone is provided. The mobile terminal may be connected to a network enabled cell phone via a WIFI (wireless fidelity) connection mode, and the network enabled cell phone may serve as a gateway router. TCP/IP (transmission control protocol/internet protocol) operating principle having element information, such as source address, source port, protocol, destination address and destination port in a data packet, may be processed when a data packet arrives at a network layer of a network enabled cell phone. A Hash table may be dynamically established for searching a network connection, and NAT (network address translation) treatment may be carried out to a data packet, thus, an associated mobile terminal may simultaneously access the network with the network enabled cell phone by the external network IP address of the network enabled cell phone. Because the two devices may share an IP address to access the network, all the network flow may be generated at the gateway cell phone, thus, avoiding cost of other devices. Furthermore, a Hash table may be dynamically established for the data packet in the present invention, which may accelerate search speed of a data packet and processing speed.
Abstract:
A method for a mobile terminal to access a network through a cell phone is provided. The mobile terminal may be connected to a network enabled cell phone via a WIFI (wireless fidelity) connection mode, and the network enabled cell phone may serve as a gateway router. TCP/IP (transmission control protocol/internet protocol) operating principle having element information, such as source address, source port, protocol, destination address and destination port in a data packet, may be processed when a data packet arrives at a network layer of a network enabled cell phone. A Hash table may be dynamically established for searching a network connection, and NAT (network address translation) treatment may be carried out to a data packet, thus, an associated mobile terminal may simultaneously access the network with the network enabled cell phone by the external network IP address of the network enabled cell phone. Because the two devices may share an IP address to access the network, all the network flow may be generated at the gateway cell phone, thus, avoiding cost of other devices. Furthermore, a Hash table may be dynamically established for the data packet in the present invention, which may accelerate search speed of a data packet and processing speed.