all the ports which need specifc to which protocol was mentioned in the /etc/services
if you need to add new ports to yur server you need to have the entry on this file..
#grep telnet /etc/services
telnet 23/tcp
this gave you that telnet connectio was comming thrugh port 23
netstat -a|grep telnet
gave all the telnet connection established and the ports listening to telnet connectionto the server
which means the telnet was working through the port 23 and which uses tcp
netstat -an
will gave yo all the connection to your server...