The difference between a network and a distributed cluster system: Each node is a single computer, not a functional device within a variety of computers.
IP: Has global uniqueness, as opposed to INTERNET,IP as a logical address.
Port: There can be 65,536 ports in a PC, and processes exchange data over ports. When connecting, you need to enter the IP and enter the port information.
The computer communicates the actual process communication between the hosts, and the process communication needs to be contacted on the port.
192.168.0.23:21
Protocol: A rule, standard, or convention established for data Exchange (communication) in a network.
The protocols of different layers are different.
1 Packagetomtexts;2 3 Public classtomtexts_29 {4 Public Static voidMain (string[] args)5 {6StringBuffer s1=NewStringBuffer ();7S1.append ("hello,java!");8System.out.println ("s1=" +s1);9StringBuffer s2=NewStringBuffer (10 );TenS2.insert (0, "hello,java!"); OneSystem.out.println ("s2=" +S2); AStringBuffer s3=NewStringBuffer ("hello,java!"); -System.out.println ("s3=" +S3); - } the -}
Global uniqueness, relative to INTERNET,IP as logical address