home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / vxworks / 1018 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  6.4 KB

  1. Path: sparky!uunet!stanford.edu!agate!dog.ee.lbl.gov!lbl.gov!vxwexplo
  2. From: mea@sparta.com (Mike Anderson)
  3. Newsgroups: comp.os.vxworks
  4. Subject: re: Ethernets and backplane networks
  5. Date: Mon, 16 Nov 92 11:32:27 EST
  6. Organization: Lawrence Berkeley Laboratory, Berkeley CA
  7. Lines: 135
  8. Sender: vxwexplo@lbl.gov
  9. Message-ID: <9211161632.AA00615@borg>
  10. NNTP-Posting-Host: 128.3.112.16
  11. Originator: daemon@vxw.ee.lbl.gov
  12.  
  13. Greetings!
  14.  
  15. Bill Frewing writes:
  16. ... deleted for brevity ...
  17. > My questions are:
  18. > Can we physically split a single internet network, ie. have a network number
  19. > dedicated to the 'private' mv147 networks for all systems configured like
  20. > this, and use different node numbers on each system, all connected to the
  21. > same ethernet at the same time ?  (To make this clearer an example:
  22. > On the factory ethernet connect two Suns: 192.23.1.100 and 192.23.1.101.
  23. > Each Sun has two ethernet ports, the thinwire ports are 192.23.9.1 and
  24. > 192.23.9.11. The associated mv147s are 192.23.9.2 and 192.23.9.12.)
  25. > The other option seems to be subnetting. Does anyone have experience with
  26. > this on VxWorks ?
  27. > Is there any other way of getting over the problem of using up internet
  28. > network numbers ?
  29.  
  30.   Your best bet to conserve internet numbers (prior to the release of version
  31. 5.1 with proxyarp support) is to use subnets.  With subnets you can set
  32. the netmasks on a class C network (for instance) to use the two high-order
  33. bits of the 4th octet like so:
  34.  
  35. using an example Class C address of 192.9.200.X with a netmask of ffffffc0
  36.  
  37. 7 6 5 4 3 2 1 0
  38. 0 0 X X X X X X     host addresses 192.9.200.1   - 192.9.200.63
  39. 0 1 X X X X X X     host addresses 192.9.200.64  - 192.9.200.127
  40. 1 0 X X X X X X     host addresses 192.9.200.128 - 192.9.200.191
  41. 1 1 X X X X X X     host addresses 192.9.200.192 - 192.9.200.254
  42.  
  43. As usual, the addresses 192.9.200.0 and 192.9.200.255 are reserved as 
  44. broadcast addresses for BSD and Internet standards respectively.
  45.  
  46.   Therefore, your class C net is dealt with internally as 4 class C nets
  47. such that the dual Ethernet sun can be the 00 net on one interface and 
  48. the 01 net on the second interface.  Assuming the 147 is on the 01 net,
  49. it would have an address on that net and be the gateway to the backplane
  50. net which might be the 10 net.  This would leave room for yet another
  51. network (the 11 net) which could be another VxWorks system or something
  52. completely different.  Also, from the outside world (i.e., the Internet),
  53. your entire site looks like one big class C and your internal gateways
  54. will have the responsibility for routing packets to the appropriate
  55. gateway.  Here's a picture to help clarify:
  56.  
  57.                     Internet G/W             Main Ethernet  (00 sub-network)
  58. Internet ----------[192.9.200.1]----------------------------------------------
  59. (sees only                                    |
  60.  net 192.9.200.0)                             |
  61.                                        ---------------
  62.                         Sun w/ 2 Enets [ 192.9.200.2 ]  on 00 sub-network
  63.                                        [ 192.9.200.64]  on 01 sub-network
  64.                                        ---------------
  65.                                               |
  66.                                               |  VxWorks Enet (01 sub-network)
  67.          ---------------------------------------------------------------------
  68.                 |
  69.                 |  VxWorks VME Chassis
  70.          -----------------------
  71.          | CPU 0 192.9.200.65  | on 01 sub-network
  72.          |       192.9.200.128 | on 10 sub-network 
  73.          -----------------------
  74.          | CPU 1 192.9.200.129 | on 10 sub-network
  75.          |                     |
  76.          -----------------------
  77.  
  78.   Handling the routing is the tricky part ;-).  Each of the Suns will have
  79. to have entries in the /etc/netmasks file (or set the netmask in rc.local
  80. by hand) set to 255.255.255.192 (0xFFFFFFC0).  Routes can be set statically via 
  81. "route add net <destination net> <gateway> <metric>" or via the /etc/gateways
  82. file if you're running in.routed.
  83.  
  84. On the Internet gateway, the routes would be:
  85. route add net 192.9.200.64 192.9.200.2 1     (handles the 01 sub-net)
  86. route add net 192.9.200.128 192.9.200.2 1    (handles the 10 sub-net)
  87.  
  88. On the Sun w/ 2 Enets, the routes would be:
  89. route add net 192.9.200.128 192.9.200.65 1   (handles the 10 sub-net)
  90. (because this sun has 2 Enet interfaces the
  91.  the 00 and 01 networks are already 
  92.  configured at boot time)
  93.  
  94. On VxWorks CPU 0, the boot params are:
  95. inet on the enet : 192.9.200.65:ffffffc0
  96. inet on backplane: 192.9.200.128:ffffffc0
  97. host inet        : 192.9.200.64
  98. (I think you will have to add a route after booting to 
  99.  support getting to the 00 net via the Sun w/
  100.  2 Enets.  Maybe Hwa Jin can clarify.)
  101.  
  102. On VxWorks CPU 1, the boot params are:
  103. inet on the backplane: 192.9.200.129:ffffffc0
  104. host inet            : 192.9.200.64
  105. gateway              : 192.9.200.128
  106.  
  107. I hope I haven't missed anything :-).  If I have, please post corrections
  108. because I'd like to get this message set up as a standard response to these
  109. sort of questions.  BTW, you will still have to configure the 11 subnet if
  110. you plan on using it for something.
  111.  
  112. Clearly, if we take bit 5 (the three high-order bits) as well for the net
  113. mask we can now support up to 8 separate subnets.
  114.  
  115. Having said all of this, it all changes if we run proxyarp under 5.1.  But,
  116. that's another discussion entirely.
  117.  
  118.  
  119.  
  120. ==============================================================================
  121.     AAAA  D D    D D    EEEEE   M   M  TM  // AAAA RRRR  TTTTTT SSSSS EEEEE TM
  122.    A   A  D   D  D   D  E      M M M M    // A   A R   R   TT   S     E
  123.   AAAAAA  D   D  D   D  EEEEE  M  M  M   // AAAAAA RRRR    TT    SSS  EEEEE
  124.  A     A  D   D  D   D  E      M     M  // A     A R  R    TT       S E
  125. A      A  D D    D D    EEEEE  M     M // A      A R   R   TT   SSSSS EEEEE
  126.  
  127. Process Distribution/Control and Communications for Distributed Systems
  128.  
  129. Mike Anderson                       Voice: (703) 448-0210 ext. 235
  130. Director, ADDEM(TM) Project Office  FAX:   (703) 734-3323
  131. SPARTA, Inc.                        EMAIL: mea@sparta.com
  132. Suite 900                     
  133. 7926 Jones Branch Drive        "It is useless for sheep to pass resolutions 
  134. McLean, VA  22102               in favor of vegetarianism while wolves remain
  135.                                 of a different opinion."
  136.  
  137.                                    William R. Inge, D.D.
  138. ==============================================================================
  139.  
  140.  
  141.  
  142.  
  143.