T 305 DIGITAL COMMUNICATIONS T 305 Digital Communications

  • Slides: 27
Download presentation
T 305: DIGITAL COMMUNICATIONS T 305: Digital Communications Block I – Representing Systems Modeling

T 305: DIGITAL COMMUNICATIONS T 305: Digital Communications Block I – Representing Systems Modeling Activity Arab Open University-Lebanon Tutorial 3 1

T 305: DIGITAL COMMUNICATIONS Exercises 1 A piece of music is to be recorded

T 305: DIGITAL COMMUNICATIONS Exercises 1 A piece of music is to be recorded in digital format: n. Frequency range: 100 Hz – 18 KHz n. Bit resolution 16 bits n. What will be the bit rate in second n Answer: n. Sampling rate will be 18 X 2 KHz=36 KHz. n. Each sample will take 16 bits n. Bit rate will be 16 X 36 KHz=570 KBit/s n Arab Open University-Lebanon Tutorial 3 2

T 305: DIGITAL COMMUNICATIONS Exercises 2 How many 64 Kbit/s telephone calls could be

T 305: DIGITAL COMMUNICATIONS Exercises 2 How many 64 Kbit/s telephone calls could be carried simultaneously on 622 Mbit/s link. n n Answer: 622 Mbit/s = 622*1024 Kbit/s= 636928 Kbit/s n the number of calls = 636928 Kbit/s divided on 64 Kbit/s =576 calls simultaneously n Arab Open University-Lebanon Tutorial 3 3

T 305: DIGITAL COMMUNICATIONS Exercises 3 What is the round tripe delay between two

T 305: DIGITAL COMMUNICATIONS Exercises 3 What is the round tripe delay between two computers, each of which is connected by 80 m of cable to a repeater hub, and two repeaters are connected by 100 m of cable: n. Assume the following: n. Operation 10 Mbit/s n. Velocity of propagation on the cable v=1. 77 X 10 p 8 m/s n. Delay through repeater is 1 Micros. n PC 2 80 m pc 1 Repeater 1 repeater 2 100 m Arab Open University-Lebanon Tutorial 3 80 m 4

T 305: DIGITAL COMMUNICATIONS Answer 3 The distance between two PC will be 80+100+80=260

T 305: DIGITAL COMMUNICATIONS Answer 3 The distance between two PC will be 80+100+80=260 m. n. The time to cross over 260 m with velocity v is then calculated using the formula d=v*t: n. T= d/v=260/1. 77 X 10 p 8 =1. 46 Micro s. n. There are two repeaters so the delay will be 2 micro second. nthe signal will need 2+1. 46 =3. 46 micro s to pass from one computer to the other and the double for a round tripe time will be 6. 9 micro second. n. It can also be expressed in bits using the formula No of Bites= bitrate* time n. Nr of Bites =10 Mbit/s X 6. 9 micro s= 69 bits n Arab Open University-Lebanon Tutorial 3 5

T 305: DIGITAL COMMUNICATIONS Question 4 What is the quantization interval of a 10

T 305: DIGITAL COMMUNICATIONS Question 4 What is the quantization interval of a 10 -bit converter covering range from +8 volts to -8 volts? n Answer: n 2 power 10 will give 1024 binary combinations. n. And the range of voltage is 8+8= 16, so dividing 16 over 1024 will give the quantization interval = 0. 0156 n Arab Open University-Lebanon Tutorial 3 6

T 305: DIGITAL COMMUNICATIONS Exercises n Q 1 (answer yourself) A piece of music

T 305: DIGITAL COMMUNICATIONS Exercises n Q 1 (answer yourself) A piece of music is to be recorded in digital format in the manner explained in the sound section of the ICT CD_ROM. The frequency components within the source, to be sampled, range from 100 Hz to 20 k. Hz and each sample is represented using a 16 -bit word. Which of the following options is closest to the minimum bit rate that could be used? Choose the closest option and pencil across the appropriate cell in row A 1000 kbits/s E 320 kbit/s B 430 kbits/s F 270 kbit/s C 650 k. Bits/s G 720 kbits/s D 580 kbits/s H 680 kbits/s Arab Open University-Lebanon Tutorial 3 7

T 305: DIGITAL COMMUNICATIONS Q 2 (answer yourself) Determine the quantisation interval of 21

T 305: DIGITAL COMMUNICATIONS Q 2 (answer yourself) Determine the quantisation interval of 21 -bit converter having a dynamic range of – 6 V to +6 V. Choose the closest option A 15 m. V n. B 5. 75 μV n. C 10 μ V n. D 18 μV n E 1. 2 m. V F 3. 45 μV G 15 V V H 100 μV Arab Open University-Lebanon Tutorial 3 8

T 305: DIGITAL COMMUNICATIONS Q 3 (answer yourself) Determine the round trip delay between

T 305: DIGITAL COMMUNICATIONS Q 3 (answer yourself) Determine the round trip delay between the two computers shown in Figure below. The velocity of propagation is 2. 3*10 8 m/s and the delay introduced by a hub is 0. 6 μs Choose the closest option and pencil across the appropriate cell in row 4 n. A 3. 3 μs E 2. 9 μ s n. B 2 μs F 5 μs n. C 10 μ s G 6 μs n. D 4 μs H 100 μs Arab Open University-Lebanon Tutorial 3 9

T 305: DIGITAL COMMUNICATIONS Q 4 Figure below shows three segments of a local

T 305: DIGITAL COMMUNICATIONS Q 4 Figure below shows three segments of a local area network which are separated by transparent bridges. The forwarding tables for the bridges are at present empty as they have only just been incorporated into the network. B 1 and B 2 are the bridges and PC 1 –to- PC 6 are terminals. Note: definition of forwarding table is a table for each bridge which has two columns, first coulmn it will tell which terminal send the packet, second column tells which segment it comes from Arab Open University-Lebanon Tutorial 3 10

T 305: DIGITAL COMMUNICATIONS Q 4 The first three packets to be sent are:

T 305: DIGITAL COMMUNICATIONS Q 4 The first three packets to be sent are: Packet 1 from PC 3 to PC 6 Packet 2 from PC 4 to PC 5 Packet 3 from PC 2 to PC 4 Draw the forwarding tables after these three packets have been sent Arab Open University-Lebanon Tutorial 3 11

T 305: DIGITAL COMMUNICATIONS Table H Arab Open University-Lebanon Tutorial 3 12

T 305: DIGITAL COMMUNICATIONS Table H Arab Open University-Lebanon Tutorial 3 12

T 305: DIGITAL COMMUNICATIONS Lecture 3 Representing Systems

T 305: DIGITAL COMMUNICATIONS Lecture 3 Representing Systems

T 305: DIGITAL COMMUNICATIONS Outline n n Introduction Finite State Machines Object Oriented Models

T 305: DIGITAL COMMUNICATIONS Outline n n Introduction Finite State Machines Object Oriented Models Specification and Description Language

T 305: DIGITAL COMMUNICATIONS Introduction n Models or block-diagram are used throughout engineering to

T 305: DIGITAL COMMUNICATIONS Introduction n Models or block-diagram are used throughout engineering to represent the behavior and structure of systems. The structure of a system indicates the components of a system and the relationship between them. The behavior of the system indicates what the system does. n Arab Open University-Lebanon Tutorial 3 15

T 305: DIGITAL COMMUNICATIONS Introduction (cont. ) The modeling techniques can be used to

T 305: DIGITAL COMMUNICATIONS Introduction (cont. ) The modeling techniques can be used to describe communication systems; a system can consist entirely of software or of hardware or both. n Generally, systems are so complex it is necessary to ignore many of the details of the system. This process is called abstraction. n Arab Open University-Lebanon Tutorial 3 16

T 305: DIGITAL COMMUNICATIONS Finite State Machines The behavior of many communication systems can

T 305: DIGITAL COMMUNICATIONS Finite State Machines The behavior of many communication systems can be expressed in terms of output signals generated in response to input signals. Arab Open University-Lebanon Tutorial 3 17

T 305: DIGITAL COMMUNICATIONS Finite State Machines State transition tables The behavior of a

T 305: DIGITAL COMMUNICATIONS Finite State Machines State transition tables The behavior of a state machine can be represented by a state transition table as shown below. n Arab Open University-Lebanon Tutorial 3 18

T 305: DIGITAL COMMUNICATIONS Finite State Machines State transition diagrams (cont. ) Arab Open

T 305: DIGITAL COMMUNICATIONS Finite State Machines State transition diagrams (cont. ) Arab Open University-Lebanon Tutorial 3 19

T 305: DIGITAL COMMUNICATIONS Finite State Machines Signal sequence diagrams model exchange of signals

T 305: DIGITAL COMMUNICATIONS Finite State Machines Signal sequence diagrams model exchange of signals between a finite state machine and its environment n Signals are represented by sloping lines. Vertical displacement of a sloping line gives a measure of time taken. n Arab Open University-Lebanon Tutorial 3 20

T 305: DIGITAL COMMUNICATIONS Finite State Machines Signal sequence diagrams (cont. ) Arab Open

T 305: DIGITAL COMMUNICATIONS Finite State Machines Signal sequence diagrams (cont. ) Arab Open University-Lebanon Tutorial 3 21

T 305: DIGITAL COMMUNICATIONS Object Oriented Models A system can be viewed as a

T 305: DIGITAL COMMUNICATIONS Object Oriented Models A system can be viewed as a set of interacting components. In the object-oriented approach to modeling systems, these components are represented by objects. n A class of objects which is a specialization of an existing class is called a subclass and the more general class is called the parent class or super-class. n Arab Open University-Lebanon Tutorial 3 22

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) Relationships between objects are also

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) Relationships between objects are also described as associations. For example, some windows may be on n top of others on a computer screen. This could be described by the relationship ‘is on top of’ between different window objects. n. One special type of relationship is when one object is part of another. This is called aggregation or some times containment and is often described as a ‘part of’ relationship. Fro example, a drop-down menu ‘is part of’ a window. Arab Open University-Lebanon Tutorial 3 23

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) Relationships between objects have a

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) Relationships between objects have a multiplicity. This indicates how many instances of each of the classes are involved in the relationship. n. In a one-to-one relationship only one instance of each n class takes part in the relationship. For example, the aggregation relationship between ‘Window’ and ‘Title bar’ is one-to-one. n. In a one-to-many relationship there may be several instances of one of the classes but only one of the other. For example, the aggregation relationship between ‘Window’ and ‘Drop-down menu’ is one-to-many. Arab Open University-Lebanon Tutorial 3 24

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) In a many-to-many relationship each

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) In a many-to-many relationship each instance of one class may be related to many instances of the other class. For example, the relationship between windows described by ‘is on top of’ is many-to-many. n Arab Open University-Lebanon Tutorial 3 25

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) n There a number of

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) n There a number of different approaches or methodologies which are used for building objectoriented models of systems. However, each include the following steps: 1. 2. 3. 4. 5. Identify the classes of objects which make up the system. Define the relationships between the classes. Specify the attributes for the classes Identify the messages which need to pass between the objects. Assign operations to the different classes. Arab Open University-Lebanon Tutorial 3 26

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) Steps 1 to 3 :

T 305: DIGITAL COMMUNICATIONS Object Oriented Models (cont. ) Steps 1 to 3 : object model. n. Steps 4 and 5: dynamic model. none approach is to specify the flow of messages between objects in response to particular events. The diagram which results from this analysis is called an event flow diagram. n Arab Open University-Lebanon Tutorial 3 27