Professional Documents
Culture Documents
CN Unit I
CN Unit I
Disclaimer:
a. Information included in these slides came from multiple sources. We have tried our
best to cite the sources. Please refer to the references to learn about the sources,
when applicable.
b. The slides should be used only for preparing notes, academic purposes (e.g. in teaching
a class), and should not be used for commercial purposes.
CS311: Computer Networks
Examination Scheme:
Continuous Assessment: 50 Marks End Semester Examination: 50 Credit: 2+1
Course Objectives:
To gain basic knowledge of network topologies, standards and protocols
To learn network layer protocols
To explore services offered by transport layer
To understand protocols of application layer
Course Outcomes:
After completion of this course students will be able to:
Analyze and apply different types of network topologies and standards
Use the knowledge of network protocols to analyze and design new networks
Identify and use transport layer based appropriate communication
Apply the standards and protocols learned for designing client server based applications
Classification of interconnected
processors:
Personal area networks (PAN)
Ad-hoc network
1/1/2020 12
Computer Network Unit I
Local Area Network (LAN)
1/1/2020 13
Computer Network Unit I
Metropolitan Area Network(MAN): based on cable TV
Client-Server
Peer-to-Peer
Distributed Network
Protocol hierarchies
Network Services:
Connection-oriented v/s connectionless service
1/1/2020 29
Computer Network Unit I
OSI Reference Model
Application layer
Presentation layer
Session layer
Transport layer
Network layer
Data link layer
Physical layer
2. In OSI model the transport layer guarantees the 2. In TCP/IP model the transport layer does not
delivery of packets. guarantees delivery of packets. Still the TCP/IP model is
more reliable.
3. Follows vertical approach. 3. Follows horizontal approach.
4. OSI model has a separate Presentation layer and 4. TCP/IP does not have a separate Presentation layer or
Session layer. Session layer.
5. Transport Layer is Connection Oriented. 5. Transport Layer is both Connection Oriented and
Connection less.
1/1/2020 Computer Network Unit I 33
Comparison of OSI & TCP/IP Reference Models
OSI(Open System Interconnection) TCP/IP(Transmission Control Protocol / Internet
Protocol)
6. Network Layer is both Connection Oriented and 6. Network Layer is Connection less.
Connection less.
7. OSI is a reference model around which the networks are 7. TCP/IP model is, in a way implementation of the OSI
built. Generally it is used as a guidance tool. model.
8. Network layer of OSI model provides both connection 8. The Network layer in TCP/IP model provides
oriented and connectionless service. connectionless service.
9. OSI model has a problem of fitting the protocols into the 9. TCP/IP model does not fit any protocol
model.
10. Protocols are hidden in OSI model and are easily 10. In TCP/IP replacing protocol is not easy.
replaced as the technology changes.
11. OSI model defines services, interfaces and protocols 11. In TCP/IP, services, interfaces and protocols are not
very clearly and makes clear distinction between them. It is clearly separated. It is also protocol dependent.
protocol independent.
1/1/2020 Computer Network Unit I 34
12. It has 7 layers 12. It has 4 layers
Addresses in TCP/IP Network
Way of connection
between computers,
printers and other
devices
Layout of the wire and
devices as well as the
paths used by data
transmissions
Commonly referred as
a linear bus
All the devices are
connected by one
single cable
Function:
• Provide service interface to the network layer
• Dealing with transmission errors
• Regulating data flow
• Slow receivers not swamped by fast senders
Frame
1. Station Model
3. Collision Assumption
Non-persistent CSMA
• If the channel is busy, it waits for random period then sense the channel again.
• Better channel utilization but longer delays than 1-persistent CSMA.
• In IEEE 802.3 Ethernet Data link layer is split into two sublayers:
– Bottom part: MAC
• The frame is called IEEE 802.3
• Handles framing, MAC addressing, Medium Access control
• Specific implementation for each LAN protocol
– Defines CSMA/CD as the access method for Ethernet LANs and Token passing method
for Token Ring.
• Implemented in hardware
– Top part: LLC (Logical Link Control)
• The subframe is called IEEE 802.2
• Provides error and flow control if needed
• It makes the MAC sublayer transparent
– Allows interconnectivity between different LANs data link layers
• Used to multiplex multiple network layer protocols in the data link layer frame
• Implemented in software
Ethernet Frame format
Frame Check Sequence (FCS) - CRC
CAT 3
CAT 5
Fast Ethernet topology
• Speed 1Gpbs
• Minimum frame length is 512 bytes
• Operates in full/half duplex modes mostly full
duplex
Topologies of Gigabit Ethernet