Compared with TCP, we know that UDP is an unreliable transmission protocol. We still have a lot to do with this Protocol. Because its transmission mode and speed are incomparable to TCP. Let's take a closer look at this agreement.
1. Brief Introduction to UDP
UDP is a transp
= inet_addr ("127.0.0.1");
Recv_host.sin_port = htons (6000);
/* Send information/
* Here, the sender's IP address and port number and other types of information, with this function of the call, automatically bound on the socket
/sendto (sock, mess, strlen (mess), 0, (struct SOCKADDR *) recv_host, sizeof (Recv_host));
/* completed, closed
/close (sock);
The above code is the sender side.
Code Explanation: The INET_ADDR function is an address type that converts an IP address
malicious attack.
Most firewalls now know SYN/FIN packets, and some other combinations, such as SYN/FIN/PSH, SYN/FIN/RST, SYN/FIN/RST/PSH. Obviously, when such a package appears on the network
Your network must have been attacked.
Other known illegal packages include FIN (no ACK mark) and NULL. As discussed earlier, because ACK/FIN packets are generated to close a TCP connection, normal FIN packets always contain ACK
Mark. A "NULL" packet is a packet without any TCP flag (URG, ACK, PSH, RST
frame to a certain amount, and then interrupt the CPU once, then interrupt for polling, details please refer to the Intel IGB e1000e driver README.5. Layered processing style of the protocol stackThe design of the protocol stack is layered, which does not mean that the implementation of the protocol stack must also be layered.Early implementations, or implementa
, Wanchaoca can be in the network card chip in the Shard, reorganization. Then interrupt the CPU. At the same time it is also possible to accumulate data frames to a certain amount and then interrupt the CPU once. The next interrupt is polling. See the Intel IGB e1000e driver Readme for details.5. The Layered processing style protocol stack design is layered, which does not mean that the implementation of the prot
then interrupt the CPU once, then interrupt for polling, details please refer to the Intel IGB e1000e driver README.5. The Layered processing style protocol stack design is layered, which does not mean that the implementation of the protocol stack must also be layered.Early implementations, or implementations that were affected by early implementations, such as UNIX's streaming modules, such as the NDIS fr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.