|
|
||
| You are here: | ||
|
3.4 still networks
.
Hacking is generally taken to mean unauthorised access whether actual harm is done or not.
After professors Liv and Zempel from Israel.
Auckland Cathedral from the top of Symonds Street - near the Sheraton Hotel. As you might imagine, run-length encoding an image like this doesn't achieve a great deal of compression.
|
On this page: [ software | integrity | security | applications ] Software Over the hardware sit the various protocols that are used for transmission (these may be implemented in hardware and/or software). At the top sits the application layer where users interact with the systems.
The kind of software described in the subject guide , the " communications software " would probably belong in the middle layer of this simplified diagram. This kind of software deals with connections between LAN's and WAN's and deals with aspects such as protocols and security . Integrity Communication lines are subject to (electrical) noise . These may be caused by anything from wind on the cables and connectors to magnetic storms (eg, caused by sunspots). These disturbances can cause bits to be lost or changed in the data. It is important to detect these corrupted signals. Some errors can be detected and corrected but usually when an error is detected, a re-transmission of data is requested. The subject guide mentions parity checks and checksum (block character checks):
Examples:
The bits are transmitted as one unit (ie, despite the example above, the parity bit is not sent separately). Think of an example where an error will not be detected.
Here is an example of the message "hello!" beiong sent with a block character check (bcc) every 3 bytes: Message "Hello!" - checksum sent every 3 bytes:
Note that 281 can't be sent in an 8-bit byte and is therefore actually sent with the high bit truncated (or modulo 256): H 72 01001000 sum 281 100011001 - transmitted as 00011001 (25) Checksums (BCC's) can be combined with parity, consider the following: H 72 11001000 sum = 1000010101 - transmitted as 00010101 (21) In this example, which bit is the parity bit and is odd or even parity being used? Exercises
What is the message? What type of parity is being used? Which character in which block is corrupted in the following sequence? 50 E0 72 A3 69 74 F9 D6 Calculate the checksum for these words (just one checksum for the whole word) - use the table below:
An Excel spreadsheet can be used to help with these exercises. Download this sheet and give it a try.
Examples 3 and 4 might be the result of corruption, comment on example 4. Error correction
This shows that parity checks can be applied to each character, as we have seen, but also the same bit from a number of characters can also be checked. The errors in parity intersect at the incorrect bit and it can be "flipped" to achieve correction. The network brings with it some concerns about security as noted above. Obviously it is easier to access information when it is on a computer that is physically linked to many other computers. Several precautions can be taken: Privilege (or access permission) Passwords However, you can help yourself by careful selection of adequate passwords . Most security breaches are the result of passwords that are easily guessed or even written down on a yellow sticky and attached to the user's monitor. It happens. Passwords are designed to keep unauthorised users out of a system or parts of a system that are off limits to them. Physical security Sometimes access to a network might require a "key disc" or some small hardware device connected to a given computer port (a "dongle"). These can be removed to improve physical security. Encryption Encryption can also be applied to data files that reside on disc. Many files are transmitted across all kinds of networks, including the internet (itself an extremely large WAN ). Any network has a certain (maximum) carrying capacity called its bandwidth . The more data that travels across a given network connection, the more bandwidth is used and, at some point near it's capacity, the slower the data is transmitted. Since the bandwidth is fixed and increased use reduces speed, the more that volume can be reduced the more likely it is that higher speeds of transmission can be achieved. For this reason, files are often transferred in compressed format. Both text and graphics documents can be reduced in size by compression techniques. The subject guide does not require you to know details but only principles so we'll look at those. The details are available elsewhere on the web (go look if you care). Text compression Tokenizing replaces certain common words or letter combinations with special symbols or tokens that take up only one byte. It is language dependent. Ziv-Lempel uses pattern matching, it examines text and replaces any repeating pattern with a reference to the original pattern, for example, in the words of a famous cartoon character: I am what I am. The second I am is replace by a reference to the original: it's position and length: I am what 1 4. The 1 is the position of the repeating sequence and 4 is its length. This technique is not language dependent and works well with large pieces of text. Graphics compression The image below has 7 colours. Therefore, each pixel could be represented by a 3-bit colour code.
This is RLE (run length encoding) as used in GIF images. It works well with "blocky" diagrams where there are large blocks of similar colour. RLE is "lossless" compression; all of the information in the original picture is preserved. As an exercise you could compare the size of the RLE file with that of the full bitmap. One type of image that does not benefit from RLE type compression is a photograph. This often has a lot of very similar colours, all shading into one another. Consider this image:
The image on the right shows an enlarged part of the sky. Many of the shades of blue are quite similar, we can compress the file by not storing information about every single shade of sky blue but just representing very similar ones with the same code. Some information is lost so this is known as "lossy" compression. related: [ Common core home | previous: networks (intro) | next: network applications ] |
There are several "layers" to a network; the technical details are defined by the ISO (ISO). However, we don't need the details but it should be apparent, as for computer systems in general, that the hardware (eg cables, other physical links) is at the base of everything. |
|
|
|||
|
Questions or problems related to this web site should be addressed to Richard Jones who asserts his right to be identified as the author and owner of these materials - unless otherwise indicated. Please feel free to use the material presented here and to create links to it for non-commercial purposes; an acknowledgement of the source is required by the Creative Commons licence. Use of materials from this site is conditional upon your having read the additional terms of use on the about page and the Creative Commons Licence. View privacy policy. This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. © 2001 - 2009 Richard Jones, PO BOX 246, Cambridge, New Zealand; This page was last modified: May 31, 2009 |