Computer Networks
Computer Networks
A LAN is a network that connects devices within a limited area, such as a home, office, or school.
WAN covers a larger geographic area and connects multiple LANs together. It can span across cities,
countries, or even continents.
TCP/IP is like the language that devices use to communicate with each other over the internet. It
provides a set of rules and procedures for data transmission, ensuring that information can be sent and
received accurately and reliably.TCP is responsible for breaking down data into smaller packets, sending
them across the network, and then reassembling them at the destination. It guarantees that the packets
arrive in the correct order and without errors.
IP handles the addressing and routing of these packets. It assigns unique IP addresses to devices and
determines the best path for data to travel from the source to the destination.
The significance of TCP/IP is that it's the foundation of the internet and enables seamless
communication between devices across the globe. It allows us to browse the web, send emails, stream
videos
1. Physical Layer: This layer deals with the physical aspects of data transmission, like cables, connectors,
and electrical signals.
2. Data Link Layer: This layer ensures error-free transmission of data between directly connected
devices, like switches or Ethernet cables. It adds reliability by detecting and correcting errors.
3. Network Layer: This layer handles the addressing and routing of data packets across different
networks. It determines the best path for data to travel from the source to the destination.
4. Transport Layer: This layer ensures reliable and orderly delivery of data between end-to-end
connections. It breaks down large data into smaller segments and manages flow control.
5. Session Layer: This layer establishes, manages, and terminates communication sessions between
devices. It helps keep track of conversations and ensures synchronization.
6. Presentation Layer: This layer takes care of data formatting, encryption, and compression. It prepares
data in a way that the receiving device can understand.
7. Application Layer: This layer is where applications and services interact with the network. It provides a
user interface for accessing network resources, like web browsers or email clients.
2. Data Link Layer: Here, protocols like Ethernet (again), Wi-Fi (IEEE 802.11), and Point-to-Point Protocol
(PPP) come into play. They ensure error-free transmission of data between directly connected devices.
3. Network Layer: IP (Internet Protocol) is the star of this layer. It handles the addressing and routing of
packets across different networks. Other examples include Internet Control Message Protocol (ICMP)
and Internet Group Management Protocol (IGMP).
4. Transport Layer: The most well-known protocol here is Transmission Control Protocol (TCP), which
provides reliable and ordered delivery of data. User Datagram Protocol (UDP) is another one, offering
faster but less reliable transmission.
5. Session Layer: While not as widely known, protocols like Remote Procedure Call (RPC) and Session
Initiation Protocol (SIP) operate at this layer. They establish and manage communication sessions
between devices.
6. Presentation Layer: Here, we have protocols like Hypertext Transfer Protocol (HTTP), which defines
how web pages are presented, and Secure Sockets Layer (SSL) or Transport Layer Security (TLS), which
handle encryption and secure communication.
7. Application Layer: This layer is where we interact with applications and services. Examples include
protocols like Simple Mail Transfer Protocol (SMTP) for sending emails, File Transfer Protocol (FTP) for
file transfer, and Domain Name System (DNS) for translating domain names into IP addresses.
cellular networks, also known as mobile networks, use cellular towers to provide wireless
communication over a wide area. These networks are operated by mobile service providers and allow
devices like smartphones, tablets, and other mobile devices to connect to the internet from almost
anywhere within the coverage area.
One key difference between Wi-Fi and cellular networks is the range and coverage. Wi-Fi networks have
a limited range, typically within a few hundred feet of the access point, while cellular networks can
cover much larger areas, sometimes spanning miles.
Another difference is the speed and bandwidth. Wi-Fi networks generally offer faster speeds and higher
bandwidth compared to cellular networks. This is because Wi-Fi networks are often connected to high-
speed internet connections, while cellular networks share bandwidth among multiple devices in a given
area.
Additionally, Wi-Fi networks are typically used for local connectivity, allowing devices to connect to each
other and share resources within a specific area. Cellular networks, on the other hand, provide
connectivity on the go, allowing devices to access the internet and communicate while moving between
different locations.
The WAP receives data from devices connected to it wirelessly and forwards it to the wired network.
Similarly, it receives data from the wired network and transmits it wirelessly to the connected devices.
This enables devices like smartphones, laptops, and tablets to access the network and the internet
without the need for physical wired connections.
The WAP typically connects to a router or a switch through an Ethernet cable. It uses radio waves to
communicate with wireless devices, allowing them to send and receive data over the network. The WAP
broadcasts a wireless signal, and devices within its range can connect to it by entering the correct
network password or using other authentication methods.