Cerebrospinal fluid (CSF) and brain tissue sodium levels increase during migraine. However, little is known regarding the underlying mechanisms of sodium homeostasis disturbance in the brain during the onset and propagation of migraine. Exploring the cause of sodium dysregulation in the brain is important, since correction of the altered sodium homeostasis could potentially treat migraine. Under the hypothesis that disturbances in sodium transport mechanisms at the blood-CSF barrier (BCSFB) and/or the blood-brain barrier (BBB) are the underlying cause of the elevated CSF and brain tissue sodium levels during migraines, we developed a mechanistic, differential equation model of a rat's brain to compare the significance of the BCSFB and the BBB in controlling CSF and brain tissue sodium levels. The model includes the ventricular system, subarachnoid space, brain tissue and blood. Sodium transport from blood to CSF across the BCSFB, and from blood to brain tissue across the BBB were modeled by influx permeability coefficients P BCSFB and P BBB , respectively, while sodium movement from CSF into blood across the BCSFB, and from brain tissue to blood across the BBB were modeled by efflux permeability coefficients P ′ BCSFB and P ′ BBB , respectively. We then performed a global sensitivity analysis to investigate the sensitivity of the ventricular CSF, subarachnoid CSF and brain tissue sodium concentrations to pathophysiological variations in P BCSFB , P BBB , P ′ BCSFB and P ′ BBB . Our results show that the ventricular CSF sodium concentration is highly influenced by perturbations of P BCSFB , and to a much lesser extent by perturbations of P ′ BCSFB . Brain tissue and subarachnoid CSF sodium concentrations are more sensitive to pathophysiological variations of P BBB and P ′ BBB than variations of P BCSFB and P ′ BCSFB within 30 min of the onset of the perturbations. However, P BCSFB is the most sensitive model parameter, followed by P BBB and P ′ BBB , in controlling brain tissue and subarachnoid CSF sodium levels within 3 h of the perturbation onset.