25. UDP and TCP
UDP (Universal Datagram Protocol) and TCP (Transmission Control Protocol)
Properties
UDP - 1 unit, unidirectional, stateless, unreliable, less overhead than TCP and faster. Use for local info (i.e. staying within local area), such as: (Rip and rdisc use UDP)
TCP - Continuous, bi-directional, confirms receipt of packet, Requests transmission to be faster or slower, if not received, retransmits, simple program, focuses on data not delivery, sequence number tells order of packet, acknowledges packets, fin (closes connection) and syn (start at seq 0)
Ports 0-1023 ports are reserved for root. These numbers are to tell who is sending requests for services. The computer receiving requests looks at .rhost (in local home dir) to find allowed users/hosts.
The receiving machine can verify packet by looking at IP layer, for hosts. The application layer claims to be a valid user, but it can be changed, so rsh says if sending user/hosts port number is greater than 1024, it wont use package, rsh is very unsecure.
Sample of inetd.conf: Service [protocol used] [owner] [what process to start] [cmd line] i.e. service stream tcp nowait root /usr/sbin/in.telnet.d in.telnetd
To start daemons
Go to Chapter 24
Go to Index
Go to Chapter 26