[edk2-devel] reg: Two IAID assignment for single MAC Address

Sivaraman Nainar via groups.io sivaramann=ami.com at groups.io
Thu Oct 12 12:26:28 UTC 2023


Hello Zack:

Did you get chance to look at the Wireshark logs?.

Thanks
Siva
From: Sivaraman Nainar
Sent: Thursday, October 5, 2023 11:09 AM
To: Clark-williams, Zachary <zachary.clark-williams at intel.com>; devel at edk2.groups.io; Kasbekar, Saloni <saloni.kasbekar at intel.com>
Cc: Santhosh Kumar V <santhoshkumarv at ami.com>; Mike Su (蘇得緣) <MikeSu at ami.com>; Dhanaraj V <vdhanaraj at ami.com>
Subject: RE: [EXTERNAL] RE: reg: Two IAID assignment for single MAC Address

Hello Zack:

Thank you for the reply.

With reference to the attached WireShark Log, there are TWO IAID’s are created.

[cid:image001.png at 01D9FD35.6B6D27B0]



[cid:image001.png at 01D9FD35.6B6D27B0]

As you explained the IAID’s are not generated only if the IAID stored in NV Variable.

  //
  // Try to read the config data from NV variable.
  //
  Status = Ip6ConfigReadConfigData (IpSb->MacString, Instance);
  if (Status == EFI_NOT_FOUND) {
    //
    // The NV variable is not set, so generate a random IAID, and write down the
    // fresh new configuration as the NV variable now.
    //
    Instance->IaId = NET_RANDOM (NetRandomInitSeed ());

But in IPV6 PXE Boot this NV Variable is not set. Hence one IAID From PXE Boot SARR Process and another IAID created from Router Advertise SARR Process.

Thanks
Siva
From: Clark-williams, Zachary <zachary.clark-williams at intel.com<mailto:zachary.clark-williams at intel.com>>
Sent: Thursday, October 5, 2023 3:24 AM
To: Sivaraman Nainar <sivaramann at ami.com<mailto:sivaramann at ami.com>>; devel at edk2.groups.io<mailto:devel at edk2.groups.io>; Kasbekar, Saloni <saloni.kasbekar at intel.com<mailto:saloni.kasbekar at intel.com>>
Cc: Santhosh Kumar V <santhoshkumarv at ami.com<mailto:santhoshkumarv at ami.com>>; Mike Su (蘇得緣) <MikeSu at ami.com<mailto:MikeSu at ami.com>>; Dhanaraj V <vdhanaraj at ami.com<mailto:vdhanaraj at ami.com>>
Subject: [EXTERNAL] RE: reg: Two IAID assignment for single MAC Address


**CAUTION: The e-mail below is from an external source. Please exercise caution before opening attachments, clicking links, or following guidance.**
Hello Siva,

When looking into the NetworkPkg Ip6ConfigImpl.c and PxeBcDriver.c we are setting the IAID as you stated below, though Ip6ConfigImpl does check if the IAID IpSb Instance is already created before it generates its own.

Because the PxeBcDriver creates the Instance and profile first there should not be 2 IAID’s during that operational flow.

Thanks,
Zack

From: Sivaraman Nainar <sivaramann at ami.com<mailto:sivaramann at ami.com>>
Sent: Tuesday, October 3, 2023 10:49 AM
To: devel at edk2.groups.io<mailto:devel at edk2.groups.io>; Kasbekar, Saloni <saloni.kasbekar at intel.com<mailto:saloni.kasbekar at intel.com>>; Clark-williams, Zachary <zachary.clark-williams at intel.com<mailto:zachary.clark-williams at intel.com>>
Cc: Santhosh Kumar V <santhoshkumarv at ami.com<mailto:santhoshkumarv at ami.com>>; Mike Su (蘇得緣) <MikeSu at ami.com<mailto:MikeSu at ami.com>>; Dhanaraj V <vdhanaraj at ami.com<mailto:vdhanaraj at ami.com>>
Subject: RE: reg: Two IAID assignment for single MAC Address

+ Saloni and Zachary.

From: Sivaraman Nainar
Sent: Tuesday, October 3, 2023 10:39 PM
To: devel at edk2.groups.io<mailto:devel at edk2.groups.io>; Maciej Rabeda <maciej.rabeda at linux.intel.com<mailto:maciej.rabeda at linux.intel.com>>
Cc: Santhosh Kumar V <santhoshkumarv at ami.com<mailto:santhoshkumarv at ami.com>>; Mike Su (蘇得緣) <MikeSu at ami.com<mailto:MikeSu at ami.com>>; Dhanaraj V <vdhanaraj at ami.com<mailto:vdhanaraj at ami.com>>
Subject: reg: Two IAID assignment for single MAC Address

Hello Maciej:

When IPV6 PXE Boot performed in the environment where client and server are connected behind Routers, there are two SARR process happens, and both are using different IAID’s.

During the PXE Boot IPV6, SARR Process Initiated to get the Boot File information. During that time one IAID Created (ff76fdbd). PxeBcCreateIp6Children()
During the Router Advertisement , SARR Process Initiated to get the Boot File. Ip6ConfigInitInstance()

Besides, according to the definition of IA(RFC-3315<https://datatracker.ietf.org/doc/html/rfc3315>):

An "identity-association" (IA) is a construct through which a server
and a client can identify, group, and manage a set of related IPv6
addresses. Each IA consists of an IAID and associated configuration
information.

A client must associate at least one distinct IA with each of its
network interfaces for which it is to request the assignment of IPv6
addresses from a DHCP server. The client uses the IAs assigned to an
interface to obtain configuration information from a server for that
interface. Each IA must be associated with exactly one interface.

But as per EDK2 Network Implementation it defines two IA IDs for same client.  Is there any reasoning behind this implementation?

What if both the process uses Same IAID?

Thanks
Siva
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109571): https://edk2.groups.io/g/devel/message/109571
Mute This Topic: https://groups.io/mt/101738223/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20231012/091d4931/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 115842 bytes
Desc: image001.png
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20231012/091d4931/attachment-0001.png>


More information about the edk2-devel-archive mailing list