BackgroundCerebrospinal 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 and , 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 ′ and ′ , 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 , , ′ and ′ . Our results show that the ventricular CSF sodium concentration is highly influenced by perturbations of , and to a much lesser extent by perturbations of ′ . Brain tissue and subarachnoid CSF sodium concentrations are more sensitive to pathophysiological variations of and ′ than variations of and ′ within 30 minutes of the onset of the perturbations. However, is the most sensitive model parameter, followed by and ′ , in controlling brain tissue and subarachnoid CSF sodium levels within 2 hours of the perturbation onset.