Você está na página 1de 3

MAC address is an unique address for an interface (1 MAC address for 1 Interface), such

as your wi-fi Interfaces have their own MAC addresses for each or your LAN Interfaces have
their own MAC addresses.
IP address tells you where you are and where your network located.
Port address identifies a process or service you want to do.
Let's make an example: Suppose Post offices are router.(don't care about the Session ID for
simplicity)
A sent "an invitation to the wedding"(Port address) to "B's house" in "CDE village"(IP
address) via "Letter".
Via letter means that the letter was gonna be sent to the "Letter box of B's house"(which has
its own MAC address)
The Post office (That was nearer to A than B) looked at the IP address and checked where
the nearest Post Office to B was and then forwarded the letter to the latter one. Then the
latter post office looked up the sheet to find where B's MAC Address (B's letter box) and
sent the letter to it. when B got the letter he would look at the Port Address(The invitation
to what) and knew what the information in the letter was about.
PS.
Suppose that B had assigned the Invitation to wedding session to Specific Port address. So
he would know if it's an invitation to wedding from port number.
I'm trying to make this as much as simple for readers so it might not be 100 percent correct
so feel free to make any comments I will be happy if you do.

Internet is network of networks. Mac address us machine address. Ip address is the unique
address which every web page have and port address are the address of a particular
application. So, when you are working on internet then you need all these three i.e, to access
a web page, or a particular application, you need a machine I.e, either laptop, computer,
phone etc. I hope this will work.

A MAC address is a Media Access Address, or machine address. They are unique, there is
only one of these addresses in the world. These can be used at a hardware level to restrict
connections or verify the right to connect. A port address is at the application or program
level and sets up a direct pipe to the target computer for special communications. IP
address is an assigned numeric address given to your computer by an Internet server. these
can be either static (Never changes) or dynamic (part of a shared pool of addresses that are
first come, first served)

Why do you need your name, surname and address of home?


you name = MAC address
Surname = Port address
Home Address = IP address
Something like same applied to Computer Network to send bunch of packets from one
station to another station.

Because MAC addresses are not internet addresses. They are a hardware level identifier tied to specific
Ethernet interfaces in machines (in fact, your machine may have 2 MAC addresses if it has both a WiFi
and a wired ethernet connection)
There is no way to resolve a MAC address to a way to route the packet to that MAC address. Your MAC
address is not normally viewable by the Internet at large (Besides, MAC addresses can be spoofed)
That's what IP addresses are for -- IP addresses are a network level identifier -- the whole Internet is
based on the ability of routers to forward packets to the 'next closer' router to the destination IP address.
The Domain Name system facilitates informing the routers all around the Internet where the particular
address is.

An MAC address is a link-level address and useful only within the same network.
An IP address is a routable address and useful across multiple networks (i.e. Internet).
A port is a specific entiry within a host that is addressable by an IP address and may have multiple
entities.
A US host and UK host belong to different networks (i.e. link-level groups) and there are a different linklevel networks between the two connecting them. IP routes independently from the lower (link, and other)
layers.

In classful addressing, an IP address of class A,B and C is divided into


two parts : netid and hostid.
The netid and hostid are of varying lengths, depending on the class of the
address.
Netid: The part of an IP address that identifies the network.
Hostid: The part of an IP address that identifies a host in a network.
Class A: One byte netid three bytes host id
Class B: Two bytes netid Two bytes host id
Class C: Three bytes netid One byte host id
Example:
1. IP address: 84.42.58.11
Binary Notation: 01010100 00101010 00111010 00001011
It is a class A IP address.
The network address /netid is 84.0.0.0
The host addresses /hostid is 0.42.58.11
2. IP address: 144.62.12.9
It is a class B IP address.
The network address /netid is 144.62.0.0
The host addresses /hostid is 0.0.12.9

Você também pode gostar