Networking with the TCP/IP Protocol Suite
Homeworks
Lap Leung
Homework #1
Section 1
Alphabet Soup What do the following acronyms stand for?
What is the meaning or significance of each one? (brief description)
Note: Must answer both questions for full credit (2 points each).
1.1 ISO/OSI
1.2 NIC
(Could
be more than one correct answer)
- Network Interface Card (NIC) connects a component to network. It ranslate
signals between the network media and the component.
1.3 CSMA/CD
- Carrier-Sense Multiple Access with Collision Detection (CSMA/CD)
1.4 ARP - Address
Resolution Protocol
- It is used to translate network protocol addresses to MAC addresses.
1.5 RARP
- Reverse Address Resolution Protocol
- It is used to translate network MAC addresses to protocol addresses.
1.6 MAC - Media Access Control
1.7 FDDI - Fiber-optic Data Distribution Interface
- It is a network interface using fiber-optic devices.
1.8 DNS
- Domain Name Service
- It resolves IP names to IP addresses.
1.9 IEEE
- Institute of Electrical and Electronics Engineers
- An organization of Electrical and Electronics Engineers.
1.10 BSD
- Berkeley Software Distribution
- The birth place of BSD Unix. It established some standards for TCP/IP.
1.11 ISP - Internet Service Provider
- It provides Internet services.
1.12 TCP/IP
- Transmission Control Protocol / Internet Protocol
- It is the protocol for Internet.
1.13 MTU -
Maximum Transfer Unit
- The maximum size of data that can be transfered.
1.14 ARPA - Advance Research Project
Agency of DOD
- The sponsor for Internet development. The root of DNS.
1.15 ATM
(and not the one where you get $!) - Asynchronous Transfer Mode
- Pack bits into uniform size of cells, then transmit.
1.16 IETF
- the Internet Engineering Task Force
- A group people who design and engineering the TCP/IP and Internet.
1.17 RFC - Request For Comment
- Documentation for computing and networking.
1.18 FTP - File
Transfer Protocol
- It uses TCP to transfer files.
1.19 Mbps - Mega Bits per Second
- It is used to measure the speed of network traffic.
1.20 AUI - Attachment Unit Interface
Bonus
CRC
- Cyclic Redundancy Code
BTW - By
The Way
- Infomation relates to the topic.
FYI
- For Your Information
- Additional information of the topic.
IMHO
- In My Humble Opinion
WRT -
Section 2
2.1 What are the layers of the OSI Reference Network Model?
2.2 What purpose does each layer serve?
- Layer 1 - Physical layer defines the cable or physical medium.
- Layer 2 - Data Link layer defines the format of data on the network.
- Layer 3 - Network layer defines network addresses.
- Layer 4 - Transport layer subdivides user-buffer into network-buffer
sized datagrams and enforces desired transmission control.
- Layer 5 - Session protocol defines the format of the data sent over
the connections.
- Layer 6 - Presentation layer converts local representation of data
to its canonical form and vice versa.
- Layer 7 - Application layer provides network services to the end-users.
2.3 Where do the TCP/IP layers fit with the model?
3.1 Briefly describe Ethernet and some of its features or characteristics
(topologies, cabling, access,...)
- The Ethernet originated as a laboratory project at Xerox Corporation
in 1974. It was developed as an inexpensive way of sending information
quickly between office machines connected together in a single room or
building, but it rapidly became a standard computer interconnection method.
The data rate is 10 megabits per second. The original specification required
coaxial cable as the communications medium, but costs have been reduced
through the employment of simple paired wires.
3.2 What is a router? What is a bridge? What is a switch? What is a
gateway? (Describe how they are all similar or different)
- A router is a internetworking device connecting networks.
- A bridge is a LAN device connecting segments of a LAN.
- A switch is a LAN device tranfering data from source to destination
directly.
- A Gateway is the interface of the networks.
4.1 What is a connection-oriented service? What is a connectionless
service? How do they differ?
- A connection-oriented service establishes connection between the source
and destination first, then trasmit data.
- A connectionless service trasmits data from source to destination regardless
the connectivity.
5.1 What are some differences between the IP addressing scheme and
the US telephone numbering scheme?
- IP has 3 classes. They have different maximum number of networks and
hosts. Numbe 0 and 255 cannot be used.
- Telephone has only 1 class, Area Code. Under each area code, all number
can be used and the maximum is 1,000,000.
6.1 Why is it necessary for an ARP table entry to have an expiration
time?
- IP address can be changed for the same IP name and you want to keep
the infomation update.
7.1 Do you expect a high speed LAN to have a larger or smaller MTU
than a wide area network? Why?
- I expect a high speed LAN to have a larger MTU than a wide area network.
Because LAN has less packet loss than WAN. The larger MTU allows the larger
packet. The larger packet takes more time to transmit and the packet loss
can cost more time than smaller packet.
Homework #3 Due: May 13, 1997
Point value for each question is indicated in parentheses.
SECTION 1
Alphabet soup (2 pts each, 20 pts max) What do the following acronyms
stand for? What is each one's meaning?
1.1 SNMP
- Simple Network Management Protocol
- SNMP consists of a simply composed set of network communication specifications
that cover all the basics of network management in a method that poses
little stress on an existing network.
1.2 IPX -
Internet Packet Exchange
- IPX is a proprietary standard developed by Novell derived from Xerox's
Internet Datagram Protocol [6] (IDP).
1.3 RIP
- Routing Information Protocol
- RIP is an implementation of a distance-vector, or Bellman-Ford routing
protocol for local networks.
1.4 BGP - Border Gateway Protocol
- It defines a Proposed Standard for an inter-autonomous system routing
protocol for the Internet.
1.5 PAR -
1.6 FQDN -
- It is used in e-mail service.
1.7 BIND -
Berekeley Interent Name Daemon
1.8 WAIS
- Wide Area Information Servers
- WAIS is an electronic publishing software set which allows people to
search out and retrieve different kinds of information from WAIS servers.
1.9 XNS
- Xerox Network System
- The XNS architecture defines five different levels or layers (0 through
4), which correspond closely to the OSI model.
1.10 PPP
- Point-to-Point Protocol & SLIP
- Serial Line Internet Protocol
- SLIP and PPP define methods of sending Internet Protocol (IP) packets
over standard EIA/TIA-232 asynchronous serial lines with minimum line speeds
of 1200 baud.
BONUS
KB - Kilo-Byte
MB - Mega-Byte
GB - Giga-Byte
SECTION 2
Routing (22)
2.1 (3) What is "routing" and what purpose does it serve?
- "Routing" is to search a path to connect source and destination.
2.2 (4+2) What are four functions which ICMP provides as part of IP?
Bonus: What are 2 more?
- getprotobyname(), sendto(), recvfrom(), connect()
- read() or recv(), and write() or send()
2.3 (2+1) Describe how traceroute works. What is the difference between
ping and traceroute?
- This program attempts to trace the route an IP packet would follow
to some internet host by launching UDP probe packets with a small ttl (time
to live) then listening for an ICMP "time exceeded" reply from
a gate- way. We start our probes with a ttl of one and increase by one
until we get an ICMP "port unreachable" (which means we got to
"host") or hit a max (which defaults to 30 hops and can be changed
with the -m flag). Three probes (which can be changed with the -q flag)
are sent at each ttl setting and a line is printed showing the ttl, address
of the gate- way and round trip time of each probe. If the probe answers
come from different gateways, the address of each responding system will
be printed. If there is no response within a 3 second timeout interval
(which can be changed with the -w flag), a "*" is printed for
that probe.
- Traceroute show the path, but Ping does not .
2.4 (6+2+2) Explain how addressing works with the IP protocol. What
is the purpose of subnetting? What is the
address-depletion problem?
- IP address has 16 bytes, which contains the infomation of the IP subnet
and host. Each TCP/IP network has a subnet mask, which identifies the subnet
of the IP address and the host of that subnet. When a IP packet arrived
at the gateway the destination IP address would be masked and compared
with the subnet number. It they are the same, it would pass through the
gateway. The hosts in the subnet would compare the host number and accept
the matched packet.
- The purpose of subnetting is to create more networks.
- The address-depletion problem is lack of IP addresses.
SECTION 3 Names (16 total)
3.1 (5 max) What each of the following top level domains indicate:
- .no - Norway
- .se - Sewdian
- .au - Austrilia
- .us - USA
- .nz - New Zealan
- .ca - Canada
- .nl - Netherland
- .uk - United Kindom
- .it - Italy
- .sg - Singapore
Bonus:
- .th - Thailand
- .dk - Denmark
3.2 (5) What is the primary purpose of the DNS? What is the alternative
to participating in the DNS? What are the
advantages/disadvanteges of each method?
- The primary purpose of the DNS is to resolve IP addresses dynamically.
- Pro: It is dynamic. The same IP name can be moved to anywhere.
- Con: It take a lot more time to find the host IP.
- The alternative to participating in the DNS is to create a host file
on the local host, map IP name to IP address.
- Pro: Simple and fast.
- Con: It is static; therefore, it is hard to update.
3.3 (2+3) What are the 2 components of BIND, and what does each one
do? What are the 3 types of name servers?
- Bind - bind a name to a socket
- Named - Internet name domain server daemon
- DNS - Domain Name Server
- WINS - Windows Internet Name Server
- Host Table - /etc/hosts
3.4 (1) Under Unix, what is typically the name of the DNS nameserver
daemon program?
Bonus: (1) What is president Clinton's Internet email address?
SECTION 4 General (6 total)
4.1 (2) Why is the Internet based on tcp/ip?
- It is not proprietary. It is developed and supported by the Internet
community.
- It is a open protocol.
4.2 (1) Lost TCP acknowledgements do not necessarily force retransmission.
Why?
- Because IP packets do not have to travel at the same path and arrive
in the sequence.
4.3 (3) Which of the following IP addresses are invalid? Why?
192.0.0.13 193.0.0.13 223.255.255.254 222.255.255.255
192.0.0.13, 222.255.255.255 are invalid.
192.0.0.13 is class B address. You cannot use 192.0.0 as network number.
222.255.255.255 is broadcase address for 222.255.255. network.