Hello
Both ports belong to VLAN 1000 but they handle incomming and outgoing frames differently. Typically it also depends on what type of device is connected on the port.
Port A2 is tagged member of VLAN 1000. That means that it will only accept frames containing a 802.1q VLAN tag with the number 1000. Any other frames, without a tag or with a tag containing different number will be ignored. The port will also only send out frames belonging to VLAN 1000 and include a VLAN tag with the number 1000 in all the frames. This configuration can only work if the device on the other side of the link also supports 802.1q VLAN tagging. Typically this are switches, IP phones also support it, maybe also some other device. Adventage of this configuration is that there is strict control and configuration errors are less likely. The switch accepts only frames which were tagged by the device on the other side with the correct VLAN ID and it is not possible to forward a frame to the wrong VLAN. Another important adventage is that VLAN tagging allows packets for multiple VLANs to be carried via the same port because the tag allows the frames to be mapped correctly on the receiver side.
Drawback is that this configuration cannot be used to connect device which dont support VLAN tags.
Port B5 is untagged member of VLAN 1000. The port will accept all frames without VLAN tag received on this port and map them internally to VLAN 1000. Some models may also accept frames tagged with VLAN 1000 but frames tagged with other VLANs will be ignored.
In the outbound direction the port will also send out only frames of VLAN 1000 but will not include a VLAN tag in the Ethernet frame. Advantage is that this type of configuration can be used to connect devices which are not aware of VLANs and dont include VLAN tags in the frame, this are typically most of the end devices.
Drawback is that there is less control and in some situations traffic can leak between VLANs. For example if someone makes a mistake and connects a switch port untagged in VLAN 1000 to another's switch port untagged in VLAN 2000, the users in VLAN 1000 will be able to see the users in VLAN 2000. The switches will not have any means to recognize that there is a VLAN mismatch because the Ethernet frames are not tagged with a VLAN ID and no way to correct it. Untagged ports can be members of a single VLAN only.
A physical interface or a link aggregation can be untagged member of one VLAN only and tagged member of multiple VLANs.
Hope didnt forget something important.