Professional Documents
Culture Documents
Advances in Computers
Advances in Computers
COMPUTER NETWORKS
OSI MODEL
The OSI model consists of 7 layers : Each layer deals with a specific aspect of communication. Each layer provides an interface to the layer above. The set of operations define the service provided by that layer. As a message sent by the top layer is passed on to the next lower layer until the most bottom layer. At each level a header may be prepended to the message. Some layers add both a header and a trailer. The lowest layer transmits the message over the network to the receiving machine. It communicates with the most bottom layer of the receiver. Each layer then strips the header (trailer), handles the message using the protocol provided by the layer and passes it on to the next higher layer. Finally to the highest layer in the receiver.
OSI Presentation and Session layers are missing The Internet layer (OSI: Network) handles packets The Host-To-Network layer (OSI: Datalink + Physical) handles frames and bits
WHICH MEDIUM?
There are four principal media for telecommunications: COAXIAL CABLE TWISTED PAIR CABLE OPTICAL FIBER
WIRELESS
MEDIA CHARACTERISTICS
Coaxial Cable Used extensively in LANs. Single central conductor surrounded by a circular insulation layer and a conductive shield. High bandwidth : Upto 400 Mhz. High quality of data transmission. Max. used data rates : 100 Mbits/s. Problems : signal loss at high frequencies. Twisted Pair Cable Extensively used in telephone circuits, where several wires are insulated and put together. Bandwidth :250 Khz. Low signal to noise ratio (cross talk) -> Low data rate. Good for short-distance communications. Used in LAN (UTP or 10baseT).
MEDIA CHARACTERISTICS
Optical Fiber High quality and high bandwidth data transmission applications. Use light instead of electric pulses for message transmission. Very high frequency ranges (20,000 Mhz). Single fiber can support over 30,000 telephone lines. Data transmission rates of 400 Mbits/s and more. Becoming very popular for MAN and LAN, also used for intercontinental links. High signal to noise ratio, difficulty in tapping (security). Cost is the single biggest drawback (currently). Wireless Media For WANs satellites provide global communication over the world, receiving signals from transmitters and relaying them back to the receivers. With geostationary satellites senders and receivers always points the same direction. High communication capacity. Big latency : 0.25 secs. For MANs microwave radio technology is widely used (2 to 24 Mbit/s). For LANs Spread Spectrum radio technology is becoming very popular (up to 2 Mbit/s). Infrared : Line of sight limitation.
THE ETHERNET
Developed at Xerox PARC in 1973. It's a standard for Media Access Control (MAC) sublayer. Data transmission rate : 10 Mbits/s (Fast Ethernet reaches 100 Mbit/s) High-speed driver on the computers connected by coax or UTP cables. Uses a bus (10base2, coax, max. distance 200 mt.) or a star (10baseT, UTP, max. 100 mt.) topology. Can be optical fibres based too (10baseF , max. 2000 mt.). How it works? All nodes wanting to send message contention for the bus. Broadcast frames to all stations on the network. All stations are continually listening to the bus looking for frames addressed to them. Variable length frames : 64 to 1518 bytes. Transmission time : 50 - 1200 microsec.
ETHERNET:
Frame Format : Destination address (6 bytes) Source address (6 bytes) Type (2 bytes) Data (46 ... 1500 bytes) Check sequence/checksum (4 bytes). Length of the frame is not provided. Mandatory interval between sending frames. Last 4bytes are assumed to be the frame check sequence (checksum). Type field is sometimes used to store the length of the frame. Not more than 1024 nodes in a single Ethernet, but the address field is 6 bytes. US Institute for IEEE gives a unique id for each Ethernet card. Each node has a unique address. CSMA/CD : Carrier Sense Multiple Access with Collision Detection Packet Collisions : When multiple stations attempt to send a frame simultaneously. Three mechanisms to address this.
ETHERNET :
Carrier Sensing : Listen for the presence of signal (carrier) in the cable. Wait until there is no signal before transmitting. Collisions may still occur. A sends a signal and B sends it right after that but before it has sensed A's signal. Collision Detection : Send the signal (output port) and listen (input port) and compare the two signals. If they are different then there is a collision. Stop sending the message but send a special signal to intimate all stations that collision has occurred. Retransmit after waiting for a random time (nT) : T : time taken by a signal to reach all stations, n < MAX: random number. If there is another collision, double MAX and so on. CSMA/CD Efficiency : Fraction of frames transmitted successfully. Possible to get 80 - 95 %. However, noticeable delay after 50%.
ETHERNET
Interconnecting Ethernets : Repeater : Analog device that simply retransmits the signal it receives. Bridge : Digital so less distortion, may be intelligent, it repeats frames passing only the addresses that are on the corresponding side of the bridge (filtering). Keep a list of addresses. (Note: Each ethernet address is unique)
INTERNET ADDRESS
It's a 32 bits, 4-part period delimited, decimal number called IP number or IP address: www.xxx.yyy.zzz each part can vary from 1 to 254 (0 and 255 are reserved for the net and the broadcast) each network interface card attached to the Internet mast have an unique IP address the IP address can be splitted in two parts: network host
SUBNETS
Sub netting allow a network to be split into several parts for internal use but still act like a single one to the outside world.
DOMAIN NAMES
For convenience a domain name is normally assigned to each machine (for people remember names is easier than numbers) The name is assigned meaning with the most general part on the right (opposite to IP addresses): machine.subdomain.organization.country or in our case, for ex.: blueroom-1.ictp.trieste.it This allow the IP number to be changed while the user using the name sees no change To convert names into numbers you need the Domain Name System (DNS), a hierarchical domain-based naming scheme with a distributed database system
INTERNET ROUTING
A ROUTE is needed to send data to a remote host. It may require making many hops along the way. Routers (and gateways) perform these duties. To find routes each router must know about the topology of the subnet that connect it to the other routers and choose appropriate paths through it. This is achieved hierarchically with some complex algorithms generating routing tables for each router. Internet routing operates with packet (OSI Network layer). Each packet contains a destination address used by the router to decide which output line it should be sent on. Static routing don't care about network variables (load, changes in topology, temporary failures); routing tables are fixed. Dynamic routing changes routing tables to reflect the status of the net and achieve optimal performances. It's more complex to setup.
this entry tells how to get to a distant network identified by its network address in the form ( network, 0's ), i.e. sending the packets to another router (called gateway) through the specified Network Interface Card. the special network address "default" means all other destinations and points to a hierarchically higher router. In decimal form it's a 0.0.0.0 . host:
this entry tells how to get a local host ( = host on the router's LAN ) identified by its host address in the form (this network , host ), i.e. sending packets directly to it through the specified NIC.
ROUTING TABLES
Version 1
Those routing tables are simplified versions with only HOST-TO-HOST routes. This implementation is not suitable for pratical uses: it's not efficient at all, adding more hosts or subnets is difficult. Two hosts in the same group should pass through the group router to communicate. Two hosts in different groups should pass through the room main router to communicate. The solution routing to SUBNETS.
NETMASK
Knowing the class (A, B or C) of the network address, it's easy to split the network part and the host part of a given IP address: 44.134.177. 48 it's a class A network address 140.105. 28.160 it's a class B network address (but with subnetting!) 192. 41. 6. 20 it's a class C network address The standard way to specify it (with subnetting too) is using a further numeric field, called net mask the netmask (in binary format) is composed of as many 1s as the lenght (in bits) of the network (and subnet) part, followed of as many 0s as the lenght of the host part of the address:
the two example netmasks, expressed in a 4-part, period delimited, decimal form are 255.255.252.0 and 255.255.255.224
IT'S LOGIC !
The way to obtain the network part of a given address is:
to do a Boolean (i.e. logic) AND operation network = (IP address) AND (netmask)
let's try: IP address is 140.105. 17.226 ( = 10001100.01101001.00010001.11100010 ) netmask is 255.255.252.000 ( = 11111111.11111111.11111100.00000000 ) network address will be: 10001100.01101001.00010001.11100010 AND 11111111.11111111.11111100.00000000 = 10001100.01101001.00010000.00000000 in decimal 140. 105. 16. 0 this subnet goes from 140.105.16.0 to 140.105.19.255
Routing is performed by addressing subnets instead of hosts. Local net routes are common to every host in a given group and to every router.
CONTINUED.
2. This host is 140.105.38.225 - 140.105.38.68 and it should send out a packet of data with this information: destination address: 140.105.38.34 looking at the routing table the result is: send it to the gateway 140.105.38.65 through the interface eth1 3. This host is 140.105.38.65 - 140.105.38.2 and it should send out a packet of data with this information: destination address: 140.105.38.34 looking at the routing table the result is: send it to the gateway 140.105.38.1 through the interface eth2
CONTINUED.
4. This host is 140.105.38.1 - 140.105.38.33 and it should send out a packet of data with this information: destination address: 140.105.38.34 looking at the routing table the result is: send it to the host 140.105.38.34 through the interface eth1 5. This host is 140.105.38.34 and it received a packet of data with this information: destination address: 140.105.38.34 OK! This packet is for me.