Chapter 02: TCP/IP Concepts Review
The binary system uses the number two as its base. Each binary digit, or bit, is represented by a one or zero.
Bits are usually grouped by eight because a byte contains eight bits. Computer engineers chose this numbering
system because logic chips make binary decisions based on true or false, on or off, and so forth. With eight
bits, a computer programmer can represent 256 different colors for a video card, for example. (Two to the
power of eight, or 28, equals 256.) Therefore, black can be represented by 00000000, white by 11111111, and
so on.
32. Why should a security professional fully understand the TCP header components?
As a security professional, you should know the critical components of a TCP header; hackers leverage
knowledge of these TCP header components. You need to understand these components before learning how
they can be abused. Then, and only then, can you check whether your network has vulnerabilities in these
areas. Remember, to protect a network, you need to know the basic methods of hacking into networks.
33. What steps are involved in TCP’s “three-way handshake”?
1. Host A sends a TCP packet with the SYN flag set (that is, a SYN packet) to Host B.
2. After receiving the packet, Host B sends Host A its own SYN packet with an ACK flag (a SYN-ACK
packet) set.
3. In response to the SYN-ACK packet from Host B, Host A sends Host B a TCP packet with the ACK flag
set (an ACK packet).
34. What are the critical components of a TCP header?
The critical components of a TCP header are TCP flags, the initial sequence number (ISN), and source and
destination port numbers. Hackers abuse many of these TCP header components; for example, when port
scanning,many hackers use the method of sending a packet with a SYN-ACK flag set even though a SYN
packet was not sent first.
35. What is the Domain Name System (DNS) used for?
Most networks require a DNS server so that users can connect to Web sites with URLs instead of IP addresses.
When a user enters a URL, such as www.yahoo.com, the DNS server resolves the name to an IP address. The
DNS server might be internal to the company, or each computer might be configured to point to the IP address
of a DNS server that’s serviced by the company’s ISP.
36. Often technical personnel who are not familiar with security techniques think that restricting access to ports
on a router or firewall can protect a network from attack. Why is this solution ?
When a firewall prevents any traffic from entering or exiting a network on any well-known port, such as port
80, you have indeed closed a vulnerable port to access from hackers. However, you have also closed the door
to Internet access for your users, which probably isn’t acceptable to your company. The tricky (and almost
impossible) part for security personnel is attempting to keep out the bad guys while allowing the good guys to
work and use the Internet.
37. UDP is an unreliable data delivery protocol. Why is UDP widely used on the Internet?
UDP is a widely used protocol on the Internet because of its speed. UDP doesn’t need to verify whether the
receiver is listening or ready to accept the packets. The sender doesn’t care-it just sends, even if the receiver
isn’t ready to accept the packet.
38. What is ICMP used for?
Internet Control Message Protocol (ICMP) is used to send messages that relate to network operations. For