Tutorial 3

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

ENG2003 Tutorial 3 Questions

Q1. Consider the following network.

(a) Construct the routing table of router A with the following format.

Network Destination Gateway Interface


… … …

(b) Suppose the connection between router A and router B is broken. Update the
routing table for router A such that data transmitting from network X to network
Y can be achieved by passing through router C. For simplicity, you may omit
the data transmitting from network Y to network X.
ENG2003 Tutorial 3 Questions
Q2. Consider the following setup.

Explain how Network Address Translation (NAT) and port forwarding work by considering a
situation that a client behind NAT router B is trying to access a web server behind NAT
router A. You may assume the server is listening on port 80. Port forwarding rules for the web
server has been pre-defined on NAT Router A.

State clearly the source and destination IP addresses of the packets before and after each
NAT router. You should consider BOTH in-bound and out-bound connections.
THE HONG KONG POLYTECHNIC UNIVERSITY
Department of Electronic and Information Engineering

Tutorial 3: Computer Networking

Lecturer: Dr. LIU, Liang


Room: DE605
Tel: 2766 3542
Email: liang-eie.liu@polyu.edu.hk
Acknowledgment:
Thanks to all the Lecturers who had taught this subject before and
contributed to the development of these course materials from various
sources.

1 ENG2003 Information Technology


THE HONG KONG POLYTECHNIC UNIVERSITY
Department of Electronic and Information Engineering

Network Destination Gateway Interface


158.130.0.0 Directly 1
158.134.0.0 130.1.0.5 3
158.132.0.0 130.1.0.1 2

2 ENG2003 Information Technology


THE HONG KONG POLYTECHNIC UNIVERSITY
Department of Electronic and Information Engineering

Network Destination Gateway Interface


158.130.0.0 Directly 1
158.134.0.0 130.1.0.5 3
158.132.0.0 130.1.0.1
130.1.0.5 23

3 ENG2003 Information Technology


THE HONG KONG POLYTECHNIC UNIVERSITY
Department of Electronic and Information Engineering

Des. IP: 158.132.10.10 Des. IP: 158.132.10.10


Sour. IP: 130.123.50.50 Sour. IP: 130.123.50.50
Port #: 80 Port #: 80

Des. IP: 192.168.100.2 Des. IP: 158.132.10.10


Sour. IP: 130.123.50.50 Sour. IP: 192.168.200.5
Port #: 80 Port #: 80

4 ENG2003 Information Technology


THE HONG KONG POLYTECHNIC UNIVERSITY
Department of Electronic and Information Engineering

Des. IP: 130.123.50.50 Des. IP: 130.123.50.50


Sour. IP: 158.132.10.10 Sour. IP: 158.132.10.10

Des. IP: 130.123.50.50 Des. IP: 192.168.200.5


Sour. IP: 192.168.100.2 Sour. IP: 158.132.10.10

5 ENG2003 Information Technology

You might also like