原创 tcp-ip Addresses

Every interface on an internet must have a unique Internet address (also called an IP address). These addresses are 32-

原创 tcp-ip Encapsulation

Each layer adds information to the data by prepending headers (and sometimes adding trailer information) to the data th

原创 網絡模塊初始化-net( 網絡名字空間 )

[ include/net/net_namespace.h ] We want to make it look to user space like the kernel implements multiple network stac

原创 tcp-ip Introduction

Networking protocols are normally developed in layers, with each layer responsible for a different facet of the communi

原创 tcp-ip IGMP: Internet Group Management Protocol

The Internet Group Management Protocol (IGMP) is used by hosts and routers that support multicasting. It lets all the s

原创 tcp-ip Port Numbers

TCP and UDP identify applications using 16-bit port numbers. Servers are normally known by their well-known port number

原创 tcp-ip UDP: User Datagram Protocol

The port numbers identify the sending process and the receiving process. The UDP length field is the length of the UDP

原创 tcp-ip Ping Program

Most TCP/IP implementations support the Ping server directly in the kernel( the server is not a user process. ) As wit

原创 tcp-ip IP( Internet Protocol )

IP provides an unreliable, connectionless datagram delivery service. By unreliable we mean there are no guarantees that

原创 網絡模塊初始化-packet_type

當設備接收到一個包,會從類型字段得到協議類型,如:IP,802.3,ARP,IPv6等。然後根據類型,調用不同的處理函數,這類似面向對象的操作,通過下面的方式實現: 定義一個結構,用來將類型和函數對應起來 [ include/linux/

原创 tcp-ip ICMP: Internet Control Message Protocol

ICMP is often considered part of the IP layer. It communicates error messages and other conditions that require attenti

原创 tcp-ip Link Layer

The purpose of the link layer in the TCP/IP protocol suite is to send and receive IP datagrams for the IP module, ARP r

原创 android studio 快捷鍵

Ctrl+E,可以顯示最近編輯的文件列表Shift+Click可以關閉文件Ctrl+[或]可以跳到大括號的開頭結尾Ctrl+Shift+Backspace可以跳轉到上次編輯的地方Ctrl+F12,可以顯示當前文件的結構Ctrl+F7可

原创 tcp-ip MTU

There is a limit on the size of the frame for both Ethernet encapsulation and 802.3 encapsulation. This limits the numb

原创 tcp-ip DNS

The Domain Name System, or DNS, is a distributed database that is used by TCP/IP applications to map between hostnames