Академический Документы
Профессиональный Документы
Культура Документы
Assignment #4
Networking, Software Engg., Databases
Due date: 06-08-2007
1. Short answer type:
1.01 Let us consider an IP packet transmitted on an Ethernet. Is it possible
that the destination MAC address in the packet is different from the
MAC address of the destination?
Ans- Since mapping is done by router, thus some times it may happen
that router is unaware of the changes and packet with different IP address
can be delivered to another MAC address machine.
Ans- when ever a new connection is established and new packet arrives,
entry is made in the routing table in router. When a router receives any IP
packet it checks in its routing table which is dynamically updated by the all
the host connected to it so if entry exists in the table that means that
Ethernet
Ans- Both wired and wireless routers possess two IP addresses, one for
internal home computer networking and one for the external Internet
connection.
Ans- No, a bridge is a Data Link layer device, thus it doesn’t need an IP
address, it uses MAC address to forward the packet to the network.
Ans- True
Because in half-duplex channel there is single channel for reception and
transmission so to transmit bridge has to wait till medium is idle to avoid
collision.
2.3 In a bridged LAN with more than one bridge and with redundant
paths, packet sequence is not guaranteed.
Ans:- True
To avoid this problem spanning tree algo is used
2.4 When an IP router between two Ethernet segments forwards an IP
packet, it does not modify the destination IP address.
Ans- True
Because when IP router routs the packet it adds an additional header i.e.
encapsulation hence it sets destination address as the IP address of
neighboring IP router but not of the original packet’s destination IP
address.
2.5 The route indicated by traceroute may not be the real one because
parallel paths may exist in the Internet.
Ans:- True
It may possible when proxy servers are enabled
2.6 When a router sends a packet towards the final destination over a full
duplex Ethernet interface, it should put as destination MAC address
the MAC address of the next hop.
Ans- False
Because IP router does not deal with MAC address.
3. Do as indicated:
3.01 Consider two hosts, A and B that are connected by a transmission
link of 1.4 Mbps. A packet length is (conveniently) 1.4 Kb (Kilobits).
The length of the link is 100Km.
What is the propagation delay from A to B - the amount of time from
when the first bit of the packet is transmitted at A, until it is received
at B?
What is the transmission time of the packet at A (the time from when
the first bit of the packet is sent into the wire, and the time at which
thelast bit is sent into the wire)
Suppose now that that length of the link is doubled. What is the
propagation delay from A to B now?
Returning to the case that the distance between A and B is 100Km,
how long must a packet be so that the receiver in receiving the first
bit at the same time that the sender is sending the last bit?
Ans:-
Propagation Delay
Delay =Link length/ cmedium
= 100km/200000km/ s
= 1/2000s
=0.5ms
Transmission time (serialization delay)
Delay = Packet length/Capacity
= 1.4 Kb/1.4 Mb/ s
= 1.4 Kb/1400 Kb/ s
= 1/1000s
= 1 ms
Design an ERD for this database. Your ERD should specify keys,
mapping cardinalities, participation constraints and existential
dependencies (if necessary). In cases where the above description of
the database is ambiguous, state clearly the assumptions justifying
your modelling choices.
4.02 The database of a travel agency includes the following relations
(primary keys are underlined):
Flight (FlightCode, AirlineName, FromAirport, DestAirport, Date,
DepartureTime, NoOfAvailSeats)
Prices (FlightCode, EconomyFare, BusinessFare)
Passenger (PassengerCode, Name, Address, Telephone)
Bookings (BookingRefNo, PassengerCode, FlightCode, Deposit,
TotalFare)
(iv) Find the names of the passengers that have booked tickets on
British Airways flights from London to Paris from the 1st of April
1999 until the 30th of June 1999.
select Name from Passenger, Bookings, Flight
where (AirlineName = 'British Airways') and (FromAirport =
'London') and (DestAirport = 'Paris') and (Date £ '30-jun-99') and
(Date ³ '1-apr-99') and (Flight.FlightCode = Bookings.FlightCode)
and (Passenger.PassengerCode = Bookings.PassengerCode)