Lecture 3.1 Network Layer
Lecture 3.1 Network Layer
• Reduces complexity
• Standardizes interfaces
• Facilitates modular engineering
• Ensures interoperable technology
• Accelerates evolution
• Simplifies teaching and learning
The Seven Layers of the OSI Model
Binary Transmission:
Defines the electrical, mechanical, procedural, and
functional specifications for activating, maintaining,
and deactivating the physical link
Physical Media Types
Physical Media Types (Cont..)
Physical Media Comparison
Hub or Repeater
MAC Address
Switch
Data link layer performs the most reliable node to node delivery of data.
It forms frames from the packets that are received from network layer and gives it to
physical layer.
It also synchronizes the information which is to be transmitted over the data.
Error controlling is easily done.
The encoded data are then passed to physical.
Data Link Layer
Data Link Layer
Frame Header: It contains the source and the destination addresses of the frame
and the control bytes.
Payload field: It contains the message to be delivered.
Trailer: It contains the error detection and error correction bits. It is also called a
Frame Check Sequence (FCS).
Flag: Two flag at the two ends mark the beginning and the end of the frame.
Fields of a Data Link Layer Frame
Frame Header
A frame header contains the destination address, the source address and three
control fields kind, seq, and ack serving the following purposes:
kind: This field states whether the frame is a data frame or it is
used for control functions like error and flow control or link
management etc.
seq: This contains the sequence number of the frame for
rearrangement of out – of – sequence frames and sending
acknowledgments by the receiver.
ack: This contains the acknowledgment number of some frame,
particularly when piggybacking is used.
Fields of a Data Link Layer Frame
Payload: This carries the data from the network layer. The maximum
length of the payload field is 1500 bytes.
FCS: It is a 2 byte or 4 bytes frame check sequence for error detection.
The standard code used is CRC (cyclic redundancy code).
Fields of a Data Link Layer Frame
IP is a standard that defines the manner in which the network layers of two
hosts interact. IP addresses are 32 bit long, hierarchical addressing scheme.
192.168.6.17
The devices that operate at the Network layer are routers and Layer 3 Switches.
Router
Layer 3 Switch
Routers
Routers facilitate communication within this internet work. It decides how to send
packets within the network so that they arrive at their destination.
Layer 3 Switches
This layer is concerned with getting packets from the source all
the way to the destination.
Getting to the destination may require making many hops at
intermediate routers along the way.
Thus, the network layer is the lowest layer that deals with end-to-
end transmission
To achieve its goals, the network layer must know about the
topology of the communication subset (i.e., the set of all routers)
and choose appropriate paths through it.
Network Layer
A host with a packet to send transmits it to the nearest router, either on its
own LAN or over a point-to-point link to the carrier
The packet is stored there until it has fully arrived so the checksum can be
verified.
Then it is forwarded to the next router along the path until it reaches the
destination host, where it is delivered
This mechanism is store-and-forward packet switching
Store − and forward packet switching ensures high quality data packet
transmission. Since erroneous packets are discarded at each router, bad
packets or invalid packets in the network are mostly eliminated.
Network Layer – Design Issues
Router: When a packet comes into a router, the frame header and trailer
are stripped off and the packet located in the frame’s payload field is
passed to the routing software. This software uses the packet header to
choose an output line.
Each router has an internal table telling it where to send packets for each
possible destination.
The algorithm that manages the tables and makes the routing decisions is
called the routing algorithm.
Network Layer – Design Issues
4. Implementation of Connection-oriented Service
https://www.cisco.com/c/en_in/products/switches/what-is-a-wan-wide-area-netwo
rk.html#~what-it-is
https://www.youtube.com/watch?v=LANW3m7UgWs
https://www.youtube.com/watch?v=-6Uoku-M6oY