Networkcodingbringsmanybenefitsformulticastnetworks.Itisnecessarytointroducenetworkcodingintoopticalnetworks.Nevertheless,thetraditionalnetworkcodingschemeishardtobeimplementedinopticalnetworksbecauseoftheweakoperationcapabilityinphotonicdomain.Inthepaper,wefocusedonrealizingtwo-channelnetworkcodinginall-opticalmulticastnetworks.AnopticalnetworkcodingschemewhichcanberealizedvialogicshiftandlogicXORoperationsinphotonicdomainwasproposed.Moreover,toperformthenetworkcodingschemethecodingnodestructurewasdesignedandtheoperationprincipleandprocesseswereillustratedindetail.Intheendofthepaper,theperformanceandthecostofdifferentall-opticalmulticastmodewerecomparedandanalyzed.