You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is a protocol? A set of rules for formatting and processing data.
Why computer networks architecture is layered? Layered architecture helps to divide the complex task into smaller sub-parts so that each part can be handled respectively.
How your national code and a computer's MAC adress are similiar? Both are unique
How ARP works? Why do we need it? Maps the MAC addresses to IPs by asking from all clients in the Ethernet layer (broadcasting)
How computers that are not in a subnet comminucate with each other? explain. They send it to the default gateway and gateway (router) handles that.
What is the importance of TCP and why a two-way handshake won't work for it? Provides reliability and data retransmission (in the case of data loss) To ensure connection establishment, we need to have 2 SYNs and 2 ACKs, Since the server sends the ACK and SYN at the same time we can use a single packet for it so that the minimum would be 3.
What is the TTL field in a DNS record? The time in seconds which clients are expected to cache the query result.
How to open a TCP port and connect to it using Netcat? nc -lnvp port nc host port
The text was updated successfully, but these errors were encountered:
سلام و خسته نباشید. لطفا درباره سوالهای 3، 4 و 5 بیشتر توضیح بدید.
سلام. به روی چشم.
۳. هردوتا با یه موجودیت رابطه یک به یک دارن. همونطور که هرشخص یه کدملی داره و هرکدملی مربوط به یه نفره. پس میشه طبیعتا با داشتن MAC به خود دستگاه رسید و از خود دستگاه به MACش. به نوعیMAC address رابطه id مااند داره با دستگاه (کارت شبکه).
۴. کار ARP رو میشه گفت مپ کردن IP به MAC address. چون ما از لایه Link مستقیم به IP دسترسی نداریم، ARP با broadcast کردن یه پیام از دستگاهی که اون IP مدنظر رو داره، میخواد که خودشو معرفی کنه. دستگاه هم اگه داخل شبکه باشه به MAC address ی که پرسیده جواب میده و خودشو معرفی میکنه. اینطوری میشه با استفاده از Ethernet اطلاعات رو به دستگاهی که اون IP رو داره ارسال کرد (درواقع همراه دیتای ارسال گفت که مقصد این MAC address هست).
۵. تنظیمات شبکه دستگاه ها یه چیزی رو دارن به اسم subnet که مشخص میکنه چه آدرس هایی توی شبکهی داخلی قرار دارن (ممکنه دستی تنظیم بشه یا مثلا با dhcp). اگر ip مدنظر داخل اون subnet باشه به همون ip میفرستن اطلاعات رو ولی اگر نباشه میفرستن به آدرس gateway (که اون هم جزو تنظیمات شبکس) تا اون بقیه کار routing رو از طریق مکانیسم های IP routing، ادامه بده و دیتا رو (غیرمستقیم) به آدرس خارجی برسونه.
Feel free to answer in Persian
A set of rules for formatting and processing data.
Layered architecture helps to divide the complex task into smaller sub-parts so that each part can be handled respectively.
Both are unique
Maps the MAC addresses to IPs by asking from all clients in the Ethernet layer (broadcasting)
They send it to the default gateway and gateway (router) handles that.
Provides reliability and data retransmission (in the case of data loss)
To ensure connection establishment, we need to have 2 SYNs and 2 ACKs, Since the server sends the ACK and SYN at the same time we can use a single packet for it so that the minimum would be 3.
The time in seconds which clients are expected to cache the query result.
nc -lnvp port
nc host port
The text was updated successfully, but these errors were encountered: