一篇经典的TCP/IP基础知识英文文章

一篇经典的TCP/IP基础知识英文文章
INTRODUCTION
When you configure the TCP/IP protocol on a Microsoft Windows computer, an IP address, subnet mask, and usually a default gateway are required in the TCP/IP configuration settings.

To configure TCP/IP correctly, it is necessary to understand how TCP/IP networks are addressed and divided into networks and subnetworks. This article is intended as a general introduction to the concepts of IP networks and subnetting. A glossary is included at the end of article.
MORE INFORMATION
The success of TCP/IP as the network protocol of the Internet is largely because of its ability to connect together networks of different sizes and systems of different types. These networks are arbitrarily defined into three main classes (along with a few others) that have predefined sizes, each of which can be divided into smaller subnetworks by system administrators. A subnet mask is used to divide an IP address into two parts. One part identifies the host (computer), the other part identifies the network to which it belongs. To better understand how IP addresses and subnet masks work, look at an IP (Internet Protocol) address and see how it is organized.
IP addresses: Networks and hosts
An IP address is a 32-bit number that uniquely identifies a host (computer or other device, such as a printer or router) on a TCP/IP network.

IP addresses are normally expressed in dotted-decimal format, with four numbers separated by periods, such as 192.168.123.132. To understand how subnet masks are used to distinguish between hosts, networks, and subnetworks, examine an IP address in binary notation.

For example, the dotted-decimal IP address 192.168.123.132 is (in binary notation) the 32 bit number 110000000101000111101110000100. This number may be hard to make sense of, so divide it into four parts of eight binary digits.

These eight bit sections are known as octets. The example IP address, then, becomes 11000000.10101000.01111011.10000100. This number only makes a little more sense, so for most uses, convert the binary address into dotted-decimal format (192.168.123.132). The decimal numbers separated by periods are the octets converted from binary to decimal notation.

For a TCP/IP wide area network (WAN) to work efficiently as a collection of networks, the routers that pass packets of data between networks do not know the exact location of a host for which a packet of information is destined. Routers only know what network the host is a member of and use information stored in their route table to determine how to get the packet to the destination host's network. After the packet is delivered to the destination's network, the packet is delivered to the appropriate host.

For this process to work, an IP address has two parts. The first part of an IP address is used as a network address, the last part as a host address. If you take the example 192.168.123.132 and divide it into these two parts you get the following:
   192.168.123.    Network
              .132 Host
    
-or-
   192.168.123.0 - network address.
   0.0.0.132     - host address.
    
Subnet mask
The second item, which is required for TCP/IP to work, is the subnet mask. The subnet mask is used by the TCP/IP protocol to determine whether a host is on the local subnet or on a remote network.

In TCP/IP, the parts of the IP address that are used as the network and host addresses are not fixed, so the network and host addresses above cannot be determined unless you have more information. This information is supplied in another 32-bit number called a subnet mask. In this example, the subnet mask is 255.255.255.0. It is not obvious what this number means unless you know that 255 in binary notation equals 11111111; so, the subnet mask is:
   11111111.11111111.11111111.0000000
    
Lining up the IP address and the subnet mask together, the network and host portions of the address can be separated:
   11000000.10101000.01111011.10000100 -- IP address (192.168.123.132)
   11111111.11111111.11111111.00000000 -- Subnet mask (255.255.255.0)
    
The first 24 bits (the number of ones in the subnet mask) are identified as the network address, with the last 8 bits (the number of remaining zeros in the subnet mask) identified as the host address. This gives you the following:
   11000000.10101000.01111011.00000000 -- Network address (192.168.123.0)
   00000000.00000000.00000000.10000100 -- Host address (000.000.000.132)
    
So now you know, for this example using a 255.255.255.0 subnet mask, that the network ID is 192.168.123.0, and the host address is 0.0.0.132. When a packet arrives on the 192.168.123.0 subnet (from the local subnet or a remote network), and it has a destination address of 192.168.123.132, your computer will receive it from the network and process it.

Almost all decimal subnet masks convert to binary numbers that are all ones on the left and all zeros on the right. Some other common subnet masks are:
   Decimal                 Binary
   255.255.255.192         1111111.11111111.1111111.11000000
   255.255.255.224         1111111.11111111.1111111.11100000
    
Internet RFC 1878 (available from http://www.

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这是一篇关于网络运维实习周记的范例: 周一: 今天是我网络运维实习的第一天。我先参观了整个公司的网络基础设施,了解了公司的网络拓扑结构以及各个部门的网络使用情况。随后,我和我的导师一起进行了一些基础的网络配置和故障排查操作,包括检查网络连通性、重启路由器等。在实际操作中,我还学到了一些命令行操作技巧,比如使用ping命令来测试网络连通性。 周二: 今天我学习了如何使用Wireshark工具进行网络数据包捕获和分析。我从公司内部的网络流量中捕获了一些数据包,并通过Wireshark进行了分析,了解了TCP/IP协议的工作原理和数据包的格式。我还学习了如何使用过滤器来过滤和搜索特定的数据包。 周三: 今天我开始独立完成一些任务。我被分配了一个网络设备配置的任务,要求我为一些新设备配置IP地址和路由信息。这是我第一次在实际项目中独立进行配置,虽然有一些小问题出现,但最终我成功地完成了任务。我感到很有成就感。 周四: 今天我的任务是排查一个网络故障。一个部门的员工报告说他们无法连接到内部服务器。我使用ping命令测试了网络连通性,发现问题可能出现在路由器上。我登录到路由器进行了一些检查,并发现其中一个接口的状态是down,我重新启动了该接口并解决了故障。 周五: 今天是我实习的最后一天。我和我的导师一起进行了一些总结和回顾。我分享了我在这一周中学到的知识和经验,并提出了一些自己的想法和建议。我的导师给予了我很多鼓励和支持,并建议我在未来继续深入学习网络运维技术。我感到非常感激和充实,这一周的实习让我对网络运维这个职业有了更深入的了解。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值