Tải bản đầy đủ (.pdf) (108 trang)

Chuong 5 mang ip TRUYỀN SỐ LIỆU VÀ MẠNG

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (3.05 MB, 108 trang )

Mạng Viễn thông




Giới thiệu cơ bản về mạng TSL
Dự án 802
Mạng IP



Mơ hình phân lớp
Định tuyến


Địa Chỉ IP

8/14/2019

46


Địa Chỉ IP

8/14/2019

47


Địa Chỉ IP


8/14/2019

48


Địa Chỉ IP

8/14/2019

49


Địa Chỉ IP



Network address + Host address: Hierarchical Addressing
Schemes.

8/14/2019

50


Địa Chỉ IP


Cấu trúc khung của Data gram ở lớp Network

8/14/2019


51


Địa Chỉ IP

8/14/2019

IP
heade
r
forma
t

52


Địa Chỉ IP

• 4 bits.
• Indicates the version of
IP currently used.
– IPv4 : 0100
– IPv6 : 0110
8/14/2019

53


Địa Chỉ IP


• 4 bits.
• IP header length : Indicates the
datagram header length in 32 bit
words (4 bytes), and thus points
to the beginning of the data.
8/14/2019

54


Địa Chỉ IP

• 8 bits.
• Specifies the level of importance
that has been assigned by a
particular upper-layer protocol.

8/14/2019

• Precedence.
• Reliability.
• Speed.

55


Địa Chỉ IP

• 16 bits.

• Specifies the length of the
entire IP packet, including
data and header, in bytes.
8/14/2019

56


Địa Chỉ IP

8/14/2019

• 16 bits.
• Identification contains an integer
that identifies the current datagram.
• Assigned by the sender to aid in
assembling the fragments of a
datagram.

57


Địa Chỉ IP

• 3 bits.
• The second bit specifying whether the
packet can be fragmented .
• The last bit specifying whether the packet
is the last fragment in a series of
fragmented packets.


8/14/2019

58


Địa Chỉ IP

• 13 bits.
• The field that is used to help piece together
datagram fragments.
• The fragment offset is measured in units of
8 octets (64 bits).
• The first fragment has offset zero.

8/14/2019

59


Địa Chỉ IP

• 8 bits.
• Time-to-Live maintains a counter that
gradually decreases to zero, at which point
the datagram is discarded, keeping the
packets from looping endlessly.

8/14/2019


60


Địa Chỉ IP

• 8 bits.
• Indicates which upper-layer protocol receives
incoming packets after IP processing has
been completed
• 06 : TCP
8/14/2019
• 17 : UDP

61


Địa Chỉ IP

• 16 bits.
• A checksum on the header only,
helps ensure IP header integrity.
8/14/2019

62


Địa Chỉ IP
• 32 bits each.
• Source IP Address
• Destination IP Address


8/14/2019

63


Địa Chỉ IP

• Variable length.
• Allows IP to support various options,
such as security, route, error report ...

8/14/2019

64


Địa Chỉ IP

• The header padding is used to ensure
that the internet header ends on a 32 bit
boundary.

8/14/2019

65


8/14/2019


66


Địa Chỉ IP
PHÂN LỚP ĐỊA CHỈ IP

8/14/2019

67


Địa Chỉ IP






Địa chỉ IP là địa chỉ tại lớp mạng, nghi thức IP sẽ dùng địa
chỉ này để định tuyến các gói dữ liệu đến mạng đích
Địa chỉ IP là địa chỉ mềm, có thể thay đổi khi cấu hình
mạng, cịn gọi là địa chỉ luận lý (logical address)
Chiều dài địa chỉ IP là 32 bit, thường phân thành 4 byte
Giữa các byte phân cách bằng dấu chấm
Lưu ý: Địa chỉ vật lý (physical address), là địa chỉ đựơc
cứng được chứa trong card mạng (NIC-Network Interface
Card) và là địa chỉ của lớp liên kết dữ liệu, chiều dài 6
bytes.

8/14/2019


68


Địa Chỉ IP

8/14/2019

69


×