FSc Part 2 Computer Science Chapter 1 Complete Guide Book — Computer Networks | PunjabTest.com

FSc Part 2 Computer Science Chapter 1 — Computer Networks
Home > PunjabTest.com > FSc Part 2 > Computer Science — all chapters > Chapter 1: Computer Networks

اس chapter میں topics (Topics in this chapter)

1. 🌐 What is a Computer Network?کمپیوٹر نیٹ ورک کیا ہے؟
🏷 Tags: Computer, Network
ENGLISH

A computer network is a group of connected computers and devices that share data, resources, and services. It allows different devices — computers, mobile phones, printers, and other digital devices — to communicate with each other using cables or wireless signals.

How data travels: data is broken into small packets before transmission. These packets travel through cables or wireless signals, networking devices guide them to the correct destination, and the receiving device reassembles them into the original data. This process allows smooth and fast communication.

Uses of computer networks: Internet browsing, calls, messages and apps on mobile phones; online classes and learning systems in schools; online transactions and ATMs in banks; social media platforms; and smart homes that control devices through networks. Communication through networks saves time and effort, and modern life depends heavily on networks for daily tasks.

Exam point: Networks support online learning and remote work, and businesses rely on networks for daily operations.
اردو

کمپیوٹر نیٹ ورک جڑے ہوئے کمپیوٹرز اور ڈیوائسز کا گروپ ہے جو ڈیٹا، وسائل اور سروسز شیئر کرتے ہیں۔ اس سے کمپیوٹر، موبائل فون، پرنٹر اور دیگر ڈیجیٹل ڈیوائسز کیبلز یا وائرلیس سگنلز سے ایک دوسرے سے رابطہ کرتے ہیں۔

ڈیٹا کیسے سفر کرتا ہے: بھیجنے سے پہلے ڈیٹا چھوٹے پیکٹس میں ٹوٹ جاتا ہے۔ یہ پیکٹس کیبلز یا وائرلیس سگنلز سے سفر کرتے ہیں، نیٹ ورکنگ ڈیوائسز انہیں درست منزل تک پہنچاتی ہیں، اور وصول کرنے والی ڈیوائس انہیں دوبارہ اصل ڈیٹا میں جوڑ دیتی ہے۔ اس سے تیز اور ہموار رابطہ ممکن ہوتا ہے۔

نیٹ ورکس کے استعمال: موبائل پر انٹرنیٹ، کالز، میسجز اور ایپس؛ اسکولوں میں آن لائن کلاسز اور لرننگ سسٹم؛ بینکوں میں آن لائن لین دین اور اے ٹی ایمز؛ سوشل میڈیا؛ اور اسمارٹ ہومز جو ڈیوائسز کو نیٹ ورک سے کنٹرول کرتے ہیں۔ نیٹ ورک سے رابطہ وقت اور محنت بچاتا ہے، اور آج کی زندگی روزمرہ کاموں میں نیٹ ورکس پر بہت زیادہ انحصار کرتی ہے۔

Router Computer Printer Mobile Server
Network samjho: network کا مطلب صرف computer جوڑنا نہیں — devices کا آپس میں data اور resources share کرنا ہے, جیسے printer یا internet connection سب کا سانجھا ہو جاتا ہے.
A computer network connects many devices so they can share data and resources.
کمپیوٹر نیٹ ورک کئی ڈیوائسز کو جوڑتا ہے تاکہ وہ ڈیٹا اور وسائل شیئر کر سکیں۔
2. 🏗️ Network Architecture and Basic Conceptsنیٹ ورک آرکیٹیکچر اور بنیادی تصورات
🏷 Tags: Network, Architecture, Basic, Concepts
ENGLISH

Network architecture is the overall design of a computer network. It shows how computers, servers, and other devices are arranged, and it defines how data is transmitted across the network. Network architecture includes hardware, software, and communication rules.

Why it matters: a good architecture helps the network work efficiently and supports future expansion of the network. Without a clear design, adding new devices or fixing problems becomes difficult.

Key idea: architecture is the plan; the devices, cables, and rules are the parts that follow that plan. A network works by sending data from one device to another — in packets, guided by networking devices, and reassembled at the destination.

اردو

نیٹ ورک آرکیٹیکچر کمپیوٹر نیٹ ورک کا مجموعی ڈیزائن ہے۔ یہ بتاتا ہے کہ کمپیوٹرز، سرورز اور دیگر ڈیوائسز کیسے ترتیب دی گئی ہیں، اور ڈیٹا نیٹ ورک میں کیسے منتقل ہوتا ہے۔ آرکیٹیکچر میں ہارڈویئر، سافٹ ویئر اور رابطے کے قواعد شامل ہوتے ہیں۔

اہمیت: اچھا آرکیٹیکچر نیٹ ورک کو مؤثر طریقے سے چلانے میں مدد دیتا ہے اور مستقبل میں نیٹ ورک کو بڑھانے میں مدد کرتا ہے۔ واضح ڈیزائن کے بغیر نئی ڈیوائسز شامل کرنا یا مسائل حل کرنا مشکل ہو جاتا ہے۔

اہم نکتہ: آرکیٹیکچر منصوبہ ہے؛ ڈیوائسز، کیبلز اور قواعد وہ حصے ہیں جو اس منصوبے پر عمل کرتے ہیں۔ نیٹ ورک ڈیٹا کو ایک ڈیوائس سے دوسری تک پیکٹس کی صورت میں بھیج کر کام کرتا ہے۔

Internet Router PC Server Printer
Architecture samjho: architecture network کا نقشہ ہے — کون سی device کہاں لگے گی اور data کس رستے جائے گا, یہ سب پہلے سے طے ہوتا ہے.
Network architecture: how devices and components are organized in a network.
نیٹ ورک آرکیٹیکچر: نیٹ ورک میں ڈیوائسز اور اجزا کیسے منظم ہوتے ہیں۔
3. 🗺️ Types of Computer Networks — LAN, WAN, Internetنیٹ ورکس کی اقسام — لین، وین، انٹرنیٹ
🏷 Tags: Types, Computer, Networks, LAN, WAN, Internet
ENGLISH

Computer networks are classified based on size and coverage area. Different types are used for different purposes, and understanding network types helps in proper network selection. The most common types are LAN, WAN, and the Internet (Public WAN).

Local Area Network (LAN): connects devices within a small area — a home, school, or office. It provides high data transfer speed, is usually owned and managed by a single organization, and is cost-effective and easy to maintain. Ethernet and Wi-Fi are commonly used in LANs.

Wide Area Network (WAN): covers a large geographic area and connects networks in different cities or countries. It uses leased lines, satellites, or the Internet. Data transfer speed is slower than LAN, and WAN is expensive to install and manage.

The Internet (Public WAN): a global network connecting millions of devices. It allows sharing of information worldwide, and services like email, websites, and cloud storage use the Internet. It uses standard protocols for communication and supports education, business, and entertainment. The Internet is the largest example of a WAN.

Remember: LAN = small area, fast, cheap. WAN = large area, slower, expensive. Internet = the biggest public WAN.
اردو

کمپیوٹر نیٹ ورکس کو سائز اور کوریج کے علاقے کی بنیاد پر تقسیم کیا جاتا ہے۔ مختلف اقسام مختلف مقاصد کے لیے استعمال ہوتی ہیں، اور اقسام کو سمجھنا درست نیٹ ورک کے انتخاب میں مدد دیتا ہے۔ عام اقسام لین، وین اور انٹرنیٹ (پبلک وین) ہیں۔

لوکل ایریا نیٹ ورک (LAN): چھوٹے علاقے — گھر، اسکول یا دفتر — میں ڈیوائسز جوڑتا ہے۔ اس کی ڈیٹا منتقلی کی رفتار زیادہ ہوتی ہے، یہ عام طور پر ایک ہی ادارے کی ملکیت اور انتظام میں ہوتا ہے، اور یہ سستا اور دیکھ بھال میں آسان ہوتا ہے۔ لین میں ایتھرنیٹ اور وائی فائی عام استعمال ہوتے ہیں۔

وائیڈ ایریا نیٹ ورک (WAN): بڑے جغرافیائی علاقے پر محیط ہوتا ہے اور مختلف شہروں یا ملکوں کے نیٹ ورکس کو جوڑتا ہے۔ یہ لیزڈ لائنز، سیٹلائٹس یا انٹرنیٹ استعمال کرتا ہے۔ اس کی رفتار لین سے کم ہوتی ہے اور اسے لگانا اور چلانا مہنگا ہوتا ہے۔

انٹرنیٹ (پبلک وین): دنیا بھر میں لاکھوں ڈیوائسز کو جوڑنے والا عالمی نیٹ ورک۔ اس سے دنیا بھر میں معلومات شیئر ہوتی ہیں، اور ای میل، ویب سائٹس اور کلاؤڈ اسٹوریج جیسی سروسز انٹرنیٹ استعمال کرتی ہیں۔ یہ رابطے کے لیے معیاری پروٹوکولز استعمال کرتا ہے اور تعلیم، کاروبار اور تفریح میں مدد دیتا ہے۔ انٹرنیٹ وین کی سب سے بڑی مثال ہے۔

LAN — small areaHome / School / OfficeFast • Low cost • Easy WAN — large areaCities / CountriesSlower • Expensive • Internet
LAN aur WAN samjho: فرق صرف size کا ہے — LAN چھوٹا علاقہ (ghar, school), WAN بڑا علاقہ (shehron, mulkon tak), اور Internet سب سے بڑا public network ہے.
LAN vs WAN: size and coverage area decide the type.
لین بمقابلہ وین: سائز اور کوریج کا علاقہ قسم کا فیصلہ کرتا ہے۔
4. 🔌 Networking Devicesنیٹ ورکنگ ڈیوائسز
🏷 Tags: Networking, Devices
ENGLISH

Networking devices connect computers and other devices in a network. These devices control the flow of data, and each device has a specific role in communication.

Network Interface Card (NIC): allows a device to connect to a network. It can be wired or wireless. Each NIC has a unique address called a MAC address. The NIC sends and receives data from the network. Without a NIC, a device cannot communicate on a network. NICs are built into most modern devices.

Switch: connects devices and sends data to the correct device. Switches improve network speed and efficiency and are common in modern networks.

Router: connects different networks together. It directs data packets to their correct destination. Routers connect local networks to the Internet, use IP addresses to send data, and improve network security and control. Home and office networks use routers widely.

Modem: connects a local network to an Internet Service Provider (ISP). It converts digital data into signals suitable for transmission, and converts incoming signals back into digital form. Modems are used with cable, DSL, or fiber connections, and often work with routers. DSL means Digital Subscriber Line — Internet through telephone lines, allowing calling and browsing at the same time. An ISP is a company that provides Internet access to users.

Wireless Access Point (WAP): provides Wi-Fi connectivity. It allows wireless devices to connect to a network, extends wireless network coverage, and is used in large buildings and campuses. Access points improve signal strength and stability and support mobile connectivity.

اردو

نیٹ ورکنگ ڈیوائسز کمپیوٹرز اور دیگر ڈیوائسز کو نیٹ ورک میں جوڑتی ہیں۔ یہ ڈیوائسز ڈیٹا کے بہاؤ کو کنٹرول کرتی ہیں، اور ہر ڈیوائس کا رابطے میں مخصوص کردار ہوتا ہے۔

نیٹ ورک انٹرفیس کارڈ (NIC): ڈیوائس کو نیٹ ورک سے جوڑنے کی اجازت دیتا ہے۔ یہ وائرڈ یا وائرلیس ہو سکتا ہے۔ ہر NIC کا ایک منفرد ایڈریس ہوتا ہے جسے میک ایڈریس کہتے ہیں۔ NIC نیٹ ورک سے ڈیٹا بھیجتا اور وصول کرتا ہے۔ NIC کے بغیر کوئی ڈیوائس نیٹ ورک پر رابطہ نہیں کر سکتی۔ جدید ڈیوائسز میں NIC پہلے سے لگا ہوتا ہے۔

سوئچ: ڈیوائسز کو جوڑتا ہے اور ڈیٹا درست ڈیوائس تک بھیجتا ہے۔ سوئچز نیٹ ورک کی رفتار اور کارکردگی بہتر کرتے ہیں اور جدید نیٹ ورکس میں عام ہیں۔

راؤٹر: مختلف نیٹ ورکس کو آپس میں جوڑتا ہے۔ یہ ڈیٹا پیکٹس کو ان کی درست منزل تک لے جاتا ہے۔ راؤٹرز لوکل نیٹ ورکس کو انٹرنیٹ سے جوڑتے ہیں، ڈیٹا بھیجنے کے لیے آئی پی ایڈریس استعمال کرتے ہیں، اور نیٹ ورک سیکیورٹی اور کنٹرول بہتر کرتے ہیں۔ گھر اور دفتر کے نیٹ ورکس میں راؤٹرز بہت استعمال ہوتے ہیں۔

موڈیم: لوکل نیٹ ورک کو انٹرنیٹ سروس پرووائیڈر (ISP) سے جوڑتا ہے۔ یہ ڈیجیٹل ڈیٹا کو ترسیل کے قابل سگنلز میں بدلتا ہے، اور آنے والے سگنلز کو واپس ڈیجیٹل شکل میں لاتا ہے۔ موڈیم کیبل، ڈی ایس ایل یا فائبر کنکشنز کے ساتھ استعمال ہوتے ہیں، اور اکثر راؤٹرز کے ساتھ کام کرتے ہیں۔ ڈی ایس ایل یعنی ڈیجیٹل سبسکرائبر لائن — ٹیلی فون لائنز سے انٹرنیٹ، جس میں کال اور براؤزنگ ایک ساتھ ممکن ہے۔ ISP وہ کمپنی ہے جو صارفین کو انٹرنیٹ تک رسائی دیتی ہے۔

وائرلیس ایکسیس پوائنٹ: وائی فائی کنیکٹیویٹی دیتا ہے۔ یہ وائرلیس ڈیوائسز کو نیٹ ورک سے جوڑتا ہے، وائرلیس کوریج بڑھاتا ہے، اور بڑی عمارتوں اور کیمپس میں استعمال ہوتا ہے۔ ایکسیس پوائنٹس سگنل کی طاقت اور استحکام بہتر کرتے ہیں اور موبائل کنیکٹیویٹی میں مدد دیتے ہیں۔

NICMAC address SwitchRight device RouterJoins networks ModemTo ISP NIC → Switch → Router → Modem → ISP → Internet
Devices samjho: ہر device کا اپنا کام ہے — NIC جوڑتا ہے, switch صحیح device تک پہنچاتا ہے, router networks کو ملاتا ہے, modem internet سے جوڑتا ہے.
Networking devices in order: NIC, switch, router, modem — each with a specific role.
نیٹ ورکنگ ڈیوائسز کی ترتیب: NIC، سوئچ، راؤٹر، موڈیم — ہر ایک کا مخصوص کردار۔
5. 🔗 Network Topologiesنیٹ ورک ٹوپولوجیز
🏷 Tags: Network, Topologies
ENGLISH

Network topology refers to the layout of a computer network. It explains how devices and cables are arranged. Topology can be physical (actual connections) or logical (how data flows in the network). Topology affects network performance and maintenance.

Bus Topology: all devices connect to a single main cable. Data travels along this cable to reach devices. It is simple and low in cost, and suitable for small networks. But failure of the main cable can stop the entire network, and it is not good for large networks.

Star Topology: all devices connect to a central hub or switch. Data passes through the central device. It is easy to manage and expand, and failure of one device does not affect others. But failure of the central hub stops the network. Star topology is widely used in modern networks.

Ring Topology: devices connect in a circular path. Data moves in one direction around the ring, and each device receives data and passes it along. Failure of one device can affect the whole network. It is more complex than bus topology and is rarely used today.

Mesh Topology: devices connect to many other devices, so multiple paths exist for data transmission. This increases reliability and fault tolerance — failure of one link does not stop communication. But mesh topology is expensive and complex, and is used in large and critical networks.

Tree Topology: devices are arranged in a hierarchical structure like a tree. It combines features of both bus and star topologies, where multiple star networks connect to a central backbone. Data flows from the root (main node) to branches and sub-branches. It is easy to expand and manage large networks, but failure of the backbone can affect the entire network. Tree topology is commonly used in large organizations.

Exam trick: Bus = one cable, cheap, one fault kills all. Star = central hub, most common today. Mesh = many paths, most reliable, most expensive.
اردو

نیٹ ورک ٹوپولوجی کمپیوٹر نیٹ ورک کی ترتیب کو کہتے ہیں۔ یہ بتاتی ہے کہ ڈیوائسز اور کیبلز کیسے ترتیب دی گئی ہیں۔ ٹوپولوجی فزیکل (اصل کنکشنز) یا لوجیکل (ڈیٹا کا بہاؤ) ہو سکتی ہے۔ ٹوپولوجی نیٹ ورک کی کارکردگی اور دیکھ بھال پر اثر ڈالتی ہے۔

بس ٹوپولوجی: تمام ڈیوائسز ایک ہی مرکزی کیبل سے جڑتی ہیں۔ ڈیٹا اس کیبل سے سفر کر کے ڈیوائسز تک پہنچتا ہے۔ یہ سادہ اور سستی ہے، اور چھوٹے نیٹ ورکس کے لیے موزوں ہے۔ لیکن مرکزی کیبل کی خرابی پورا نیٹ ورک روک سکتی ہے، اور یہ بڑے نیٹ ورکس کے لیے اچھی نہیں۔

اسٹار ٹوپولوجی: تمام ڈیوائسز مرکزی ہب یا سوئچ سے جڑتی ہیں۔ ڈیٹا مرکزی ڈیوائس سے گزرتا ہے۔ اسے منظم کرنا اور بڑھانا آسان ہے، اور ایک ڈیوائس کی خرابی دوسروں پر اثر نہیں ڈالتی۔ لیکن مرکزی ہب کی خرابی نیٹ ورک روک دیتی ہے۔ اسٹار ٹوپولوجی جدید نیٹ ورکس میں بہت استعمال ہوتی ہے۔

رنگ ٹوپولوجی: ڈیوائسز دائرے کی شکل میں جڑتی ہیں۔ ڈیٹا ایک سمت میں رنگ کے گرد گھومتا ہے، اور ہر ڈیوائس ڈیٹا وصول کر کے آگے بڑھاتی ہے۔ ایک ڈیوائس کی خرابی پورے نیٹ ورک پر اثر ڈال سکتی ہے۔ یہ بس سے زیادہ پیچیدہ ہے اور آج کل کم استعمال ہوتی ہے۔

میش ٹوپولوجی: ڈیوائسز کئی دوسری ڈیوائسز سے جڑتی ہیں، اس لیے ڈیٹا کی ترسیل کے کئی راستے ہوتے ہیں۔ اس سے قابل اعتمادیت اور فالٹ ٹالرنس بڑھتی ہے — ایک لنک کی خرابی رابطہ نہیں روکتی۔ لیکن میش مہنگی اور پیچیدہ ہے، اور بڑے اور اہم نیٹ ورکس میں استعمال ہوتی ہے۔

ٹری ٹوپولوجی: ڈیوائسز درخت کی طرح درجہ وار ترتیب میں ہوتی ہیں۔ یہ بس اور اسٹار دونوں کی خصوصیات ملاتی ہے، جہاں کئی اسٹار نیٹ ورکس مرکزی بیک بون سے جڑتے ہیں۔ ڈیٹا روٹ (مرکزی نوڈ) سے شاخوں اور ذیلی شاخوں تک جاتا ہے۔ بڑے نیٹ ورکس کو بڑھانا اور منظم کرنا آسان ہے، لیکن بیک بون کی خرابی پورے نیٹ ورک پر اثر ڈال سکتی ہے۔ ٹری ٹوپولوجی بڑے اداروں میں عام ہے۔

TABLE 1.1
TopologyAdvantagesDisadvantages
BusSimple, less cable, cost-effectiveMain cable failure stops network; difficult to troubleshoot
StarEasy to install/manage; one device failure does not affect othersCentral device failure stops network; more cable, higher cost
RingOrganized data flow; no data collision; equal accessOne device failure affects network; difficult to add/remove devices; rarely used
MeshHighly reliable, fault-tolerant; multiple paths; high securityVery expensive; complex installation; many cables
TreeEasy to expand; suitable for large networks; hierarchical managementBackbone failure affects network; complex setup; more cabling

Different topologies offer different benefits. Some are easy to install and low-cost; others provide high reliability and performance. Choosing the right topology depends on network needs.

ٹیبل 1.1
ٹوپولوجیفوائدنقصانات
بسسادہ، کم کیبل، سستیمرکزی کیبل کی خرابی نیٹ ورک روک دیتی ہے؛ خرابی ڈھونڈنا مشکل
اسٹارلگانا/منظم کرنا آسان؛ ایک ڈیوائس کی خرابی دوسروں پر اثر نہیں ڈالتیمرکزی ڈیوائس کی خرابی نیٹ ورک روک دیتی ہے؛ زیادہ کیبل، زیادہ لاگت
رنگمنظم ڈیٹا بہاؤ؛ ڈیٹا ٹکراؤ نہیں؛ سب کو برابر رسائیایک ڈیوائس کی خرابی نیٹ ورک پر اثر ڈالتی ہے؛ ڈیوائس شامل کرنا/ہٹانا مشکل؛ کم استعمال
میشبہت قابل اعتماد، فالٹ ٹالرنٹ؛ کئی راستے؛ زیادہ سیکیورٹیبہت مہنگی؛ پیچیدہ تنصیب؛ بہت سی کیبلز
ٹریبڑھانا آسان؛ بڑے نیٹ ورکس کے لیے موزوں؛ درجہ وار انتظامبیک بون کی خرابی نیٹ ورک پر اثر ڈالتی ہے؛ پیچیدہ سیٹ اپ؛ زیادہ کیبلنگ

مختلف ٹوپولوجیز مختلف فوائد دیتی ہیں۔ بعض لگانے میں آسان اور سستی ہیں؛ بعض زیادہ قابل اعتماد اور تیز ہیں۔ درست ٹوپولوجی کا انتخاب نیٹ ورک کی ضروریات پر منحصر ہے۔

Bus Star Ring / Mesh
Topology samjho: topology devices کے جوڑنے کا طریقہ ہے — bus میں ایک cable, star میں central hub, ring میں دائرہ, mesh میں ہر device کئی راستوں سے جڑا ہوتا ہے.
Bus (one cable), Star (central hub), Ring/Mesh (circle / many paths) topologies.
بس (ایک کیبل)، اسٹار (مرکزی ہب)، رنگ/میش (دائرہ / کئی راستے) ٹوپولوجیز۔
6. 🧅 Network Models and Layers — the OSI Modelنیٹ ورک ماڈلز اور او ایس آئی ماڈل
🏷 Tags: Network, Models, Layers, OSI, Model
ENGLISH

Network models explain how data moves from one device to another in an organized way. These models divide communication into different layers. Each layer performs a specific task in data transmission. Layered models make networks easier to understand and manage, and help in troubleshooting network problems. Network models are used as standards in networking.

Network Layers: layers divide the communication process into smaller parts. Each layer has a specific responsibility, and data passes through these layers step by step. Changes in one layer do not affect other layers. Layered communication improves reliability and control.

OSI Model (Open Systems Interconnection): a standard model used to understand network communication. It has seven layers, each performing a different function. It is used for learning and designing networks, and helps different systems communicate properly. Lower layers handle physical data transfer, middle layers manage routing and delivery, and upper layers support user applications — each layer works independently, and together they ensure proper communication.

Functions of OSI Model Layers (bottom to top):
1. Physical Layer: sends raw data as electrical, optical, or radio signals over the medium. It defines hardware aspects such as cables, connectors, voltage levels, and data transmission rates.
2. Data Link Layer: ensures error-free data transfer between directly connected nodes. It handles framing, error detection/correction, and controls access to the shared transmission medium.
3. Network Layer: responsible for routing data from source to destination across different networks. It manages logical addressing (IP addresses) and determines the best path for data delivery.
4. Transport Layer: provides reliable and ordered delivery of data between devices. It performs error recovery, flow control, and segmentation of data into smaller units.
5. Session Layer: establishes, maintains, and terminates communication sessions between applications. It manages session checkpoints and recovery in case of interruptions.
6. Presentation Layer: translates data into a format understandable by the application layer. It handles data encryption, compression, and format conversion.
7. Application Layer: provides services directly to end users and applications. It supports protocols like HTTP, FTP, and email services for communication and data exchange.

اردو

نیٹ ورک ماڈلز بتاتے ہیں کہ ڈیٹا ایک ڈیوائس سے دوسری تک منظم طریقے سے کیسے جاتا ہے۔ یہ ماڈلز رابطے کو مختلف لیئرز میں تقسیم کرتے ہیں۔ ہر لیئر ڈیٹا کی ترسیل میں مخصوص کام کرتی ہے۔ لیئر والے ماڈلز نیٹ ورکس کو سمجھنا اور منظم کرنا آسان بناتے ہیں، اور نیٹ ورک کے مسائل حل کرنے میں مدد دیتے ہیں۔ نیٹ ورک ماڈلز نیٹ ورکنگ میں معیار کے طور پر استعمال ہوتے ہیں۔

نیٹ ورک لیئرز: لیئرز رابطے کے عمل کو چھوٹے حصوں میں تقسیم کرتی ہیں۔ ہر لیئر کی مخصوص ذمہ داری ہوتی ہے، اور ڈیٹا ان لیئرز سے مرحلہ وار گزرتا ہے۔ ایک لیئر میں تبدیلی دوسری لیئرز پر اثر نہیں ڈالتی۔ لیئر والی رابطہ کاری قابل اعتمادیت اور کنٹرول بہتر کرتی ہے۔

او ایس آئی ماڈل (اوپن سسٹمز انٹرکنکشن): نیٹ ورک رابطہ سمجھنے کے لیے معیاری ماڈل۔ اس کی سات لیئرز ہیں، ہر ایک مختلف کام کرتی ہے۔ یہ نیٹ ورکس سیکھنے اور ڈیزائن کرنے کے لیے استعمال ہوتا ہے، اور مختلف سسٹمز کو درست رابطے میں مدد دیتا ہے۔ نچلی لیئرز فزیکل ڈیٹا منتقلی سنبھالتی ہیں، درمیانی لیئرز روٹنگ اور ترسیل منظم کرتی ہیں، اور اوپری لیئرز صارف کی ایپلی کیشنز کو سپورٹ کرتی ہیں — ہر لیئر آزادانہ کام کرتی ہے، اور مل کر درست رابطہ یقینی بناتی ہیں۔

او ایس آئی لیئرز کے کام (نیچے سے اوپر):
1۔ فزیکل لیئر: خام ڈیٹا الیکٹریکل، آپٹیکل یا ریڈیو سگنلز کے طور پر میڈیم پر بھیجتی ہے۔ یہ ہارڈویئر پہلو جیسے کیبلز، کنیکٹرز، وولٹیج لیولز اور ڈیٹا ٹرانسمیشن ریٹس طے کرتی ہے۔
2۔ ڈیٹا لنک لیئر: براہ راست جڑے نوڈز کے درمیان غلطی سے پاک ڈیٹا منتقلی یقینی بناتی ہے۔ یہ فریمنگ، غلطی کی نشاندہی/درستگی، اور مشترکہ ٹرانسمیشن میڈیم تک رسائی کنٹرول کرتی ہے۔
3۔ نیٹ ورک لیئر: مختلف نیٹ ورکس میں ماخذ سے منزل تک ڈیٹا کی روٹنگ کی ذمہ دار ہے۔ یہ لوجیکل ایڈریسنگ (آئی پی ایڈریسز) منظم کرتی ہے اور ڈیٹا ترسیل کا بہترین راستہ طے کرتی ہے۔
4۔ ٹرانسپورٹ لیئر: ڈیوائسز کے درمیان ڈیٹا کی قابل اعتماد اور ترتیب وار ترسیل دیتی ہے۔ یہ غلطی کی بحالی، فلو کنٹرول، اور ڈیٹا کو چھوٹے حصوں میں تقسیم کرتی ہے۔
5۔ سیشن لیئر: ایپلی کیشنز کے درمیان رابطے کے سیشن قائم، برقرار اور ختم کرتی ہے۔ یہ سیشن چیک پوائنٹس اور رکاوٹ کی صورت میں بحالی منظم کرتی ہے۔
6۔ پریزنٹیشن لیئر: ڈیٹا کو ایپلی کیشن لیئر کے قابل فہم شکل میں بدلتی ہے۔ یہ ڈیٹا انکرپشن، کمپریشن اور فارمیٹ تبدیلی سنبھالتی ہے۔
7۔ ایپلی کیشن لیئر: براہ راست صارفین اور ایپلی کیشنز کو سروسز دیتی ہے۔ یہ رابطے اور ڈیٹا تبادلے کے لیے HTTP، FTP اور ای میل جیسے پروٹوکولز کو سپورٹ کرتی ہے۔

7. Application 6. Presentation 5. Session 4. Transport 3. Network 2. Data Link 1. Physical
OSI samjho: سات layers کو نیچے سے اوپر یاد کرو — Physical سے Application تک — ہر layer data کو اگلے step کے لیے تیار کرتی ہے.
The OSI model: seven layers, from Physical (bottom) to Application (top).
او ایس آئی ماڈل: سات لیئرز، فزیکل (نیچے) سے ایپلی کیشن (اوپر) تک۔
7. 📜 Network Protocols and Servicesنیٹ ورک پروٹوکولز اور سروسز
🏷 Tags: Network, Protocols, Services
ENGLISH

A network protocol is a set of rules for communication. It defines how data is formatted and transmitted, and controls error handling and data delivery. All devices in a network must follow the same protocol. Protocols ensure smooth data exchange. Protocols are like languages that computers use to talk to each other.

TCP/IP (Transmission Control Protocol / Internet Protocol): the main protocol used on the Internet. TCP ensures reliable data delivery; IP handles the addressing and routing of data. Together, TCP/IP enables communication between devices and is used in almost all networks.

HTTP (Hypertext Transfer Protocol): used to transfer web pages. It works between a web browser and a web server and allows users to view websites. HTTP does not encrypt data; secure websites use HTTPS instead. HTTPS uses encryption (SSL/TLS protocols) to protect data transmitted between a browser and a web server, so sensitive information such as passwords, personal details, and payment data cannot be easily intercepted by attackers.

FTP (File Transfer Protocol): used to upload and download files. It allows file sharing between computers, is commonly used by web developers, and can transfer large files. Secure versions of FTP are also available.

DNS (Domain Name System): converts website names into IP addresses. It makes websites easy to access — users do not need to remember numbers. DNS servers perform this translation process, and DNS plays a key role in Internet use. DNS works behind the scenes every time a website is opened.

اردو

نیٹ ورک پروٹوکول رابطے کے قواعد کا مجموعہ ہے۔ یہ طے کرتا ہے کہ ڈیٹا کیسے ترتیب دیا اور منتقل کیا جائے، اور غلطیوں اور ڈیٹا ترسیل کو کنٹرول کرتا ہے۔ نیٹ ورک کے تمام ڈیوائسز کو ایک ہی پروٹوکول پر عمل کرنا ہوتا ہے۔ پروٹوکولز ہموار ڈیٹا تبادلہ یقینی بناتے ہیں۔ پروٹوکولز ان زبانوں کی طرح ہیں جن سے کمپیوٹر ایک دوسرے سے بات کرتے ہیں۔

ٹی سی پی/آئی پی (ٹرانسمیشن کنٹرول پروٹوکول / انٹرنیٹ پروٹوکول): انٹرنیٹ پر استعمال ہونے والا مرکزی پروٹوکول۔ ٹی سی پی قابل اعتماد ڈیٹا ترسیل یقینی بناتا ہے؛ آئی پی ڈیٹا کی ایڈریسنگ اور روٹنگ سنبھالتا ہے۔ مل کر ٹی سی پی/آئی پی ڈیوائسز کے درمیان رابطہ ممکن بناتا ہے اور تقریباً تمام نیٹ ورکس میں استعمال ہوتا ہے۔

ایچ ٹی ٹی پی (ہائپرٹیکسٹ ٹرانسفر پروٹوکول): ویب پیجز منتقل کرنے کے لیے استعمال ہوتا ہے۔ یہ ویب براؤزر اور ویب سرور کے درمیان کام کرتا ہے اور صارفین کو ویب سائٹس دیکھنے دیتا ہے۔ ایچ ٹی ٹی پی ڈیٹا انکرپٹ نہیں کرتا؛ محفوظ ویب سائٹس اس کے بجائے ایچ ٹی ٹی پی ایس استعمال کرتی ہیں۔ ایچ ٹی ٹی پی ایس براؤزر اور ویب سرور کے درمیان منتقل ہونے والے ڈیٹا کی حفاظت کے لیے انکرپشن (SSL/TLS پروٹوکولز) استعمال کرتا ہے، تاکہ پاس ورڈز، ذاتی تفصیلات اور ادائیگی کا ڈیٹا جیسی حساس معلومات حملہ آور آسانی سے نہ پکڑ سکیں۔

ایف ٹی پی (فائل ٹرانسفر پروٹوکول): فائلیں اپ لوڈ اور ڈاؤن لوڈ کرنے کے لیے استعمال ہوتا ہے۔ یہ کمپیوٹرز کے درمیان فائل شیئرنگ کی اجازت دیتا ہے، ویب ڈویلپرز میں عام ہے، اور بڑی فائلیں منتقل کر سکتا ہے۔ ایف ٹی پی کے محفوظ ورژن بھی موجود ہیں۔

ڈی این ایس (ڈومین نیم سسٹم): ویب سائٹ کے ناموں کو آئی پی ایڈریسز میں بدلتا ہے۔ اس سے ویب سائٹس تک رسائی آسان ہو جاتی ہے — صارفین کو نمبر یاد رکھنے کی ضرورت نہیں۔ ڈی این ایس سرورز یہ ترجمہ کرتے ہیں، اور ڈی این ایس انٹرنیٹ کے استعمال میں کلیدی کردار ادا کرتا ہے۔ جب بھی کوئی ویب سائٹ کھولی جاتی ہے، ڈی این ایس پس منظر میں کام کرتا ہے۔

www.example.com DNS 93.184.216.34
DNS samjho: DNS internet کی phonebook ہے — تم نام لکھتے ہو, وہ اسے IP address میں بدل دیتا ہے, ورنہ number یاد رکھنے parte.
DNS name resolution: a website name becomes an IP address.
ڈی این ایس نیم ریزولوشن: ویب سائٹ کا نام آئی پی ایڈریس بن جاتا ہے۔
8. 🔢 IP Addressing, Subnetting and NATآئی پی ایڈریسنگ، سب نیٹنگ اور نیٹ
🏷 Tags: Addressing, Subnetting, NAT
ENGLISH

An IP address is a unique number assigned to a device. IP stands for Internet Protocol. It helps identify devices on a network, and data uses IP addresses to find its destination. Every network device must have an IP address — communication is not possible without it.

IPv4 and IPv6: IPv4 is an older version of IP addressing. It uses 32-bit numeric addresses and has a limited number of addresses — total IPv4 addresses possible: 4.29 billion. IPv6 is the newer version with 128-bit addresses, providing much more address space and supporting modern Internet needs. IPv6 addresses comprise 2128 ≈ 3.4 × 1038 total addresses — IPv6 will never run out.

IPv4 example: 192.168.1.10 — 4 numbers, each 0–255, separated by dots. Each number = 1 byte = 8 bits; total = 32 bits. Network part 192.168.1 identifies your local network (like "Gulshan Block Street 3"); host part 10 identifies your specific device on that network (like "House #10").

IPv6 example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 — 8 groups of 4 hexadecimal digits, separated by colons. Each group = 16 bits; total = 128 bits. Global routing prefix 2001:0db8:85a3 = ISP/region (like "Pakistan, Sindh, Karachi"); Subnet ID 0000 = your local network inside the ISP (like "Gulshan area"); Interface ID 0000:8a2e:0370:7334 = your specific device (like "Your laptop").

Subnetting: divides a network into smaller parts. Each part is called a subnet. It reduces network traffic, improves performance, and increases security. Large networks use subnetting for management. Example: 192.168.1.0/24 split into Subnet 1: 192.168.1.0/25 and Subnet 2: 192.168.1.128/25.

NAT (Network Address Translation): allows many devices to share one public IP address. NAT is performed by routers. It hides private IP addresses, which improves network security. NAT is commonly used in networks.

اردو

آئی پی ایڈریس کسی ڈیوائس کو دیا گیا منفرد نمبر ہے۔ آئی پی کا مطلب انٹرنیٹ پروٹوکول ہے۔ یہ نیٹ ورک پر ڈیوائسز کی شناخت میں مدد دیتا ہے، اور ڈیٹا آئی پی ایڈریسز سے اپنی منزل ڈھونڈتا ہے۔ ہر نیٹ ورک ڈیوائس کا آئی پی ایڈریس ہونا ضروری ہے — اس کے بغیر رابطہ ممکن نہیں۔

IPv4 اور IPv6: IPv4 آئی پی ایڈریسنگ کا پرانا ورژن ہے۔ یہ 32 بٹ عددی ایڈریسز استعمال کرتا ہے اور اس کے ایڈریسز محدود ہیں — کل ممکنہ IPv4 ایڈریسز: 4.29 ارب۔ IPv6 نیا ورژن ہے جس میں 128 بٹ ایڈریسز ہیں، جو کہیں زیادہ ایڈریس اسپیس دیتا ہے اور جدید انٹرنیٹ کی ضروریات کو پورا کرتا ہے۔ IPv6 ایڈریسز کل 2128 ≈ 3.4 × 1038 ہیں — IPv6 کبھی ختم نہیں ہوگا۔

IPv4 مثال: 192.168.1.10 — 4 نمبر، ہر ایک 0–255، نقطوں سے الگ۔ ہر نمبر = 1 بائٹ = 8 بٹس؛ کل = 32 بٹس۔ نیٹ ورک حصہ 192.168.1 آپ کے لوکل نیٹ ورک کی شناخت کرتا ہے (جیسے "گلشن بلاک اسٹریٹ 3")؛ ہوسٹ حصہ 10 اس نیٹ ورک پر آپ کی مخصوص ڈیوائس کی شناخت کرتا ہے (جیسے "مکان نمبر 10")۔

IPv6 مثال: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 — 8 گروپس، ہر ایک میں 4 ہیکساڈیسیمل ہندسے، کولن سے الگ۔ ہر گروپ = 16 بٹس؛ کل = 128 بٹس۔ گلوبل روٹنگ پریفکس 2001:0db8:85a3 = ISP/علاقہ (جیسے "پاکستان، سندھ، کراچی")؛ سب نیٹ آئی ڈی 0000 = ISP کے اندر آپ کا لوکل نیٹ ورک (جیسے "گلشن کا علاقہ")؛ انٹرفیس آئی ڈی 0000:8a2e:0370:7334 = آپ کی مخصوص ڈیوائس (جیسے "آپ کا لیپ ٹاپ")۔

سب نیٹنگ: نیٹ ورک کو چھوٹے حصوں میں تقسیم کرتی ہے۔ ہر حصہ سب نیٹ کہلاتا ہے۔ یہ نیٹ ورک ٹریفک کم کرتی ہے، کارکردگی بہتر کرتی ہے، اور سیکیورٹی بڑھاتی ہے۔ بڑے نیٹ ورکس انتظام کے لیے سب نیٹنگ استعمال کرتے ہیں۔ مثال: 192.168.1.0/24 کو سب نیٹ 1: 192.168.1.0/25 اور سب نیٹ 2: 192.168.1.128/25 میں تقسیم کیا گیا۔

نیٹ (نیٹ ورک ایڈریس ٹرانسلیشن): کئی ڈیوائسز کو ایک پبلک آئی پی ایڈریس شیئر کرنے کی اجازت دیتا ہے۔ نیٹ راؤٹرز کرتے ہیں۔ یہ پرائیویٹ آئی پی ایڈریسز چھپاتا ہے، جس سے نیٹ ورک سیکیورٹی بہتر ہوتی ہے۔ نیٹ عام طور پر نیٹ ورکس میں استعمال ہوتا ہے۔

192.168.1.0/24 Subnet 1: .0/25 Subnet 2: .128/25
Subnetting samjho: بڑا network چھوٹے حصوں میں توڑنا ہی subnetting ہے — جیسے ایک بڑی class کو sections میں بانٹنا, تاکہ انتظام آسان ہو.
Subnetting: one network (192.168.1.0/24) split into two subnets.
سب نیٹنگ: ایک نیٹ ورک (192.168.1.0/24) دو سب نیٹس میں تقسیم۔
9. 🏠 Home Network Setup and Wi-Fi Securityہوم نیٹ ورک سیٹ اپ اور وائی فائی سیکیورٹی
🏷 Tags: Home, Network, Setup, Security
ENGLISH

A home network connects different devices in a house and helps computers, mobile phones, and printers communicate with each other. All devices can share the same internet connection. A router is the main device in a home network. Network setup makes data sharing easy and fast, and proper configuration improves network speed and safety.

Components of a Home Network: a router connects all devices in the network; a modem connects the home network to the Internet Service Provider; computers, laptops, and mobile phones are network devices; network cables are used for wired connections; wireless devices use Wi-Fi signals to connect.

Wired Network Connections: use cables to connect devices. Ethernet cables are commonly used in wired networks. Devices are connected directly to a router or switch. Wired connections provide high speed and stable performance and are more secure than wireless networks — but devices cannot move freely because of cables.

Wireless Network Connections: connect devices without using cables. They use radio signals to send and receive data. Wi-Fi is the most common wireless technology used in homes. Devices can move freely within the network range. Wireless networks are easy to install and use, but may be slower than wired networks in some cases.

Wi-Fi Security: protects the network from unauthorized access. Without security, anyone can use the internet, and hackers can steal personal information from unsecured networks. Secure Wi-Fi keeps data safe and private, prevents slow internet speed, and strong security improves overall network performance.

Router Web Interface: used to manage router settings. It is opened using a web browser — the user enters the router's IP address to access it, and a username and password are required to log in. The interface allows changes in Wi-Fi name and password, and helps control security settings.

Wi-Fi Encryption: protects data sent over the network by converting data into a secure form. WPA2 and WPA3 are common security protocols. Older protocols like WEP are not secure. Strong encryption prevents data theft, and users should always select the latest encryption method.

Default Gateway: connects a local network to other networks. It is usually a router. Data meant for outside networks goes through the gateway, which forwards data to the correct network. Internet access depends on it, so proper gateway setting is necessary.

Guest Networks: allow visitors to use the internet while staying separate from the main home network. Guest users cannot access personal devices. This increases network safety and privacy, helps control internet usage, and is useful in homes and offices.

اردو

ہوم نیٹ ورک گھر میں مختلف ڈیوائسز کو جوڑتا ہے اور کمپیوٹرز، موبائل فونز اور پرنٹرز کو ایک دوسرے سے رابطہ کرنے میں مدد دیتا ہے۔ تمام ڈیوائسز ایک ہی انٹرنیٹ کنکشن شیئر کر سکتی ہیں۔ راؤٹر ہوم نیٹ ورک کی مرکزی ڈیوائس ہے۔ نیٹ ورک سیٹ اپ ڈیٹا شیئرنگ کو آسان اور تیز بناتا ہے، اور درست کنفیگریشن نیٹ ورک کی رفتار اور حفاظت بہتر کرتی ہے۔

ہوم نیٹ ورک کے اجزا: راؤٹر نیٹ ورک کی تمام ڈیوائسز کو جوڑتا ہے؛ موڈیم ہوم نیٹ ورک کو انٹرنیٹ سروس پرووائیڈر سے جوڑتا ہے؛ کمپیوٹرز، لیپ ٹاپس اور موبائل فونز نیٹ ورک ڈیوائسز ہیں؛ وائرڈ کنکشنز کے لیے نیٹ ورک کیبلز استعمال ہوتی ہیں؛ وائرلیس ڈیوائسز جڑنے کے لیے وائی فائی سگنلز استعمال کرتی ہیں۔

وائرڈ نیٹ ورک کنکشنز: ڈیوائسز جوڑنے کے لیے کیبلز استعمال کرتے ہیں۔ وائرڈ نیٹ ورکس میں عام طور پر ایتھرنیٹ کیبلز استعمال ہوتی ہیں۔ ڈیوائسز براہ راست راؤٹر یا سوئچ سے جڑتی ہیں۔ وائرڈ کنکشنز زیادہ رفتار اور مستحکم کارکردگی دیتے ہیں اور وائرلیس نیٹ ورکس سے زیادہ محفوظ ہوتے ہیں — لیکن کیبلز کی وجہ سے ڈیوائسز آزادانہ حرکت نہیں کر سکتیں۔

وائرلیس نیٹ ورک کنکشنز: بغیر کیبلز کے ڈیوائسز جوڑتے ہیں۔ یہ ڈیٹا بھیجنے اور وصول کرنے کے لیے ریڈیو سگنلز استعمال کرتے ہیں۔ وائی فائی گھروں میں سب سے عام وائرلیس ٹیکنالوجی ہے۔ ڈیوائسز نیٹ ورک کی رینج میں آزادانہ حرکت کر سکتی ہیں۔ وائرلیس نیٹ ورکس لگانا اور استعمال کرنا آسان ہے، لیکن بعض صورتوں میں وائرڈ نیٹ ورکس سے سست ہو سکتے ہیں۔

وائی فائی سیکیورٹی: نیٹ ورک کو غیر مجاز رسائی سے بچاتی ہے۔ سیکیورٹی کے بغیر کوئی بھی انٹرنیٹ استعمال کر سکتا ہے، اور ہیکرز غیر محفوظ نیٹ ورکس سے ذاتی معلومات چرا سکتے ہیں۔ محفوظ وائی فائی ڈیٹا کو محفوظ اور نجی رکھتا ہے، انٹرنیٹ کی سست رفتار روکتا ہے، اور مضبوط سیکیورٹی نیٹ ورک کی مجموعی کارکردگی بہتر کرتی ہے۔

راؤٹر ویب انٹرفیس: راؤٹر کی سیٹنگز منظم کرنے کے لیے استعمال ہوتا ہے۔ یہ ویب براؤزر سے کھولا جاتا ہے — صارف رسائی کے لیے راؤٹر کا آئی پی ایڈریس درج کرتا ہے، اور لاگ ان کے لیے یوزرنیم اور پاس ورڈ درکار ہوتے ہیں۔ انٹرفیس وائی فائی کا نام اور پاس ورڈ تبدیل کرنے کی اجازت دیتا ہے، اور سیکیورٹی سیٹنگز کنٹرول کرنے میں مدد دیتا ہے۔

وائی فائی انکرپشن: ڈیٹا کو محفوظ شکل میں بدل کر نیٹ ورک پر بھیجے گئے ڈیٹا کی حفاظت کرتی ہے۔ WPA2 اور WPA3 عام سیکیورٹی پروٹوکولز ہیں۔ WEP جیسے پرانے پروٹوکولز محفوظ نہیں۔ مضبوط انکرپشن ڈیٹا چوری روکتی ہے، اور صارفین کو ہمیشہ جدید ترین انکرپشن طریقہ منتخب کرنا چاہیے۔

ڈیفالٹ گیٹ وے: لوکل نیٹ ورک کو دوسرے نیٹ ورکس سے جوڑتا ہے۔ یہ عام طور پر راؤٹر ہوتا ہے۔ بیرونی نیٹ ورکس کے لیے ڈیٹا گیٹ وے سے گزرتا ہے، جو ڈیٹا درست نیٹ ورک تک پہنچاتا ہے۔ انٹرنیٹ تک رسائی اس پر منحصر ہے، اس لیے گیٹ وے کی درست سیٹنگ ضروری ہے۔

گیسٹ نیٹ ورکس: مہمانوں کو انٹرنیٹ استعمال کرنے کی اجازت دیتے ہیں جبکہ وہ مرکزی ہوم نیٹ ورک سے الگ رہتے ہیں۔ گیسٹ صارفین ذاتی ڈیوائسز تک رسائی نہیں کر سکتے۔ اس سے نیٹ ورک کی حفاظت اور پرائیویسی بڑھتی ہے، انٹرنیٹ کے استعمال کو کنٹرول کرنے میں مدد ملتی ہے، اور یہ گھروں اور دفاتر میں مفید ہیں۔

Router + Modem Wired PC Wi-Fi Phone Guest Network Guest users stay separate from personal devices
Home network samjho: گھر میں router + modem سب کو جوڑتے ہیں — wired PC, Wi-Fi phone, اور مہمانوں کے لیے الگ guest network, تاکہ اصل network محفوظ رہے.
Home network: router + modem connect wired devices, Wi-Fi devices, and a separate guest network.
ہوم نیٹ ورک: راؤٹر + موڈیم وائرڈ ڈیوائسز، وائی فائی ڈیوائسز اور الگ گیسٹ نیٹ ورک جوڑتے ہیں۔
10. 🛠️ Network Diagnostic Tools and Commandsنیٹ ورک تشخیصی ٹولز اور کمانڈز
🏷 Tags: Network, Diagnostic, Tools, Commands
ENGLISH

Network diagnostic tools are used to find network problems. They help check internet and network connections and show whether devices can communicate properly. Commands are entered using the command prompt or terminal. They help identify slow or broken connections.

Network troubleshooting is done to find and fix network issues. It helps detect connection and speed problems. Troubleshooting checks cables, devices, and settings, reduces network downtime and errors, and helps maintain smooth communication. Proper troubleshooting improves network performance.

Ping Command: used to test network connectivity — it checks if a device is reachable on the network. Ping sends small data packets to another device and measures response time from the destination. It helps detect network delays and is commonly used to check internet connection.

Ping Command:
C:\> ping google.com
Sample Output:
Pinging google.com [142.250.190.14] with 32 bytes of data:
Reply from 142.250.190.14: bytes=32 time=25ms TTL=118
Reply from 142.250.190.14: bytes=32 time=24ms TTL=118
Reply from 142.250.190.14: bytes=32 time=26ms TTL=118

Ipconfig and ifconfig Commands: ipconfig is used in Windows operating system; ifconfig is used in Linux and macOS systems. These commands display network settings — they show IP address and subnet mask, gateway, and network status. They help in network troubleshooting.

Telnet, PuTTY, and Secure Shell (SSH): Telnet is used for remote device access but sends data without encryption. PuTTY is a popular tool for remote login. SSH is a secure method for remote access — it encrypts data for safety. These tools help manage network devices.

اردو

نیٹ ورک تشخیصی ٹولز نیٹ ورک کے مسائل ڈھونڈنے کے لیے استعمال ہوتے ہیں۔ یہ انٹرنیٹ اور نیٹ ورک کنکشنز چیک کرنے میں مدد دیتے ہیں اور بتاتے ہیں کہ ڈیوائسز درست رابطہ کر سکتی ہیں یا نہیں۔ کمانڈز کمانڈ پرامپٹ یا ٹرمینل سے درج کی جاتی ہیں۔ یہ سست یا ٹوٹے کنکشنز کی نشاندہی میں مدد دیتے ہیں۔

نیٹ ورک ٹربل شوٹنگ نیٹ ورک کے مسائل ڈھونڈنے اور ٹھیک کرنے کے لیے کی جاتی ہے۔ یہ کنکشن اور رفتار کے مسائل کا پتا لگانے میں مدد دیتی ہے۔ ٹربل شوٹنگ کیبلز، ڈیوائسز اور سیٹنگز چیک کرتی ہے، نیٹ ورک ڈاؤن ٹائم اور غلطیاں کم کرتی ہے، اور ہموار رابطہ برقرار رکھنے میں مدد دیتی ہے۔ درست ٹربل شوٹنگ نیٹ ورک کی کارکردگی بہتر کرتی ہے۔

پنگ کمانڈ: نیٹ ورک کنیکٹیویٹی جانچنے کے لیے استعمال ہوتی ہے — یہ چیک کرتی ہے کہ کوئی ڈیوائس نیٹ ورک پر قابل رسائی ہے یا نہیں۔ پنگ دوسری ڈیوائس کو چھوٹے ڈیٹا پیکٹس بھیجتا ہے اور منزل سے جوابی وقت ناپتا ہے۔ یہ نیٹ ورک تاخیر کا پتا لگانے میں مدد دیتا ہے اور عام طور پر انٹرنیٹ کنکشن چیک کرنے کے لیے استعمال ہوتا ہے۔

پنگ کمانڈ:
C:\> ping google.com
مثال آؤٹ پٹ:
Reply from 142.250.190.14: bytes=32 time=25ms TTL=118

Ipconfig اور ifconfig کمانڈز: ipconfig ونڈوز آپریٹنگ سسٹم میں استعمال ہوتی ہے؛ ifconfig لینکس اور macOS سسٹمز میں استعمال ہوتی ہے۔ یہ کمانڈز نیٹ ورک سیٹنگز دکھاتی ہیں — یہ آئی پی ایڈریس اور سب نیٹ ماسک، گیٹ وے اور نیٹ ورک اسٹیٹس دکھاتی ہیں۔ یہ نیٹ ورک ٹربل شوٹنگ میں مدد دیتی ہیں۔

ٹیل نیٹ، پٹی اور سیکیور شیل (SSH): ٹیل نیٹ ریموٹ ڈیوائس رسائی کے لیے استعمال ہوتا ہے لیکن ڈیٹا بغیر انکرپشن کے بھیجتا ہے۔ پٹی ریموٹ لاگ ان کا مشہور ٹول ہے۔ SSH ریموٹ رسائی کا محفوظ طریقہ ہے — یہ حفاظت کے لیے ڈیٹا انکرپٹ کرتا ہے۔ یہ ٹولز نیٹ ورک ڈیوائسز منظم کرنے میں مدد دیتے ہیں۔

Host APing 192.168.0.1 Host B ICMP Echo Request → ← ICMP Echo Reply
Ping samjho: ping ایک چھوٹا پیغام بھیج کر پوچھتا ہے "تم زندہ ہو?" — جواب کتنی دیر میں آئے, وہی network کی delay بتاتا ہے.
Ping: Host A sends an ICMP Echo Request; Host B replies — the reply time shows network delay.
پنگ: ہوسٹ A آئی سی ایم پی ایکو ریکویسٹ بھیجتا ہے؛ ہوسٹ B جواب دیتا ہے — جوابی وقت نیٹ ورک تاخیر بتاتا ہے۔
11. ⚡ Network Performance and Load Balancingنیٹ ورک کارکردگی اور لوڈ بیلنسنگ
🏷 Tags: Network, Performance, Load, Balancing
ENGLISH

Network performance means how well a network works. It shows the speed and quality of data transfer. Good performance allows fast and smooth communication; poor performance causes slow internet and delays. Network performance depends on many factors, such as bandwidth and latency.

Network Bandwidth: the amount of data sent in a given time. It shows how much data a network can carry and is usually measured in Mbps. Higher bandwidth means faster data transfer. More devices use more bandwidth, and low bandwidth can cause slow internet speed.

Network Latency: the time taken by data to travel — the delay between sending and receiving data. Latency is measured in milliseconds. Low latency means faster response; high latency causes lag and delay. Online games and video calls need low latency.

Causes of Network Delay: too many users can slow the network; poor-quality cables can cause delay; long distance between devices increases delay; network congestion affects data speed; hardware problems also cause network delay.

Network Load Balancing: used to manage network traffic. It distributes work among multiple servers or links, which helps prevent overloading of one device. Load balancing improves network speed and reliability, is used in large networks and data centers, ensures smooth performance, and helps networks handle more users.

Benefits of Load Balancing: improves network speed and response time; reduces the risk of server failure — if one server fails, others continue working; provides better user experience; helps handle high traffic easily; increases network reliability and availability.

Basic Load Balancing Methods: Round Robin sends requests one by one. Least Connection sends traffic to less busy servers. IP Hash uses IP address to decide traffic. These methods balance the network load, and simple methods are easy to implement.

اردو

نیٹ ورک کارکردگی کا مطلب ہے کہ نیٹ ورک کتنا اچھا کام کرتا ہے۔ یہ ڈیٹا منتقلی کی رفتار اور معیار بتاتی ہے۔ اچھی کارکردگی تیز اور ہموار رابطہ دیتی ہے؛ خراب کارکردگی سست انٹرنیٹ اور تاخیر کا سبب بنتی ہے۔ نیٹ ورک کارکردگی کئی عوامل پر منحصر ہے، جیسے بینڈوڈتھ اور لیٹنسی۔

نیٹ ورک بینڈوڈتھ: کسی مقررہ وقت میں بھیجا گیا ڈیٹا۔ یہ بتاتی ہے کہ نیٹ ورک کتنا ڈیٹا لے جا سکتا ہے اور عام طور پر Mbps میں ناپی جاتی ہے۔ زیادہ بینڈوڈتھ کا مطلب تیز ڈیٹا منتقلی ہے۔ زیادہ ڈیوائسز زیادہ بینڈوڈتھ استعمال کرتی ہیں، اور کم بینڈوڈتھ انٹرنیٹ کی رفتار سست کر سکتی ہے۔

نیٹ ورک لیٹنسی: ڈیٹا کے سفر میں لگنے والا وقت — بھیجنے اور وصول کرنے کے درمیان تاخیر۔ لیٹنسی ملی سیکنڈز میں ناپی جاتی ہے۔ کم لیٹنسی کا مطلب تیز جواب ہے؛ زیادہ لیٹنسی لیگ اور تاخیر کا سبب بنتی ہے۔ آن لائن گیمز اور ویڈیو کالز کو کم لیٹنسی چاہیے۔

نیٹ ورک تاخیر کی وجوہات: بہت زیادہ صارفین نیٹ ورک سست کر سکتے ہیں؛ خراب معیار کی کیبلز تاخیر کا سبب بن سکتی ہیں؛ ڈیوائسز کے درمیان زیادہ فاصلہ تاخیر بڑھاتا ہے؛ نیٹ ورک کنجیشن ڈیٹا کی رفتار پر اثر ڈالتا ہے؛ ہارڈویئر کے مسائل بھی نیٹ ورک تاخیر کا سبب بنتے ہیں۔

نیٹ ورک لوڈ بیلنسنگ: نیٹ ورک ٹریفک منظم کرنے کے لیے استعمال ہوتی ہے۔ یہ کام کئی سرورز یا لنکس میں تقسیم کرتی ہے، جس سے ایک ڈیوائس پر زیادہ بوجھ نہیں پڑتا۔ لوڈ بیلنسنگ نیٹ ورک کی رفتار اور قابل اعتمادیت بہتر کرتی ہے، بڑے نیٹ ورکس اور ڈیٹا سینٹرز میں استعمال ہوتی ہے، ہموار کارکردگی یقینی بناتی ہے، اور نیٹ ورکس کو زیادہ صارفین سنبھالنے میں مدد دیتی ہے۔

لوڈ بیلنسنگ کے فوائد: نیٹ ورک کی رفتار اور جوابی وقت بہتر کرتی ہے؛ سرور کی خرابی کا خطرہ کم کرتی ہے — اگر ایک سرور خراب ہو جائے تو دوسرے کام جاری رکھتے ہیں؛ بہتر صارف تجربہ دیتی ہے؛ زیادہ ٹریفک آسانی سے سنبھالنے میں مدد دیتی ہے؛ نیٹ ورک کی قابل اعتمادیت اور دستیابی بڑھاتی ہے۔

لوڈ بیلنسنگ کے بنیادی طریقے: راؤنڈ رابن درخواستیں ایک ایک کر کے بھیجتا ہے۔ لیسٹ کنکشن ٹریفک کم مصروف سرورز کو بھیجتا ہے۔ آئی پی ہیش ٹریفک کا فیصلہ کرنے کے لیے آئی پی ایڈریس استعمال کرتا ہے۔ یہ طریقے نیٹ ورک لوڈ متوازن کرتے ہیں، اور سادہ طریقے لاگو کرنا آسان ہیں۔

Users Load Balancer Server 1 Server 2 Server 3
Load balancing samjho: جب بوجھ زیادہ ہو تو ایک server پر سب ڈالنا بےوقوفی ہے — load balancer کام سب servers میں بانٹ دیتا ہے.
Load balancing: traffic is distributed among servers so no single server is overloaded.
لوڈ بیلنسنگ: ٹریفک سرورز میں تقسیم ہوتی ہے تاکہ کسی ایک سرور پر زیادہ بوجھ نہ پڑے۔
12. 🔒 Network Security, Backup and the Usability Tradeoffنیٹ ورک سیکیورٹی، بیک اپ اور استعمال میں آسانی کا توازن
🏷 Tags: Network, Security, Backup, Usability, Tradeoff
ENGLISH

Network security protects computer networks. It keeps data safe from unauthorized access, prevents data loss and damage, and stops hackers from entering the network. Security keeps data private and safe, protects devices from malware, and keeps secure networks working smoothly without interruptions. Every network needs basic security measures, and network security uses different tools and rules.

Firewalls: a security device or software that controls incoming and outgoing network traffic. Firewalls block harmful or unwanted data and act as a barrier between safe and unsafe networks. They protect computers from attacks and are used in homes and offices.

Encryption: changes data into a secret form. Only authorized users can read encrypted data. It protects data during transfer, is used in emails and online banking, and strong encryption improves data security and prevents data theft.

Access Control: decides who can use the network. It allows only authorized users to enter. Usernames and passwords are common access controls. Permissions limit what users can do. Access control protects important resources and helps manage network usage.

Common Network Security Threats: viruses and malware damage systems; hackers try to steal data; phishing tricks users to share information; Denial of Service attacks stop network services. Security tools help reduce these threats.

Data Backup and Recovery: data backup means making a copy of important data. It helps protect data from loss or damage — data can be lost due to viruses or hardware failure. Backup allows data to be restored easily. Recovery is the process of getting data back. Backup and recovery are very important for safety, and every user should back up data regularly.

Types of Data Backup: Full backup saves all data at once. Incremental backup saves only changed data. Differential backup saves changes since the last full backup. Backups can be stored on hard drives, and cloud storage is also used for backup.

Data Recovery Methods: backup files are used for recovery; recovery software helps get deleted files; system restore can recover system data; professionals can recover data from damaged devices. Recovery methods help reduce data loss.

Usability and Security Tradeoffs: usability means how easy a system is to use — users can learn it quickly, tasks can be done without confusion, good usability saves time and effort, and improves user satisfaction. Security means protecting systems and data — it prevents unauthorized access, protects against viruses and hackers, and keeps information private and safe. Strong security reduces risks and damage. The tradeoff: increasing security can make systems harder to use — strong passwords are difficult to remember, and extra login steps slow down users. Simple systems are easier but less secure, and removing security increases risk. A balance is required for safe and easy use.

اردو

نیٹ ورک سیکیورٹی کمپیوٹر نیٹ ورکس کی حفاظت کرتی ہے۔ یہ ڈیٹا کو غیر مجاز رسائی سے محفوظ رکھتی ہے، ڈیٹا کے نقصان اور خرابی کو روکتی ہے، اور ہیکرز کو نیٹ ورک میں داخل ہونے سے روکتی ہے۔ سیکیورٹی ڈیٹا کو نجی اور محفوظ رکھتی ہے، ڈیوائسز کو میلویئر سے بچاتی ہے، اور محفوظ نیٹ ورکس کو بغیر رکاوٹ ہموار چلاتی ہے۔ ہر نیٹ ورک کو بنیادی سیکیورٹی اقدامات چاہییں، اور نیٹ ورک سیکیورٹی مختلف ٹولز اور قواعد استعمال کرتی ہے۔

فائر والز: سیکیورٹی ڈیوائس یا سافٹ ویئر جو آنے اور جانے والے نیٹ ورک ٹریفک کو کنٹرول کرتا ہے۔ فائر والز نقصان دہ یا ناپسندیدہ ڈیٹا روکتے ہیں اور محفوظ اور غیر محفوظ نیٹ ورکس کے درمیان رکاوٹ کا کام کرتے ہیں۔ یہ کمپیوٹرز کو حملوں سے بچاتے ہیں اور گھروں اور دفاتر میں استعمال ہوتے ہیں۔

انکرپشن: ڈیٹا کو خفیہ شکل میں بدل دیتی ہے۔ صرف مجاز صارفین انکرپٹ شدہ ڈیٹا پڑھ سکتے ہیں۔ یہ منتقلی کے دوران ڈیٹا کی حفاظت کرتی ہے، ای میلز اور آن لائن بینکنگ میں استعمال ہوتی ہے، اور مضبوط انکرپشن ڈیٹا سیکیورٹی بہتر کرتی ہے اور ڈیٹا چوری روکتی ہے۔

ایکسیس کنٹرول: فیصلہ کرتا ہے کہ نیٹ ورک کون استعمال کر سکتا ہے۔ یہ صرف مجاز صارفین کو داخل ہونے کی اجازت دیتا ہے۔ یوزرنیم اور پاس ورڈ عام ایکسیس کنٹرولز ہیں۔ اجازتیں صارفین کے کام محدود کرتی ہیں۔ ایکسیس کنٹرول اہم وسائل کی حفاظت کرتا ہے اور نیٹ ورک کے استعمال کو منظم کرنے میں مدد دیتا ہے۔

نیٹ ورک سیکیورٹی کے عام خطرات: وائرس اور میلویئر سسٹمز کو نقصان پہنچاتے ہیں؛ ہیکرز ڈیٹا چرانے کی کوشش کرتے ہیں؛ فشنگ صارفین کو معلومات شیئر کرنے پر دھوکہ دیتی ہے؛ ڈینائل آف سروس حملے نیٹ ورک سروسز روک دیتے ہیں۔ سیکیورٹی ٹولز ان خطرات کو کم کرنے میں مدد دیتے ہیں۔

ڈیٹا بیک اپ اور ریکوری: ڈیٹا بیک اپ کا مطلب اہم ڈیٹا کی نقل بنانا ہے۔ یہ ڈیٹا کو نقصان یا خرابی سے بچانے میں مدد دیتا ہے — ڈیٹا وائرس یا ہارڈویئر کی خرابی سے ضائع ہو سکتا ہے۔ بیک اپ سے ڈیٹا آسانی سے بحال ہو جاتا ہے۔ ریکوری ڈیٹا واپس حاصل کرنے کا عمل ہے۔ بیک اپ اور ریکوری حفاظت کے لیے بہت اہم ہیں، اور ہر صارف کو باقاعدگی سے ڈیٹا بیک اپ لینا چاہیے۔

ڈیٹا بیک اپ کی اقسام: فل بیک اپ ایک ہی بار میں تمام ڈیٹا محفوظ کرتا ہے۔ انکریمنٹل بیک اپ صرف تبدیل شدہ ڈیٹا محفوظ کرتا ہے۔ ڈیفرینشل بیک اپ آخری فل بیک اپ کے بعد کی تبدیلیاں محفوظ کرتا ہے۔ بیک اپس ہارڈ ڈرائیوز پر محفوظ کیے جا سکتے ہیں، اور کلاؤڈ اسٹوریج بھی بیک اپ کے لیے استعمال ہوتی ہے۔

ڈیٹا ریکوری کے طریقے: ریکوری کے لیے بیک اپ فائلیں استعمال ہوتی ہیں؛ ریکوری سافٹ ویئر حذف شدہ فائلیں واپس لانے میں مدد دیتا ہے؛ سسٹم ریسٹور سسٹم ڈیٹا بحال کر سکتا ہے؛ ماہرین خراب ڈیوائسز سے ڈیٹا بحال کر سکتے ہیں۔ ریکوری کے طریقے ڈیٹا نقصان کم کرنے میں مدد دیتے ہیں۔

استعمال میں آسانی اور سیکیورٹی کا توازن: استعمال میں آسانی کا مطلب ہے کہ سسٹم استعمال کرنا کتنا آسان ہے — صارفین اسے جلدی سیکھ سکتے ہیں، کام بغیر الجھن کے ہو سکتے ہیں، اچھی استعمال پذیری وقت اور محنت بچاتی ہے، اور صارف کی اطمینان بہتر کرتی ہے۔ سیکیورٹی کا مطلب سسٹمز اور ڈیٹا کی حفاظت ہے — یہ غیر مجاز رسائی روکتی ہے، وائرس اور ہیکرز سے بچاتی ہے، اور معلومات کو نجی اور محفوظ رکھتی ہے۔ مضبوط سیکیورٹی خطرات اور نقصان کم کرتی ہے۔ توازن یہ ہے: سیکیورٹی بڑھانے سے سسٹمز استعمال کرنا مشکل ہو سکتا ہے — مضبوط پاس ورڈ یاد رکھنا مشکل ہوتے ہیں، اور اضافی لاگ ان مراحل صارفین کو سست کر دیتے ہیں۔ سادہ سسٹمز آسان لیکن کم محفوظ ہوتے ہیں، اور سیکیورٹی ہٹانے سے خطرہ بڑھتا ہے۔ محفوظ اور آسان استعمال کے لیے توازن ضروری ہے۔

ThreatsMalware / Hackers FIREWALLBlocks harmful traffic Safe Network
Firewall samjho: firewall دروازے پر کھڑا guard ہے — اچھا traffic اندر آنے دیتا ہے, نقصان-دہ traffic کو وہیں روک دیتا ہے.
Firewall: a barrier between unsafe networks and the safe network, blocking harmful traffic.
فائر وال: غیر محفوظ نیٹ ورکس اور محفوظ نیٹ ورک کے درمیان رکاوٹ، نقصان دہ ٹریفک روکتی ہے۔
📝 Official Exercise — Chapter 1سرکاری ایکسرسائز — باب 1

Answer key (from the book): 1–B, 2–C, 3–C, 4–C, 5–C, 6–D, 7–C, 8–C, 9–C, 10–D. Each question below opens with its answer and a short reason.

Answer key (from the book): 1–B, 2–C, 3–C, 4–C, 5–C, 6–D, 7–C, 8–C, 9–C, 10–D. Each question below opens with its answer and a short reason.

1. A computer network is: (a) A single computer system (b) A group of connected computers and devices (c) A software program (d) A storage device

Answer: (b) — A network is a group of connected computers and devices that share data, resources, and services.

2. The device used to connect a computer to a network is: (a) Monitor (b) Keyboard (c) Network Interface Card (NIC) (d) Printer

Answer: (c) — The NIC allows a device to connect to a network; each NIC has a unique MAC address.

3. A network that covers a small geographical area, such as a school or office, is: (a) WAN (b) MAN (c) LAN (d) Internet

Answer: (c) — LAN connects devices within a small area like a home, school, or office.

4. The topology that uses a central hub or switch is: (a) Bus Topology (b) Ring Topology (c) Star Topology (d) Mesh Topology

Answer: (c) — In star topology all devices connect to a central hub or switch.

5. The OSI model contains: (a) Five layers (b) Six layers (c) Seven layers (d) Eight layers

Answer: (c) — The OSI model has seven layers: Physical, Data Link, Network, Transport, Session, Presentation, Application.

6. The protocol mainly used to view web pages is: (a) FTP (b) DNS (c) TCP (d) HTTP

Answer: (d) — HTTP transfers web pages between a web browser and a web server.

7. The main function of a router is to: (a) Store data (b) Connect devices within a network (c) Connect different networks (d) Display web pages

Answer: (c) — A router connects different networks together and directs packets to their destination.

8. DNS is used to: (a) Transfer files (b) Protect data (c) Convert domain names into IP addresses (d) Connect hardware devices

Answer: (c) — DNS converts website names into IP addresses.

9. The device that converts digital signals for Internet transmission is: (a) Switch (b) Hub (c) Modem (d) NIC

Answer: (c) — A modem converts digital data into signals suitable for transmission and back again.

10. The topology that provides the highest reliability is: (a) Bus topology (b) Ring topology (c) Star topology (d) Mesh topology

Answer: (d) — Mesh topology has multiple paths, so failure of one link does not stop communication.

ملٹی پل چوائس سوالات

جوابی کلید (کتاب سے): 1–B، 2–C، 3–C، 4–C، 5–C، 6–D، 7–C، 8–C، 9–C، 10–D۔ ہر سوال کے ساتھ جواب اور مختصر وجہ دی گئی ہے۔

Multiple Choice Questions — Englishکثیر الانتخابی سوالات — انگریزی

1. A computer network is:

Answer: (b) — A network is a group of connected computers and devices that share data, resources, and services.

2. The device used to connect a computer to a network is:

Answer: (c) — The NIC allows a device to connect to a network; each NIC has a unique MAC address.

3. A network that covers a small geographical area, such as a school or office, is:

Answer: (c) — LAN connects devices within a small area like a home, school, or office.

4. The topology that uses a central hub or switch is:

Answer: (c) — In star topology all devices connect to a central hub or switch.

5. The OSI model contains:

Answer: (c) — The OSI model has seven layers: Physical, Data Link, Network, Transport, Session, Presentation, Application.

6. The protocol mainly used to view web pages is:

Answer: (d) — HTTP transfers web pages between a web browser and a web server.

7. The main function of a router is to:

Answer: (c) — A router connects different networks together and directs packets to their destination.

8. DNS is used to:

Answer: (c) — DNS converts website names into IP addresses.

9. The device that converts digital signals for Internet transmission is:

Answer: (c) — A modem converts digital data into signals suitable for transmission and back again.

10. The topology that provides the highest reliability is:

Answer: (d) — Mesh topology has multiple paths, so failure of one link does not stop communication.
Multiple Choice Questions — Urduکثیر الانتخابی سوالات — اردو

1۔ کمپیوٹر نیٹ ورک ہے:

جواب: (b) — نیٹ ورک جڑے ہوئے کمپیوٹرز اور ڈیوائسز کا گروپ ہے جو ڈیٹا، وسائل اور سروسز شیئر کرتے ہیں۔

2۔ کمپیوٹر کو نیٹ ورک سے جوڑنے کے لیے استعمال ہونے والی ڈیوائس ہے:

جواب: (c) — NIC ڈیوائس کو نیٹ ورک سے جوڑنے کی اجازت دیتا ہے؛ ہر NIC کا منفرد میک ایڈریس ہوتا ہے۔

3۔ چھوٹے جغرافیائی علاقے، جیسے اسکول یا دفتر، کا نیٹ ورک ہے:

جواب: (c) — LAN چھوٹے علاقے جیسے گھر، اسکول یا دفتر میں ڈیوائسز جوڑتا ہے۔

4۔ مرکزی ہب یا سوئچ استعمال کرنے والی ٹوپولوجی ہے:

جواب: (c) — اسٹار ٹوپولوجی میں تمام ڈیوائسز مرکزی ہب یا سوئچ سے جڑتی ہیں۔

5۔ او ایس آئی ماڈل میں لیئرز ہیں:

جواب: (c) — او ایس آئی ماڈل کی سات لیئرز ہیں: فزیکل، ڈیٹا لنک، نیٹ ورک، ٹرانسپورٹ، سیشن، پریزنٹیشن، ایپلی کیشن۔

6۔ ویب پیجز دیکھنے کے لیے بنیادی طور پر استعمال ہونے والا پروٹوکول ہے:

جواب: (d) — HTTP ویب براؤزر اور ویب سرور کے درمیان ویب پیجز منتقل کرتا ہے۔

7۔ راؤٹر کا بنیادی کام ہے:

جواب: (c) — راؤٹر مختلف نیٹ ورکس کو آپس میں جوڑتا ہے اور پیکٹس کو منزل تک لے جاتا ہے۔

8۔ ڈی این ایس استعمال ہوتا ہے:

جواب: (c) — DNS ویب سائٹ کے ناموں کو آئی پی ایڈریسز میں بدلتا ہے۔

9۔ انٹرنیٹ ترسیل کے لیے ڈیجیٹل سگنلز بدلنے والی ڈیوائس ہے:

جواب: (c) — موڈیم ڈیجیٹل ڈیٹا کو ترسیل کے قابل سگنلز میں بدلتا ہے اور واپس بھی لاتا ہے۔

10۔ سب سے زیادہ قابل اعتماد ٹوپولوجی ہے:

جواب: (d) — میش ٹوپولوجی میں کئی راستے ہوتے ہیں، اس لیے ایک لنک کی خرابی رابطہ نہیں روکتی۔
✍️ Short Questions (with answers)مختصر سوالات (جوابات کے ساتھ)

1. What is a computer network?

A group of connected computers and devices that share data, resources, and services, communicating through cables or wireless signals.

2. Write two uses of computer networks.

(1) Internet browsing, calls, messages and apps on mobile phones. (2) Online classes and learning systems in schools (also: bank transactions and ATMs, social media, smart homes).

3. What is network architecture?

The overall design of a computer network — how computers, servers, and other devices are arranged, and how data is transmitted across the network, including hardware, software, and communication rules.

4. Name any two components of a computer network.

Any two: computers/servers, NICs, switches, routers, modems, wireless access points, cables (Ethernet), Wi-Fi signals.

5. What is the OSI model?

Open Systems Interconnection — a standard seven-layer model used to understand network communication; each layer performs a different function, from Physical at the bottom to Application at the top.

6. Write the name of any two network topologies.

Any two: bus, star, ring, mesh, tree.

7. What is a Local Area Network (LAN)?

A network that connects devices within a small area, such as a home, school, or office. It is fast, usually owned by a single organization, cost-effective, and easy to maintain; Ethernet and Wi-Fi are commonly used.

8. What is the function of a router?

To connect different networks together and direct data packets to their correct destination — for example, connecting a local network to the Internet using IP addresses.

9. What is a network protocol?

A set of rules for communication that defines how data is formatted and transmitted and controls error handling and data delivery; all devices in a network must follow the same protocol.

10. What is the purpose of DNS?

To convert website names into IP addresses so users do not need to remember numbers; DNS servers perform this translation every time a website is opened.

📖 Long Questions (with answers)طویل سوالات (جوابات کے ساتھ)

1. Define a computer network. Explain its importance and uses in daily life.

A computer network is a group of connected computers and devices that share data, resources, and services. Importance: communication through networks saves time and effort, and modern life depends heavily on networks for daily tasks; data travels as packets guided by networking devices and reassembled at the destination. Uses: mobile Internet browsing, calls, messages and apps; online classes and learning systems; bank transactions and ATMs; social media; smart homes controlling devices; online learning and remote work; business daily operations.

2. Explain network architecture and describe the main components of a computer network.

Network architecture is the overall design of a network — how devices are arranged and how data is transmitted, including hardware, software, and communication rules; a good architecture works efficiently and supports future expansion. Main components: computers, servers and other devices; NICs (with unique MAC addresses) that connect devices to the network; switches that send data to the correct device; routers that connect different networks; modems that connect the local network to the ISP; wireless access points that provide Wi-Fi; cables (Ethernet) for wired connections and radio/Wi-Fi signals for wireless connections.

3. What is the OSI model? Explain its layers and their functions.

The OSI (Open Systems Interconnection) model is a standard seven-layer model for understanding network communication. Layers: (1) Physical — raw data as electrical, optical, or radio signals; cables, connectors, voltage levels, transmission rates. (2) Data Link — error-free transfer between directly connected nodes; framing, error detection/correction, medium access. (3) Network — routing across networks; logical addressing (IP addresses), best path. (4) Transport — reliable, ordered delivery; error recovery, flow control, segmentation. (5) Session — establishes, maintains, terminates sessions; checkpoints and recovery. (6) Presentation — format translation; encryption, compression, format conversion. (7) Application — services to end users; HTTP, FTP, email.

4. Define network topology. Explain bus, star, ring, and mesh topologies with advantages and disadvantages.

Network topology is the layout of a network — how devices and cables are arranged (physical) and how data flows (logical). Bus: all devices on one main cable — simple, low cost, small networks; main cable failure stops the network, hard to troubleshoot. Star: all devices to a central hub/switch — easy to manage and expand, one device failure does not affect others; central hub failure stops the network, more cable and cost. Ring: circular path, data in one direction, each device passes data along — organized flow, no collisions, equal access; one device failure affects the network, hard to add/remove devices, rarely used. Mesh: devices connected to many others, multiple paths — highly reliable, fault-tolerant, high security; very expensive, complex, many cables.

5. Explain the types of computer networks. Describe LAN, WAN, and the Internet.

Networks are classified by size and coverage area. LAN: small area (home, school, office), high speed, single organization, cost-effective, easy to maintain, Ethernet and Wi-Fi. WAN: large geographic area, connects networks in different cities or countries, uses leased lines, satellites, or the Internet, slower than LAN, expensive to install and manage. Internet: global network connecting millions of devices, the largest public WAN, sharing information worldwide through standard protocols, services like email, websites, and cloud storage, supporting education, business, and entertainment.

6. Describe the main networking devices used in a computer network and explain their functions.

NIC: connects a device to the network (wired or wireless), unique MAC address, sends/receives data; without it a device cannot communicate. Switch: connects devices and sends data to the correct device, improving speed and efficiency. Router: connects different networks, directs packets to their destination, connects LANs to the Internet using IP addresses, improves security and control. Modem: connects the local network to the ISP, converts digital data to transmission signals and back, used with cable, DSL, or fiber. Wireless access point: provides Wi-Fi, extends coverage, used in large buildings and campuses, improves signal strength and stability.

7. What are network protocols? Explain TCP/IP, HTTP, FTP, and DNS.

Protocols are sets of rules for communication — how data is formatted and transmitted, controlling error handling and delivery; all devices must follow the same protocol. TCP/IP: the main Internet protocol — TCP ensures reliable delivery, IP handles addressing and routing. HTTP: transfers web pages between browser and web server; HTTPS is the secure, encrypted version (SSL/TLS) protecting passwords and payment data. FTP: uploads and downloads files, file sharing between computers, used by web developers, can transfer large files; secure versions exist. DNS: converts website names into IP addresses so users need not remember numbers; DNS servers do this translation behind the scenes.

8. Explain IP addressing. Describe IPv4, IPv6, the default gateway, and subnetting.

An IP address is a unique number assigned to a device, used to identify it and route data to it. IPv4: older, 32-bit, 4 numbers 0–255 separated by dots (e.g. 192.168.1.10: network part 192.168.1, host part 10), total 4.29 billion addresses. IPv6: newer, 128-bit, 8 groups of 4 hexadecimal digits separated by colons (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334: global routing prefix, subnet ID, interface ID), total 2^128 ≈ 3.4 × 10^38 addresses. Default gateway: usually a router connecting a local network to other networks; data for outside networks goes through it. Subnetting: dividing a network into smaller subnets (e.g. 192.168.1.0/24 into 192.168.1.0/25 and 192.168.1.128/25) to reduce traffic, improve performance, and increase security.

📌 باب کا خلاصہ اور رہنمائی — اس باب میں کیا ہے؟

This chapter builds the whole picture of computer networks: from what a network is, through its architecture, types, devices and topologies, to the OSI model, protocols, IP addressing, home setup, diagnostic tools, and finally security and backup. The exercise tests every part, so revise the definitions first and then the differences — LAN vs WAN, switch vs router, star vs mesh.

اس باب میں computer networks کی پوری تصویر بنتی ہے — network کیا ہے, architecture, اقسام, devices, topologies, OSI model, protocols, IP addressing, home setup, diagnostic tools, اور آخر میں security اور backup. Exercise ہر حصے سے سوال پوچھتی ہے, اس لیے پہلے definitions یاد کرو, پھر فرق — LAN vs WAN, switch vs router, star vs mesh.

Revision guidance: Revise in this order: (1) read each section and say its idea in one sentence, (2) cover the answers and redo all 20 MCQs, (3) write the 10 short answers from memory, then (4) plan — not just read — two long answers. Revisit any section whose figure you cannot explain without looking.

دہرائی کی رہنمائی: اس ترتیب سے revise کرو: (1) ہر section پڑھ کر اسکا idea ایک جملے میں بتاؤ, (2) جواب چھپا کر 20 MCQs دوبارہ حل کرو, (3) 10 short answers ذہن سے لکھو, پھر (4) دو long answers صرف پڑھنا نہیں, ان کا plan بناؤ. جس section کی figure بغیر دیکھے سمجہ نہ سکو, اسے دوبارہ پڑھو.

🎯 مزید MCQs اور Tests کے لیے

Chapter-wise tests, fresh random papers اور instant score کے لیے PunjabTest.com کا میں test section دیکھو:

PunjabTest.com — Tests →

PunjabTest.com — Complete Guide Book • FSc Part 2 Computer Science, Chapter 1 (New Book, Session 2026–27) • English + Urdu

← FSc Part 2: Computer Science — all chaptersChapter 2: Computational Thinking & Algorithms →