כתובות IP
מהלך השיעור מבנה כתובות IP. מנגנון ה-SUBNETTING.
כתובות IP 133.120.75.8 86 131.107.0.0 131.107.3.27 133.120.0.0 129.102.12.7 129.102.0.0 129.102.16.2 90 94 MARIA AVE
כתובות IP כתובת IP הנה כתובת ברמת הרשת המונה 32 סיביות ומורכבת מ – 2 חלקים: 1. כתובת הרשת NetId. 2. כתובת תחנה .HostId Network ID Host ID 32 Bits w. x. y. z. 131.107.3.24
כתובות IP כתובות IP מצוינות כקבוצה של ארבעה מספרים כאשר כל אחד מהם הנו הערך הדצימלי של 8 סיביות, יכול להגיע עד 255, לדוגמא : 195.205.133.234.
כתובות IP המרה מקוד בינארי לקוד עשרוני 1 128 64 32 16 8 4 2 8 Bits 255 Decimal Value
סוגי כתובות IP
כתובות IP את הכתובות ניתן לחלק למספר סוגים.כל כתובת מייצגת רשת מסוימת ולכל רשת כמות מסוימת של תחנות. ברגע שהרשת קטנה נקצה לה סוג מסוים של כתובות ולרשת גדולה סוג אחר.
חלוקה לקבוצות Class A – מיועד לרשתות גדולות מאוד, מתחיל בסיבית "0". 7 סיביות מוקצות ל – NetId ו- 24 סיביות ל- HostId. כתובות הרשת הן מ- 127-000 (דצימלי), ובכל רשת יכולים להימצא עד 16.7 מיליון מחשבים.
Class B – מיועד לרשתות בינוניות, מתחיל בסיבית "10". כתובות הרשת הן מ- 191.255-128.0 (דצימלי). Class C – מיועד לרשתות קטנות, מתחיל בסיבית "110". כתובות הרשת הן מ- 223.255.255-192.0.0 (דצימלי).
Network IDs (First Octet) השוואה בין קבוצות Number of Networks 126 16,384 2,097,152 Number of Hosts per Network 16,777,214 65,534 254 Class A Class B Class C Range of Network IDs (First Octet) 1 – 126 128 – 191 192 – 223
כתובות שמורות כתובת רשת שכולה 0-ים הרשת הנוכחית, הסגמנט הנוכחי. כתובת רשת שכולה 1-יםמפורש כ- "כל הרשתות" כתובת 127.0.0.1 שמורה לצורך בדיקות Loopback. כתובת זו מציינת את התחנה המקומית, ומאפשרת לה לשלוח לעצמה מנת בדיקה. (ללא השפעה על התעבורה ברשת).
כתובות שמורות כתובת תחנה שכולה 0-ים מפורשת כ- "כתובת הרשת" או כל תחנה על הרשת המצוינת (באוקטטות האחרות) כתובת תחנה שכולה 1-יםמפורשת כ- "כל התחנות" ברשת המצוינת , למשל 10.255.255.255 כל התחנות ברשת 10.0.0.0 על פי Class A.
כתובות שמורות כתובת IP שכולה 0-ים (0.0.0.0)משמש את הנתב של Cisco לציין ניתוב ברירת מחדל (יוסבר בהמשך). בנוסף מפורש כ- "כל רשת" כתובת IP שכולה 1-ים (255.255.255.255) כתובת Broadcast כלומר כל התחנות ברשת.
הגדרת כתובות רשת Router 1 2 3 124.x.y.z 192.121.73.z 131.107.y.z
כתובות פרטיות – Private IP Address במידה והרשת אינה מחוברת לרשת ציבורית כלשהיא כגון רשת האינטרנט, ניתן להקצות את הכתובות כאוות נפשנו. במידה והרשת מחוברת לרשת האינטרנט יש צורך לקנות כתובות ציבוריות מחברת IANA. את הכתובות ברשת שלנו נייצג באמצעות כתובות פרטיות.
כתובות פרטיות – Private IP Address טווח הכתובות הפרטיות: Class A - 10.0.0.0 – 10.255.255.255 Class B - 172.16.0.0 – 172.31.255.255 Class C - 192.168.0.0 – 192.168.255.255
הגדרת כתובות תחנה 1 2 3 Router 124.0.0.27 124.0.0.28 124.0.0.29 131.107.0.27 131.107.0.28 131.107.0.29 192.121.73.1 124.0.0.1 192.121.73.2 131.107.0.1 124.x.y.z 192.121.73.z 131.107.0.z 1 2 3
NETWORK MASK
NETWORK MASK על מנת שציודי התקשורת יוכלו לזהות את ה- Class לו שייכת כתובת ה- IP, קיימת "מסיכת רשת", (Network Mask), המוגדרת באופן הבא : Address Class Bits Used for Subnet Mask Dotted Decimal Notation Class A Class B Class C 11111111 00000000 00000000 00000000 11111111 11111111 00000000 00000000 11111111 11111111 11111111 00000000 255.0.0.0 255.255.0.0 255.255.255.0
NETWORK MASK יוצר הפרדה בין הסיביות המוקצות לטובת רשת לאלו המוקצות לתחנה. משמש לציין האם המשתמש הוא מקומי או נמצא ברשת מרוחקת. Class B Example IP Address 16.200 131.107. 0.0 255.255. Subnet Mask Network ID 131.107. y.z Host ID w.x. 16.200
חישוב כתובת יעד ע”י ביצוע פעולת AND ניתן למצוא את כתובת הרשת Other combinations = 0 אם תוצאת פעולת ה- AND של היעד והמקור תואמים. הם נמצאים על אותה רשת 10011111 11100000 00000111 11111111 11111111 00000000 10011111 11100000 00000000 IP Address Subnet Mask Result
SUBNETTING במצב בו דרושות לנו 30 כתובות (30 תחנות). במצב בו דרושות לנו 30 כתובות (30 תחנות). נבחר כמובן MASK מ-CLASS C , אך יש לנו 224 כתובות אשר "מתבזבזות". איך נפתור את הבעיה?
SUBNETTING כדי לפתור בעיה זאת נשתמש במנגנון ה-SUBNETTING, מנגנון זה מאפשר לנו להקצות סיביות אשר שייכות ל-HOST לטובת ה-NETS. לדוגמה הכתובת 27/ 129.12.4.18 תציין כי 27 סיביות מוקצות לטובת ה-NET. 5 הסיביות הנותרות מוקצות לטובת ה-HOST.
SUBNETTING על ידי הנוסחה הבאה ניתן להגיע לחישוב כמות התחנות: n -מציין את מספר הסיביות המוקצות לhost-.
SUBNETTING ישנן שתי כתובות שמוקצות עבור א. כתובת רשת ב. כתובת BROADCAST על פי הנוסחה ניתן יוצא כי יש לנו 30 תחנות (אין בזבוז).
תרגילים נתונה הכתובת – 192.168.10 כתובת ה- Subnet Mask – 255.255.255.224 (27/) כתובת הרשת – 172.16.0.0 Subnet Mask – 255.255.192.0 נתונה הכתובת 10.0.0.0 נדרש לבצע חישוב Subnetting, כאשר כתובת ה- Subnet Mask היא: 255.255.0.0 (/16).
סוף