9 - TCP
9 - TCP
1
10BASE-T RJ45
2
POE RJ45
3
Manchester coding
Voltage levels ±0.85V
4
MII and RMII
PIC32CK SG01/SG00/GC01/GC00 Family
Ethernet Media Access Controller (ETH)
5
MII and RMII
6
IP format
The Preamble - This consists of seven bytes, all of the form "10101010". This
The Source Address - This is the address of the source, in the same form as
7
above.
IP format
The Length - This is the length of the data in the Ethernet frame, which can be
Pad - 802.3 frame must be at least 64 bytes long, so if the data is shorter than 46
bytes, the pad field must compensate. The reason for the minimum length lies with
the collision detection mechanism. In CSMA/CD the sender must wait at least two
times the maximum propagation delay before it knows that no collision has
occurred. If a station sends a very short message, then it might release the ether
without knowing that the frame has been corrupted. 802.3 sets an upper limit on the
propagation delay, and the minimum frame size is set at the amount of data which
can be sent in twice this figure.
9
IP address
Clas Dirección IP (R=Red - H=Host) Rango N° de N° de Máscara de Broadcast
e Redes Host Red
10
IP address
Netmasks
Netmasks are used to identify which part of the address is the Network ID and which
part is the Host ID. This is done by a logical bitwise-AND of the IP address and the
netmask. For class A networks the netmask is always 255.0.0.0; for class B
networks it is 255.255.0.0 and for class C networks the netmask is 255.255.255.0.
Gateway
On an IP network, clients should automatically send IP packets with a destination
outside a given subnet mask to a network gateway. A subnet mask defines the IP
range of a private network. For example, if a private network has a base IP
address of 192.168.0.0 and has a subnet mask of 255.255.255.0, then any data
going to an IP address outside of 192.168.0.X will be sent to that network's
gateway.
ARP (https://youtu.be/mnfkwe6ri_E)
The Address Resolution Protocol is used to translate virtual addresses to physical
ones. The network hardware does not understand the software-maintained IP
addresses. IP uses ARP to translate the 32-bit IP address to a physical address
that matches the addressing scheme of the underlying hardware (for Ethernet, the
11
48-bit MAC address).
IP address
Static IP addresses are manually assigned to a computer by an administrator
Dynamic IP addresses, which are assigned either by the computer interface or host
software itself, or assigned by a server using Dynamic Host Configuration Protocol
(DHCP)
Some infrastructure situations have to use static addressing, such as when finding the
Domain Name System (DNS) host that will translate domain names to IP
addresses. Static addresses are also convenient, but not absolutely necessary, to
locate servers inside an enterprise
12
IP header
13
UDP header
14
TCP
15
TCP