4-Lecture 1-2 - Eceg - 4191 - Chapter 4 Network Layer
4-Lecture 1-2 - Eceg - 4191 - Chapter 4 Network Layer
through it network
data link
physical
routing algorithm
value in arriving
packet’s header
0111 1
3 2
call setup, teardown for each call before data can flow
each packet carries VC identifier (not destination host
address)
every router on source-dest path maintains “state” for
each passing connection
link, router resources (bandwidth, buffers) may be
allocated to VC
12 22 32
1 3
2
1 12 3 22
2 63 1 18
3 7 2 17
1 97 3 87
… … … …
application
6. Receive data application
transport 5. Data flow begins
network 4. Call connected 3. Accept call transport
data link 1. Initiate call 2. incoming call network
data link
physical
physical
application
application
transport
transport
network
data link 1. Send data 2. Receive data network
data link
physical
physical
otherwise 3
Examples
Internet ATM
data exchange among evolved from telephony
computers
human conversation:
“elastic” service, no strict
strict timing, reliability
timing req.
requirements
“smart” end systems
need for guaranteed
(computers)
service
can adapt, perform
control, error recovery
simple inside network,
complexity at “edge”
many link types
different characteristics
uniform service difficult
Network Layer 4-15
Chapter – 4
Network Layer
Lecture -2
IPV4 Addressing
Link layer
physical layer
Solution : -2
The class is B. The first 2 bytes defines the netid. We can find the network
address by replacing the hostid bytes (17.85) with 0s. Therefore, the
network address is 132.6.0.0.
Default masks
In Dotted-
Class In Binary Using Slash
Decimal
• It retains the netid of the block and sets the hostid to 0s.
Example – 3a
Solution
The binary representation of the given address is
11001101 00010000 00100101 00100111
If we set 32−28 rightmost bits to 0, we get
11001101 00010000 00100101 0010000
or
205.16.37.32.
This is actually the block shown in Figure .
Note
Solution
The value of n is 28, which means that number
of addresses is 2 32−28 or 16.
Example -3d
Another way to find the first address, the last address, and
the number of addresses is to represent the mask as a 32-
bit binary (or 8-digit hexadecimal) number. In previous
Example the /28 can be represented as
11111111 11111111 11111111 11110000
(twenty-eight 1s and four 0s).
Find
a. The first address
b. The last address
c. The number of addresses.
Example -3d(continued)
Solution
a. The first address can be found by ANDing the given
addresses with the mask. ANDing here is done bit by
bit. The result of ANDing 2 bits is 1 if both bits are 1s;
the result is 0 otherwise.
Example -3d (continued)
10.0.0.4
10.0.0.2
138.76.29.7
10.0.0.3