Encapsulation and PDU Analysis in Networking
Encapsulation and PDU Analysis in Networking
Networks
TD No. 2: Encapsulation and PDU
Exercise 1:
What is encapsulation?
Encapsulation consists of transporting data (PDU) of a given protocol inside structures.
(PDU) belonging to another protocol. In the OSI model, it is the insertion of data from the layer
superior in the data structure of the lower layer.
2. Decode the following Ethernet frame using the formats provided in the appendix (only give the
bold fields) :
0000 00 04 76 f0 fb b5 00 06 5b c2 f5 9e 08 00 45 00
0100 0100 0111 0110 1100 1100 0100 0000 0000 0100 0000 0111 1011 0110 1111 1100 0000 1010 1000 0000 0001 0111 1100 0000 1010 1000 .O..@.@..o......
0020 00 03 80 09 00 50 85 e6 67 33 03 6c 42 f4 80 18 .....P..[Link]...
0030 16 d0 78 f1 00 00 01 01 08 0a 00 09 62 11 0b 5a ..x.........b..Z
GET / HTTP/1.1 jCGET / HTTP/1.1
Connection: Ke ..Connection: Ke
ep-Alive User-A ep-Alive..User-A
get: Mozilla/5. gent: Mozilla/5.
0080 30 20 (compatible; K 0 (compatible; K
onqeror/2.2-11; Conqueror/2.2-11;
Linux Accept: Linux)..Accept:
0° text/*, image/j text/*, image/j
peg, image/png, peg, image/png
00d0 image/*, */* Ac image/*, */*..Ac
à cept-Encoding: x cept-Encoding: x
0f - gzpip, gzpip, ide -gzip, gzip, idea
NITTY Accept-Ch entity..Accept-Ch
Are you there: Any, utf- arset: Any, utf-
0120 38 2c 20 2a 0d 0a 41 63 63 65 70 74 2d 4c 61 6e 8, *..Accept-Lan
130 flag: fr, fr_FR guage: fr, fr_FR
0140 40 65 75 72 6f, en Host: @euro, en..Host:
0150 20 73 65 72 76 43 33 30 39 servC309....
Ethernet :
Destination address: 00 04 76 f0 fb b5
Source address: 00 06 5b c2 f5 9e
- Type: 00 80 → the content of the field "Information" is in IP format
3. In your opinion, what is the protocol carried within the TCP segment and what is the application that
Do I use it? In what form do the fields of this protocol present themselves?
HTTP because one of the TCP ports is an HTTP port (80). We can also see it in the data.
transmitted by TCP. This frame is sent from a web browser to a server to retrieve a
Web page. In the request, we observe the presence of various directives (defined by the protocol
HTTP) notably the browser used: Konqueror on Linux. These directives constitute the
various fields of the HTTP protocol message format. In addition to these directives (which are
optional), there is the command sent by the sender (here GET), which appears at the very beginning of the PDU
HTTP. The directives are in the form: "name: value". Thus, one can see:
Connection: Keep-Alive → request to keep the connection open with the server
application that uses HTTP
Accept: text/*, image… → types and formats of data accepted by the client
Exercise 2:
In a network based on the TCP/IP protocol stack model, an MDTP (Master) protocol is defined.
Data Transfer Protocol) from the application layer to transfer data between 2 machines. When a
the machine wants to transfer data using this protocol, it sends one (or more) datagrams
containing the data to be transferred to the destination machine. Thus, at the MDTP level, the protocol is
summarize into a monologue (unidirectional transmission of PDU). This protocol uses at the layer
UDP (User Datagram Protocol) is a connectionless protocol without acknowledgments.
What is the effectiveness of the transfer, knowing that:
the data to be transferred occupies 3 KB
The MDTP header has a fixed size of 60 bytes.
The UDP header has a fixed size of 8 bytes.
- The format of IP packets and Ethernet frames is provided in the appendix.
The IP protocol does not use its 'Options' field.
To calculate efficiency, we must calculate the total number of pieces of information circulating on the network all headers.
It is therefore necessary to determine the number of frames required.
Data size: Data = 3KB = 3072 bytes
PDU MDTP size (application PDU) = MDTP header + Data = 3132 bytes
The PDU MDTP must be transported by UDP TPDU (segments), which are encapsulated in NPDU
IP packets which in turn are carried by Ethernet LPDU (frames). Given that the frames
have a maximum size, packets and segments are also bounded.
Max Ethernet size = 1518 bytes including 18 bytes for control fields
→ maximum size of useful Ethernet data = 1500 bytes
→ max IP size = 1500 of which 20 bytes header
→ max useful IP data size = 1480 bytes
max UDP size = 1480 bytes including 8 bytes header
→ max useful UDP data size = 1472 bytes
→ we can only transport seg_u = 1472 bytes of MTDP at a time
University of La Rochelle Master CCI