I don't believe normal switch can do any of that you mentioned. CISCO may produce high-end switches which do some kind of sophisticated things. But they cost $10K+.