Page 2 of 7 <12345>Last »
Topic Options
#101354 - 2003-05-24 09:33 PM Re: KiXgolf: MOAN - Mother Of All Networks
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The spaces in Jens example are most likely so that @IPaddressx could be used. You will need to ignore/remove them for calculations.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#101355 - 2003-05-24 10:36 PM Re: KiXgolf: MOAN - Mother Of All Networks
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
hoby, I'm not sure about to whom you answered.
spaces have nothing to do with difficulty.

if you were answering to me, I said that jens' answer is quite different than the one that common-sense gives.
wonder if this is the normal way in networking...
_________________________
!

download KiXnet

Top
#101356 - 2003-05-24 10:40 PM Re: KiXgolf: MOAN - Mother Of All Networks
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I must have misunderstood your spaces statement.

A couple errors exist. I have PM'ed Jens regarding a coding issue and Test #3.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#101357 - 2003-05-24 10:58 PM Re: KiXgolf: MOAN - Mother Of All Networks
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 623
Loc: London, England
Lonkero is right

IP 192.010.128.055
SubnetMask 255.255.255.000

Network ID Should be:

NetworkID 192.010.128.000

Easy conversion into binary.

3rd Otect on Subnet Mask
128,64,32,16,8,4,2,1
1,1,1,1,1,1,1,1

Network ID
1,0,0,0,0,0,0,0 = 128

Now say the 4th Octec of the Subnet Mask was 128

1 ,0 ,0 ,0 ,0,0,0,0

Network ID would be.
0 ,1 ,1 ,1 ,1,1,1,1 = 127

You should start SuperNetting the Network Address, and that would make it fun. [Big Grin]

Rich

[ 24. May 2003, 23:00: Message edited by: Richard Farthing ]

Top
#101358 - 2003-05-24 11:20 PM Re: KiXgolf: MOAN - Mother Of All Networks
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
I'll double-check my test file for correct results tomorrow morning. I corrected the example in my last post.

I have to run now, got tickets for The Matrix: Reloaded!
_________________________
There are two types of vessels, submarines and targets.

Top
#101359 - 2003-05-25 02:25 AM Re: KiXgolf: MOAN - Mother Of All Networks
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I would NOT claim this is OFFICIAL yet since I had to alter your code and test file. I will post the results again once you look at the issues I raised and post new test code. If you find I made the mistakes then I will retract this post.
code:
KiXtart Golf Score
Tournament = KiXtart Golf: MOAN - Mother Of All Networks
Processing Start = 2003/05/24 20:28:31.739
Processing End = 2003/05/24 20:28:31.839
Duration = 0000/00/00 00:00:00.100
# Loops = 1
KiXGolf Result = passed (6 out of 6 correct)
KiXGolf Score = 1460

code:
KiXtart Golf Score
Tournament = KiXtart Golf: MOAN - Mother Of All Networks
Processing Start = 2003/05/24 20:39:43.211
Processing End = 2003/05/24 20:39:43.292
Duration = 0000/00/00 00:00:00.081
# Loops = 1
KiXGolf Result = passed (6 out of 6 correct)
KiXGolf Score = 1154

code:
KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: MOAN - Mother Of All Networks
Processing Start = 2003/05/24 21:06:50.395
Processing End = 2003/05/24 21:06:50.475
Duration = 0000/00/00 00:00:00.080
# Loops = 1
KiXGolf Result = passed (6 out of 6 correct)
KiXGolf Score = 884

code:
KiXtart Golf Score
Tournament = KiXtart Golf: MOAN - Mother Of All Networks
Processing Start = 2003/05/25 00:20:56.103
Processing End = 2003/05/25 00:20:56.183
Duration = 0000/00/00 00:00:00.079
# Loops = 1
KiXGolf Result = passed (7 out of 7 correct)
KiXGolf Score = 814



[ 25. May 2003, 06:18: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#101360 - 2003-05-25 08:19 AM Re: KiXgolf: MOAN - Mother Of All Networks
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
k, have read that cramsession talk and it confused the heck out of me.
damn, the talker must have been drunk when he wrote it as there is no red line anywhere.

still don't know (as asked about 30 hours ago) how to calc subnet when input is netID and IP.

still searching for some teaching article...
_________________________
!

download KiXnet

Top
#101361 - 2003-05-25 01:21 PM Re: KiXgolf: MOAN - Mother Of All Networks
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Lonkero, take a look at this article by Cisco:

http://www.cisco.com/warp/public/701/3.html
_________________________
The tart is out there

Top
#101362 - 2003-05-25 03:19 PM Re: KiXgolf: MOAN - Mother Of All Networks
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Howard: I got your PM and will implement them. However, I won't be able to post then corrected scoring part until about 1pm EST due to some other committments.

The corrections look fine, however, and I'm sorry that I misused you guys as "beta-testers". Should have spend more time on the scoring engine instead of developing my own solution [Wink]
_________________________
There are two types of vessels, submarines and targets.

Top
#101363 - 2003-05-25 03:26 PM Re: KiXgolf: MOAN - Mother Of All Networks
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I found it to be part of the fun.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#101364 - 2003-05-25 03:42 PM Re: KiXgolf: MOAN - Mother Of All Networks
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
mmm...
jens, your prototype looks ok but what I must ask is...
doh, as the input is optional, should the arguments be declared as "optional" or do we expect that it's called with "" or 0 if not input?
_________________________
!

download KiXnet

Top
#101365 - 2003-05-25 07:04 PM Re: KiXgolf: MOAN - Mother Of All Networks
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Jooel: Though some of the inputs might be optional for the purpose of this tournament the inputs will be provided nonetheless as empty strings.

Everybody: I've updated the test script and corrected one mistake in test 3, as I provided an incorrect NetworkID. The updated package can be downloaded at http://people.bu.edu/jenmeyer/kixtart/kixgolf_moan.zip

Kudos to Howard who found the mistakes. It should all work now.

I also added a clarification with regards to the use of /31 subnets. Though RFC3021 allows /31 networks (two IP addresses where the network/broadcast addresses are used as regular IP addresses), they are not considered valiud IP addresses with regards to this tournament. Thus, a /31 network only consistes of a Network ID and a broadcast address but no usable IP addresses. However, I do not see this as a shortcoming as the /31 is a special case that should only happen in very controlled network environments.
_________________________
There are two types of vessels, submarines and targets.

Top
#101366 - 2003-05-25 07:12 PM Re: KiXgolf: MOAN - Mother Of All Networks
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Official with the latest Jen's code [Big Grin]
code:
KiXtart
KiXtart Version = 4.21
KiXGolf Script = kixgolf_moan.kix

Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III
Speed = 848 MHz
Memory = 512 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: MOAN - Mother Of All Networks
Processing Start = 2003/05/25 13:13:52.517
Processing End = 2003/05/25 13:13:52.597
Duration = 0000/00/00 00:00:00.080
# Loops = 1
KiXGolf Result = passed (7 out of 7 correct)
KiXGolf Score = 801

Thank you for participating in KiXtart Golf!

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#101367 - 2003-05-25 09:13 PM Re: KiXgolf: MOAN - Mother Of All Networks
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
mm...
what about this (think I asked it already on the first page)...
I quess I somehow understand the calculation already, but.
quote:
;Input: IP, NetworkID
;Output: Array of all potential subnet masks or empty string if no match

is that like we can return the masks in the format we prefer?
_________________________
!

download KiXnet

Top
#101368 - 2003-05-25 09:26 PM Re: KiXgolf: MOAN - Mother Of All Networks
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
hehee...
was already getting mad as my answer was said to be incorrect...

but your new check-code proved the old wrong [Wink]
k, now have only about half of the code to code and am under 1500 strokes still!
_________________________
!

download KiXnet

Top
#101369 - 2003-05-25 09:33 PM Re: KiXgolf: MOAN - Mother Of All Networks
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
update.
am I correct when I say that there is no check code of calculating the possible subnets?
_________________________
!

download KiXnet

Top
#101370 - 2003-05-25 10:37 PM Re: KiXgolf: MOAN - Mother Of All Networks
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Yes you are correct that that case is not checked so I commented out my code for that option(rightly or wrongly).
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#101371 - 2003-05-25 10:46 PM Re: KiXgolf: MOAN - Mother Of All Networks
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
k, then next question.

is is possible to have networkID of 0.0.0.0?
_________________________
!

download KiXnet

Top
#101372 - 2003-05-25 11:18 PM Re: KiXgolf: MOAN - Mother Of All Networks
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
KiXGolf Score = 774 [Big Grin]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#101373 - 2003-05-26 12:00 AM Re: KiXgolf: MOAN - Mother Of All Networks
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
The sorting order for all outputs is covered
quote:
If the output consists of an array of IP addresses, then the IP addresses must be sorted in ascending order
This would also apply to network IDs and subnet masks.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 2 of 7 <12345>Last »


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 209 anonymous users online.
Newest Members
dimi575, Drecksnacken, Nlill, webtools321, multiman
17734 Registered Users

Generated in 0.044 seconds in which 0.012 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org