Networking Modelsnit
Networking Modelsnit
Assume Maria and Ann are neighbors with a lot of common ideas.
However, Maria speaks only Spanish, and Ann speaks only English.
Since both have learned the sign language in their childhood, they enjoy
meeting in a cafe a couple of days per week and exchange their ideas
using signs. Occasionally, they also use a bilingual dictionary.
Communication is face to face and Happens in one layer as shown in
Fig.
Example
Now assume that Ann has to move to another town because of her job. Before she
moves, the two meet for the last time in the same cafe. Although both are sad, Maria
surprises Ann when she opens a packet that contains two small machines. The first
machine can scan and transform a letter in English to a secret code or vice versa. The
other machine can scan and translate a letter in Spanish to the same secret code or vice
versa. Ann takes the first machine; Maria keeps the second one. The two friends can still
communicate using the secret code, as shown in Fig.
THE OSI MODEL
Physical Physical
Link 1 Link 3 Link 5 Link 6
D2 H2
Frame
D2 ame
Fr
H2
D2 H2 D2 H2
Frame Frame
Note
Physical Physical
D3 H3
Datagram
D3 H3
Datagram
Note
Physical Physical
D4 H4
Segment
D4 H4
Segment
Note
A B
Application Legend Source Destination D Data H Header Application
Transport Transport
R1 R3 R4
Network Network
Physical Physical
D5 D5
Message
D5 D5
Message
Note
85
10 Medium
T2 DATA A P 10 20 F
99 R 20
G
RING T2 DATA A P 99 33
N
45 33 R 66
P M
T2 DATA A P 66 95
95 Medium 77
Process to Process Delivery of message b/w Tx & Rx
Create connection b/w two end ports for sake of security.
Service Point or Port Addressing – Yahoo Messenger
Segmentation and Reassembly- Divide the message received
from Session layer in to Segments and number them to make a
sequence for reassembly at the receiving side
Flow Control
End to End rather than across a link.
Controls duplication of message
Connection Control
◦ Connection Oriented Transport Layer, like Telephone
◦ Connectionless Transport Layer, like E-Mail
Error Control
End to End rather than across a link.
Sending transport layer makes ensure that the entire message arrives at the
receiving transport layer without error.
A P
DATA J K TL TL DATA J K
DATA 2 J k A P DATA 1 J k A P
NL NL
DATA 1 J k A P DATA 2 J k A P
DLL DLL
T2 DATA 2 J k A P H2 T2 DATA 1 J k A P H2
T2 DATA 1 J k A P H2 T2 DATA 2 J k A P H2
INTERNET
Network dialog controller. Establishes,
maintains and Synchronizes interaction b/w
comm. systems
Dialog Controlling – Half Duplex or Full
Duplex
Synchronization – Allows a process to add
checkpoints to a stream of data
From PL To PL
L6 Data L6 Data
H5
H5
Syn
Syn
L5 Data L5 Data
To TL From TL
Concerned with Syntax and Semantics of the
information exchanged b/w the two
communication systems
Translation – Encoding and Decoding
◦ Sender to Common format on Sending side
◦ Common to Receiving format on Rx side
Encryption – for security and privacy purpose
Compression – reducing the number of bits
to sent over network.
From AL To AL
L7 Data L7 Data
Syn
L6 Data L6 Data
To SL From SL
Provides User interfaces and support for
Services, like e-mail, file transfer.
Network Virtual terminal
File Transfer Access, and Management(FATM)
Mail Services
Directory Services
User A User B
L7 Data L7 Data
To PL From PL
2-4 ADDRESSING
1 packet
87 10 Data accepted
87 10 Data
4
Example 2.4
As we will see in Chapter 3, 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
Example 2.5
Figure 2.17 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. So each router has three pairs of addresses, one for each
connection. Although it may be obvious that each router must have a
separate physical address for each connection, it may not be obvious
why it needs a logical address for each connection. We discuss these
issues in Chapters 11 and 12 when we discuss routing. The computer
with logical address A and physical address 10 needs to send a
packet to the computer with logical address P and physical address
95. We use letters to show the logical addresses and numbers for
physical addresses, but note that both are actually numbers, as we
will see in later chapters.
Figure 2.17 Example 2.5: logical addresses
Physical
addresses
changed
95 66 A P Data 95 66 A P Data
33 99 A P Data
Physical
addresses
changed
Note
A Sender Receiver P
Data Data
a j Data a j Data
A P a j Data A P a j Data
H2 A P a j Data H2 A P a j Data
Internet
Note
753
A 16-bit port address represented as one single number