The real goal of small talk is to be talking about as little substance as possible and just try to create a fun exchange.
You are not trying to get anywhere with your words, you are just trying to show that you are a safe, approachable person to talk to and that you are fun and interesting to be around.
This is what will get people to want to come talk to you again, and then you can actually start talking to them about real topics and start getting to know them.
In my opinion the best thing to do at first is to keep from giving too much information about yourself or asking information about them, other than just small not immportant things that you can chat about. I don't give my name or ask their name, I don't ask them what they do for a living and I don't tell them stuff like where I am from or whatever, unless it is part of an exchange such as, "where I grew up people would always do this as opposed to that, what did people do where you are from?" and then the other person will become curious about where you are from, and from there you can actually tell them.
But making people curious about you is the key. Build curiosity so they want to come back and learn more about you later, make them chase you to get information about who you are.
Keep it fun, because it is more immportant to be fun and open than it is to be clever and funny, being lighthearted is better than being a comedian.
Just have fun with the exchange and keep them curious enough to want to build actual networking later.
And the last thing is, use body language correctly. The small talk is just filler and while they are distracted with that you can project body language to their subconscious mind to make them preceive you however you want. It is actually more immportant how you say things and what kind of body language and eye contact you use, than what you are actually saying to begin with.