Lindy CPU IP Access Switch Plus Net masks the binary explanation, Inside a bit-wise and function

Page 55

Net masks - the binary explanation

To really understand the operation of a net mask it is necessary to delve deeper into the life blood of computers – binary; this is native digital, where everything is either a 1 (one) or 0 (zero), on or off, yes or no.

The net mask operation described on the previous page is known as a ‘bit-wise AND function’. The example of 255.255.255.0 is handy because the last octet is completely zero and is “clean” for illustrative purposes. However, actual net mask calculations are carried out, not on whole decimal numbers, but bit by bit on binary numbers, hence the term ‘bit-wise’. In a real local network, a net mask might be 255.255.255.240. Such an example would no longer be quite so clear, until you look at the net mask in its binary form:

11111111.11111111.11111111.11110000

In this case, the four zeroes at the end of the net mask indicate that the local part of the address is formed by only the last four bits. If you use the diagram from the previous example and insert the new net mask, it will have the following effect on the final result:

 

192 168 142 154

192 168 142 144

Inside a bit-wise AND function

154

10011010

1111 0 0 0 0

Decimal octet prior to AND operation with net mask

Binary equivalent of 154



When you “open up” the last octet of the net mask and look at the binary inside, you can see the last four zero bits preventing any 1’s in the address from falling through.

10010000

Binary octet after AND

 

operation with net mask

144

Decimal equivalent of 10010000

 

 

Thus, when 154 is bit-wise ANDed with 240, the result is 144. Likewise, any local address from 192.168.142.144 through to 192.168.142.159 would produce exactly the same result when combined with this net mask, hence they would all be local addresses. However, any difference in the upper three octets or the upper four bits of the last octet would slip through the mask and the address would be flagged as not being local.



54

Image 55
Contents  CPU IP Access Switch PlusContents Index IP network/Internet Four simultaneous remote usersLocal user Modem/ISDN portCPU IP Access Switch Plus features front and rear CD-ROM What’s in the box What you may additionally need  MountingSingle unit rack brackets Double unit rack bracketsConnections Host computer or KVM switchTo connect the IP network port Local keyboard, video monitor and mouseIP network port To connect a local keyboard, video monitor and mouseTo connect a modem or Isdn port Power supply connectionTo connect the power supply Modem/ISDN portTo connect and address the switch boxes Power control portPart 2 Remote configuration Initial configurationPart 1 Local configuration Part 1 Local configurationEncryption To perform the initial local configurationAdmin password Time and DateEncryption Encryption settingsCPU IP encryption settings Viewer encryption settingsRecognising an IntelliMouse-style mouse Which restore setting do I use?To restore mouse operation when hot plugging Hot plugging and mouse restorationTo invoke a configuration reset by main menu Resetting the configurationCPU IP asks for an unknown admin password CPU IP does not display the configuration sequenceTo perform the remote configuration Part 2 Remote configurationPlacing CPU IP behind a router or firewall Networking issuesPort settings Positioning CPU IP in the networkFirewall/router address AddressingTo discover a DHCP-allocated IP address DNS addressingEnsuring sufficient security Placing CPU IP alongside the firewallPorts Power Off Power switching configurationPower control sequences To configure the power sequences for each host computerImportant Wait until the upgrade is complete Performing a flash upgradeTo view the local control menu Connecting to the CPU IPLocal connection To make a local connectionTo avoid the ‘hall of mirrors’ effect Remote connectionsRemote connection by Web browser To connect using the VNC viewerTo connect using your Web browser Remote connection by VNC viewerWhen using the viewer window Using the viewer windowMenu bar To select a host ConfigureMouse pointers Host selectionRe-synchronise mouse Access mode shared/privatePower control Auto calibrateControls   Setting the Threshold manuallyPhase ContrastDownloading VNC viewer from the CPU IP Connecting via dial up modem or Isdn linkIf you need to enter a port number Linux Viewer encryption settingsSupported web browsers WindowsGetting assistance TroubleshootingTo access the local configuration menus Appendix 1 Local configuration menusUnit configuration Network configuration Modem configuration To reset the CPU IP configuration Reset configurationWhat is IP access control? Clear IP access controlTo clear IP access control Preferred encoding Appendix 2 VNC viewer connection optionsColour/Encoding Auto selectMisc InputsSave configuration file as DefaultsReload defaults Save as defaultsAppendix 3 VNC viewer window options Encoding and colour level Appendix 4 Browser viewer optionsSecurity To access the remote configuration menus Appendix 5 Remote configuration menusMain configuration menu Logged on users User accounts Host Keyboard Layout Screensaver timeoutHardware Version Firmware VersionForce VNC protocol Advanced unit configurationIdle timeout Protocol timeoutIP network mask IP access controlIP gateway To edit/remove access control entries Setting IP access controlTo define a new IP access control entry To reorder access control entriesPower control port Serial port configurationModem port To create a new host entry Host configurationList Logging and statusTo copy and paste the log Occurred Click to clear All log entries RefreshIP addresses Appendix 6 Addresses, masks and portsNet masks Binary octet after Net masks the binary explanationInside a bit-wise and function Binary equivalentAddress ranges Calculating the mask for IP access controlSingle locations All locationsPorts Security issues with portsFemale Appendix 7 Cable and connector specifications6pin mini-DIN 9pin D-type 4pin RJ10Appendix 8 Hotkey sequence codes Safety considerations when using power switches with CPU IP Other products in the CPU Switch rangeWarranty Safety informationEuropean EMC directive 89/336/EEC Radio Frequency EnergyFCC Compliance Statement United States Germany France Italia USAIndex 