home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / protocol / tcpip / 6137 < prev    next >
Encoding:
Text File  |  1993-01-28  |  3.0 KB  |  75 lines

  1. Newsgroups: comp.protocols.tcp-ip
  2. Path: sparky!uunet!think.com!sdd.hp.com!hpscit.sc.hp.com!cupnews0.cup.hp.com!hppad.waterloo.hp.com!rypma
  3. From: rypma@waterloo.hp.com (Ted Rypma)
  4. Subject: Re: query about 2 subnets/1 segment and directed bcast
  5. Sender: news@waterloo.hp.com (NetNews)
  6. Message-ID: <C1JpKo.4r2@waterloo.hp.com>
  7. Date: Thu, 28 Jan 1993 03:55:36 GMT
  8. References: <6765@pdxgate.UUCP>
  9. Organization: HP Panacom Div Waterloo ON Canada
  10. X-Newsreader: TIN [version 1.1.4 PL6]
  11. Lines: 62
  12.  
  13. James Binkley (jrb@rigel.cs.pdx.edu) wrote:
  14. : Back to 2 subnets on 1 segment again:
  15. : ...
  16. : We have an experimental server on zymurgy that is sending 
  17. : out a directed broadcast on net 2 as 140.140.2.255. 
  18. : Zymurgy has the capability to have 2 ip addresses
  19. : attached to a single enet device.
  20. :         140.140.1.240
  21. :         140.140.2.240
  22. : It is sending the directed bcast out to 2.255 as an
  23. : ethernet bcast.
  24. : For "no apparent reason" an aix box and an hp X terminal too 
  25. : (both on net 1 with 1 interface and 1 ip address on that
  26. : interface)
  27. : are picking up the directed broadcast and forwarding it
  28. : ...
  29. : Any insights here?  Mine is: "Life with 2 subnets
  30. : in the presence of buggy tcp/ip implementations can be
  31. : interesting :->"
  32.  
  33. BSD 4.3 networking code bites again... 
  34.  
  35. An IP implementation shouldn't forward a frame that comes in with a
  36. broadcast (or multicast, for that matter) LLA. Unfortunately, 4.3
  37. networking code throws away the information that the frame came in
  38. on a broadcast link address, so ... If for any reason it is decided
  39. by IP that the frame should be forwarded, then it will be if there's
  40. a default or appropriate route.
  41.  
  42. I don't know about the AIX box, but the HP Xterminal does have two
  43. network interfaces, even if you aren't using it ... the SLIP interface
  44. on the serial port is 'attached', even though it isn't active. Having
  45. 2 interfaces and finding that a frame has been sent to it which has an
  46. IP address that isn't any kind of broadcast address that it understands
  47. (in fact, the address isn't even for its subnet), it forwards to the
  48. default gateway, the Cisco box. You're lucky that the gateway was the
  49. default or an ICMP redirect would also have been sent out.
  50.  
  51. The AIX box is probably doing something similar - it's something that
  52. plagues this vintage of TCP/IP software.  Berkeley's Networking Release
  53. 2 fixed this by keeping a LLA broadcast/multicast flag in the mbuf header
  54. that follows the frame around. Forwarding can thus be prevented for LLA
  55. broadcasts (and 2 subnets on the same wire will be safer :-)
  56.  
  57. Incidentally, the most recent software release for the HP X terminal has
  58. the network code modified so that forwarding to the same interface is never
  59. done - the frame is just dropped. Check around on the AIX box and see if
  60. there is any indication of 2 interfaces being attached (lo0, loopback
  61. doesn't count). The forwarding code should never be called if there is
  62. only one interface (in BSD 4.3/Tahoe code anyway).
  63.  
  64. Regards,
  65.  
  66. Ted Rypma
  67. HP Panacom Division
  68.  
  69. (Any opinions, etc. expressed are entirely my own.)
  70. even for its 
  71.  
  72.