In learning materials is often a picture of one TCP segment which is inside one IP datagram which is in one link-layer frame.
Is this always the case?
Is there guarantee that TCP segment is atomic and is contained within one IP datagram?
Does the same apply for datagram and frame?
What I mean is this:
1.
TCP |Segment 1| Segment 2 | Segment 3 |
IP |Datagram 1 | Datagram 2 | Datagram 3 |
So basically IP treating the input from the transport layer as simply bytes (like transport layer treats application layer data)
2. Or the possible case, when IP and TCP boundaries match but more TCP segments are within one IP datagram whichtarget the same host but the contained TCP segments are part of different TCP connections.
TCP |Segment 1 | Segment 2 | Segment 3| Segment 4| Segment 5 | Segment 6|
IP |Datagram 1 |Datagram 2|Datagram 3 |