Second Lecture
Second Lecture
• Fault Tolerance
• Scalability
• Message Encoding
• Encoding and transmission of data.
Elements of Protocols
1. Message Encoding:
o Encoding refers to the process of converting data into signals suitable for
transmission over the network. This can involve converting digital data into
electrical, optical, or wireless signals, depending on the medium of
transmission.
o Example: In an Ethernet network, data from computers is encoded into
electrical signals that travel through the copper wires of Ethernet cables.
2. Message Formatting & Encapsulation:
o Formatting and encapsulation refer to the process of adding necessary
information to the data to ensure it is properly delivered to the destination. This
includes adding source and destination IP addresses, sequence numbers, and
error-checking information to the packet.
o Example: In the TCP/IP protocol, data from the application layer is
encapsulated with a header containing information like source/destination IP
addresses before it is sent over the network.
3. Message Timing:
o Timing is essential to control the flow of data between the sender and receiver,
ensuring that the sender doesn’t overwhelm the receiver by sending too much
data too quickly. It also coordinates when messages should be sent to avoid
collisions on the network.
o Example: Ethernet networks use Carrier Sense Multiple Access with Collision
Detection (CSMA/CD) to manage timing and avoid data collisions.
4. Message Size:
o Large data transmissions are often broken down into smaller packets to ensure
easier handling by the network. This segmentation helps prevent data loss and
allows the receiver to reassemble the packets in the correct order.
o Example: When sending a large file over the Internet, the file is broken into
smaller packets, each with its own header. The receiving device reassembles
these packets back into the original file.
5. Delivery Options:
o Unicast: One-to-one communication where data is sent from one sender to one
receiver.
o Multicast: One-to-many communication where data is sent to a specific group
of devices.
o Broadcast: One-to-all communication where data is sent to all devices on a
network.
o Example: Streaming live video to a selected group of people would use
multicast delivery to minimize bandwidth usage.
Client-Server Network
• In a client-server network, there is a centralized server that provides services or
resources to multiple clients. The server processes client requests and delivers the
required data or resources. This model is more scalable and manageable than P2P but
can suffer from bottlenecks if the server becomes overloaded.
• Example: Websites operate on a client-server model. Your browser (the client) sends
requests to a web server to retrieve the web pages.
Devices in Networks
1. LAN Devices:
o Switches: Direct data to specific devices on the network.
o Routers: Connect different networks and route data between them.
o Hubs: Broadcast data to all devices on the network.
o Example: A router in your home network directs traffic between your devices
and the Internet.
2. MAN Devices:
o Routers, switches, bridges: Devices used to manage data transmission over
larger areas like cities.
o Example: A city’s public Wi-Fi system might use switches and routers to
provide seamless connectivity to users across different locations.
3. WAN Devices:
o Modems, routers, firewalls: Used in wide-area networks (WANs) to connect
geographically distant networks and ensure secure data transmission.
o Example: An ISP (Internet Service Provider) uses modems and routers to
provide Internet access to customers over large areas.
True/False Questions:
1. Fault tolerance ensures a network can reroute data if a link fails.
True
2. Scalability allows a network to grow without performance degradation.
True
3. QoS ensures that all types of data are treated equally.
False
4. Security ensures that data cannot be accessed by unauthorized users.
True
5. Simplex communication allows for two-way communication at the same time.
False
6. Walkie-talkies use full-duplex communication.
False
7. Full-duplex communication allows for simultaneous two-way communication.
True
8. Message encoding converts data into a format suitable for transmission.
True
9. Ethernet networks use Carrier Sense Multiple Access with Collision Detection
(CSMA/CD) to avoid data collisions.
True
10. Peer-to-peer networks rely on a central server for communication.
False
11. A client-server network has a centralized server that provides services to multiple
clients.
True
12. End nodes include intermediary devices like routers and switches.
False
13. Fiber optic cables transmit data in the form of light waves.
True
14. Routers broadcast data to all devices on a local network.
False
15. MAC addresses are unique to each device and ensure device-level communication in
a local network.
True
16. Public IP addresses are used within private home networks.
False
17. A router directs traffic between different networks.
True
18. Firewalls are used to encrypt data.
False
19. Message encapsulation adds necessary information like IP addresses for data delivery.
True
20. Switches direct data to specific devices in a local network.
True