Professional Documents
Culture Documents
Network, Host, and Broadcast Addresses: Address As Shown in Figure (54) - The First IP Address Call Network Address Which
Network, Host, and Broadcast Addresses: Address As Shown in Figure (54) - The First IP Address Call Network Address Which
Most organizations use private IPv4 addresses for their internal hosts. However,
these addresses are not routable in the Internet and must be translated to a public
IPv4 address. Network Address Translation (NAT) is used to translate between
private IPv4 and public IPv4 addresses. This is usually done on the router that
connects the internal network to the ISP's network (public network).
Lecture No 8 Computer Networks Asst.Lec. Tareq Imad Ali
- Class C addresses are used for small networks. The 24 high-order bits in a
class C address are always set the network ID. The remaining 8 bits (last octet)
represent the host ID. This allows for 2,097,152 networks and 254 hosts per
network. Figure bellow illustrates the structure of class C addresses.
Figure (60) show the network and host portion for each class.
Lecture No 8 Computer Networks Asst.Lec. Tareq Imad Ali
For the subnet address scheme to work, every machine on the network must know
which part of the host address will be used as the subnet address and as we know
this is the job of Subnet Mask. Figure (61) show the subnet mask for classful
addressing.
Socket Pairs
The source and destination ports are placed within the segment. The segments are
then encapsulated within an IP packet. The IP packet contains the IP address of the
source and destination. The combination of the source IP address and source port
number, or the destination IP address and destination port number is known as a
socket. The socket is used to identify the server and service being requested by the
client. A client socket might look like this, with 1099 representing the source port
number: 192.168.1.5:1099. And the socket on a web server might be:
192.168.1.7:80. Together, these two sockets combine to form a socket pair:
192.168.1.5:1099, 192.168.1.7:80