All the processing is necessarily done in photonics for these record transmissions. Even so, these kind of speeds are still impressive for photonics.
To answer your question more adequately, nothing is pushing out the data in or recieving it beyond a counter and an application-specific photonics chip that is able to process the frames enough to count them. Anything else assumes levels of processing that would make anyone interested in compute fight over it.