Topic 1 Requirements and Technologies: Client Requirements For Internet Connection
Topic 1 Requirements and Technologies: Client Requirements For Internet Connection
TCP/IP layers and main protocols – top to bottom (in reference to the TCP/IP Model?)
o Application
o Transport
o Internet
o Network Access
Protocols (at least in the application layer, might ask questions specific to some layers)
Domain Name Service Protocol (DNS) is used to resolve Internet names to IP addresses.
Hypertext Transfer Protocol (HTTP) is used to transfer files that make up the Web pages of the
World Wide Web.
Simple Mail Transfer Protocol (SMTP) is used for the transfer of mail messages and attachments.
Telnet, a terminal emulation protocol, is used to provide remote access to servers and networking
devices.
File Transfer Protocol (FTP) is used for interactive file transfer between systems.
Encapsulation – the wrapping of data in a particular protocol header
Header – The informational data at the beginning of a data block that devices use to process the
datagram
Data – umm packets? lol
TCP fields:
o ?
source port, destination port, sequence number, acknowledglement number, flags etc
TCP flags field: ACK, SYN etc
Three way handshake
o SYN packet from sender
o SYN+ACK from receiver
o ACK from sender
o Sequence numbers to reassemble packets in correct order
TCP three-way handshake, sequencing, flow control
o Above
Port numbering, well-known ports, registererd ports, private/dynamic ports
o Used above
UDP: differences from TCP, examples eg dhcp
TCP is a connection-oriented protocol, a connection can be made from client to server, and
from then on any data can be sent along that connection.
o Reliable – Once you have sent a message you will receive another message saying whether
the message has been delivered properly, otherwise the server will send you a message
back saying failed or it re-request the lost parts.
o Ordered – Data will always be ordered. Users don’t have to worry about message being
received in the wrong order.
o Heavyweight – Has to always resend requests, and put back sequence parts
together...requires a lot more work than UDP
UDP uses simpler message-based connectionless protocol. With UDP you send messages(packets)
across the network in chunks.
o Unreliable - When you send a message, you don't know if it'll get there, it could get lost on
the way.
o Not ordered - If you send two messages out, you don't know what order they'll arrive in.
o Lightweight - No ordering of messages, no tracking connections, etc. NIC and OS has less to
do
Socket = IP address + port number
Network layer: encapsulation, physical addressing, eg ethernet, token ring, isdn
o Encapsulation – wrapping of data in a particular protocol header
o Physical addressing – used on Ethernet, the 48-bit destination Ethernet address in a packet
is compared with the receiving node's Ethernet address.
IP: addressing, routing, fragmentation, upper layer delivery
o Routing – process of finding the destination host
o Fragmentation – involves the fragmentation of IP datagrams in order to meet MTU
requirements of a layer 2 process.
o Upper level delivery - ?
ICMP: purpose, packet format, services, utilities, security issues
o Purpose – reports errors and provides other information relevant to IP packet processing
o Format – bytes
o Services – ???
o Utilities – Ping
o Security issues - ???
ARP: purpose, ethernet/mac address, relationship to network and internet layers, ethernet frame
format, arp packet format, how arp works, arp cache
o Arp maps MAC address to IP addresses
o Purpose is to find hosts hardware addresses when only its network layer address is known.
o Works by broadcast
o all NIC’s listen
o only the matching IP replies with MAC
o arp cache is all the ip’s it has contacted. Hence storing them.
To view the cache run the command arp –a
o
Networking files: eg /etc/hosts, /etc/services, /etc/protocols, /etc/sysconfig/network-scripts/ifcfg-
eth0, /etc/resolv.conf, /etc/nsswitch.conf
Networking commands: eg dmesg, ifconfig, ping, arp, netstat, nslookup, dig, host, traceroute,
tcpdump, dhclient, setup, netconfig
o Dmesg – Displays the system control messages from the kernel ring buffer. This buffer stores
all messages since the last system boot, or the most recent ones if the buffer has been filled.
o Ifconfig – TCP/IP command. Describes IP information of a network adapter i.e. eth0, eth1,
eth2. Shows IP’s subnet masks
o Ping – tests connectivity between computers
o Arp – maps all MAC addresses to IP’s
o Netstat – Show’s network status. Can print, information on active sockets, routing tables,
interfaces, masquerade connections, or multicast memberships.
o Nslookup – Queries DNS
o Dig – replaces nslookup
o Host – equivalent to dig
o Traceroute – Traces the route taken by packets to reach network host. Uses UDP probe
packets with a TTL, then listens for an ICMP “time exceeded” reply from the gateway.
Usually 30 hops but can be changed.
o Tcpdump – Dumps headers and packets of network traffic that match expression
Expression can be;
Direction –src, dst, src or dst
Protocol – ether, fddi, tr, wlan, ip, ip6, arp, rarp, decnet, tcp, and udp
Type – host (hostname), net (ipaddress), port (port number)
o Dhclient – provides a means for configuring one or more network interfaces using the
Dynamic Host Configuration Protocol, BOOTP protocol
o Setup – ???
o Netconfig – A text-based tool for simple configuration of ethernet devices.
Use netstat to list listening ports, connections, port numbers, distinguish well-known (server-end)
ports from dynamic (client-end) ports
o Netstat –a
o Netstat –an
o Netstat –g
o etc
Services file, format
Demonstration of arp, arp cache
o Use ARP -a
Ping, icmp, demonstrate type and code fields for echo request and echo reply
Use netstat to display open ports, TCP connections, protocol statistics, local route table
Use nmap (port scanner) to display open ports
IP Addressing
Subnetting
purposes of subnetting
default subnet masks for class A, B and C addresses
subnet mask in traditional and CIDR (classless internet domain routing) notation
calculate the number of bits required for a specific number of subnets required
create a decimal subnet mask (from the number of bits required)
calculation of subnet numbers, number of addresses per subnet, range of numbers per subnet,
network address of subnet, broadcast address for subnet
calculating subnets based on allocated address range and required number of subnets and/or
required number of hosts per subnet
practise subnetting exercises in PDF IP addressing book
create network diagrams where subnetting has been applied exercise (calculate network/cable
address, broadcast address, host range for any subnet),
sample subnetting test question, in which you refer to this subnets diagram
Topic 3 DHCP
Topic 4 Routing
Topic 5 Gateways