Chào các bạn !!!!
Những ai đã và đang học về mạng máy tính hẵn sẽ biết về 2 cuốn sách kinh điển nổi tiếng Routing TCP/IP . Cuốn sách bao hàm những kiến thức từ cơ bản đến nâng cao về mạng máy tính. Tuy nhiên, những bài viết sau đây sẽ giúp bạn có cái nhìn khái quát hơn và dễ dàng ghi nhớ cũng như tiếp cận nhanh hơn với Routing TCP/IP . Hi vọng những Notes này sẽ hỗ trợ một phần nào đó cho bạn trong con đường chinh phục đỉnh tháp cisco.
Chúc các bạn vui !!!
Chapter 1: TCP/IP Review
Internet Protocol (IPv4)
Common IP options:
Address Resolution Protocol (ARP)
ARP header:
Cisco routers cache ARP entries for four hours by default (this can be modified with arp timeout <seconds> at interface configuration).
Proxy ARP
Proxy arp allows a router to issue ARP replies to one subnet on behalf of a host in another subnet, to facilitate inter-subnet communication with a host not configured with a default gateway.
The proxy ARP reply will contain the router's own hardware address for that subnet.
Gratuitous ARP
A gratuitous ARP request is one requesting a reply for the sender's own IP address.
Gratuitous ARP can be used to check for duplicate addresses or announce the existence of a new host.
Reverse ARP (RARP)
Reverse ARP occurs when the sender requests the network address for a given hardware address.
For purposes of initial device addressing, RARP has been superseded by BOOTP and DHCP.
Internet Control Message Protocol (ICMP)
ICMP header:
Common ICMP types:
Transmission Control Protocol (TCP)
TCP header:
TCP flags:
User Datagram Protocol (UDP)
UDP header:
Những ai đã và đang học về mạng máy tính hẵn sẽ biết về 2 cuốn sách kinh điển nổi tiếng Routing TCP/IP . Cuốn sách bao hàm những kiến thức từ cơ bản đến nâng cao về mạng máy tính. Tuy nhiên, những bài viết sau đây sẽ giúp bạn có cái nhìn khái quát hơn và dễ dàng ghi nhớ cũng như tiếp cận nhanh hơn với Routing TCP/IP . Hi vọng những Notes này sẽ hỗ trợ một phần nào đó cho bạn trong con đường chinh phục đỉnh tháp cisco.
Chúc các bạn vui !!!
* Chapter 1: TCP/IP Review
* Chapter 2: IPv6 Overview
* Chapter 3: Static Routing
* Chapter 4: Dynamic Routing Protocols
* Chapter 5: Routing Information Protocol (RIP)
* Chapter 6: RIPv2, RIPng, and Classless Routing
* Chapter 7: Enhanced Interior Gateway Routing Protocol (EIGRP)
* Chapter 2: IPv6 Overview
* Chapter 3: Static Routing
* Chapter 4: Dynamic Routing Protocols
* Chapter 5: Routing Information Protocol (RIP)
* Chapter 6: RIPv2, RIPng, and Classless Routing
* Chapter 7: Enhanced Interior Gateway Routing Protocol (EIGRP)
Chapter 1: TCP/IP Review
Internet Protocol (IPv4)
- Version (4 bits) - IP version (4 or 6)
- Header lentgh (4 bits) - Length of header plus any options
- Type of Service (TOS) (8 bits) - Used for QoS; can also be evaluated as DiffServ Code Point (DSCP)
- Total length (16 bits) - Total packet size
- Identifier (16 bits) - Identifies fragments belonging to a single original packet
- Fragmentations flags (3 bits) - Three flags: unused, Don't Fragment (DF), and More Fragments (MF)
- Fragment offset (13 bits) - Specifies the offset of a fragment from the beginning of the original packet (in units of eight bytes)
- Time To Live (TTL) (8 bits) - Tracks hop count
- Protocol (8 bits) - Identifies the upper-layer protocol
- Header checksum (16 bits) - Used for header error detection
- Source address (32 bits)
- Destination address (32 bits)
- Options (variable length) - Optional attributes generated by the originator
Common IP options:
- Loose source routing - A list of IP addresses (router interfaces) the packet should traverse
- Strict source routing - A routing path which must be followed exactly
- Record route - Routers traversed record the address of their outbound interface on the packet
- Timestamp - Like record route but also includes a timestamp
Address Resolution Protocol (ARP)
ARP header:
- Hardware type (16 bits) - Identifies the type of layer 2 technology (Ethernet, HDLC, etc)
- Protocol type (16 bits) - Identifies the network-layer protocol
- Hardware address length (8 bits) - Length of the data link address in bytes (e.g. MAC = 6)
- Protocol address length (8 bits) - Length of the network address in bytes (e.g. IP = 4)
- Operation (16 bits) - Packet type (request/reply type)
- Sender's hardware address
- Sender's network address
- Target hardware address
- Target network address
Cisco routers cache ARP entries for four hours by default (this can be modified with arp timeout <seconds> at interface configuration).
Proxy ARP
Proxy arp allows a router to issue ARP replies to one subnet on behalf of a host in another subnet, to facilitate inter-subnet communication with a host not configured with a default gateway.
The proxy ARP reply will contain the router's own hardware address for that subnet.
Gratuitous ARP
A gratuitous ARP request is one requesting a reply for the sender's own IP address.
Gratuitous ARP can be used to check for duplicate addresses or announce the existence of a new host.
Reverse ARP (RARP)
Reverse ARP occurs when the sender requests the network address for a given hardware address.
For purposes of initial device addressing, RARP has been superseded by BOOTP and DHCP.
Internet Control Message Protocol (ICMP)
ICMP header:
- Type (8 bits)
- Code (8 bits)
- Checksum (16 bits)
- Other fields... (variable)
Common ICMP types:
- 0 - Echo reply
- 3 - Destination unreachable
- 5 - Redirect
- 6 - Alternate host address
- 8 - Echo
- 9 - Router advertisement
- 10 - Router selection
- 11 - Time exceeded
- 12 - Parameter problem
- 13 - Timestamp
- 14 - Timestamp reply
- 30 - Traceroute
Transmission Control Protocol (TCP)
TCP header:
- Source port (16 bits)
- Destination port (16 bits)
- Sequence number (32 bits) - Identifies the position of a segment within a stream
- Acknowledgment number (32 bits) - Identifies the sequence number the source next expects to receive
- Header length (4 bits)
- Reserved (4 bits)
- Flags (8 bits)
- Window size (16 bits) - Flow control; specifies the amount of data that may be transmitted from the peer between acknowledgments
- Checksum (16 bits) - Error detection for the header and payload
- Urgent pointer (16 bits) - Points to the end of urgent data; used only when the URG flag is set
- Options (variable)
TCP flags:
- CWR - Congestion window reduced
- ECE - ECN-Echo
- URG - Urgent data
- ACK - Acknowledgment
- PSH - Push
- RST - Reset
- SYN - Synchronize
- FIN - Final
User Datagram Protocol (UDP)
UDP header:
- Source port (16 bits)
- Destination port (16 bits)
- Length (16 bits)
- Checksum (16 bits
Comment