home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / protocol / tcpip / 4279 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  2.0 KB

  1. Path: sparky!uunet!nntp1.radiomail.net!cronos!Metaphor.COM!pstevens
  2. From: pstevens@Metaphor.COM (Paul Stevens)
  3. Newsgroups: comp.protocols.tcp-ip
  4. Subject: Broadcasting and Subnets
  5. Message-ID: <2490@cronos.metaphor.com>
  6. Date: 3 Sep 92 00:36:00 GMT
  7. Sender: news@cronos.metaphor.com
  8. Reply-To: pstevens@Metaphor.COM (Paul Stevens)
  9. Organization: m4
  10. Lines: 35
  11.  
  12. After looking in all the usual places (Comer, Stevens, Tanenbaum) 
  13. there's still some loose ends I don't quite understand.
  14.  
  15. When I want to send a broadcast packet to all stations on a net or
  16. subnet I set the IP address so that it contains the network/subnet
  17. numbers but set the host portion to all 1's.  This is, of course,
  18. net/subnet OR'ed with the inverse of the subnet mask.  Presumably 
  19. this style of addressing even works for a net/subnet that might be
  20. several hops away (i.e. the routers along the route will use the 
  21. net/subnet fields of the IP address to route the packet to the proper
  22. net/subnet).  My basic question concerns how to get a the correct
  23. subnet mask.
  24.  
  25. Comer discusses using an ICMP message that can be sent to a gateway 
  26. to learn the subnet mask for a given network, but doesn't list any 
  27. programatic interfaces to this type of query.
  28.  
  29. What I don't understand is how networks and subnets get *named*.
  30. The documentation on getnetbyname seems to imply that it uses
  31. /etc/networks to return information and also does not give the subnet
  32. mask.
  33.  
  34. Is this all hooked into Domain Name Servers somehow?  I know that
  35. locally on a Unix system one could use the combination of /etc/networks
  36. and /etc/netmasks to get this information.  But that implies that
  37. each host would have to have these files kept up-to-date for all nets
  38. that might be communicated with.  There must be a missing piece here
  39. that allows these things to be administered more centrally and for
  40. inquiries to be made remotely.
  41.  
  42. +------------------------------------------------------------------------+
  43.  
  44.    Paul Stevens                        {apple|decwrl}!metaphor!pstevens
  45.    Metaphor Computer Systems           pstevens@metaphor.com
  46.    Mountain View, CA
  47.