Professional Documents
Culture Documents
Clase 5. Capa de Red
Clase 5. Capa de Red
DATA
SEGMENT DATA
S.P / D.P. / S.N. / Ack # / …
DATA (SEGMENT)
PACKET
IPv / HLEN / Flag / S. IP / D. IP / …
111010110101011100001001011010101010010101010101101101010001010101010110101010
IP
Functions
of the
Network
Layer Layer IP
The network layer, or OSI Layer 3, provides services to allow end devices to
exchange data across the network.
The network layer uses four basic processes:
Addressing end devices
Encapsulation
Routing
De-encapsulation
Network Layer Protocols
IP Packet IP Packet
IP Packet
IP Packet
IP Packet IP Packet
IP Packet IP Packet
IP Packet IP Packet
The Network layer does consider the maximum size of PDU that each medium can
transport.
This is referred to as the Maximum Transmission Unit (MTU).
The Network layer determines how large to create the packets.
Routers may need to split up a packet when forwarding it from one media to a
media with a smaller MTU.
This process is called fragmenting the packet or fragmentation.
This is similar to segmenting at the Transport layer but happens at the Network layer.
IPv4 Packet
Source IP Address
Destination IP Address
Options (optional)
Padding
IPv4 Header – Validation
Fields
Byte 1 Byte 2 Byte 3 Byte 4
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address
Version (4 bits)
– Indicates the version of IP currently used.
– 0100 = 4 and therefore IPv4
– 0110 = 6 and therefore IPv6
IP Header Differentiated Services
Version Total Length
Length
DSCP ECN
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address
Options (optional)
A router may have to fragment
Padding
a packet
when forwarding it from one medium to
another medium that has a smaller MTU.
When this happens, fragmentation
occurs and the IPv4 packet uses the
following 3 fields to keep track of the
fragments
IP Header Differentiated Services
Version Total Length
Length
DSCP ECN
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address
Flag (3 bits)
– This 3-bit field identifies how the packet is fragmented.
– It is used with the Fragment Offset and Identification
fields to help reconstruct the fragment into the original
packet.
IP Header Differentiated Services
Version Total Length
Length
DSCP ECN
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address
Protocol (8 bits)
– Field indicates the data payload type that the packet is
carrying, which enables the network layer to pass the data
to the appropriate upper-layer protocol.
– Common values include ICMP (1), TCP (6), and UDP (17).
– Others: GRE (47), ESP (50), EIGRP (88), OSPF (89)
– http://www.iana.org/assignments/protocol-numbers/
IP Header Differentiated Services
Version Total Length
Length
DSCP ECN
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address
Source IP Address
Destination IP Address