data comm. & networks
DESCRIPTION
Data Comm. & Networks. Instructor: Ibrahim Tariq Lecture 3. TCP/IP Protocol. TCP/IP Vs OSI Model. Four Level of Addresses. Relationship of Layers & Addresses in TCP/IP. Note. The physical addresses will change from hop to hop, but the logical addresses usually remain the same. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/1.jpg)
Data Comm. & Networks
Instructor: Ibrahim Tariq
Lecture 3
![Page 2: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/2.jpg)
2
TCP/IP Protocol
![Page 3: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/3.jpg)
3
TCP/IP Vs OSI Model
![Page 4: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/4.jpg)
4
Four Level of Addresses
![Page 5: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/5.jpg)
5
Relationship of Layers & Addresses in TCP/IP
![Page 6: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/6.jpg)
6
The physical addresses will change from hop to hop,but the logical addresses usually remain the same.
Note
![Page 7: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/7.jpg)
2.7
In Figure below a node with physical address 10 sends a frame to a node with physical address 87. The two nodes are connected by a link (bus topology LAN). As the figure shows, the computer with physical address 10 is the sender, and the computer with physical address 87 is the receiver.
![Page 8: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/8.jpg)
2.8
Physical addresses
![Page 9: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/9.jpg)
2.9
Most local-area networks use a 48-bit (6-byte) physical address written as 12 hexadecimal digits; every byte (2 hexadecimal digits) is separated by a colon, as shown below:
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
![Page 10: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/10.jpg)
2.10
Figure below shows a part of an internet with two routers connecting three LANs. Each device (computer or router) has a pair of addresses (logical and physical) for each connection. In this case, each computer is connected to only one link and therefore has only one pair of addresses. Each router, however, is connected to three networks (only two are shown in the figure). So each router has three pairs of addresses, one for each connection.
![Page 11: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/11.jpg)
2.11
IP addresses
![Page 12: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/12.jpg)
2.12
Figure below shows two computers communicating via the Internet. The sending computer is running three processes at this time with port addresses a, b, and c. The receiving computer is running two processes at this time with port addresses j and k. Process a in the sending computer needs to communicate with process j in the receiving computer. Note that although physical addresses change from hop to hop, logical and port addresses remain the same from the source to destination.
![Page 13: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/13.jpg)
2.13
Figure 2.21 Port addresses
![Page 14: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/14.jpg)
2.14
The physical addresses will change from hop to hop,but the logical addresses usually remain the same.
Note
![Page 15: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/15.jpg)
2.15
A port address is a 16-bit address represented by one decimal number as shown.
753
A 16-bit port address represented as one single number.
![Page 16: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/16.jpg)
2.16
The physical addresses change from hop to hop,but the logical and port addresses usually remain the same.
Note
![Page 17: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/17.jpg)
17
Communication NetworkCommunication networks
Broadcast networksEnd nodes share a common channel (TV,
radio…)
Switched networks End nodes send to one (or more) end nodes
Packet switchingData sent in discrete portions
(the Internet)
Circuit switchingDedicated circuit per call
(telephone, ISDN)(physical)
![Page 18: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/18.jpg)
18
Communication NetworkCommunication networks
Broadcast networksEnd nodes share a common channel (TV,
radio…)
Switched networks End nodes send to one (or more) end nodes
Packet switchingData sent in discrete portions
(the Internet)
Circuit switchingDedicated circuit per call
(telephone, ISDN)(physical)
![Page 19: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/19.jpg)
19
Circuit switching
• A dedicated communication path (sequence of links-circuit) is established between the two end nodes through the nodes of the network
• Bandwidth: A circuit occupies a fixed capacity of each link for the entire lifetime of the connection. Capacity unused by the circuit cannot be used by other circuits.
• Latency: Data is not delayed at switches
![Page 20: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/20.jpg)
20
Circuit switching (cnt’d)
Three phases involved in the communication process:
1. Establish the circuit
2. Transmit data
3. Terminate the circuit
If circuit not available: busy signal (congestion)
![Page 21: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/21.jpg)
21
Time diagram of circuit switching
circuit establishment
data transmission
host 1 node 1 node 2 host 2
Delay host 1- node 1
time
Processing delay node 1
DATA
Delay host 2- host 1
switch
![Page 22: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/22.jpg)
22
Circuit Switching
• Network resources (e.g., bandwidth) divided into “pieces”
• pieces allocated to calls• resource piece idle if not used by owning call
(no sharing)• dividing link bandwidth into “pieces”
– frequency division– time division
![Page 23: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/23.jpg)
23
Circuit Switching: FDM and TDM
FDM
frequency
time
TDM
frequency
time
4 users
Example:
![Page 24: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/24.jpg)
24
Assume that a voice channel occupies a bandwidth of 4 kHz. We need to combine three voice channels into a link with a bandwidth of 12 kHz, from 20 to 32 kHz. Show the configuration, using the frequency domain. Assume there are no guard bands.
SolutionWe shift (modulate) each of the three voice channels to a different bandwidth, as shown in Figure on next Slide. We use the 20- to 24-kHz bandwidth for the first channel, the 24- to 28-kHz bandwidth for the second channel, and the 28- to 32-kHz bandwidth for the third one. Then we combine them.
Example
![Page 25: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/25.jpg)
25
Example (contd.)
![Page 26: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/26.jpg)
26
Five channels, each with a 100-kHz bandwidth, are to be multiplexed together. What is the minimum bandwidth of the link if there is a need for a guard band of 10 kHz between the channels to prevent interference?
SolutionFor five channels, we need at least four guard bands. This means that the required bandwidth is at least
5 × 100 + 4 × 10 = 540 kHz
Example
![Page 27: Data Comm. & Networks](https://reader036.vdocument.in/reader036/viewer/2022062422/56813c63550346895da5ec9b/html5/thumbnails/27.jpg)
27
Applications
• AM Radio– Band 530-1700KHz– Each AM Station needs 10KHz
• FM Radio– Band 88-108MHz– Each FM Station needs 200KHz
• TV– Each Channel needs 6MHz
• AMPS