You don't need to worry about all that... (especially packets and how they really work).
All modern operating systems and programming languages (and libraries) allow access on a higher level, actual access to packets is rarely needed (except for sniffing, intrusion detection, ...etc.);
.