IP addresses Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what does IPV4 use

A

octets(group of 8 bits) and its a 32 bit number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

summarise unusable/reserved addresses

A
  • some IP addresses cannot be used for an individual network or host
    eg:
  • 127.x.x.x, non routable addresses, used for diagnostics within local network
  • x.x.x.0 is the network identifier
  • x.x.x.255 is reserved as the broadcast address on that subnet, where data is sent simultaneously to all subnetwork hosts
  • x.x.x.1 is the default router address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

parts of an IP address

A

networkID - left hand bits used to define the network where nodes are communicating
HostID - right hand bits, used to identify the nodes on the network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

summarise classful addressing

A

when the network ID is given at the end of the IP address, eg 210.54.101.0/24 has a network ID of 24

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

summarise classful IP addressing

A

IP addresses being categorised into classes to identify network ID and host IDs of various ranges

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

summarise subnet masking

A
  • a subnet mask is used with an IP add to identify the 2 unique parts of the address
  • subnet mask has all network ID bits set to 1, and all host IDs set to 0
  • bitwise AND is used with the IP and the network is identified
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

summarise subnetting

A
  • an organisation can create subnetwork segments within their IP network in order to ease management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

advantages of subnetting

A
  • improves efficiency by routing data through one segment only
  • reduces the size of the broadcast domain, which can improve security
  • can reduce data collisions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

public vs private IPs

A
  • public IPs must be globally unique, and be able to be addressed directly by any computer
  • priv IPs do not need to be globally unique and dont require internet registry

following are considered private:
- 10.0.0.1 - 10.255.255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

advantages of private IPs

A

reduces the need for every computer to have its own unique public address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

number of possible hosts

A

2^32 - 2
because they cane end in 255 or 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

summarise network address translation (NAT)

A
  • used to convert IP addresses as they pass between a public address space (using a public IP ) and an LAN with a priv address space
  • they are required to translate private IPs as they are not routable , therefore cant be used for routing packets on the Internet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

advantages of NAT

A

allows a single public IP address to be shared by any number of hosts with a private IP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

NAT process

A
  • the translation device records the source and destination socket address for each request
  • it then communicates on the hosts with the destination IP address
  • when a response returns, it is passed back to the host that made the original request
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is port forwarding

A
  • a networking technique used to redirect communication requests from one address and port number to another
  • while the packets are traversing a network
  • typically through a router or firewall
  • Allows external devices to access services on a private network.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is the purpose of a DHCP system

A

to automate the configuration of hosts connecting to a TCIP/IP network

17
Q

advantages of a dhcp system

A
  • reduces the need for expert knowledge when configuring a host
  • reduced the time required to configure host
18
Q

how does a DHCP system work

A
  • The host broadcasts a DHCP Discover message to find available DHCP servers.
  • DHCP server responds with a DHCP Offer containing available IP addresses and network settings.
  • host sends a DHCP Request message to the chosen server, indicating it accepts the offered IP address.
  • The server responds with a DHCP Acknowledgment (ACK), confirming the IP address and providing additional configuration details.
  • The host configures its network interface using the IP address and configuration details provided by the server.
19
Q

explain how an external router would be configured so that a web server can be accessed by computers outside of the network

A
  • traffic arriving on the HTTP port must be forwarded by
  • the external router to the IP address of the web server
20
Q

Explain how:
* Computer A will use a subnet mask to determine whether or not it can send the
packet directly to Computer B across the LAN or if the packet must be sent via the
Internet

A
  • AND operation of subnet mask with Computer A’s IP address
  • AND operation of subnet mask with Computer B’s IP address
  • result (of each AND operation) is the network/subnet ID
  • network/subnet IDs compared
  • as they are different, then packet must be sent via gateway, Computer B is not on the same subnet
  • if they were the same, then Computer B
    is on the same subnet.
21
Q

explain how a packet will be routed across the Internet

A
  • hierarchical organisation of routers
  • path to take selected by each router
  • (possible) repackaging of packet to use different protocol
  • use of router tables to determine next hop
  • router decrementing “time to live” of packet
  • route determined using IP addresses
22
Q

how can the checksum be used to determine if the received packet has been changed
during the transmission.

A

checksum produced when packet transmitted
* (hash) value calculated from packet contents
* this value appended to packet
* computer B recalculates checksum
* received and calculate checksum compared
* if these match packet contents/data are accurate . if these differ the data has been
changed // if these differ there is an error in the data.

23
Q

explain how two or more computers connected to the Internet can have the same IP address and still communicate with each other

A
  • the computers have private IP addresses
  • so NAT will be performed
  • so that the computers can communicate on the internet