35
T305: DIGITAL COMMUNICATIONS Arab Open University- Lebanon Tutorial 2 1 T305: Digital Communications Block I – Part I - Communication Networks

T305: Digital Communications

Embed Size (px)

DESCRIPTION

T305: Digital Communications. Block I – Part I - Communication Networks. Topics of today’s session. Topic 1: Introduction Topic 2: Communicating Across a Network Topic 3: The Internet Topic 4: Ethernet (CSMA/CD) Topic 5: Fast and Gigabit Ethernet Topic 6: Switched Ethernet - PowerPoint PPT Presentation

Citation preview

Page 1: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

Arab Open University-Lebanon Tutorial 2 1

T305: Digital Communications

Block I – Part I - Communication Networks

Page 2: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

2Arab Open University-Lebanon

Tutorial 2

Topics of today’s session

Topic 1: IntroductionTopic 2: Communicating Across a NetworkTopic 3: The InternetTopic 4: Ethernet (CSMA/CD)Topic 5: Fast and Gigabit EthernetTopic 6: Switched EthernetTopic 7: Preparation for Next Tutorial

Page 3: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

3Arab Open University-Lebanon

Tutorial 2

Topic I - Introduction

Telephone networks (connection of physical path) is an example of circuit switching connection type.

Page 4: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

4Arab Open University-Lebanon

Tutorial 2

Packet networks operate on a different principle, which breaks the message into many small packets and then sends each one across the network separately. Each packet has a header, which contains address and control information.

Page 5: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

5Arab Open University-Lebanon

Tutorial 2

Packet switching

Message data is carried in the body of the packet. A message will have been successfully sent only when all the packets have arrived at the destination.

Header Trailer

Data

Page 6: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

6Arab Open University-Lebanon

Tutorial 2

Topic 2-Communicating Across a NetworkA modem is an interface device that is connected between your computer and your telephone line.

Page 7: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

7Arab Open University-Lebanon

Tutorial 2

International and national networks

Communication links across the oceans are very expensive to install and maintain. This is why advanced digital multiplexing techniques (like time division multiplexing TDM) by means of a device called a multiplexer (mux) are used to carry very large numbers of channels on single cable or satellite link.

Using digital multiplexing it is possible for many thousand telephone calls as well as mobile phone calls, email, facsimile (fax), web connections, home entertainment (such as video-on-demand), and many more services to be carried on a single cable.

Page 8: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

8Arab Open University-Lebanon

Tutorial 2

Both satellites and cables are used to communicate with many different paths of the world. Some advantages of Satellites over cable are:

Cables terminate at cable stations whereas satellite links terminate at Earth stations.Cable stations are normally located near to the coast where the cables land. However, Earth stations have been in remote locations to isolate them from electrical interference.

earthearthground station Ground Station

Page 9: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

9Arab Open University-Lebanon

Tutorial 2

Capacity of the network linksOne technique that provides the bandwidth necessary for the delivery of home entertainment services is called asymmetric digital subscriber line (ADSL).

The first trans-Atlantic telephone cable (TAT-1) was installed in 1956 and could carry 36 simultaneous telephone calls. TAT-12 and TAT-13, brought into service in 1996, each could carry 60,000 phone calls

Page 10: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

10Arab Open University-Lebanon

Tutorial 2

Topic 3: The InternetConnecting networksNetworks that connect together computer users within a limited geographical area are called local area networks (LANs). LANs can vary significantly in size, from very small networks to very large networks joining together many users situated in different buildings. A LAN is designed to provide communication between computer facilities within a limited range, and will usually connect computer users to other shared devices such as printers and servers.

Page 11: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

11Arab Open University-Lebanon

Tutorial 2

Topic 3: The Internet

A network that can connect widely dispersed computers or LANs together is called a wide area network (WAN). A combined network of WANs and LANs is called an Internet. Routers are the devices that are most often used to connect a LAN to a WAN, and are the most common devices that are used to route packets across wide area network. Because routers sit on the boundary between a LAN and WAN, they will often need to convert between LAN and WAN protocols.

Page 12: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

12Arab Open University-Lebanon

Tutorial 2

The Internet

IP networksIt is common practice to refer to the sub-networks that make up the Internet as IP networks. This is because these networks all use the Internet protocol (IP).If you are accessing Internet from home, you need to connect to an Internet service provider (ISP).

Page 13: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

13Arab Open University-Lebanon

Tutorial 2

IP network architectureThe solution to the problem of scalability of the Internet is to break the network down into manageable parts, or domains. Each domain is called an autonomous system (AS). An autonomous system is made up from many nodes, each one containing one or more routers, all connected together using SDH or some other transport technology.SDH is a hierarchy of bit-rates that can be constructed using TDM techniques. Standard bit-rates include 155 Mbit/s and 2.5 Gbit/s.The routing of packets among nodes within an autonomous system is carried out by the routers using a protocol called interior gateway protocol (IGP). Routing between autonomous systems uses a different protocol called a border gateway protocol (BGP).The central cores of the Internet are called backbones that join together the nodes of autonomous systems.

Page 14: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

14Arab Open University-Lebanon

Tutorial 2

Topic 4: Ethernet (CSMA/CD)

Ethernet is an example of LAN technology, and the IEEE standardized it in the 802.x series of standards. It is general practice to refer to the networks conforming to the IEEE 802.3 set of specifications as Ethernet LANs.

Page 15: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

15Arab Open University-Lebanon

Tutorial 2

Ethernet architectureThe initial interpretation of what meant by an Ethernet LAN was a 10 Mbits/s carrier sense multiple access with collision detection (CSMA/CD) network with thick co-axial cable connected to a bus configuration. Today, most LANs use twisted pair cable, based on a star configuration.Each computer connects to the network through a network interface card (NIC). The simplest arrangement in common use is to connect all the computers to a central hub (repeater) in a star topology. The job of the repeater is to regenerate (bit-by-bit) each packet received and send data to every other computer. This allows every computer to send data to every other computer.Typical commercial hubs can accept a maximum of 24 connections but can be extended by connecting two or more hubs together.

Page 16: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

16Arab Open University-Lebanon

Tutorial 2

Carrier sense Multiple accessA network interface card (NIC) can be in one of three states: transmitting, receiving, or cycling its state between transmission and reception. Before a NIC can transmit, it monitors its receivers and waits a period of silence (9.6 μs according to IEEE 802.3 standard) before transmitting a frame. The reason for the 9.6 μs inter-frame gap is to allow the station that last transmitted to cycle its circuitry from transmit mode to receive mode. Without the inter-frame gap, such a station might miss a fame that was destined for it because it had not yet cycled back into receive mode.In practice, some NIC manufacturers design their NICs with a smaller inter-frame spacing to give a higher data transfer rate.

Page 17: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

17Arab Open University-Lebanon

Tutorial 2

Collision DetectionTwo NICs may simultaneously detect ‘silence’ and both start to transmit resulting in collision. Collision detection refers to the ability of a NIC to detect the resulting ‘collision’ of frames, and react to resolve the conflict. The combination of carrier sensing (to prevent transmission that otherwise would result in collisions) and collision detection are the key features of the Ethernet protocol.

Page 18: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

18Arab Open University-Lebanon

Tutorial 2

When a collision is detected, the NIC waits a short while and then retransmit.

The events leading up to a collisionStation A detects that the physical medium has been quiet for 9.6 s and begins a data frame transmission.At some time before the signal from A reaches B, station B also transmits a data frame.At some point the frames from stations A and B pass each other (collide).The station closest detects the collision first (station B). it stops transmission and transmits a 32-bit jam message onto the channel.

Page 19: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

19Arab Open University-Lebanon

Tutorial 2

Ensuring detection of collisionFor CSMA/CD protocol, it is necessary to ensure that a NIC stays in the transmit mode long enough to detect a collision, i.e., all frames are longer than minimum size.For a CSMA/CD network, twice the propagation time between the two most distant stations is called the slot time. This time is also referred to as the contention time or round-trip delay. The slot time is often described in terms of bits rather than time. For example, 802.3 define the slot time as 512 bits. This can be converted into a round trip delay if you know the bit-rate that is being used.The time for signals to travel between stations is the sum of the time it takes for signals to propagate and the delay introduced by repeaters.

Page 20: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

20Arab Open University-Lebanon

Tutorial 2

Events following a collision When a station detects collision, it immediately stops

the transmission of the frame. Then it calculates a delay period using an algorithm known as the binary exponential backoff algorithm before retransmit again.

As more stations place demands on the network, the share each gets of the total available bandwidth decreases. In addition, as the demand for network bandwidth increases, efficiency begins to drop because more frames have to be retransmitted.

In an extreme case, an Ethernet LAN can enter a collapse state where all frames collide for a significant amount of time. Typically, collapse is triggered by an interface with a failure in its circuitry causing it to send a continuous stream of frames- a condition known as jabbering.

Page 21: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

21Arab Open University-Lebanon

Tutorial 2

Collision domainsAlthough each station has a separate connection to the hub, its NIC cannot receive and transmit at the same time. This type of working is known as half-duplex. A full-duplex working is one where a NIC can receive and transmit simultaneously.In a star topology, twisted-pair cables directly link a station to the hub, and a separate pair of wires is used for each direction of transmission. Collisions are detected if the NIC detects a signal on the ‘receive’ pair at the same time it is transmitting on the ‘transmit’ pair. A bridge prevents the spread of collisions by detecting collided frames and discarding them. Bridges can detect the start and end of each frame, and hence can recognize frame less than the minimum size. Two or more stations in the same collision domain cannot transmit simultaneously without causing a collision, whereas stations in different collision domains can. The bridge will handle the simultaneously reception and transmission of frames.

Page 22: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

22Arab Open University-Lebanon

Tutorial 2

All computers connected together by repeater hubs are said to share a collision domain. The method of sending packets to every connected computer is called broadcast.The advantage of broadcast is that it is an easy protocol to implement, but the problem is that it generates a lot of traffic as all the packets are copied and sent around the network.In order to avoid spread data too widely across a network, a bridge is used. This device directs traffic by acting intelligently upon address information contained within the header of every packet it receives. A bridge knows where to send packets because it has a forwarding table (implemented in software). It constructs its forwarding table by analyzing source address in each packet it receives, and recording which port the packet arrived on. From this data, it is able to list the addresses of all the computers on the LAN, and for each address, indicate which port will reach that computer.

Page 23: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

23Arab Open University-Lebanon

Tutorial 2

Topic 5: Fast and Gigabit Ethernet

The increase in the number of users, together with bandwidth-hungry applications (like full-color publishing, medical applications requiring complex images, network back-up of servers and storage systems) requires new methods of interconnecting computers on LANs. The performance of Ethernet can be improved through the use of fast (100 Mbit/s), gigabit (1000 Mbit/s) and 10 gigabit (10 Gbit/s) Ethernet Technologies.

Page 24: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

24Arab Open University-Lebanon

Tutorial 2

The IEEE 802.3 Sub-LayersThe idea of layers helps explain how it has been possible to keep separate the changes in protocol and medium access as the speed of Ethernet has increased from 10 Mbit/s to 10 Gbit/s.The IEEE 802.3 specification divides the data link layer into two sub-layers: the logical link control (LLC) sub-layer and the medium access control (MAC) sub-layer.The CSMA/CD protocol is one implementation of MAC sub-layer.

MAC

Network

Data Link

Physical

LLC Logical Link Control sublayer

Medium Access Control sublayer

Page 25: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

25Arab Open University-Lebanon

Tutorial 2

When frames are sent across a physical medium, it will be necessary to convert the data contained within the frame into a physical signal that can be sent over the medium. This process is called line coding.The electrical signals that represent an IEEE 802.3 MAC frame are created and communicated to the LAN cable through the physical sub-layersThe 10 Gbit/s LAN is primarily intended to operate over optical-fiber cable.

Page 26: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

26Arab Open University-Lebanon

Tutorial 2

Fast EthernetFast Ethernet provides an extension of the IEEE 802.3 MAC sub-layer protocol that increases the transmission rate from 10 Mbit/s to 100 Mbit/s. The fast Ethernet specification is named 100baseT and contains a set of options that allow the fast Ethernet protocols to be used with different media like:

100baseT4: designed to operate using four pairs in unshielded twisted-pair (UTP) cables and uses 8B6T coding (8 binary digits represented as 6 ternary symbols). The T stands for twisted pair and the 4 for the number of pairs.100baseFX: designed for use with optical fiber.

Fast Ethernet retains CSMA/CD protocol enabling data to move between basic Ethernet and fats Ethernet nodes on the LAN without protocol translation.The IEEE 802.3 specification allows for a maximum cable length of 2.5 km with four repeaters.

Page 27: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

27Arab Open University-Lebanon

Tutorial 2

Gigabit EthernetThe key objectives of the Gigabit Ethernet Task Force were to develop a gigabit Ethernet standard that:

Allows half- and full-duplex operations at speeds of 1000 Mbit/s.Uses the 802.3 frame format.Uses the CSMA/CD access method.Is compatible with earlier 10baseT and 100baseT technologies.

Page 28: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

28Arab Open University-Lebanon

Tutorial 2

Gigabit EthernetThe gigabit Ethernet protocol provides an unacknowledged, best-effort delivery service (delivery of the message across a network is attempted but not guaranteed) and requires no changes in higher layers. In 10 and 100 Mbit/s , the minimum MAC frame length is set to 512 bits. This determines the slot time and the maximum distance between the two most distant stations on the LAN. The physical sub-layers in gigabit Ethernet are architecturally identical to fast Ethernet but the details of conversion between the MAC sub-layer and the physical medium will be different (for example, line coding).

Page 29: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

29Arab Open University-Lebanon

Tutorial 2

Topic 6: Switched Ethernet

One approach applicable to increase the data transmission rates to 10, 100 or 1000 Mbit/s systems is to re-organize the architecture of a network to provide higher bit-rates only where they are needed. The introduction of switches, together with the change towards UTP cabling boost a move away from the shared half-duplex medium to full-duplex operation in Ethernet.

Page 30: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

30Arab Open University-Lebanon

Tutorial 2

Switched Ethernet

Full-Duplex operationThe normal half-duplex operation of an Ethernet NIC means that it can either transmit or receive, but not both together. The advantage of moving to full duplex operation is doubling the throughput of the LAN. For example, a 100 Mbit/s link is capable of carrying 200 Mbit/s.Full-duplex Ethernet operation is becoming possible through moves to a general use of UTP cable as an alternative to the original coaxial cable.

Page 31: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

31Arab Open University-Lebanon

Tutorial 2

Bridges and switching hubsOne solution to increasing the effective bandwidth is to segment a LAN into sub-LANs, each of which has a coherent user population, for example a department or a workgroup, and its own server.The rationale for creating a sub-LAN is that communication between most individual users has a higher probability of being with other members of the sub-LAN than with members of other sub-LANs. A bridge then connects a pair of sub-LANs.

Page 32: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

32Arab Open University-Lebanon

Tutorial 2

Bridges and switching hubs

Partitioning the workgroups with a bridge means that local workgroup traffic will no longer affect the operation of the other workgroup.A bridge will contain a look-up table that maps individual node addresses on all its sub-LAN segments to its ports. In this way, the bridge ‘knows’ to which of its ports any frame has to be sent. The bridge inspects every frame and looks up the destination address in the table and sends it out on the appropriate port. If the destination address is unknown, the bridge ‘floods’ all ports except the receiving port with the received frame.

Page 33: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

33Arab Open University-Lebanon

Tutorial 2

Page 34: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

34Arab Open University-Lebanon

Tutorial 2

SwitchesSwitches are bridges with large numbers of ports, which were capable of forwarding frames at ‘wire speed’ on all ports. A switched LAN is an alternative to a shared-bandwidth LAN. In a switched LAN, each port on a switch constitutes a single collision domain. So, if more than one station is attached to a port, collisions can occur between them. If only a single station is attached to a port, collisions cannot occur between stations.

Page 35: T305: Digital Communications

T305: DIGITAL COMMUNICATIONS

35Arab Open University-Lebanon

Tutorial 2

The benefits of full-duplex operations are not apparent for computers or workstations used in standard business operations such as word processor. Full-duplex operation is really directed to server operation, in which several applications and users are supported simultaneously. The advantages are:

Full-duplex NICs: simultaneous transmission and reception.Full-duplex transmission medium: independent transmit and receive paths.Full-duplex switches: provision of contention-free paths between stations.

One significant benefit of full-duplex operation comes from the elimination of collision domains. Hence, full-duplex operation with no collision domain, allows LANs to span greater distances.When the receiver's input buffer approaches its capacity, the receiver's transmit section inserts a pause frame in order to slow down the sending station.