Connectionless Service
Suppose a process P1 has a long message for P2
It hands the message to the transport layer, which adds a header and passes it to
the network layer.
The network layer breaks it into 4 packets, appends headers and sends each to a
router (A), using some point-to-point protocol.
The ISP takes over.
Each router has a table, consisting of a destination and the outgoing line.
Routing algorithms make the routing decisions.
IP is the dominant connectionless service.
Connection-Oriented Virtual Circuits
Packet is forwarded along a virtual circuit using tag inside it
Idea- avoid having to choose route for each packet
Establish a route, or virtual circuit, from source to destination and store it in routing
table.
That route is used for all traffic flowing over the connection (like the telephone
system).
When the connection is released, that virtual circuit is also terminated.
Connection-Oriented Service
Idea- avoid having to choose route for each packet
Establish a route, or virtual circuit, from source to destination and store it in routing
table.
That route is used for all traffic flowing over the connection (like the telephone
system).
When the connection is released, that virtual circuit is also terminated.
Implementation of Connection-Oriented
Suppose H1 establishes a connection to H2 (first entry in the routing table).
In the previous diagram, it is given the connection identifier 1.
What happens if H3 want to establish a connection to H3 and also chooses the
connection identifier 1?
There is a conflict
Router A assigns a different connection identifier to the second connection. Routers
have the ability to replace a connection identifier for an outgoing packet (called label
switching). An example of this service is MPLS (MultiProtocol Label Switching).