Network : Linking computers from different regions to a LAN, metropolitan area network, internet
IP address : Each device in the network will have a unique digital ID is the IP address, one IP address can correspond to multiple domain names, a domain name can only correspond to one IP address
Port : Used to differentiate the software on the computer from 2 bytes in 0-65535 the same network protocol port number cannot be the same as 1024 the port number below is reserved to the service provider's best not to use
URI: Unified Resources
URL: Unified Resource Targeting
Url= protocol + Host domain + Port + resource file hosting the resource
Protocol for data transfer
TCP protocol: First establish the link and then carry out the data transmission security efficiency low-oriented link; Ensure that the receiving party obtains all the data sent by the sender completely and correctly;
TCP has no data size limitations, and once the connection is established, the sockets on both sides can transmit large amounts of data in a uniform format.
UDP protocol: There is no need to establish link efficiency when communicating with each other; the datagram sent by the sender does not necessarily reach the receiving party in the same order;
UDP transmits data with a size limit, and each transmitted datagram must be limited to 64KB.
data transfer : First package and then disassemble
Java Network programming